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

Refresh Screen in dialog programming?

Former Member
0 Likes
3,537

Hi,

I just want to know how can i use the same screen for multiple purposes?

Say if i have few buttons which leads to any other screen but how can i use same screen for different purposes in dialog programming? How can i clear the screen so that if i can click on some other button on previous screen then this screen does the work for me. like we have clear screen in executable/report programming.

Thanks for writing back.

Regards,

Lucky

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,136

First whatever field you have defined on the screen should be defined in main program. Say you are clicking on the button (Function Code: BTN) from screen 100 and you have to clear the fields placed on the screen 200. In this case, go to PAI of screen 100 and in its COMMAND input you have to check for function code BTN--- there you have to write the logic to clear the fields that u want using simple command as you use in ABAP( like CLEAR fld1 etc).

You can call the same screen where ever you require using command-- call screen 200.

I hope it will help you to proceed.

3 REPLIES 3
Read only

Former Member
0 Likes
1,137

First whatever field you have defined on the screen should be defined in main program. Say you are clicking on the button (Function Code: BTN) from screen 100 and you have to clear the fields placed on the screen 200. In this case, go to PAI of screen 100 and in its COMMAND input you have to check for function code BTN--- there you have to write the logic to clear the fields that u want using simple command as you use in ABAP( like CLEAR fld1 etc).

You can call the same screen where ever you require using command-- call screen 200.

I hope it will help you to proceed.

Read only

Former Member
0 Likes
1,136

Hi,

You call call differnet sub screens from your main screen for example if you have a main screen 100

abd you have sub screens 150 and 200 for the same module pool so from the 100 screen you can call 150 screen then come back and call 200 screen. It is what most of the transaction have, from the main screen at user command you can call firrerent screen based on the button clicked.

Regards,

Himanshu Verma

Read only

0 Likes
1,136

Himanshu verma thanks for your response but i have done that stuff thats why i was looking for the solution of my question.

Sumesh, your answer sounds good to me and i guess it was the answer to my problem, will try and see whether it works or not.

Can you point me to a piece of code?

Thanks both of you for writing back.

Regards,

Lucky