Dear Experts,<br />
<br />
I have found that the BADI 'LE_SHP_GOODSMOVEMENT' gets trigerred when PGI / PGR button in VL02N is pressed. Now i want to put a validation in this BADI.<br />
<br />
This is in regards to my earlier question of User Exit....<br />
<br />
Now, the scenario is as follows:<br />
<br />
1. This batch may not be there in the system. This is the first time this batch is being entered. The user will not know this. As of now SAP allows the entry to be posted even though there is no Manufacturing / Expiry date. As a result many batches are created in the system without the above, because of which if we want to remove the stock we cannot do so in the absence of this.<br />
<br />
2. Now to curb this, when the user presses the TAB 'POST GOODS RECEIPT' i want the system to go to TCODE MSC2N or SAP Stock table (whichever you suggest is best) and check whether there is any batch of the same with MFG / EXP Date. <br />
If yes then allow the transaction. If no give an error telling user to go to TCODE MSC2N and create an entry for that batch with Mfg / Exp Date.<br />
<br />
now how and from where can i set the validation error for this in 'LE_SHP_GOODSMOVEMENT'. <br />
<br />
I know you all will be busy.... but if a detailed or step by step explanation can be given then it will be highly helpful...... i do not know anything about exits / validations to standard SAP applications. I do not want to trigger some problem scenario in the tcode due to wrong coding... that is the only thing....<br />
Please help me out...
Regards,
Jitesh M Nair