on 02-05-2009 8:14 AM
Hi,
for po items i need to set BBP_PDS_PO_ITEM_D-DEL_IND = 'X'.
i´ve tried thus:
1.- BBP_PD_PO_GETDETAIL in order to get all the data
2.- Then i do:
CLEAR i_item_u.
REFRESH i_item_u.
LOOP AT i_item.
MOVE-CORRESPONDING i_item TO i_item_u.
READ TABLE i_pedidos_item WITH KEY znum_po = i_pedidos_header-znum_po
zlinpo = i_item-number_int.
IF sy-subrc = 0.
IF i_pedidos_item-zstat_situaqn = c_er.
* Those who have status c_err are flagged for deletion
i_item_u-del_ind = 'X'.
ENDIF.
ENDIF.
APPEND i_item_u.
ENDLOOP.
3.- BBP_PD_PO_UPDATE receiving the above i_item_u
4.- Next i do:
CALL FUNCTION 'BBP_PD_PO_SAVE'
EXPORTING
iv_header_guid = w_header_u-guid
iv_create_hist_version = 'X'.
COMMIT WORK.
After calling fm BBP_PD_PO_UPDATE i get the following messages:
A |BBP_PD|002 |Interface data contains errors
A |BBP_PD|398 |Program error: Call with GUID of change version is required
Any idea of why this is happening?
How can i do this?
Best regards.
Edited by: Pablo Casamayor on Feb 5, 2009 9:33 AM
Hi,
finally i´ve soved the question having a look at this wiki contribution:
https://www.sdn.sap.com/irj/scn/wiki?path=/display/srm/codeSample1-UpdatePartnerdetailsinaPurchaseOrder&
Best regards
Edited by: Pablo Casamayor on Feb 5, 2009 12:07 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.