cancel
Showing results for 
Search instead for 
Did you mean: 

CX_BBP_PD_ABORT

former_member182371
Active Contributor
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member182371
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi,

Have a look at the following link:

Thanks,

Pradeep