Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV Drilldown report

jogeswararao_kavala
Active Contributor
0 Likes
692

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
556

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

2 REPLIES 2
Read only

Former Member
0 Likes
557

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

Read only

0 Likes
556

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