2013 Apr 17 6:32 AM
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.
2013 Apr 17 8:13 AM
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
2013 Apr 17 8:13 AM
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
2013 Apr 17 8:44 AM
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 .
2013 Apr 17 9:07 AM
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
2013 Apr 17 9:12 AM
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
2013 Apr 18 8:06 AM
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.
2013 Apr 18 8:07 AM
2013 Apr 18 8:50 AM
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
2013 Apr 18 11:03 AM
@ Swarna : Even if we give an hard coded message simple message Command an dump is thrown.
2013 Apr 18 11:20 AM
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
2013 Apr 18 11:23 AM
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
2013 Apr 18 4:10 PM
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 ?