‎2008 May 22 7:04 AM
Hi all
I have a requirement such that once i double clic on the output it should skip the first screen and go n open the program directly from SE38.I know how to take it to SE38 but from there how to pass on the program name.Please help.
REPORT ZPRE_6.
TABLES:BSEG.
DATA:ITAB LIKE STANDARD TABLE OF BSEG WITH HEADER LINE.
PARAMETERS:p_WERKS TYPE BSEG-WERKS.
Select * From bseg into corresponding fields of table itab up to 10 rows where werks = p_werks .
Loop at itab.
Write:/ itab-werks,itab-wrbtr.
endloop.
AT LINE-SELECTION.
Call transaction 'SE38' and skip first screen.
SET PARAMETER ID 'ZPRE_6.
END-OF-SELECTION.
With Regards
Vijay
‎2008 May 22 7:37 AM
Hi Vijay,
Then we have to put this piece of code. Just copy paste this code and let me know if it works for. It is working for me.
REPORT z75694.
WRITE 'Test'.
DATA: bdcdata TYPE TABLE OF bdcdata,
wa TYPE bdcdata.
AT LINE-SELECTION.
CLEAR wa.
wa-program = 'SAPLWBABAP'.
wa-dynpro = '0100'.
wa-dynbegin = 'X'.
APPEND wa TO bdcdata.
CLEAR wa.
wa-fnam = 'BDC_OKCODE'.
wa-fval = '=SHOP'.
"This is ok code for display. U can use OK code for change
"mode also.
APPEND wa TO bdcdata.
CLEAR wa.
wa-fnam = 'RS38M-PROGRAMM'.
wa-fval = 'Z75694A'.
"Here pass ur program name(Can be dynamic also.
APPEND wa TO bdcdata.
CALL TRANSACTION 'SE38' USING bdcdata MODE 'E'.
This will show the code in display mode. If u want in change mode then change the BDCOK code accordingly.
Thanks,
Vinod.
Edited by: Vinod Kumar Vemuru on May 22, 2008 12:08 PM
‎2008 May 22 7:11 AM
Hi,
TABLES:BSEG,rs38m.
DATA:ITAB LIKE STANDARD TABLE OF BSEG WITH HEADER LINE.
PARAMETERS _WERKS TYPE BSEG-WERKS.
Select * From bseg into corresponding fields of table itab up to 10 rows where werks = p_werks .
Loop at itab.
Write:/ itab-werks,itab-wrbtr.
endloop.
AT LINE-SELECTION.
rs38m-program = 'ZPRE_6'.
Call transaction 'SE38' and skip first screen.
SET PARAMETER ID 'RID' field rs38m-programm.
END-OF-SELECTION.
Regards,
Jagadish
‎2008 May 22 7:22 AM
Hi,
Try using
set PARAMETER ID 'RID' field 'ZPRE_6'
Regards,
Nikhil
‎2008 May 22 7:24 AM
Hi Vijay check below code.
AT LINE-SELECTION.
SET PARAMETER ID 'RID' FIELD 'ZPRE_6'.
CALL TRANSACTION 'SE38' AND SKIP FIRST SCREEN.
Thanks,
Vinod.
‎2008 May 22 7:26 AM
Hi vinod
Its not opening the program.Any help for opening the code?
‎2008 May 22 7:37 AM
Hi Vijay,
Then we have to put this piece of code. Just copy paste this code and let me know if it works for. It is working for me.
REPORT z75694.
WRITE 'Test'.
DATA: bdcdata TYPE TABLE OF bdcdata,
wa TYPE bdcdata.
AT LINE-SELECTION.
CLEAR wa.
wa-program = 'SAPLWBABAP'.
wa-dynpro = '0100'.
wa-dynbegin = 'X'.
APPEND wa TO bdcdata.
CLEAR wa.
wa-fnam = 'BDC_OKCODE'.
wa-fval = '=SHOP'.
"This is ok code for display. U can use OK code for change
"mode also.
APPEND wa TO bdcdata.
CLEAR wa.
wa-fnam = 'RS38M-PROGRAMM'.
wa-fval = 'Z75694A'.
"Here pass ur program name(Can be dynamic also.
APPEND wa TO bdcdata.
CALL TRANSACTION 'SE38' USING bdcdata MODE 'E'.
This will show the code in display mode. If u want in change mode then change the BDCOK code accordingly.
Thanks,
Vinod.
Edited by: Vinod Kumar Vemuru on May 22, 2008 12:08 PM
‎2008 May 22 7:43 AM