02-16-2016 12:31 PM
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
02-16-2016 1:03 PM
What did you try from SPA/GPA parameter to build of a small BDC?
Regards,
Raymond
02-16-2016 1:10 PM
Hi Raymond,
I just want to display my lot no details when i passing the parameter form my Report program.
Regards
Niraj
02-16-2016 2:32 PM
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
02-16-2016 2:33 PM
Hi Niraj,
if it is z report, try export/import Memory id.
Hope it helpful,
Regards,
Venkat.
02-16-2016 3:09 PM
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