on 10-09-2014 12:40 PM
Hi All,
We have a requirement to fetch the Confirmation number/ item details for a Particular PO#/Item.
We have gone through several threads in SCN, where it was advised to use function module - BBP_PD_CONF_GETLIST by providing the PO number.
This lists all the confirmations for that PO header.
However we would like to find out the confirmation that a particular PO line item.
Is there a way in SRM to find this out? Please advise.
Thanks in advance! Regards, MS
Hi All,
Thanks for your helpful replies. In the standard function module, even though there was a reset buffer in the beginning, the internal table GT_FOUND was not getting refreshed. We have added an implicit enhancement for this, and now it works. Hope this solution can be of help to others as well.
Cheers, Ms
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
please use BBP_PD_PO_GETHISTORY with PO number and line item number. In the results you should see the confirmation.
Regards,
Robin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Robin,
Your reply was most helpful. However I have an issue with cache clearing with this function module.
I am running this FM in loop with several POs. I am clearing all the variables at the end of the loop.
LOOP AT...
MOVE <POnumber> TO ls_object_key-object_id.
MOVE <PO item no> TO ls_object_key-number_int.
CALL FUNCTION 'BBP_PD_PO_GETHISTORY'
EXPORTING
i_object_key = ls_object_key
TABLES
e_po_history = lt_po_history.
<operations performed with lt_po_history>
CLEAR: ls_object_key,
lt_po_history.
ENDLOOP.
For the second loop, I get data relevant to the first loop as well. I debugged the function module and found that GT_FOUND[] table picks up the data from the previous loop as well. Have you faced this issue before?
Please advise.
Thanks, MS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.