SAP DPICB_DB_COMPANY_CODES_TO_ICSO Function Module for NOTRANSL: Bestimmen Buchungskreise zu IC-Auftrag
DPICB_DB_COMPANY_CODES_TO_ICSO is a standard dpicb db company codes to icso SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Bestimmen Buchungskreise zu IC-Auftrag 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 dpicb db company codes to icso FM, simply by entering the name DPICB_DB_COMPANY_CODES_TO_ICSO into the relevant SAP transaction such as SE37 or SE38.
Function Group: DPICB_DB
Program Name: SAPLDPICB_DB
Main Program: SAPLDPICB_DB
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function DPICB_DB_COMPANY_CODES_TO_ICSO 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 'DPICB_DB_COMPANY_CODES_TO_ICSO'"NOTRANSL: Bestimmen Buchungskreise zu IC-Auftrag.
EXPORTING
I_OBJNR_DEL = "Object Number
IMPORTING
E_BUKRS_DEL = "
E_BUKRS_ORD = "Requesting company code
E_ICSO_KOKRS = "
EXCEPTIONS
WRONG_OBJECT_TYPE = 1 ERROR_OCCURED = 2 WRONG_CUSTOMER_ASSIGNMENT = 3
IMPORTING Parameters details for DPICB_DB_COMPANY_CODES_TO_ICSO
I_OBJNR_DEL - Object Number
Data type: COVP-OBJNROptional: No
Call by Reference: Yes
EXPORTING Parameters details for DPICB_DB_COMPANY_CODES_TO_ICSO
E_BUKRS_DEL -
Data type: COVP-BUKRSOptional: No
Call by Reference: Yes
E_BUKRS_ORD - Requesting company code
Data type: COVP-BUKRSOptional: No
Call by Reference: Yes
E_ICSO_KOKRS -
Data type: VBAK-KOKRSOptional: No
Call by Reference: Yes
EXCEPTIONS details
WRONG_OBJECT_TYPE - Incorrect object type
Data type:Optional: No
Call by Reference: Yes
ERROR_OCCURED -
Data type:Optional: No
Call by Reference: Yes
WRONG_CUSTOMER_ASSIGNMENT -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for DPICB_DB_COMPANY_CODES_TO_ICSO 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_e_bukrs_del | TYPE COVP-BUKRS, " | |||
| lv_i_objnr_del | TYPE COVP-OBJNR, " | |||
| lv_wrong_object_type | TYPE COVP, " | |||
| lv_e_bukrs_ord | TYPE COVP-BUKRS, " | |||
| lv_error_occured | TYPE COVP, " | |||
| lv_e_icso_kokrs | TYPE VBAK-KOKRS, " | |||
| lv_wrong_customer_assignment | TYPE VBAK. " |
|   CALL FUNCTION 'DPICB_DB_COMPANY_CODES_TO_ICSO' "NOTRANSL: Bestimmen Buchungskreise zu IC-Auftrag |
| EXPORTING | ||
| I_OBJNR_DEL | = lv_i_objnr_del | |
| IMPORTING | ||
| E_BUKRS_DEL | = lv_e_bukrs_del | |
| E_BUKRS_ORD | = lv_e_bukrs_ord | |
| E_ICSO_KOKRS | = lv_e_icso_kokrs | |
| EXCEPTIONS | ||
| WRONG_OBJECT_TYPE = 1 | ||
| ERROR_OCCURED = 2 | ||
| WRONG_CUSTOMER_ASSIGNMENT = 3 | ||
| . " DPICB_DB_COMPANY_CODES_TO_ICSO | ||
ABAP code using 7.40 inline data declarations to call FM DPICB_DB_COMPANY_CODES_TO_ICSO
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.| "SELECT single BUKRS FROM COVP INTO @DATA(ld_e_bukrs_del). | ||||
| "SELECT single OBJNR FROM COVP INTO @DATA(ld_i_objnr_del). | ||||
| "SELECT single BUKRS FROM COVP INTO @DATA(ld_e_bukrs_ord). | ||||
| "SELECT single KOKRS FROM VBAK INTO @DATA(ld_e_icso_kokrs). | ||||
Search for further information about these or an SAP related objects