CS_DI_HEADER_OBJECT_CHECK is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name CS_DI_HEADER_OBJECT_CHECK into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
CSDI
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'CS_DI_HEADER_OBJECT_CHECK' "
EXPORTING
ecsin = " csin
* efldelete = SPACE " stpo_api02-fldelete
* flg_foreign_key = SPACE " csdata-xfeld Check external key
* flg_ale = SPACE " csdata-xfeld
* flg_api = SPACE " csdata-xfeld API call
* flg_cad = SPACE " csdata-xfeld
* flg_no_cad_rules = SPACE " csdata-xfeld
* flg_no_standard_val = SPACE " csdata-xfeld Not SAP Standard Validity
* flg_item_single_read = SPACE " csdata-xfeld Read items individually
* flg_no_change_doc = SPACE " csdata-xfeld Do not write change documents
* flg_no_object_check = SPACE " csdata-xfeld
* flg_no_alt_create = SPACE " csdata-xfeld
* flg_max_valid_to = SPACE " csdata-xfeld
IMPORTING
flg_warning = " csdata-xfeld
flg_hiskz = " csdata-xfeld
flg_kbaus = " stzu-kbaus Indicator: configurable BOM
atrtyp = " tcs05-trtyp
astlnr = " stzu-stlnr Bill of Material
astlal = " stko-stlal Alternative BOM
aposnr = " stpo-posnr Number of BOM Item
aaennr = " stpo-aennr Change Number
adatuv = " stpo-datuv Valid-From Date
adatub = " stpo-datuv Valid-From Date
EXCEPTIONS
ERROR = 1 " Terminate if API log contains error messages
ALT_ALREADY_EXIST = 2 " Alternative Already Exists
AUTHORIZATION_MISSING = 3 " No authorization
BOM_ALREADY_EXIST = 4 " Object list already exists
BOM_NOT_EXIST = 5 " Inconsistent BOM files
BOM_NOT_VALID = 6 " (Alternative) BOM not valid
BOMUSAGE_ERROR = 7 " BOM usage not defined
CHANGE_NUMBER_ERROR = 8 "
DOCUMENT_NOT_FOUND = 9 " Document does not exist
DOCUMENT_TO_DELETE = 10 " Document is marked for deletion
DOCTYPE_ERROR = 11 " Document type not defined
EQUI_NOT_FOUND = 12 "
EQUI_TO_DELETE = 13 "
FUNC_LOC_NOT_FOUND = 14 "
FUNC_LOC_TO_DELETE = 15 "
HISTORY_REQUIREMENT = 16 " BOM has history requirement
KEY_INCOMPLETE = 17 " Data is incomplete
MATERIAL_NOT_FOUND = 18 " Material not found (in plant)
MATERIAL_TO_DELETE = 19 " Material marked for deletion (in plant)
MATSTATUS_ERROR = 20 " Incorrect material status
MATTYPE_ERROR = 21 " Incorrect material type
MOD_PARAMETERS_MISSING = 22 " Modification parameter not found
OBJECT_LOCKED = 23 " Object locked/system locking error
PLANT_ERROR = 24 " Plant not defined
REVISION_LEVEL_NOT_FOUND = 25 "
SALES_ORDER_NOT_FOUND = 26 "
STOCKABLE_TYPE_ERROR = 27 " BOM can only be changed via standard product
VALIDITY_ERROR = 28 " Missing entries for validity
. " CS_DI_HEADER_OBJECT_CHECK
The ABAP code below is a full code listing to execute function module CS_DI_HEADER_OBJECT_CHECK including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
| ld_flg_warning | TYPE CSDATA-XFELD , |
| ld_flg_hiskz | TYPE CSDATA-XFELD , |
| ld_flg_kbaus | TYPE STZU-KBAUS , |
| ld_atrtyp | TYPE TCS05-TRTYP , |
| ld_astlnr | TYPE STZU-STLNR , |
| ld_astlal | TYPE STKO-STLAL , |
| ld_aposnr | TYPE STPO-POSNR , |
| ld_aaennr | TYPE STPO-AENNR , |
| ld_adatuv | TYPE STPO-DATUV , |
| ld_adatub | TYPE STPO-DATUV . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_flg_warning | TYPE CSDATA-XFELD , |
| ld_ecsin | TYPE CSIN , |
| ld_flg_hiskz | TYPE CSDATA-XFELD , |
| ld_efldelete | TYPE STPO_API02-FLDELETE , |
| ld_flg_foreign_key | TYPE CSDATA-XFELD , |
| ld_flg_kbaus | TYPE STZU-KBAUS , |
| ld_flg_ale | TYPE CSDATA-XFELD , |
| ld_atrtyp | TYPE TCS05-TRTYP , |
| ld_flg_api | TYPE CSDATA-XFELD , |
| ld_astlnr | TYPE STZU-STLNR , |
| ld_astlal | TYPE STKO-STLAL , |
| ld_flg_cad | TYPE CSDATA-XFELD , |
| ld_flg_no_cad_rules | TYPE CSDATA-XFELD , |
| ld_aposnr | TYPE STPO-POSNR , |
| ld_flg_no_standard_val | TYPE CSDATA-XFELD , |
| ld_aaennr | TYPE STPO-AENNR , |
| ld_flg_item_single_read | TYPE CSDATA-XFELD , |
| ld_adatuv | TYPE STPO-DATUV , |
| ld_flg_no_change_doc | TYPE CSDATA-XFELD , |
| ld_adatub | TYPE STPO-DATUV , |
| ld_flg_no_object_check | TYPE CSDATA-XFELD , |
| ld_flg_no_alt_create | TYPE CSDATA-XFELD , |
| ld_flg_max_valid_to | TYPE CSDATA-XFELD . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name CS_DI_HEADER_OBJECT_CHECK or its description.