Skip to Content
0
Feb 03, 2020 at 07:41 AM

Dump in document flow updation manually

323 Views

Hi,

I want to update a transfer order in the document flow for the outbound delivery. I wrote the below code but it is giving assertion failed dump. I debugged the code and it is checking vbfa-ruuid is not initial, here i am getting dump. i used the below code can you suggest me to the right direction.

I_DOCUMENT = '0080004060'.

ls_xvbfa-mandt = sy-mandt.

ls_xvbfa-vbelv = I_DOCUMENT. " "delievry

ls_xvbfa-posnv = '000010'.

ls_xvbfa-vbeln = '0000154166'. "transfer order

ls_xvbfa-posnn = '000001'.

ls_xvbfa-vbtyp_n = lc_w.

ls_xvbfa-vbtyp_v = lc_j.

ls_xvbfa-erdat = sy-datum.

ls_xvbfa-erzet = sy-uzeit.

ls_xvbfa-updkz = 'I'.

APPEND ls_xvbfa TO lt_xvbfa.

lv_type = 'H'.

CALL FUNCTION 'RV_DOCUMENT_FLOW_UPDATE_U'

EXPORTING

f_vbeln = i_document "delivery

i_status = lv_type

TABLES

fxvbfa = lt_xvbfa

fyvbfa = lt_yvbfa.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

Regards,

Ravi