SAP CSUE_HEADER_EXPORT Function Module for Export header data of current BOM
CSUE_HEADER_EXPORT is a standard csue header export SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Export header data of current BOM processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for csue header export FM, simply by entering the name CSUE_HEADER_EXPORT into the relevant SAP transaction such as SE37 or SE38.
Function Group: CSUE
Program Name: SAPLCSUE
Main Program:
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CSUE_HEADER_EXPORT pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'CSUE_HEADER_EXPORT'"Export header data of current BOM.
IMPORTING
ASTZUB = "Permanent BOM data
TABLES
* STKOBTAB = "BOM Header Document Table
* MASTBTAB = "Document table for MAST records
* EQSTBTAB = "Document Table for EQST Records
* KDSTBTAB = "Buffer Table for KDST Records
* STSTBTAB = "Buffer Table for STST Records
* DOSTBTAB = "Document Table for DOST Records
* PRSTBTAB = "Buffer table for PRST records
* TPSTBTAB = "Buffer Table for TPST Records
EXPORTING Parameters details for CSUE_HEADER_EXPORT
ASTZUB - Permanent BOM data
Data type: STZUBOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CSUE_HEADER_EXPORT
STKOBTAB - BOM Header Document Table
Data type: STKOBOptional: Yes
Call by Reference: No ( called with pass by value option)
MASTBTAB - Document table for MAST records
Data type: MASTBOptional: Yes
Call by Reference: No ( called with pass by value option)
EQSTBTAB - Document Table for EQST Records
Data type: EQSTBOptional: Yes
Call by Reference: No ( called with pass by value option)
KDSTBTAB - Buffer Table for KDST Records
Data type: KDSTBOptional: Yes
Call by Reference: No ( called with pass by value option)
STSTBTAB - Buffer Table for STST Records
Data type: STSTBOptional: Yes
Call by Reference: No ( called with pass by value option)
DOSTBTAB - Document Table for DOST Records
Data type: DOSTBOptional: Yes
Call by Reference: No ( called with pass by value option)
PRSTBTAB - Buffer table for PRST records
Data type: PRSTBOptional: Yes
Call by Reference: No ( called with pass by value option)
TPSTBTAB - Buffer Table for TPST Records
Data type: TPSTBOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CSUE_HEADER_EXPORT Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_astzub | TYPE STZUB, " | |||
| lt_stkobtab | TYPE STANDARD TABLE OF STKOB, " | |||
| lt_mastbtab | TYPE STANDARD TABLE OF MASTB, " | |||
| lt_eqstbtab | TYPE STANDARD TABLE OF EQSTB, " | |||
| lt_kdstbtab | TYPE STANDARD TABLE OF KDSTB, " | |||
| lt_ststbtab | TYPE STANDARD TABLE OF STSTB, " | |||
| lt_dostbtab | TYPE STANDARD TABLE OF DOSTB, " | |||
| lt_prstbtab | TYPE STANDARD TABLE OF PRSTB, " | |||
| lt_tpstbtab | TYPE STANDARD TABLE OF TPSTB. " |
|   CALL FUNCTION 'CSUE_HEADER_EXPORT' "Export header data of current BOM |
| IMPORTING | ||
| ASTZUB | = lv_astzub | |
| TABLES | ||
| STKOBTAB | = lt_stkobtab | |
| MASTBTAB | = lt_mastbtab | |
| EQSTBTAB | = lt_eqstbtab | |
| KDSTBTAB | = lt_kdstbtab | |
| STSTBTAB | = lt_ststbtab | |
| DOSTBTAB | = lt_dostbtab | |
| PRSTBTAB | = lt_prstbtab | |
| TPSTBTAB | = lt_tpstbtab | |
| . " CSUE_HEADER_EXPORT | ||
ABAP code using 7.40 inline data declarations to call FM CSUE_HEADER_EXPORT
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.Search for further information about these or an SAP related objects