Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

calling webdynpro tcode from normal abap report alv

Former Member
0 Likes
553

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

3 REPLIES 3
Read only

Former Member
0 Likes
523

Hi Nishant,

Instead of using CALL TRANSACTION .. try with SUBMIT 'REPORT NAME' WITH .... AND RETURN

statement.

Regards

Sarvesh rai

Read only

0 Likes
523

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

Read only

Former Member
0 Likes
523

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.