Quantcast
Channel: SCN : All Content - Web Dynpro ABAP
Viewing all 3667 articles
Browse latest View live

Warning message "Type ELEMENTS_mynode is not used directly" in Extended Check

$
0
0

Hi,

 

When i am performing Extended Check on my Web Dynpro ABAP component, i am getting the following warning in Field Attributes category.

 

      Program: /1BCWDY/0O2TX4M0XKB2Q4TME2WX  Include: /1BCWDY/S_2Q4R70O2TKBB  Row: 58

Type ELEMENTS_MYNODE is not used directly

Can be suppressed using pragma ##NEEDED (or pseudo comment "#EC NEEDED)

 

When I double click on this message, it navigates to the node MYNODE in the context tab of the view. I am receiving this warning for almost all context nodes.

 

What I know is that WD framework itself creates the types for all context nodes like ELEMENT_<NodeName> & ELEMENTS_<NodeName>. I don't know whether we can control this feature of WD to not create these types automatically.

 

How can I get rid of these warning message. Please help.


How to enhance Web Dynpro View Configuration in 7.31?

$
0
0

Dear all,

 

we are used to enhance Web Dynpro Configurations for Views in SRM up to 7.01 (BASIS 7.02). Since SRM 7.02 (BASIS 7.31) this is no longer possible. The whole process changed a lot and we are no longer able to find the correct procedure to enhance component configurations.

 

What we did understand was that we can reach the enhancement section directly from the Web UI: right mouse -> technical help. From here we

can reach the actual Component-Configuration of the view directly (instead of going to SE80 first in BASIS 7.02).

 

After this we are presented the component configuration as we are used to (except that the trays are aligned vertically instead of horizontally

before). In view mode we see the trays "Component Defined" and "Web Dynpro Built In". Now we can enhance the configuration. After creating

the enhancement the tray "Web Dynpro Built In" disappears. It is not possible to enhance the screen.

 

What is wrong here?

 

Regards

Mike

Web Dynpro Built-In not available after enhance on Start Configurator of a WD Component

$
0
0

Hello everyone,

 

I´m trying to create a enhancement on my start configurator of my web dynpro component.

 

This is the information of my system:

ScreenHunter_04 Jun. 12 19.23.jpg

I select the wd component and set the Start Configurator to create a new enhancement:

ScreenHunter_01 Jun. 12 19.20.jpg

After create the enhancement my web dynpro built-in option is not available to change data:

ScreenHunter_02 Jun. 12 19.20.jpg

ScreenHunter_03 Jun. 12 19.20.jpg

Any idea why the web dynpro built-in is not available?

 

Rgs,

 

Pedro Marques

IF_IOS_WORDPROCESSING getcontent

$
0
0

Hi,

 

I did not find any documentation and search through many posts regarding of getting the data of changed (word) document in WD4A.

 

In our application there is the office control used to show the user the word, that is generated (template stored in MIME, used set_fields for merge fields) and the user still has the ability to change the document. This works OK.

 

