SAP FLQ_SAMPLE_ASSIGN_INV Function Module for









FLQ_SAMPLE_ASSIGN_INV is a standard flq sample assign inv 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 flq sample assign inv FM, simply by entering the name FLQ_SAMPLE_ASSIGN_INV into the relevant SAP transaction such as SE37 or SE38.

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



Function FLQ_SAMPLE_ASSIGN_INV 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 'FLQ_SAMPLE_ASSIGN_INV'"
EXPORTING
P_BKPF = "
P_BSEG = "
P_ACTUAL_KEY = "
P_OLDPOS = "
P_QUERYPOS = "
P_OLDGSBER = "

IMPORTING
P_LQPOS = "
P_BUKRS = "
P_GSBER = "

CHANGING
* P_SUBRC_LQPOS = "
* P_SUBRC_BUKRS = "
* P_SUBRC_GSBER = "
.



IMPORTING Parameters details for FLQ_SAMPLE_ASSIGN_INV

P_BKPF -

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

P_BSEG -

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

P_ACTUAL_KEY -

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

P_OLDPOS -

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

P_QUERYPOS -

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

P_OLDGSBER -

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

EXPORTING Parameters details for FLQ_SAMPLE_ASSIGN_INV

P_LQPOS -

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

P_BUKRS -

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

P_GSBER -

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

CHANGING Parameters details for FLQ_SAMPLE_ASSIGN_INV

P_SUBRC_LQPOS -

Data type: SY-SUBRC
Optional: Yes
Call by Reference: Yes

P_SUBRC_BUKRS -

Data type: SY-SUBRC
Optional: Yes
Call by Reference: Yes

P_SUBRC_GSBER -

Data type: SY-SUBRC
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for FLQ_SAMPLE_ASSIGN_INV 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_p_bkpf  TYPE BKPF, "   
lv_p_lqpos  TYPE FLQITEM-LQPOS, "   
lv_p_subrc_lqpos  TYPE SY-SUBRC, "   
lv_p_bseg  TYPE BSEG, "   
lv_p_bukrs  TYPE FLQITEM-BUKRS, "   
lv_p_subrc_bukrs  TYPE SY-SUBRC, "   
lv_p_gsber  TYPE FLQITEM-GSBER, "   
lv_p_actual_key  TYPE BSEG_KEY, "   
lv_p_subrc_gsber  TYPE SY-SUBRC, "   
lv_p_oldpos  TYPE FLQPARA-LQPOS_BUF, "   
lv_p_querypos  TYPE FLQITEM-LQPOS, "   
lv_p_oldgsber  TYPE FLQITEM-GSBER. "   

  CALL FUNCTION 'FLQ_SAMPLE_ASSIGN_INV'  "
    EXPORTING
         P_BKPF = lv_p_bkpf
         P_BSEG = lv_p_bseg
         P_ACTUAL_KEY = lv_p_actual_key
         P_OLDPOS = lv_p_oldpos
         P_QUERYPOS = lv_p_querypos
         P_OLDGSBER = lv_p_oldgsber
    IMPORTING
         P_LQPOS = lv_p_lqpos
         P_BUKRS = lv_p_bukrs
         P_GSBER = lv_p_gsber
    CHANGING
         P_SUBRC_LQPOS = lv_p_subrc_lqpos
         P_SUBRC_BUKRS = lv_p_subrc_bukrs
         P_SUBRC_GSBER = lv_p_subrc_gsber
. " FLQ_SAMPLE_ASSIGN_INV




ABAP code using 7.40 inline data declarations to call FM FLQ_SAMPLE_ASSIGN_INV

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 LQPOS FROM FLQITEM INTO @DATA(ld_p_lqpos).
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_p_subrc_lqpos).
 
 
"SELECT single BUKRS FROM FLQITEM INTO @DATA(ld_p_bukrs).
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_p_subrc_bukrs).
 
"SELECT single GSBER FROM FLQITEM INTO @DATA(ld_p_gsber).
 
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_p_subrc_gsber).
 
"SELECT single LQPOS_BUF FROM FLQPARA INTO @DATA(ld_p_oldpos).
 
"SELECT single LQPOS FROM FLQITEM INTO @DATA(ld_p_querypos).
 
"SELECT single GSBER FROM FLQITEM INTO @DATA(ld_p_oldgsber).
 


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!