Skip to Content
0
Jul 21, 2008 at 04:58 AM

Commit Work

236 Views

Hi experts,

I should do the error handling for commit work.

These are the statements used in my program.

Could you please suggest how to handle this for commit work

error handling or exeception. Put your valuable suggestions.

LOOP AT it_header INTO wa_header WHERE va_load EQ space.

MOVE-CORRESPONDING wa_header TO wa_header1.

wa_header1-va_load = co_on.

READ TABLE it_purord INTO wa_purord

WITH KEY object_id = wa_header-object_id.

CALL FUNCTION 'BBP_PD_PO_UPDATE'

EXPORTING

i_header = wa_header1

i_save = co_on

IMPORTING

es_header = wa_header.

*

  • Save the download status in the header

*

CALL FUNCTION 'BBP_PD_PO_SAVE'

EXPORTING

iv_header_guid = wa_purord-guid.

COMMIT WORK.

ENDLOOP.