‎2007 May 28 7:07 PM
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
‎2007 May 28 7:58 PM
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
‎2007 May 28 7:58 PM
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
‎2007 May 28 8:11 PM
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,
‎2007 May 29 12:21 AM
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