Application Development 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: 

Pass the Parameter Value to another T-Code Parameter

niraj_sinha4
Explorer
0 Kudos

Hi All,

I have one Report program, and there i want to pass my parameter value to another T-Code when we click on Display button and execute there itself the same lot no which i pass through my report program.

This is my Report Program Parameter Lot No.

Want to pass this lot no into this (below) T-Code and display there itself.

Thanks in Advance,

Niraj

5 REPLIES 5

raymond_giuseppi
Active Contributor
0 Kudos

What did you try from SPA/GPA parameter to build of a small BDC?

Regards,

Raymond

0 Kudos

Hi Raymond,

I just want to display my lot no details when i passing the parameter form my Report program.

Regards

Niraj

0 Kudos

Hi Niraj,

It can easily be done through a BDC and call transaction.

Create a BDC for the second Tcode and when you press the display button on first t code , call transaction with BDC data for second t code.

Thanks,

Ritesh

VenkatRamesh_V
Active Contributor
0 Kudos

Hi Niraj,

if it is  z report, try export/import Memory id.

Hope it helpful,

Regards,

Venkat.

sab125
Participant
0 Kudos

Hello

Try


DATA: LT_BDC_TAB TYPE STANDARD TABLE OF bdcdata.

FIELD-SYMBOLS : <fs_bdc_data> LIKE LINE OF LT_BDC_TAB.


APPEND INITIAL LINE TO LT_BDC_TAB ASSIGNING <FS_BDC_TAB>.

<FS_BDC_TAB>-program  = '(TARGET TCODE PROG NAME)'.

<FS_BDC_TAB>-dynpro   = ''(TARGET TCODE SCREEN NUMBER)'.'.

<FS_BDC_TAB>-dynbegin = 'X'.

          

APPEND INITIAL LINE TO LT_BDC_TAB ASSIGNING <FS_BDC_TAB>.

<FS_BDC_TAB>-fnam = '(LOT DYNPRO NAME in TARGET TCODE)'.

<FS_BDC_TAB>-value = '(LOT NUMBER)'.

CALL TRANSACTION (YOUR TARGET TCODE) USING LT_BDC_TAB .

and if you want to skip the first screen, just add 'SKIP FIRST SCREEN'

Sab