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

Report Query

Former Member
0 Likes
361

I need to develop a Ztcode(Report transaction). When user run this ZTcode, a screen with with four pushbuttons with description will appear. Here one pushbutton is for one report. The user has to select all these pushbuttons one after another as they appear in screen. When user push one button the contol leads to respective selection screen. Suppose The user directly push second pushbutton without push first pushbutton (ie without executing first report), an error merssage should be raised. can anybody suggest what is logic to implement above requirement.

Regards,

Zakir.

2 REPLIES 2
Read only

Former Member
0 Likes
345

Hi

Use the SSCRFIELDS to declare push buttons and with the help of SY-UCOMM field handle the function codes of the buttons to trigger that Tcode

Regards

Anji

Read only

Former Member
0 Likes
345

Hi Zakir,

You can first create a program in which u create a screen

with four pushbuttons and also assign the ZTcode to this program.

When the user executes this Ztcode will lead to the screen that u created with

the four pushbottons.

Inside the module pool under the user_command module write the required code as

below:


CASE sy-ucomm.

When 'PUSH1'.
*go to the REPORT1
falg1 = 1.

When 'PUSH2'
if flag1 = 1.
*go to REPORT2
flag2 = 1.
else.
*error message.
endif.

When 'PUSH3'
.....

ENDCASE.

Hope this was helpful...

Happy coding...

Regards,

SJ