SAP J_3G_COFIX_ERMITTELN Function Module for Determine Fix CO Object
J_3G_COFIX_ERMITTELN is a standard j 3g cofix ermitteln SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Determine Fix CO Object 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 j 3g cofix ermitteln FM, simply by entering the name J_3G_COFIX_ERMITTELN into the relevant SAP transaction such as SE37 or SE38.
Function Group: J3GE
Program Name: SAPLJ3GE
Main Program: SAPLJ3GE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function J_3G_COFIX_ERMITTELN 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 'J_3G_COFIX_ERMITTELN'"Determine Fix CO Object.
EXPORTING
* I_VART = 1 "Usage Type (1=Settlement 2=Assessment)
I_KSCHL = "Condition Type
I_KENORG = "Indicator Org. Structure for Acc. Determination
I_ABSENDER = "Sender
I_EMPFAENGER = "Recipient
I_VBRP = "Billing Item Data
IMPORTING
CO_OBJ = "CO Objects
RETTYP = "Return Type
IMPORTING Parameters details for J_3G_COFIX_ERMITTELN
I_VART - Usage Type (1=Settlement 2=Assessment)
Data type: J_3GCOFIX-/SAPCEM/VARTDefault: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_KSCHL - Condition Type
Data type: T685-KSCHLOptional: No
Call by Reference: No ( called with pass by value option)
I_KENORG - Indicator Org. Structure for Acc. Determination
Data type: J_3GCOFIX-J_3GARTBUOptional: No
Call by Reference: No ( called with pass by value option)
I_ABSENDER - Sender
Data type: KNA1-KUNNROptional: No
Call by Reference: No ( called with pass by value option)
I_EMPFAENGER - Recipient
Data type: KNA1-KUNNROptional: No
Call by Reference: No ( called with pass by value option)
I_VBRP - Billing Item Data
Data type: VBRPVBOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for J_3G_COFIX_ERMITTELN
CO_OBJ - CO Objects
Data type: J_3GCOOBJOptional: No
Call by Reference: No ( called with pass by value option)
RETTYP - Return Type
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for J_3G_COFIX_ERMITTELN 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_co_obj | TYPE J_3GCOOBJ, " | |||
| lv_i_vart | TYPE J_3GCOFIX-/SAPCEM/VART, " 1 | |||
| lv_rettyp | TYPE SY-SUBRC, " | |||
| lv_i_kschl | TYPE T685-KSCHL, " | |||
| lv_i_kenorg | TYPE J_3GCOFIX-J_3GARTBU, " | |||
| lv_i_absender | TYPE KNA1-KUNNR, " | |||
| lv_i_empfaenger | TYPE KNA1-KUNNR, " | |||
| lv_i_vbrp | TYPE VBRPVB. " |
|   CALL FUNCTION 'J_3G_COFIX_ERMITTELN' "Determine Fix CO Object |
| EXPORTING | ||
| I_VART | = lv_i_vart | |
| I_KSCHL | = lv_i_kschl | |
| I_KENORG | = lv_i_kenorg | |
| I_ABSENDER | = lv_i_absender | |
| I_EMPFAENGER | = lv_i_empfaenger | |
| I_VBRP | = lv_i_vbrp | |
| IMPORTING | ||
| CO_OBJ | = lv_co_obj | |
| RETTYP | = lv_rettyp | |
| . " J_3G_COFIX_ERMITTELN | ||
ABAP code using 7.40 inline data declarations to call FM J_3G_COFIX_ERMITTELN
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 /SAPCEM/VART FROM J_3GCOFIX INTO @DATA(ld_i_vart). | ||||
| DATA(ld_i_vart) | = 1. | |||
| "SELECT single SUBRC FROM SY INTO @DATA(ld_rettyp). | ||||
| "SELECT single KSCHL FROM T685 INTO @DATA(ld_i_kschl). | ||||
| "SELECT single J_3GARTBU FROM J_3GCOFIX INTO @DATA(ld_i_kenorg). | ||||
| "SELECT single KUNNR FROM KNA1 INTO @DATA(ld_i_absender). | ||||
| "SELECT single KUNNR FROM KNA1 INTO @DATA(ld_i_empfaenger). | ||||
Search for further information about these or an SAP related objects