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

Trigger PAI without PBO

Former Member
0 Likes
2,052

Hi All,

I tried searching SCN for this issue but couldn't get any answer except the below one.

Automatic trigger of PAI/PBO | SCN

My requirement is to not do display screens repeatedly in LOOP  but to display it only once.

However I want  the functionality after pressing enter in PAI to be executed for all the records inside the loop.

I was planning to add condition in PBO which will check if screen is alreday displayed or not. IF yes, do not show again.

But my issue is if I am not executing PBO then I assume that screen will not be shown to user but if that's the case then how to trigger PAI logic for

which PBO was not triggered.

Is there any way to achieve it.

Please advice.

Thanks and Regards,

Jitendra

Hi All,

I tried searching SCN for this issue but couldn't get any answer except the below one.

Automatic trigger of PAI/PBO | SCN

My requirement is to not do display screens repeatedly in LOOP  but to display it only once.

However I want  the functionality after pressing enter in PAI to be executed for all the records inside the loop.

I was planning to add condition in PBO which will check if screen is alreday displayed or not. IF yes, do not show again.

But my issue is if I am not executing PBO then I assume that screen will not be shown to user but if that's the case then how to trigger PAI logic for

which PBO was not triggered.

Is there any way to achieve it.

Please advice.

Thanks and Regards,

Jitendra

9 REPLIES 9
Read only

Former Member
0 Likes
1,712

Guys.. Can anybody please let me know how to achieve this....

Read only

0 Likes
1,712

Hi jitendara,

Try   writing  the logic    in LOAD-OF-PROGRAM  event.

Hope  it helpful,

Regards,

Ramesh

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,712

Based on what you describe about the "display screens repeatedly in loop", I think you misundesrtand something but I don't know what. Could you explain more precisely what you're trying to achieve?

Read only

0 Likes
1,712

Hi Sandra,

I am using EWM transaction for Inbound putaway process, where destination bin assignment screen is appearing repeatedly.

Eg: I have 10 Handling Units

So after pressing enter destination bin assignment screen for next HU appears.


So for assigning destination bin to 10 HUs,  screen is coming 10 times.


What I want is screen for destination bin assignment should come only once and whatever desination bin I scan for first HU should be used for all HU internally. ( no screen display)


What I assume is Destination bin assignment screen is called in loop in PPF.

So I want to skip PBO logic to aviod screen display  but I want to keep PAI logic to have functionality which executes on pressing enter of destination bin assignment screen.

Is it possible... Please confirm.

Read only

0 Likes
1,712

Thanks. I don't know that screen so I can just only guess. Technically speaking, you may skip the display by executing SUPPRESS DIALOG during the PBO (I hope there's a user exit to do it). The PAI will still be executed, and the ok code will be the same as if the user pressed Enter on the screen.

Read only

0 Likes
1,712

HI Sandra,

I tried with  'SUPPRESS DIALOG' statement but still code executed the PBO and displayed the screen.

I have just written 'SUPPRESS DIALOG.' statement in exit.

Am I missing something here...

Read only

0 Likes
1,712

I said "executing SUPPRESS DIALOG during the PBO", not in the Exit. The PBO needs to be executed, so that you can execute SUPPRESS DIALOG. SUPPRESS DIALOG does not exit the PBO, it just skips the screen display. I think the only way to exit the PBO itself is to use LEAVE SCREEN but the PAI will then not be executed. SUPPRESS DIALOG must be in the PBO of either a general (full screen) or modal dynpro, i.e. it has no effect if it's in the PBO of a subscreen.

As your issue depends on the logic of the EWM transaction, maybe you could get more people by writing a new post with title "EWM how to avoid destination bin assignment screen repeatedly displayed" or something like that.

Read only

0 Likes
1,712

Hi Sandra,

I have done enhancement in PBO section of the screen that needs to be skipped . Screen is of type 'SUBSCREEN' and that's why it is not having any effect.   Is there any way to achieve above requirement for sunscreens?

Read only

0 Likes
1,712

No, it's impossible. Anyway, if you want the popup to not be displayed, you must execute SUPPRESS DIALOG in the PBO of the popup, not in one of its subscreens.