Document Flow

To include customs declarations and customs documents in the document flow of the supported transactions, we provide the function group /AEB/AES_PB_DOCUMENT_FLOW

Function module /AEB/AES_PB_ADD_SUBSEQUENT_DOC

This function module extends the document flow overview of the SAP standard by the customs declarations and documents generated with the Customs Management Plug-in for SAP®.

CALL FUNCTION '/AEB/AES_PB_ADD_SUBSEQUENT_DOC'
    EXPORTING
      im_beleg    = f_beleg
      im_vbtyp    = f_vbtyp
    CHANGING
      ch_vbfa_tab = f_vbfa_tab.

Function module /AEB/AES_PB_SET_STATUS

This function module determines the status of the customs declarations and their documents that are displayed in the SAP® standard document flow.

CALL FUNCTION '/AEB/AES_PB_SET_STATUS'
    EXPORTING
      im_vbfa       = f_vbfa
    CHANGING
      ch_tvbst      = f_tvbst
      ch_status_set = f_status_set.

Function module /AEB/AES_PB_DISPLAY_DOCUMENT

You can use this function module to edit customs declarations and documents from the document flow. The status of the document displayed is set to Printed. This function module only functions in context or interaction with function module /AEB/AES_PB_ADD_SUBSEQUENT_DOC and therefore within the document flow.

CALL FUNCTION '/AEB/AES_PB_DISPLAY_DOCUMENT'
    EXPORTING
      im_beleg = f_beleg.