‎2007 Sep 24 1:03 PM
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.
‎2007 Sep 24 1:09 PM
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
‎2007 Sep 24 1:15 PM
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