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

screen creation

Former Member
0 Likes
1,783

hi experts,

Can any one give me the steps to create screen with one practical ex?

Thanks in advance

reg

R.Vijayakumar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,741

Hi vijaya kumar...

tcode for screen painter where u can create screens is se51.

the following link depicts step by step for creating screen

http://sap.mis.cmich.edu/sap-abap/abap09/sld010.htm

tcode for menu painter where u can create menus for your programs is se41.

following is the link explaining about menu painter ans its uses,limits

http://help.sap.com/saphelp_nw04/helpdata/en/83/7a18cbde6e11d195460000e82de14a/frameset.htm

the two links are self explanatory....

hope this helps,

all the best,

sampath

*mark helpful answers and close the threads

16 REPLIES 16
Read only

Former Member
0 Likes
1,741

just give statement.

call screen <screen no>.

and double click screen no.

screen gets created.

regds,

kiran

Read only

0 Likes
1,741

hi

how to combine code with this screen

reg

r.vijai

Read only

0 Likes
1,741

Go to SE80

right clik on the program name and see the CREATE opitons.

Regards

Gopi

Read only

0 Likes
1,741

Hi Vijaya,

In flow logic of the screen, you can write the code like.

PROCESS AFTER INPUT.

MODULE EXIT_0200 AT EXIT-COMMAND.

  • (...<Field checks here>...)

MODULE USER_COMMAND_0200.

ABAP/4 Code

The PAI modules for screen 200 follow. Transaction TZ40 offers all the return functions

(Back , Exit and Cancel) as exit-commands. In Screen 200, however, only the Cancel

function allows immediate exit from the screen. To effect a cancel, standard exit logic is

used to tell the system to go back to screen 100:

Regards,

Sunil

Read only

Former Member
0 Likes
1,741

Hi Vijaya,

Go to SE71 this is screen painter.. You can create screen here

in your program you can call this screen like

1. CALL SCREEN <screen-number>

OR

2. SET SCREEN <screen-number>

LEAVE TO SCREEN.

Regards,

Sunil

Read only

0 Likes
1,741

hi sunil,

how to add code with screen . kindly give one ex.

reg

r.vijai

Read only

0 Likes
1,741

Hi Vijay,

Once in the screen painter, please go to the PAI module and double click it. It will ask you to create a new object. Click yes and it will take you to the program where you can say capture the user command (ok_code) for a push button click, for example. Then with that ok_code value, write a case statement which verifies the ok_code value and sends a message for example. This is how you write code in the screen , which is actually not written in the screen, but double clicking will take yuo to the program where you actually write the code for the screen.

hope this clears your doubt.

Award points if helpful.

Read only

Former Member
0 Likes
1,741
Read only

Former Member
0 Likes
1,741

Hi,

After you have created a screen with the call screen statement, in the screen painter, there would be 2 modules that appear automatically, named PBO and PAI modules. PBO is for Process before Output. Here, you can write code with respect to any data initialisation and logic that has to be executed before the screen is displayed.

Next, in PAI, which is process after input, write the code to caputre any user activity and the logic that should be executed with the user's command. To pass data to and fro the screen and the program, please use the same variable names in the screen and the program, so that we need not pass data manually. If the names are same, then the data is passed on automatically. If not we have to write code to copy from the screen variable to the program variable.

Hope this clears your query.

Please award points if helpful.

Read only

0 Likes
1,741

Thanks,

Then how to test the screen.

reg

r.vijai

Read only

0 Likes
1,741

Hi Vijaya,

Hope u r new to this screen creation

If u give me the mail id , i can send the doucments

which will give clear pictur of module pool programing.

Regards,

Sunil

Read only

0 Likes
1,741

hi,

you cannot test the screen directly. First, activate the screen and execute the program that is associated with the screen. Then you would be able to get the screen display and perform some action in the screen for which you have written code. Then you would be able to see if the data is being passed correctly or not.

Hope this clears your doubt.

Please award points if helpful.

Read only

0 Likes
1,741

hi sunil,

Thanks for your response. My mail id is mysvijai1977@aim.com.

reg

R.vijai

Read only

Former Member
0 Likes
1,742

Hi vijaya kumar...

tcode for screen painter where u can create screens is se51.

the following link depicts step by step for creating screen

http://sap.mis.cmich.edu/sap-abap/abap09/sld010.htm

tcode for menu painter where u can create menus for your programs is se41.

following is the link explaining about menu painter ans its uses,limits

http://help.sap.com/saphelp_nw04/helpdata/en/83/7a18cbde6e11d195460000e82de14a/frameset.htm

the two links are self explanatory....

hope this helps,

all the best,

sampath

*mark helpful answers and close the threads

Read only

0 Likes
1,741

hi sampath,

Wonderful link. Thanks for you kindness. Can you give your email-id!

reg

r.vijai

Read only

Former Member
0 Likes
1,741

hi vijaya ,

hope that helped..my id is sampathkumarpilla@gmail.com

any prob jus reach out i will try my max..however we have the experts on this

forum..who can break huge nuts into peanuts..

all the best,

sampath