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: 

Button

Former Member
0 Kudos

I have this button at the screen painter. Upon clicking on the button, it will go to another screen or program.

Any code example for it?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

in screen painter double click on that button and assign a Fcode (say PUSH)with it.............

in flow logic of that screen

in PAI

case sy-ucomm.

when 'PUSH'.

module call_screen.

endcase.

double click on call_screen module and create it.

MODULE call_screen

call screen <screen no>.

endmodule.

cheers,

Will.

4 REPLIES 4

Former Member
0 Kudos

Hi,

in screen painter double click on that button and assign a Fcode (say PUSH)with it.............

in flow logic of that screen

in PAI

case sy-ucomm.

when 'PUSH'.

module call_screen.

endcase.

double click on call_screen module and create it.

MODULE call_screen

call screen <screen no>.

endmodule.

cheers,

Will.

Former Member
0 Kudos

Hi,

This is ABAP program flow.....

Create screen in Module pool program( tcode SE51) and add required buttons to that

PROGRAM DEMO_DYNPRO_PUSH_BUTTON.

DATA: OK_CODE LIKE 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 'NEXT_SCR'.

CALL SCREEN 200.----you have create this

screen

WHEN 'PROG_BUT'.

SUBMIT PROGRAM 'Your Program name'

ENDCASE.

ENDMODULE.

This in screen flow logic is as follows:

PROCESS BEFORE OUTPUT.

PROCESS AFTER INPUT.

MODULE USER_COMMAND_0100.

Don't forget to reward if useful..

Former Member
0 Kudos

hi,

In the PBO of your program set the pf status SET PF-STATUS 'STATUS100'.

double click on the STATUS100 ,another window will be opened for maintaining status of the program.

there you will have 3 options:

1.Menu bar

2.Application tool Bar

3.Function keys.

1.Menu bar is the one where u find file,edit etc .In the menu bar u can define ur desired menu.system and help are default in the menu bar.you can add any number of menu and sub menus to it.

2.In the application tool bar,u can create any buttons for exit or back.just define the button and write the functionality of the button in the PAI of your program.

3.The function keys are presnet for every output window(in disable mode),if you define the functionality,those keys will be activated.u have to write code for that in the PAI of your program.

refer the first example in tthe ABAPHELPDOC . That programme is same as you are asking

I think you knwo the path

Go to SE38 then select the following path

Environment-> Examples-> ABAPexamples

See:

http://www.erpgenie.com/abap/ireports.htm

http://abapprogramming.blogspot.com/2007/11/abap-multiple-interactive-report-sample_12.html

Reward Points if found helpfull..

Cheers,

Chandra Sekhar.

Former Member
0 Kudos

Hi Sir ,

Please have a look below .Hope it is suitable and simpler solution for your question.

Please do reward if useful.

Thankx.

Create pushbutton in screenpainter.

okcode = sy-ucomm.

case sy-ucomm.

when 'PUSH'.

module call_screen.

endcase.

double click on call_screen module and create it.

MODULE call_screen.

call screen 100. (Give any screen no.

endmodule.