Now I need to get the final changed document from the office control - how to achieve this? When I work with the attribute, it still holds only the original data (without the already merged fields and without user's input / changes).

 

1. First I thought that the whole data will be stored only inside the context attribute, that holds the word data (xstring). That in fact is probably not possible for the office control.

 

2. I tried calling the IF_IOS_WORDPROCESSING savedocument( ) - did not help.

 

3. I was trying to call the IF_IOS_WORDPROCESSING getcontent( ) method, but it returns an interface  if_ios_result_binary. When I create an object of this interface, I can call GET_RESULT( ) method of it, but that one does not have any parameters (?). There are also methods from the IF_IOS_RESULT interface (GET_RESULT_GENERIC e.g.), but those do not return anything at all.

 

Can anybody explain me the process of getting the data from the office WYSIWYG? I have the xstring that I "inputted" to the office control via a context attribute, how to get the "output" of the office control (in the ideal world - directly as a xstring)?

 

Thanks in advance.

HOW TO SEND ONLY ONE VIEW OF WINDOW TO INTERFACE VIEW OF COMPONENT

$
0
0

I have one webdynpro controller,in window i have three view container ui elements holding each view ,i faced a problem that only one view of the window is to be exposed to interface view but not total window is it possible ?

Tool to generate WD View from XSD + XSLT?

$
0
0

Hi,

Is there a tool to generate WD View with context and view elements (Labels, InputFields, CheckBoxes...) based on existing XSD and XSLT files?

 

I have in mind something similar to HTML form which is generated as:

HTML = XSD (data definition) + XML (data) + XSLT (transformation).

Thanks!

KR,

Igor

WebDynpro component not visible on right clicking and more field help after upgrade 7.4

$
0
0

Hi everyone,

  after upgrade to 7.4 when in webdynpro abap i use right click and select more field help the name of component are not visibile, i try to set debug permission and sap_all, sap_new role to the user but nothing....Can you help me?

 

Regards,

Rocco

Personalization(Settings) of Table in Webdynpro ABAP

$
0
0

Hi,

I have to implement Personalization for end user in my View.

So i was checking the Demo Component  WDR_TEST_PERS_IMP_EXP

when I was testing Settings option in this Application it show Pop Up saying Personalization not possible.

So when i debugged this component it is showing the Restricted View of the Component WDR_P13N.

Please do let me know, do i need to set any parameters to enable Personalization.

Please do fine the attached screen shot.

 

Thanks in Advance!

 

Regards,

Shashikanth


Access via 'NULL' object reference not possible Error in WD application execution

$
0
0

Experts,

 

I am getting following error for web dynpro application intermittently, please find following error log:

 

What happened?
    Error in the ABAP Application Program

    The current ABAP program "CL_SALV_WD_C_TABLE_V_TABLE====CP" had to be
     terminated because it has
    come across a statement that unfortunately cannot be executed.

 

 

Error analysis

    An exception occurred that is explained in detail below.

    The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not

     caught in

    procedure "IF_SALV_WD_COMP_TABLE_DATA_MAP~MAP_TO_RESULT_CHANGES" "(METHOD)",

     nor was it propagated by a RAISING clause.

    Since the caller of the procedure could not have anticipated that the

    exception would occur, the current program is terminated.

    The reason for the exception is:

    You attempted to use a 'NULL' object reference (points to 'nothing')

    access a component.

    An object reference must point to an object (an instance of a class)

    before it can be used to access components.

    Either the reference was never set or it was set to 'NULL' using the

    CLEAR statement.

 

Information on where terminated
    Termination occurred in the ABAP program "CL_SALV_WD_C_TABLE_V_TABLE====CP" -
     in "IF_SALV_WD_COMP_TABLE_DATA_MAP~MAP_TO_RESULT_CHANGES".
    The main program was "SAPMHTTP ".

    In the source code you have the termination point in line 168
    of the (Include) program "CL_SALV_WD_C_TABLE_V_TABLE====CM080".
    The termination is caused because exception "CX_SY_REF_IS_INITIAL" occurred in
    procedure "IF_SALV_WD_COMP_TABLE_DATA_MAP~MAP_TO_RESULT_CHANGES" "(METHOD)",
     but it was neither handled locally nor declared
    in the RAISING clause of its signature.

    The procedure is in program "CL_SALV_WD_C_TABLE_V_TABLE====CP "; its source
     code begins in line
    1 of the (Include program "CL_SALV_WD_C_TABLE_V_TABLE====CM080 ".

 

Line  SourceCde

  138
  139         "Set new value to result data
  140         if ls_changelist-r_old_value is not bound.
  141           "insert new table line
  142           lr_component->r_result_data->if_salv_bs_r_data_table_edit~insert_table_line(
  143             index = l_result_data_index ).
  144         else.
  145           "Modify existing table line
  146           lr_component->r_result_data->if_salv_bs_r_data_table_edit~set_table_line(
  147             index     = l_result_data_index
  148             data_line = <ls_table> ).
  149         endif.
  150       else.
  151         "A single attribute value has to be updated
  152
  153         "Get context element from output data node
  154         data lr_element type ref to if_wd_context_element.
  155
  156         "Retrieve the element to update from the data output node
  157         if l_mass_edit_row_inserted = abap_true.
  158           "The Element only exists virtually due to the mass edit mode.

  159           lr_element = lr_node->get_element( l_mass_edit_virtual_index ).

  160           l_mass_edit_row_inserted = abap_false.

  161         else.

  162           "The element already exists in the data output node.

  163           lr_element = lr_node->get_element( ls_changelist-index ).

  164         endif.

  165

  166         "Determine if the cell to be updated is set to null (Nullable)

  167         data l_is_null type abap_bool.

>>>>>         l_is_null = lr_element->is_attribute_null( ls_changelist-attribute ).

  169

  170         "Update result data with change

  171         if <l_value> is assigned.

  172           "update ResultData with cell value

  173           lr_component->r_result_data->if_salv_bs_r_data_table_edit~set_table_cell(

  174             index     = l_result_data_index

  175             attribute = ls_changelist-attribute

  176             data_cell = <l_value>

  177             is_null   = l_is_null ).

  178         else.

  179           "Update result data without any updated cell value

  180           lr_component->r_result_data->if_salv_bs_r_data_table_edit~set_table_cell(

  181             index     = l_result_data_index

  182             attribute = ls_changelist-attribute

  183             is_null   = l_is_null ).

  184         endif.

 

 

Please help us on what could be the reason behind this?

 

Thanks,

Madan

Not able to find the code where Columns is Hiding in SAP TM

$
0
0

Hi Experts,

 

I had a requirement as below with Transportation Management Module.

 

Requirement: In planning Folder -> Planning -> "WDY_APPLICATION - Transportaion Cockpit" , for one of the FU's(Freight Unit Stages) I need to add one field to the screen.

 

 

S1.jpg

The below screen is displayed. In the below screen we need to add one more field "DLV_PRIO" after the carrier field

s2.jpg

 

To get the field "DLV_PRIO", Below is the reference. Go to the T-code: /BOBF/TEST_UI

S3.jpg

Below is the screen we get and add the Business Object Builder: /SCMTMS/TOR.

S4.jpg

Then follow the below steps.

S5.jpg

Below screen appears, Give the value from Freight Unit Stage "Frieght Unit" field Value (See the second screen shot) in "TOR_ID" and click Continue.

S6.jpg

Then the details of the Frieght Unit gets displayed as shown below.

From here I want the field "DLV_PRIO" this field should be added to the Transportation Cockpit screen after the CARRIER Field. (As showed in Screen -2 )

 

Finally i have added field in structure "/SCMTMS/S_UI_PLN_FU_SHP", but after adding, this column is NOT visible in Output.

 

How can i achieve this ? How can i populate the data for new column.

 

 

Please help me.

 

Thanks,

Sandeep Narsina

ALV: change row color in a standard WD

$
0
0

Hello friends:

 

   I have seen many threads addressing the change of color in ALVs, but they all refer to completely Z webdynrpos. Do you think it would be possible to enhance standard webdynpro HRECM00_PLANNING_UI so that rows have a change of color based on certain conditions?

 

Thank you very much in advance!

service call to function module not fetching updated data

$
0
0

Hello Experts,

 

I have developed one web dynpro application from which I am making a service call to Z function module. This function module call is triggered on click of a button from user interface.

 

Now, suppose my web dynpro application is loaded in the browser. At the very same time, SAP user updates the relevant data to function module, using the standard transaction in system. Now if function module is executed using tcode SE37, it returns updated data.

 

But when same function module is triggered on the click of button from the application which is loaded in browser, data values returned are not updated.

 

I am very surprised by the behavior of this. Help me get through this.

 

 

Regards,

Harsh

how to call a radiobutton from radiobutton and how to add in webdynpro abap

$
0
0

first i have created my first radio buttonkey rgp and nrgp.my requirement is that when i selected RGP radiobutton then then another radiobutton group PO and NON PO is opened..how to do that in webdynpro abap..Please its very urgent ..see the attached photo

ALV Print Version Colour

$
0
0

Hi SCNers,

 

I have created an ALV with some rows in Colour, it displays as expected in the browser. But when we try to print it using the Print Version button in the ALV, it shows up as Black and White in the PDF. Are there any settings that I am missing, or is this not possible in Webdynpro ALV? Thank you all in advance.

 

Pagal

Distance Between Separators for Thousands Must Be 3.

$
0
0

Hi ,

 

I m using table , in which I have to copy paste entries from excel sheet . when I do this in hours column its getting error as Distance Between Separators for Thousands Must Be 3.



ALV Table and Its functionalities

$
0
0

Author : Sankar Gelivi

Created on : 27.06.2014

 

Summary: This document explains configuration of ALV table, events and funtionalities like changing column header, setting UI elements like button, link to action etc to the ALV table column.

 

 

Component: SALV_WD_TABLE is the generic component provided by SAP to create ALV table.

 

Events of ALV table: Each event will be discussed in detail

Events in ALV Table.PNG


1. Create component YSG_ALV_TABLE


Screen1 - component creattion.PNG

2. Define used component ( SALV_WD_TABLE ) under using component ( YSG_ALV_TABLE ) and save the component

screen2 - define used components under current components.PNG


3. After activating the component, we will be able to see Interfacecontroller_usage of ALV table under component usages.


screen3 - component usages.PNG

4. Create a node 'MATERIAL' with cardinality 0-N


screen4 - create a node in the component controller.PNG

5. Double on the interface controller usage of ALV table, we will be re-directed to the context of ALV table interface controller

   

screen5 - Double click on the interface controller Usage.PNGscreen6- Navigation to ALV Component interface controller.PNG

  DATA node: Defines the structure of ALV table and passes data to the ALV table

  FUNCTION_ELEMENTS node: Creates UI elements in the ALV table toolbar

  TOP_OF_LIST node: Creates header to the ALV table

  END_OF_LIST node: Creates footer to the ALV table

 

6. To assign structure to the DATA node, create controller usage

screen7- click on the controller usage btn.PNG

7. Select component controller of YSG_ALV_TABLE component

screen8 - select component controller of the current component.PNG


8. Define the External Context Mapping with DATA node of ALV table and MATERIAL node of YSG_ALV_TABLE

screen9- component controller availability and define exterrnal context mapping.PNG

9. once the mapping is defined, we will see double arrow mark to the DATA node.


screen10-External Mapping is defined.PNG


screen11- message for mapping.PNG


10. Design the view with the View Container UI element. View container UI element is used to display a view with in a view. It acts like a SUBSCREEN area in          module pool program


screen12-design the veiw with view container UI element.PNG

11. Go to the window and assign view to be displayed in the view container

screen13 - assign view to the VC.PNG

12. Right click on the view container UI element, select EMBED view and click on F4 of view to be Embedded and select TABLE under VIEW / Interface view          and click on continue

screen14 - assigning table view to the vc.PNG

13. TABLE view of ALV table is assigned to the view container

screen15 - assinged.PNG

14. Implement the logic in the WDDOINIT( )

screen16.PNG

15. Save, activate and execute the application.

screen17 - Output.PNG


Note: ALV table events and its functionalities will be shared in the ALV Table and Its functionalities PART - 2

How to give a POP up window on closing the browser or clicking on X button at browser???

$
0
0


I have a requirement to give a popup confirmation window before closing a webdynpro application on browser. Can somebody please help me in this?

F4 help for Time field in Webdynpro Screen

$
0
0

Hi Experts,

 

I'm using TIMS data type for my Time field. In ECC we will have F4 function for the same data element, but in Webdynpro screen, am not getting the F4 help.

 

I got some information from SCN that I need to go for some custom search help. But with which reference to the table, am I want to create it.

 

Please let me know, is there any other possible way to create F4 for time field for webdynpro.

 

Even I tried to use some standard search help, but am getting an error as 'Sending of dynpro ' ' not possible. No window system type specified'.

 

Expecting valuable information from you experts.

 

 

With Regards,

RAM.

How to align group column header in Web Dynpro Table

$
0
0

Hallo Experts,

 

I have been working with a web dynpro table and wonder if it is possilbe to make the group header align-center. It is possible for a general column to use the hAlign property but there is nothing like that for the group column.

Any hints would be appreciated

 

Regards

Casper

webdynpro ABAP independent application

$
0
0

hello,

I have developed independent application of webdynpro ABAP

i want to integrate it on portal

i have page, create iview, assign application url to the iview - all this i do in portal content administration etc

but in later versions, instead of iview etc, there is bankend transaction code, ie tcode in R/3 where I can assign my web dynpro application to portal

I need the name of that transaction code. kindly help with your inputs

 

thanks

bhakti

Viewing all 3667 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>