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

Pass the Parameter Value to another T-Code Parameter

niraj_sinha4
Explorer
0 Likes
1,420

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
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,358

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

Regards,

Raymond

Read only

0 Likes
1,358

Hi Raymond,

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

Regards

Niraj

Read only

Former Member
0 Likes
1,358

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

Read only

VenkatRamesh_V
Active Contributor
0 Likes
1,358

Hi Niraj,

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

Hope it helpful,

Regards,

Venkat.

Read only

sab125
Participant
0 Likes
1,358

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