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 call custom screen from User exit?

Former Member
0 Kudos

Hai,

I have to call a custom screen from user exit include after the delivery save.(USEREXIT_SAVE_DOCUMENT_PREPARE (include MV50AFZ1)

Depends on the data in the delivery,

if the data satisfies certain conditions I will call the screen otherwise no.

Could any one please tell me how to do this?where to create screen & how to link it here?

Regards,

Bhaskar.

6 REPLIES 6

Former Member
0 Kudos

Can any one please look into this?

Regards,

Bhaskar

Former Member
0 Kudos

Hi,

1. Go to se51 create a screen

2. In you user exist

3. <your condition.>

if sy-subrc = 0.

CALL SCREEN <scrno>.

If you want as small screen add below one

CALL SCREEN scr number STARTING AT x1 y1 ... ENDING AT

x2 y2 .

x1--starting at column

y1 --- start at row

x1--ending at column

y1 --- ending at row

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Apr 23, 2008 9:58 AM

0 Kudos

Hai Jagadish,

Thank you for your response.

But here I created screen for one custom module pool.

So in this case how can I call the screen from the user exit?

My doubt is how the user exit will identify the screen of a module pool.

My main doubt while creating a screen in SE51,

what is program name I have to enter?How this program name is identified in the userexit?

Could you please elaborate?

Thanks in Advance.

Regards,

Bhaskar.

0 Kudos

Hello!

In last case, try to use the SUBMIT command.

In case you prefer calling a transaction, use CALL TRANSACTION.

Regards.

Former Member
0 Kudos

Hi,

In tcode se51 create a screen

In user exist

check your conditions ....

IF yes

CALL SCREEN scr number.

If you want as small screen add below one

CALL SCREEN scr number STARTING AT x1 y1 ... ENDING AT

x2 y2 .

x1--starting at column

y1 --- start at row

x1--ending at column

y1 --- ending at row

<REMOVED BY MODERATOR>

ENDIF.

Edited by: Alvaro Tejada Galindo on Apr 23, 2008 10:03 AM

0 Kudos

Hai Murali,

Thank you for your response.

But here I created screen for one custom module pool.

So in this case how can I call the screen from the user exit?

My doubt is how the user exit will identify the screen of a module pool.

My main doubt while creating a screen in SE51,

what is program name I have to enter?How this program name is identified in the userexit?

Could you please elaborate?

Thanks in Advance.

Regards,

Bhaskar.

Edited by: Bhaskar M on Apr 23, 2008 4:00 PM