CS_DI_ITEM_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_ITEM_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_ITEM_CHECK' "
EXPORTING
ecsin = " csin
erc29p = " rc29p
* ecistpo = " csci_stpo
* efldelete = SPACE " stpo_api02-fldelete Deletion Indicator
* eguid = SPACE " stpo-guidx Global Identification of an Item's Change Status
* flg_foreign_key = SPACE " csdata-xfeld Check external key
* flg_api = SPACE " csdata-xfeld
* flg_ale = SPACE " csdata-xfeld
* flg_cad = SPACE " csdata-xfeld
* flg_item_cat_change = SPACE " csdata-xfeld
* flg_default_values = 'X' " csdata-xfeld Default Values for New Items
* flg_new_romen = 'X' " csdata-xfeld
* flg_recursive = SPACE " csdata-xfeld
* flg_identify_by_guid = SPACE " csdata-xfeld
IMPORTING
flg_warning = " csdata-xfeld
* TABLES
* t_stpub = " stpub BOMs - sub-item documents
EXCEPTIONS
ERROR = 1 " Terminate if API log contains error messages
ALTERNATIVE_ITEM_ERROR = 2 " Error in alternative item data
BULK_MATERIAL_ERROR = 3 " Bulk material error
CLASSTYPE_ERROR = 4 " Incorrect class type (not class item)
COPRODUCT_ERROR = 5 " Co-product error
COST_ELEMENT_ERROR = 6 " G/L account not defined in company code
CURRENCY_ERROR = 7 " Currency key not defined
DIMENSION_ERROR = 8 "
DISTRIBUTION_KEY_ERROR = 9 "
DOCUMENT_NOT_FOUND = 10 " Document does not exist
DOCUMENT_TO_DELETE = 11 " Document is marked for deletion
DOCTYPE_ERROR = 12 " Document type not defined
EXPLOSION_TYPE_ERROR = 13 " Explosion type not defined
FOLLOW_UP_ERROR = 14 " Error in discontinuation data
FORMULA_ERROR = 15 "
ITEM_STATUS_ERROR = 16 " Item status error
ITEM_CATEGORY_ERROR = 17 " Item category error
ITEM_DATA_INCOMPLETE = 18 "
MATERIAL_NOT_FOUND = 19 " Material not found (in plant)
MATERIAL_TO_DELETE = 20 " Material marked for deletion (in plant)
MATGROUP_ERROR = 21 " Material group not found
MATPROVISION_INDICATOR_ERROR = 22 " Material provision indicator not defined
MATSTATUS_ERROR = 23 " Incorrect material status
MATTYPE_ERROR = 24 " Incorrect material type
OBJECT_LOCKED = 25 " Object locked/system locking error
PM_DATA_ERROR = 26 " Error in plant maintenance data
PRICE_DATA_ERROR = 27 " Price data is incomplete
PURCHASING_GROUP_ERROR = 28 " Purchasing group not defined
PURCHASING_ORGANIZATION_ERROR = 29 " Purchasing organization not defined in plant
RECURSIVITY_FOUND = 30 " BOM is recursive
REFPOINT_ERROR = 31 "
REL_TO_COSTING_ERROR = 32 " Relevancy to costing not supported
REL_TO_SALES_DISTRIB_ERROR = 33 " Relevancy to sales and distribution not supported
RESULTING_ITEM_CATEGORY_ERROR = 34 " Error in resulting item category
SCRAP_ERROR = 35 " Scrap error
SPAREPART_INDICATOR_ERROR = 36 " Spare part indicator not defined
SPPROCTYPE_ERROR = 37 "
STORAGE_LOCATION_ERROR = 38 "
SUPPLYAREA_ERROR = 39 "
UNIT_ERROR = 40 "
UNIT_CONVERSION_ERROR = 41 " Error converting units of measure
VENDOR_ERROR = 42 " Vendor not defined
. " CS_DI_ITEM_CHECK
The ABAP code below is a full code listing to execute function module CS_DI_ITEM_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 , |
| it_t_stpub | TYPE STANDARD TABLE OF STPUB,"TABLES PARAM |
| wa_t_stpub | LIKE LINE OF it_t_stpub . |
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 , |
| it_t_stpub | TYPE STANDARD TABLE OF STPUB , |
| wa_t_stpub | LIKE LINE OF it_t_stpub, |
| ld_erc29p | TYPE RC29P , |
| ld_ecistpo | TYPE CSCI_STPO , |
| ld_efldelete | TYPE STPO_API02-FLDELETE , |
| ld_eguid | TYPE STPO-GUIDX , |
| ld_flg_foreign_key | TYPE CSDATA-XFELD , |
| ld_flg_api | TYPE CSDATA-XFELD , |
| ld_flg_ale | TYPE CSDATA-XFELD , |
| ld_flg_cad | TYPE CSDATA-XFELD , |
| ld_flg_item_cat_change | TYPE CSDATA-XFELD , |
| ld_flg_default_values | TYPE CSDATA-XFELD , |
| ld_flg_new_romen | TYPE CSDATA-XFELD , |
| ld_flg_recursive | TYPE CSDATA-XFELD , |
| ld_flg_identify_by_guid | 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_ITEM_CHECK or its description.