SAP Function Modules

FA_SET_BACK_INFORECORDS_GLOBAL SAP Function module







FA_SET_BACK_INFORECORDS_GLOBAL is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name FA_SET_BACK_INFORECORDS_GLOBAL into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: WSO7A
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM FA_SET_BACK_INFORECORDS_GLOBAL - FA SET BACK INFORECORDS GLOBAL





CALL FUNCTION 'FA_SET_BACK_INFORECORDS_GLOBAL' "
  EXPORTING
    pi_matnr =                  " eina-matnr
*   pi_lifnr = SPACE            " eina-lifnr
*   pi_werks = SPACE            " eine-werks
    pi_date =                   " eina-lifbi
*   pi_ekorg = SPACE            " eine-ekorg
* TABLES
*   pt_errors =                 "
    .  "  FA_SET_BACK_INFORECORDS_GLOBAL

ABAP code example for Function Module FA_SET_BACK_INFORECORDS_GLOBAL





The ABAP code below is a full code listing to execute function module FA_SET_BACK_INFORECORDS_GLOBAL including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
it_pt_errors  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_pt_errors  LIKE LINE OF it_pt_errors .


SELECT single MATNR
FROM EINA
INTO @DATA(ld_pi_matnr).


SELECT single LIFNR
FROM EINA
INTO @DATA(ld_pi_lifnr).


SELECT single WERKS
FROM EINE
INTO @DATA(ld_pi_werks).


SELECT single LIFBI
FROM EINA
INTO @DATA(ld_pi_date).


SELECT single EKORG
FROM EINE
INTO @DATA(ld_pi_ekorg).


"populate fields of struture and append to itab
append wa_pt_errors to it_pt_errors. . CALL FUNCTION 'FA_SET_BACK_INFORECORDS_GLOBAL' EXPORTING pi_matnr = ld_pi_matnr * pi_lifnr = ld_pi_lifnr * pi_werks = ld_pi_werks pi_date = ld_pi_date * pi_ekorg = ld_pi_ekorg * TABLES * pt_errors = it_pt_errors . " FA_SET_BACK_INFORECORDS_GLOBAL
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_pi_matnr  TYPE EINA-MATNR ,
it_pt_errors  TYPE STANDARD TABLE OF STRING ,
wa_pt_errors  LIKE LINE OF it_pt_errors,
ld_pi_lifnr  TYPE EINA-LIFNR ,
ld_pi_werks  TYPE EINE-WERKS ,
ld_pi_date  TYPE EINA-LIFBI ,
ld_pi_ekorg  TYPE EINE-EKORG .


SELECT single MATNR
FROM EINA
INTO ld_pi_matnr.


"populate fields of struture and append to itab
append wa_pt_errors to it_pt_errors.

SELECT single LIFNR
FROM EINA
INTO ld_pi_lifnr.


SELECT single WERKS
FROM EINE
INTO ld_pi_werks.


SELECT single LIFBI
FROM EINA
INTO ld_pi_date.


SELECT single EKORG
FROM EINE
INTO ld_pi_ekorg.

SAP Documentation for FM FA_SET_BACK_INFORECORDS_GLOBAL


This function module flags purchasing info records for deletion.
There are 4 different scenarios: ...See here for full SAP fm documentation

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name FA_SET_BACK_INFORECORDS_GLOBAL or its description.