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

How call Tcode from ABAP report

Former Member
0 Likes
5,851

Hi Experts,

I am working on a ABAP report from where I have to call the Tcode and pass the values to one of the fields in that Tcode.

I am not using BDC.

Regards,

Akhilesh Bhagat.

Hi Experts,

I am working on a ABAP report from where I have to call the Tcode and pass the values to one of the fields in that Tcode.

I am not using BDC.

Regards,

Akhilesh Bhagat.

4 REPLIES 4
Read only

Former Member
0 Likes
1,347

This message was moderated.

Read only

gouravkumar64
Active Contributor
0 Likes
1,347

Hi,

1)At first

write like this

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

    EXPORTING

*    I_INTERFACE_CHECK                 = ' '

*    I_BYPASSING_BUFFER                = ' '

*    I_BUFFER_ACTIVE                   = ' '

      i_callback_program                = sy-repid

*    I_CALLBACK_PF_STATUS_SET          = ' '

     I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'

...............


2)then within a perform do like this

FORM user_command USING r_ucomm TYPE sy-ucomm

                         rs_selfield TYPE slis_selfield.

     READ TABLE IT_FINAL INTO WA_FINAL

           INDEX RS_SELFIELD-TABINDEX.

     IF SY-SUBRC = 0.

       SET PARAMETER ID 'ANR' FIELD WA_FINAL-AUFNR.

       CALL TRANSACTION 'CO03' AND SKIP FIRST SCREEN.

     ENDIF.

     ENDFORM.

Thanks

Gourav.

Read only

sandeep_katoch
Contributor
0 Likes
1,347

Hi Akhilesh,

Try this

http://help.sap.com/abapdocu_70/en/ABAPCALL_TRANSACTION.htm

Hope this helps.

You just need to pass the parameters by using

SET Parameter ID

after this call transaction and skip first screen.

Rgds,

Sandeep Katoch

Read only

Kurusetti
Explorer
0 Likes
1,347

Hi Akilesh,

Make use of this SET PARAMETER ID.

SET PARAMETER ID <PARAMETER ID>. FIELD   '<FILED-VALUE>'

   CALL TRANSACTION '<TRANSACTION CODE>' and skip first screen.

You can find parameter id of particular filed trough F1 help.

Regards,

K.Rajesh