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

add a button

Former Member
0 Likes
579

hallow

i wont to add a button to program like

pa0001 that when u click on this buitton

it open a program of mine (program have transction).

how can i do that?

regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
547

Hi Antonio,

You can create a gui button.

<b>If you want the button on the selection screen:</b>

tables: SSCRFIELDS. (in the declaration part of your code)

Initialization.

Excecute Report

MOVE "Your Report Name" to SSCRFIELDS-FUNCTXT_01.

at selection-screen.

case sy-ucomm.

when 'FC01'.

submit YOUR_REPORT_NAME and return.

endcase.

<b>If you want the in the List screen:</b>

set pf-status 'gui_stat'.

(double click on gui_stat, this will take you to menu painter. Enter a function code for the button yoou want).

at user-command.

case sy-ucomm.

when 'FC'. (FC-> your function code.)

submit YOUR_REPORT_NAME and return.

endcase.

    • reward points for helpful answers

Regards,

George

3 REPLIES 3
Read only

Former Member
0 Likes
548

Hi Antonio,

You can create a gui button.

<b>If you want the button on the selection screen:</b>

tables: SSCRFIELDS. (in the declaration part of your code)

Initialization.

Excecute Report

MOVE "Your Report Name" to SSCRFIELDS-FUNCTXT_01.

at selection-screen.

case sy-ucomm.

when 'FC01'.

submit YOUR_REPORT_NAME and return.

endcase.

<b>If you want the in the List screen:</b>

set pf-status 'gui_stat'.

(double click on gui_stat, this will take you to menu painter. Enter a function code for the button yoou want).

at user-command.

case sy-ucomm.

when 'FC'. (FC-> your function code.)

submit YOUR_REPORT_NAME and return.

endcase.

    • reward points for helpful answers

Regards,

George

Read only

0 Likes
547

hi B

in infotype pa0001 i wont to add a the button

how i can go to the layout or gui and to that?

best regards,

Read only

0 Likes
547

Hi,

Can you please be more specific with the requirement, as where do you want to add button, means which transaction, PA30 or SE16 or?

Regards,

Atish