‎2007 May 17 11:02 AM
HI friends,
1, can any one help me in finding push button in output after executing the report.
2,which system variable used for finding index when any data retrived with out where condition . If table is not having any primary index or key.
Regards,
Mahendra.
‎2007 May 17 11:20 AM
Hi,
check out this example code for push button
DATA: ok_code TYPE sy-ucomm,
save_ok LIKE ok_code,
output(8) TYPE c.
CALL SCREEN 100.
MODULE user_command_0100 INPUT.
save_ok = ok_code.
CLEAR ok_code.
CASE save_ok.
WHEN 'BUTTON_EXIT'.
LEAVE PROGRAM.
WHEN 'BUTTON_1'.
output = 'Button 1'(001).
WHEN 'BUTTON_2'.
output = 'Button 2'(002).
WHEN 'BUTTON_3'.
output = 'Button 3'(003).
WHEN 'BUTTON_4'.
output = 'Button 4'(004).
WHEN OTHERS.
output = save_ok.
ENDCASE.
ENDMODULE.
‎2007 May 17 11:09 AM
Hi mahendra
For radio button Create a screen in SE51 and call that screen in your report and declare that in PAI so that it will be displayed in ur output
for the second question i'm not getting what is ur requirement is so can u ask question clearly plz
regards
pavan
‎2007 May 17 11:20 AM
Hi,
check out this example code for push button
DATA: ok_code TYPE sy-ucomm,
save_ok LIKE ok_code,
output(8) TYPE c.
CALL SCREEN 100.
MODULE user_command_0100 INPUT.
save_ok = ok_code.
CLEAR ok_code.
CASE save_ok.
WHEN 'BUTTON_EXIT'.
LEAVE PROGRAM.
WHEN 'BUTTON_1'.
output = 'Button 1'(001).
WHEN 'BUTTON_2'.
output = 'Button 2'(002).
WHEN 'BUTTON_3'.
output = 'Button 3'(003).
WHEN 'BUTTON_4'.
output = 'Button 4'(004).
WHEN OTHERS.
output = save_ok.
ENDCASE.
ENDMODULE.
‎2007 May 17 11:28 AM
hi,
in your case just run your report and then goto<b> system</b> form system to <b>status</b> and <b>double clik on screen number</b> it will leads you to <b>SE80</b> select the <b>layout</b> of the screen and add a puch button on it.... this will clear your first problem.
for you second problem i think <b>SY-TABIX</b> will help you.
hope this information will solve your problem, and don't forget to reward points.