on 04-10-2015 6:58 AM
Hi Rohit,
If you wants to just execute the ABAP Program from Web Dynpro ABAP you can use the following Code
SUBMIT ZXXXX with par1 = 'value 1' with par2 = 'value 2' and return.
If you wants bring the values back to Web dynpro abap from ABAP Program you can use the following code.
SUBMIT ZXXXX EXPORTING LIST TO MEMORY.
Use the FM to retrieve from memory.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
DATA = LT_DATA
EXCEPTIONS
NOT_FOUND = 4
OTHERS = 8.
But please make sure the report is not directly calling any screens or BDC in 'A' or 'E' mode.
- Gowtham
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rohith,
If you have parameters to be passed from NODE,.
data ls_data type wd_this->element_MY_NODE.
data lo_node type ref to if_wd_context_node.
data lo_element type ref to if_wd_context_element.
lo_node = wd_context->get_child_node( name = 'MY_NODE' ).
lo_element = lo_node->get_element( index = 1 ). " Get the record from node using index
lo_element->get_static_attributes( importing static_attributes = ls_data ).
Option 1:
" Now pass the values to the program call, note this call should be made from a method of assistance class
submit zprogram with par1 = ls_data-att1, etc.
Option 2:
Create a transaction for your program , ex: ztcode
now call the ztcode by passing the parameters from Webdynpro and skip first screen.
Please search SCN, where many threads available to answer on "calling tcode from webdynpro"
Refer the link: Calling Transaction Codes through Web Dynpro Application
Hope this helps you.
Regards,
Rama
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.