2012 May 26 11:03 AM
Dear Experts,
The drilldown code below in my Report program is working with standard Tcodes (Case1).
But the PID value not passing in the case of Z reports. (Case2).
Case1
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
IF rs_selfield-fieldname = 'EQUNR'.
SET PARAMETER ID 'EQN' FIELD rs_selfield-value.
CALL TRANSACTION 'IE02' AND SKIP FIRST SCREEN.
ENDIF.
ENDFORM.
Case2
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
IF rs_selfield-fieldname = 'EQUNR'.
SET PARAMETER ID 'EQN' FIELD rs_selfield-value.
CALL TRANSACTION 'ZPMEQM2' AND SKIP FIRST SCREEN.
ENDIF.
ENDFORM.
kindly help.
kind regards
Jogeswara Rao
2012 May 26 11:17 AM
Hi Jogeswara Rao,
Use SUBMIT <program name> with selection screen to call Ztcode.
http://www.sapdev.co.uk/reporting/rep_submit.htm
http://help.sap.com/saphelp_nw70/helpdata/EN/9f/dba51a35c111d1829f0000e829fbfe/content.htm
Regards,
Rajesh
Dear Experts,
The drilldown code below in my Report program is working with standard Tcodes (Case1).
But the PID value not passing in the case of Z reports. (Case2).
Case1
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
IF rs_selfield-fieldname = 'EQUNR'.
SET PARAMETER ID 'EQN' FIELD rs_selfield-value.
CALL TRANSACTION 'IE02' AND SKIP FIRST SCREEN.
ENDIF.
ENDFORM.
Case2
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
IF rs_selfield-fieldname = 'EQUNR'.
SET PARAMETER ID 'EQN' FIELD rs_selfield-value.
CALL TRANSACTION 'ZPMEQM2' AND SKIP FIRST SCREEN.
ENDIF.
ENDFORM.
kindly help.
kind regards
Jogeswara Rao
2012 May 26 11:17 AM
Hi Jogeswara Rao,
Use SUBMIT <program name> with selection screen to call Ztcode.
http://www.sapdev.co.uk/reporting/rep_submit.htm
http://help.sap.com/saphelp_nw70/helpdata/EN/9f/dba51a35c111d1829f0000e829fbfe/content.htm
Regards,
Rajesh
2012 May 26 11:28 AM
Hi Jogeshwara.. there can be some reasons...
do you have a fields which has a paramater ID declared on your First screen of Z tcode program? If yes, then only the program will work.
Secondly, call transaction will not call any transaction available in the system. If Tcode is attached with Module Pool program, then only Call transaction statement will work... otherwise, as mentioned by Rajesh, you need to use SUBMIT statement you program behind your Z tcode is a Executable Report program.. hope this clarifies