SAP FM4D_CHECK_CARRIER Function Module for









FM4D_CHECK_CARRIER is a standard fm4d check carrier SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 fm4d check carrier FM, simply by entering the name FM4D_CHECK_CARRIER into the relevant SAP transaction such as SE37 or SE38.

Function Group: FM4D
Program Name: SAPLFM4D
Main Program:
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FM4D_CHECK_CARRIER 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 'FM4D_CHECK_CARRIER'"
EXPORTING
I_FIKRS = "
* I_BUDGET_COM_CAR = ' ' "
* I_BAL_BUDGET_CAR = ' ' "
* I_CONTR_PAY_CAR = ' ' "
* I_CONTR_COM_CAR = ' ' "
* I_POST_CARRIER = ' ' "
* I_BUFFER_MODE = ' ' "
I_FOND = "
I_GJAHR = "
I_CTR_OBJNR = "
I_POSIT = "
* I_FICTR = ' ' "
* I_FIPOS = ' ' "
* I_BUDGET_CARRIER = ' ' "
* I_BUDGET_PAY_CAR = ' ' "

EXCEPTIONS
NO_CARRIER = 1
.



IMPORTING Parameters details for FM4D_CHECK_CARRIER

I_FIKRS -

Data type: FM01-FIKRS
Optional: No
Call by Reference: No ( called with pass by value option)

I_BUDGET_COM_CAR -

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_BAL_BUDGET_CAR -

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CONTR_PAY_CAR -

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CONTR_COM_CAR -

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_POST_CARRIER -

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_BUFFER_MODE -

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FOND -

Data type: FMFINCODE-FINCODE
Optional: No
Call by Reference: No ( called with pass by value option)

I_GJAHR -

Data type: FMSU-GJAHR
Optional: No
Call by Reference: No ( called with pass by value option)

I_CTR_OBJNR -

Data type: FMFCTR-CTR_OBJNR
Optional: No
Call by Reference: No ( called with pass by value option)

I_POSIT -

Data type: FMFPO-POSIT
Optional: No
Call by Reference: No ( called with pass by value option)

I_FICTR -

Data type: FMFCTR-FICTR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FIPOS -

Data type: FMFPO-FIPOS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_BUDGET_CARRIER -

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_BUDGET_PAY_CAR -

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

NO_CARRIER -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for FM4D_CHECK_CARRIER 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_i_fikrs  TYPE FM01-FIKRS, "   
lv_no_carrier  TYPE FM01, "   
lv_i_budget_com_car  TYPE FM01, "   SPACE
lv_i_bal_budget_car  TYPE FM01, "   SPACE
lv_i_contr_pay_car  TYPE FM01, "   SPACE
lv_i_contr_com_car  TYPE FM01, "   SPACE
lv_i_post_carrier  TYPE FM01, "   SPACE
lv_i_buffer_mode  TYPE FM01, "   SPACE
lv_i_fond  TYPE FMFINCODE-FINCODE, "   
lv_i_gjahr  TYPE FMSU-GJAHR, "   
lv_i_ctr_objnr  TYPE FMFCTR-CTR_OBJNR, "   
lv_i_posit  TYPE FMFPO-POSIT, "   
lv_i_fictr  TYPE FMFCTR-FICTR, "   SPACE
lv_i_fipos  TYPE FMFPO-FIPOS, "   SPACE
lv_i_budget_carrier  TYPE FMFPO, "   SPACE
lv_i_budget_pay_car  TYPE FMFPO. "   SPACE

  CALL FUNCTION 'FM4D_CHECK_CARRIER'  "
    EXPORTING
         I_FIKRS = lv_i_fikrs
         I_BUDGET_COM_CAR = lv_i_budget_com_car
         I_BAL_BUDGET_CAR = lv_i_bal_budget_car
         I_CONTR_PAY_CAR = lv_i_contr_pay_car
         I_CONTR_COM_CAR = lv_i_contr_com_car
         I_POST_CARRIER = lv_i_post_carrier
         I_BUFFER_MODE = lv_i_buffer_mode
         I_FOND = lv_i_fond
         I_GJAHR = lv_i_gjahr
         I_CTR_OBJNR = lv_i_ctr_objnr
         I_POSIT = lv_i_posit
         I_FICTR = lv_i_fictr
         I_FIPOS = lv_i_fipos
         I_BUDGET_CARRIER = lv_i_budget_carrier
         I_BUDGET_PAY_CAR = lv_i_budget_pay_car
    EXCEPTIONS
        NO_CARRIER = 1
. " FM4D_CHECK_CARRIER




ABAP code using 7.40 inline data declarations to call FM FM4D_CHECK_CARRIER

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 FIKRS FROM FM01 INTO @DATA(ld_i_fikrs).
 
 
DATA(ld_i_budget_com_car) = ' '.
 
DATA(ld_i_bal_budget_car) = ' '.
 
DATA(ld_i_contr_pay_car) = ' '.
 
DATA(ld_i_contr_com_car) = ' '.
 
DATA(ld_i_post_carrier) = ' '.
 
DATA(ld_i_buffer_mode) = ' '.
 
"SELECT single FINCODE FROM FMFINCODE INTO @DATA(ld_i_fond).
 
"SELECT single GJAHR FROM FMSU INTO @DATA(ld_i_gjahr).
 
"SELECT single CTR_OBJNR FROM FMFCTR INTO @DATA(ld_i_ctr_objnr).
 
"SELECT single POSIT FROM FMFPO INTO @DATA(ld_i_posit).
 
"SELECT single FICTR FROM FMFCTR INTO @DATA(ld_i_fictr).
DATA(ld_i_fictr) = ' '.
 
"SELECT single FIPOS FROM FMFPO INTO @DATA(ld_i_fipos).
DATA(ld_i_fipos) = ' '.
 
DATA(ld_i_budget_carrier) = ' '.
 
DATA(ld_i_budget_pay_car) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!