2016 Feb 16 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
2016 Feb 16 1:03 PM
2016 Feb 16 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
2016 Feb 16 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
2016 Feb 16 2:33 PM
Hi Niraj,
if it is z report, try export/import Memory id.
Hope it helpful,
Regards,
Venkat.
2016 Feb 16 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