on 02-24-2014 8:52 PM
Hi There,
My requirement is to update a custom table when I save a document (ex:Shopping Cart/RFx/PO). I am planning to use the BADI BBP_DOC_SAVE_BADI to insert/update data in a custom table. I have to insert/update the data only based on a certain condition, for example when the document status is changed (Approved/Released/Published).
In the BADI method BBP_DOC_SAVE, I am planning to use Business Object specific GETDETAIL function module to read the current document data. I am assuming that E_STATUS gives me all the statuses the document went through (active and inactive). My question is 'How do I know what is the latest document status'?
Any help or hint is appreciated.
Thanks,
Chan
Hi Chanukya,
Try using this function module.
/SAPSRM/SRM_DOC_STATUS_GET.
Pass Object Type, GUID, and IT_STATUS and it returns you the most important status of the document.
Regards,
Karthik Babu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.