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: 

Displaying a Popup in PGI(Post Goods Issue)

Former Member
0 Kudos

Hello Everyone,

                  After pressing the Post Goods Issue button in T.Code : VL02n , the coding is that an email will be triggered to the mentioned email address.It's working fine,but the next requirement is that once there is no email ID it should display an Popup that no email id exists. I tried calling the Function Module Popup to Confirm ,while in debugger it goes to the point of our FM but the popup is not displayed and also the delivery is terminated. Also i tried giving the message directly but that is also not working.

Is there any User exits where i can Code so that the Popup  is displayed after pressing the PGI button.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Please try the BADI LE_SHP_DELIVERY_PROC. Restrict your pop-up logic only when the PGI is done. This can be done using the field WBSTK in the internal tables IT_XVBUK and IT_YVBUK. WBSTK will be set to C when PGI button is clicked on the delivery screen.

Cheers

~Niranjan

11 REPLIES 11

Former Member
0 Kudos

Hi,

Please try the BADI LE_SHP_DELIVERY_PROC. Restrict your pop-up logic only when the PGI is done. This can be done using the field WBSTK in the internal tables IT_XVBUK and IT_YVBUK. WBSTK will be set to C when PGI button is clicked on the delivery screen.

Cheers

~Niranjan

0 Kudos

Hi Niranjan,

              Thanks for your valuable efforts. Our problem is that the Output type( NAST Table) is not getting generated at that time the mentioned BADI is called .

0 Kudos

Hi,

You can schedule the standard report RSNAST00 in background job for that outptut type and set the frequency as per your business need.

Cheers

~Niranjan

0 Kudos

Hi,

I am not sure, but try finding any implicit enhancement after the NASt table is getting filled up in standard program. Try to pop-up a message in that enhancement.

Regards,

Swarna

0 Kudos

I implemented your idea my problem is that whenever the debugger reaches there it throws an DUMP !

After executing that message command or Popup function an dump is thrown ! I have tired things but still i don't know the reason why after reaching our Command an dump is thrown.

0 Kudos

This message was moderated.

0 Kudos

II think if you didnt handle function codes of buttons on Pop-up screen, you will get dump i think.

Please share your code wrt pop-up message.

Regards,

Swarna

0 Kudos

@ Swarna : Even if we give an hard coded message simple message Command an dump is thrown.

0 Kudos

Hi

Depends of method used, please read the documentation for this BADI. Usually you can use COMMIT, error messages, or FM if you are not sure this FM could trigger error messages, COMMIT and so on. The recommendation is populate messages is structures as CT_LOG.

In the other hand, if you are using method SAVE_DOCUMENT_PREPARE, instead to use the popup, populate the message in the parameter CT_LOG, and before the PGI or before to make the output message (or in method DELIVERY_FINAL_CHECK for parameter CT_FINCHDEL)

I hope this helps you

Regards

Eduardo

0 Kudos

Ok.

1. Please keep a break point just before the pop-up FM and see if it is triggering

2. Also share the code that you have done for calling pop-up.

Regards,

Swarna

0 Kudos

Hi Eduardo,

              Thanks for your Valuable Effort.Here i'm not using any BADI at all. After pressing the Post Goods Issue button in T.Code : VL02n , the coding(Our Z Program) is that an email will be triggered to the mentioned email address.It's working fine,but the next requirement is that once there is no email ID it should display an Popup that no email id exists.

Eg ; To be simple the coding is like this( We tried this coding to make things Simpler)

If Email_id is initial.

   Message 'Email ID is Blank' type 'W'.

Endif.

Our debugger is reaching at the message Statement  but after that an Dump is thrown and even the delivery is terminated. Is this something to do with the screen Sequence ? or what should be done ?