SAP FM_CO_ASS_INPUT_GET_PM Function Module for Assignment: Read account assignment (maintenance order)









FM_CO_ASS_INPUT_GET_PM is a standard fm co ass input get pm SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Assignment: Read account assignment (maintenance order) 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 fm co ass input get pm FM, simply by entering the name FM_CO_ASS_INPUT_GET_PM into the relevant SAP transaction such as SE37 or SE38.

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



Function FM_CO_ASS_INPUT_GET_PM 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 'FM_CO_ASS_INPUT_GET_PM'"Assignment: Read account assignment             (maintenance order)
EXPORTING
I_AUFNR = "
* I_KSTAR = "
I_BUDAT = "
* I_BUKRS = "
* I_FIKRS = "Financial management area
* I_NETZKONT = "Indicator for the account assignment of a network(hdr/act.)
* I_VORNR = "Operation Number
* I_AFVGD = "Order: Dialog table for Table AFVG (order operation)

IMPORTING
E_FISTL = "Funds Center
E_FIPOS = "Commitment Item
E_FONDS = "Fund
E_FKBER = "Functional Area
E_MEASURE = "Program in Funds Management
E_GRANT_NBR = "Grant
E_BUDGET_PERIOD = "FM: Budget Period
E_OPERATION_LEVEL = "Account Assignment is at Operation Level

EXCEPTIONS
NO_CUSTOMIZING_FOUND = 1
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLFRC4_001 Determine FM Account Assignment from Maintenance Order
EXIT_SAPLFRC4_002 Determine FM Account Assignment from SD Order
EXIT_SAPLFRC4_003 Determine FM Account Assignment from Network Activities
EXIT_SAPLFRC4_004 Determine FM Account Assignment from Networks

IMPORTING Parameters details for FM_CO_ASS_INPUT_GET_PM

I_AUFNR -

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

I_KSTAR -

Data type: FMZUOB-KSTAR
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_BUDAT -

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

I_BUKRS -

Data type: COBL-BUKRS
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FIKRS - Financial management area

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

I_NETZKONT - Indicator for the account assignment of a network(hdr/act.)

Data type: NETZKONT
Optional: Yes
Call by Reference: Yes

I_VORNR - Operation Number

Data type: VORNR_AUF
Optional: Yes
Call by Reference: Yes

I_AFVGD - Order: Dialog table for Table AFVG (order operation)

Data type: AFVGD
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for FM_CO_ASS_INPUT_GET_PM

E_FISTL - Funds Center

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

E_FIPOS - Commitment Item

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

E_FONDS - Fund

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

E_FKBER - Functional Area

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

E_MEASURE - Program in Funds Management

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

E_GRANT_NBR - Grant

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

E_BUDGET_PERIOD - FM: Budget Period

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

E_OPERATION_LEVEL - Account Assignment is at Operation Level

Data type: XFELD
Optional: No
Call by Reference: Yes

EXCEPTIONS details

NO_CUSTOMIZING_FOUND -

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

Copy and paste ABAP code example for FM_CO_ASS_INPUT_GET_PM 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_fistl  TYPE FMZUOB-FISTL, "   
lv_i_aufnr  TYPE COBL-AUFNR, "   
lv_no_customizing_found  TYPE COBL, "   
lv_e_fipos  TYPE FMZUOB-FIPOS, "   
lv_i_kstar  TYPE FMZUOB-KSTAR, "   
lv_e_fonds  TYPE FMZUOB-FONDS, "   
lv_i_budat  TYPE COBL-BUDAT, "   
lv_e_fkber  TYPE FMZUOB-FAREA, "   
lv_i_bukrs  TYPE COBL-BUKRS, "   
lv_i_fikrs  TYPE COBL-FIKRS, "   
lv_e_measure  TYPE FMZUOB-MEASURE, "   
lv_i_netzkont  TYPE NETZKONT, "   
lv_e_grant_nbr  TYPE FMZUOB-GRANT_NBR, "   
lv_i_vornr  TYPE VORNR_AUF, "   
lv_e_budget_period  TYPE FM_BUDGET_PERIOD, "   
lv_i_afvgd  TYPE AFVGD, "   
lv_e_operation_level  TYPE XFELD. "   

  CALL FUNCTION 'FM_CO_ASS_INPUT_GET_PM'  "Assignment: Read account assignment (maintenance order)
    EXPORTING
         I_AUFNR = lv_i_aufnr
         I_KSTAR = lv_i_kstar
         I_BUDAT = lv_i_budat
         I_BUKRS = lv_i_bukrs
         I_FIKRS = lv_i_fikrs
         I_NETZKONT = lv_i_netzkont
         I_VORNR = lv_i_vornr
         I_AFVGD = lv_i_afvgd
    IMPORTING
         E_FISTL = lv_e_fistl
         E_FIPOS = lv_e_fipos
         E_FONDS = lv_e_fonds
         E_FKBER = lv_e_fkber
         E_MEASURE = lv_e_measure
         E_GRANT_NBR = lv_e_grant_nbr
         E_BUDGET_PERIOD = lv_e_budget_period
         E_OPERATION_LEVEL = lv_e_operation_level
    EXCEPTIONS
        NO_CUSTOMIZING_FOUND = 1
. " FM_CO_ASS_INPUT_GET_PM




ABAP code using 7.40 inline data declarations to call FM FM_CO_ASS_INPUT_GET_PM

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 FISTL FROM FMZUOB INTO @DATA(ld_e_fistl).
 
"SELECT single AUFNR FROM COBL INTO @DATA(ld_i_aufnr).
 
 
"SELECT single FIPOS FROM FMZUOB INTO @DATA(ld_e_fipos).
 
"SELECT single KSTAR FROM FMZUOB INTO @DATA(ld_i_kstar).
 
"SELECT single FONDS FROM FMZUOB INTO @DATA(ld_e_fonds).
 
"SELECT single BUDAT FROM COBL INTO @DATA(ld_i_budat).
 
"SELECT single FAREA FROM FMZUOB INTO @DATA(ld_e_fkber).
 
"SELECT single BUKRS FROM COBL INTO @DATA(ld_i_bukrs).
 
"SELECT single FIKRS FROM COBL INTO @DATA(ld_i_fikrs).
 
"SELECT single MEASURE FROM FMZUOB INTO @DATA(ld_e_measure).
 
 
"SELECT single GRANT_NBR FROM FMZUOB INTO @DATA(ld_e_grant_nbr).
 
 
 
 
 


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!