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

push button in output

Former Member
0 Likes
535

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
511

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.

3 REPLIES 3
Read only

Former Member
0 Likes
511

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

Read only

Former Member
0 Likes
512

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.

Read only

Former Member
0 Likes
511

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.