2013 Jul 15 8:03 AM
hi
i am calling a webdynpro tcode first screen from my normal abap alv report
the trancction is being called but i am unable to pass value of field that is being cliced to the screen of webdynpro
FORM user_command USING r_ucomm TYPE sy-ucomm
rs_selfield TYPE slis_selfield.
*Check function code
CASE r_ucomm.
WHEN '&IC1'.
* Check field clicked on within ALVgrid report
IF rs_selfield-fieldname = 'field_name eg vbeln'.
* Read data table, using index of row user clicked on
READ TABLE lt_table INTO wa_table INDEX wa_table-tabindex.
* Set parameter ID for transaction screen field
SET PARAMETER ID 'PAR' FIELD ls_release-leaser. just setting a temporary parameter id
* execute transaction Zwebdynpro
CALL TRANSACTION 'Zwebdynpro'.
ENDIF.
ENDCASE.
the transaction is being called upon but the value of the fields is not populated to the input oscreen of webdynpro
here its for eg input screen
input screen ....vbelen value ( which i want to pupulate on webdynpro screen when user clicks on the alv report vbelen field.
pls suggest
regards
nishant
2013 Jul 15 8:15 AM
Hi Nishant,
Instead of using CALL TRANSACTION .. try with SUBMIT 'REPORT NAME' WITH .... AND RETURN
statement.
Regards
Sarvesh rai
2013 Jul 15 10:29 AM
hi sarvesh
not possible as webdynpro application dont have program name in tcode but function pool name there is no program which i can use to submit
regards
Nishant
2013 Jul 15 1:49 PM
Hi, try EXPORT TO MEMORY ID in your ALV report. Then in the webdynpro INIT method, use IMPORT FROM MEMORY ID and fill the required field. That should work.