Application Development 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: 

How to add buttons to a standart program

Former Member
0 Kudos

Hi experts,

It is easy to add a button in a call screen. But i want to add a button in a standart program which doesnt call a screen. For example an alv report. But i want the button near the exit, back buttons. not in the alv.

I searched standart program has the screen 1000 for it. I see this in the screen flow logic

PROCESS BEFORE OUTPUT.

MODULE %_INIT_PBO.

MODULE %_PBO_REPORT.

MODULE %_PF_STATUS.

MODULE %_S_WERKS.

MODULE %_S_MATNR.

MODULE %_S_BUDAT.

MODULE %_S_EBELN.

MODULE %_S_LIFNR.

MODULE %_END_OF_PBO.

PROCESS AFTER INPUT.

MODULE %_BACK AT EXIT-COMMAND.

MODULE %_INIT_PAI.

which ones i need to create to create my button. I know i need one pbo and one pai. But which module how can it be done ?

Thanks

3 REPLIES 3

Former Member
0 Kudos

Hi

You need to find screen exit at MODULE %_PF_STATUS.

Regards

Aditya

0 Kudos

what about input where do i have to check the ok_code

Former Member
0 Kudos

hi

PROCESS AFTER INPUT.

MODULE %_INIT_PAI.

Regards

Aditya