SAP EXIT_SAPLORF3_004 Function Module for Assign IP to Material by external definition









EXIT_SAPLORF3_004 is a standard exit saplorf3 004 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Assign IP to Material by external definition 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 exit saplorf3 004 FM, simply by entering the name EXIT_SAPLORF3_004 into the relevant SAP transaction such as SE37 or SE38.

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



Function EXIT_SAPLORF3_004 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 'EXIT_SAPLORF3_004'"Assign IP to Material by external definition
IMPORTING
MATNR = "Material number

CHANGING
WA_PARTS = "Data of Selected Parts (IP DB)

TABLES
IT_SPCIPIF = "Interface IP Data - Master Data
IT_MMOUT2 = "ORF: Output Data for getting MM data 2
I_PARTS = "Equvalent for i_parts (marked Mat. in adspc_ip)
I_SPCIPHDR = "Stores header information for IP data
I_SPCIPPDR = "Spare parts / End items
I_SPCIPPDS = "SPEC2000: Procurement Data Segment
I_SPCIPCSN = "Locations
.



Related Function Modules

Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.
ASSIGN_MATNR Get IP Customizing, Check Assignment
ASSIGN_MATNR2 Internal Assignment IP-Material
FILL_IT_AC_EC Read Aircraft Data
FILL_IT_MTBE Initialise itab it_mtbe
FILL_IT_PARTS Assignement i_spcip* -> it_parts
GET_CALC_INPUT Choose Input Data: Manufacturer or System
GET_IT_MTBE_TEXT Read ORF3 Text for consistent use
GET_MAT_DATA Read material master data
GET_MTBE Choose MTBE by Radiobuttons
GET_MTBE_EXTRACTOR Select MTBE Extractor Data from ROTKPI
GET_OTHER Load Manufacturer/System Data
GET_PART Determine individual Parts of selected parts list it_parts
GET_UNIT_TEXT Determine Units / Texts
SAVE_CALC_RECORD Saving of a hole calculation record on DB
SELECT_CALC Selection of Calculations to a Part
SELECT_PARTS Selection der Parts (in IP DB)
SET_RADIO_MTBE Set Radiobutton position for Time / Cycles from IP Data
STORE_CALC_RECORD Store a hole Calculation Record in a Workarea
USER_EXIT_CALC Encapsulates User Exit for ext. ORF calc. model
USER_EXIT_EXTRACT Encapsulates User Exit for further Extractors
XDUM1 Dum 1
XDUM2 Dum 2

EXPORTING Parameters details for EXIT_SAPLORF3_004

MATNR - Material number

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

CHANGING Parameters details for EXIT_SAPLORF3_004

WA_PARTS - Data of Selected Parts (IP DB)

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

TABLES Parameters details for EXIT_SAPLORF3_004

IT_SPCIPIF - Interface IP Data - Master Data

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

IT_MMOUT2 - ORF: Output Data for getting MM data 2

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

I_PARTS - Equvalent for i_parts (marked Mat. in adspc_ip)

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

I_SPCIPHDR - Stores header information for IP data

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

I_SPCIPPDR - Spare parts / End items

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

I_SPCIPPDS - SPEC2000: Procurement Data Segment

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

I_SPCIPCSN - Locations

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

Copy and paste ABAP code example for EXIT_SAPLORF3_004 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_matnr  TYPE MATNR, "   
lv_wa_parts  TYPE ORFPART, "   
lt_it_spcipif  TYPE STANDARD TABLE OF SPCIPINTERFACE, "   
lt_it_mmout2  TYPE STANDARD TABLE OF ORFMMOUT2, "   
lt_i_parts  TYPE STANDARD TABLE OF TPARTS, "   
lt_i_spciphdr  TYPE STANDARD TABLE OF SPCIPHDR, "   
lt_i_spcippdr  TYPE STANDARD TABLE OF SPCIPPDR, "   
lt_i_spcippds  TYPE STANDARD TABLE OF SPCIPPDS, "   
lt_i_spcipcsn  TYPE STANDARD TABLE OF SPCIPCSN. "   

  CALL FUNCTION 'EXIT_SAPLORF3_004'  "Assign IP to Material by external definition
    IMPORTING
         MATNR = lv_matnr
    CHANGING
         WA_PARTS = lv_wa_parts
    TABLES
         IT_SPCIPIF = lt_it_spcipif
         IT_MMOUT2 = lt_it_mmout2
         I_PARTS = lt_i_parts
         I_SPCIPHDR = lt_i_spciphdr
         I_SPCIPPDR = lt_i_spcippdr
         I_SPCIPPDS = lt_i_spcippds
         I_SPCIPCSN = lt_i_spcipcsn
. " EXIT_SAPLORF3_004




ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLORF3_004

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.

 
 
 
 
 
 
 
 
 


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!