cancel
Showing results for 
Search instead for 
Did you mean: 

i need FM to delete handling unit

0 Kudos

i used BAPI_HU_DELETE
V51F_DELETE_HU
V51S_HU_UPDATE_DB
BAPI_HU_CHANGE_HEADER
BAPI_HU_DELETE_FROM_DEL
But I did not find a solution

Jeansy
Active Contributor
0 Kudos

Hi,

BAPI_HU_DELETE should work. Did you call also the function module BAPI_TRANSACTION_COMMIT afterwards?

Kind regards
Jens

Accepted Solutions (0)

Answers (1)

Answers (1)

venkateswaran_k
Active Contributor
0 Kudos

Hi

The following code should work. Make sure you do commit after deleting. If still error kindly post the return parameter of the fm.

CALL FUNCTION 'BAPI_HU_DELETE'
  EXPORTING
    hukey =                      wa_hukey
  TABLES
    return =                     it_return.  "  BAPI_HU_DELETE


IF SY-SUBRC EQ 0.
  do commit.  <====== important
ENDIF.

Regards,

Venkat