2009 Jan 01 3:15 PM
Hi I want to do three validations during PO Creation/Change
1) After entering each item Quantity,a custom validation should be done
2) When Save Button is pressed in PO, custom values should get updated in custom table.
3) During save a validation is required.
So can anyone let me know,how this can be dealt with like with which user-exits / badi.
Kind Regards
Sajid
2009 Jan 02 6:05 AM
Hello Sajid,
Your requirements can be achieved by the BADI ME_PURCHDOC_POSTED as this BADI is called after user presses the save button.
Now if you want to check quantity after the quantity is entered and before the save button is pressed then you can use BADI ME_PO_PRICING use method PROCESS_KOMP and parameter IM_EKPO.
Hope this is helpful to you.
Regards
Arindam
2009 Jan 01 5:01 PM
Hi,
Regarding the PO values to get updated into custom table and Validations when save button is clicked.
The BADI ME_PURCHDOC_POSTED can be used, as this BADI is gets triggered last when save button clicked.
It consists of Method POSTED , in that the structures IM_EKKO, IM_EKPO etc holds all the data while creating or changing of PO, so the data from that structures can be moved to custom tables.
Regards
Bala Krishna
2009 Jan 02 6:05 AM
Hello Sajid,
Your requirements can be achieved by the BADI ME_PURCHDOC_POSTED as this BADI is called after user presses the save button.
Now if you want to check quantity after the quantity is entered and before the save button is pressed then you can use BADI ME_PO_PRICING use method PROCESS_KOMP and parameter IM_EKPO.
Hope this is helpful to you.
Regards
Arindam
2009 Jan 02 7:19 AM
Dear Arindham
thanx for ur reply but still it did not help me out,
my requirement is before saving when user gives quantity for an item,a badi needs to get called up in which all the items internal table (not one item but all items) should be passed up.
Please reply soon as my deadline is today evening.
kind Regards Sajid
2009 Jan 02 7:01 AM
Hi!
Custom table updation code you can write in function module exit
EXIT_SAPLEINS_001
Userexit :LEINS001
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |