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 through customized error into log when PGI is performed in delivery

Former Member
0 Kudos

Hi Gurus,

When I click on Post Goods Issue(PGI) button in VL02n, If delivery contains any errors, It stops the PGI process and write the errors into log.

In my case I want to through custimized message into error log when PGi is performed.

Is there any FM that can be used to do so.

Can anybody help me regarding this.

Regards,

Ravi

3 REPLIES 3

Former Member
0 Kudos

Hi Ravi ,

try BADI LE_SHP_GOODSMOVEMENT-->and see its documentation.

regards

prabhu

0 Kudos

Here I am using the User exit, SAVE_DOCUMENT_PREPARE.

I want to throw an error message when PGI is performed in Background through any transactions like VL23.

After throwing the error message PGI needs to be stopped. I am able to throw the error message but not able to stop PGI.

Any suggesions, Please

Regards,

Ravi

Former Member
0 Kudos

Thanks guys, Automatically system will write to the log.

Sy-batch condition should be at the top always.

Regards,

ravi