2008 Apr 14 2:16 PM
Hi all,
i want to create an interactive report so that when somebody click on the program name on the list output the at-line selection should open the se38 transaction by skipping the first screen. I used the syntax :
refresh t_bdcdata.
PERFORM fill_screendata USING 'SAPLWBABAP' '0100'.
perform fill_field_Data using 'RS38M-PROGRAMM' fs_report-prog.
perform fill_field_data using 'RS38M-FUNC_EDIT' 'X'.
PERFORM fill_field_data USING 'BDC_OKCODE' '=CHAP'.
perform fill_field_data using 'BDC_CURSOR' 'RS38M-FUNC_EDIT'.
CALL TRANSACTION 'SE38' USING t_BDCDATA MODE 'A'
MESSAGES INTO t_bdcmsg.
FORM fill_screendata USING value(p_0015)
value(p_0016).
bdcdata-program = p_0015.
bdcdata-dynpro = p_0016.
bdcdata-dynbegin = 'X'.
ENDFORM. " fill_screendata
FORM fill_field_data USING value(p_0020)
value(p_0021).
bdcdata-fnam = p_0020.
bdcdata-fval = p_0021.
APPEND bdcdata TO t_bdcdata.
ENDFORM.but it opens the SE38 editor's first screen with program name only and it does not open (go inside) the abap editor with program name.can any one help me by giving the correct code.
thanks
Anup
Edited by: Anup Verma on Apr 14, 2008 3:17 PM
2008 Apr 14 2:25 PM
It's probably easier if you just call function EDITOR_PROGRAM.
Cheers
Thomas
Hi all,
i want to create an interactive report so that when somebody click on the program name on the list output the at-line selection should open the se38 transaction by skipping the first screen. I used the syntax :
refresh t_bdcdata.
PERFORM fill_screendata USING 'SAPLWBABAP' '0100'.
perform fill_field_Data using 'RS38M-PROGRAMM' fs_report-prog.
perform fill_field_data using 'RS38M-FUNC_EDIT' 'X'.
PERFORM fill_field_data USING 'BDC_OKCODE' '=CHAP'.
perform fill_field_data using 'BDC_CURSOR' 'RS38M-FUNC_EDIT'.
CALL TRANSACTION 'SE38' USING t_BDCDATA MODE 'A'
MESSAGES INTO t_bdcmsg.
FORM fill_screendata USING value(p_0015)
value(p_0016).
bdcdata-program = p_0015.
bdcdata-dynpro = p_0016.
bdcdata-dynbegin = 'X'.
ENDFORM. " fill_screendata
FORM fill_field_data USING value(p_0020)
value(p_0021).
bdcdata-fnam = p_0020.
bdcdata-fval = p_0021.
APPEND bdcdata TO t_bdcdata.
ENDFORM.but it opens the SE38 editor's first screen with program name only and it does not open (go inside) the abap editor with program name.can any one help me by giving the correct code.
thanks
Anup
Edited by: Anup Verma on Apr 14, 2008 3:17 PM
2008 Apr 14 2:20 PM
v_vbeln = selfield-value.
SET PARAMETER ID: 'RID' FIELD v_vbeln.
CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
2008 Apr 14 2:23 PM
hi,
use "AND SKIP FIRST SCREEN" addition with call transaction.
Regards,
Siddhesh S.Tawate
2008 Apr 14 2:25 PM
It's probably easier if you just call function EDITOR_PROGRAM.
Cheers
Thomas
2008 Apr 14 3:10 PM