SAP POST_ARTICLES_FROM_OUTSIDE Function Module for Trigger External Update









POST_ARTICLES_FROM_OUTSIDE is a standard post articles from outside SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Trigger External Update 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 post articles from outside FM, simply by entering the name POST_ARTICLES_FROM_OUTSIDE into the relevant SAP transaction such as SE37 or SE38.

Function Group: WRF_RFC_INTERFACE
Program Name: SAPLWRF_RFC_INTERFACE
Main Program: SAPLWRF_RFC_INTERFACE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function POST_ARTICLES_FROM_OUTSIDE 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 'POST_ARTICLES_FROM_OUTSIDE'"Trigger External Update
EXPORTING
I_PRINBR = "PRICAT: Unique Internal Catalog Number
IT_PRICAT_K009 = "PRICAT: Catalog Item Scales for Condition
IT_PRICAT_010 = "Price Catalog Inbound: Generic Field Storage
* IT_PURCHASE_ORG = "Talbe of Purchasing Organizations
* IT_DISTRIBUTION_LINE = "Table: Distribution Chains
I_ATTYP = "Material Category
IT_PRICAT_K003 = "PRICAT: Table for PRICAT_K003
IT_PRICAT_K003Z = "PRICAT: Table for PRICAT_K003z
IT_PRICAT_K004 = "PRICAT: Catalog Item Units of Measure, Dimensions, Weights, EANs/UPCs
IT_PRICAT_K005 = "PRICAT: Catalog Item Texts
IT_PRICAT_K006 = "PRICAT: Catalog Item Characteristics
IT_PRICAT_K007 = "PRICAT: Catalog Item Bills of Material
IT_PRICAT_K008 = "PRICAT: Catalog Item Prices / Conditions / Taxes

IMPORTING
ET_ERROR_RECORDS = "Price Catalog
E_LOG_HANDLE = "Application Log: Log Handle

CHANGING
* CT_RECORD_STATUS = "Table Type for Structure WRF_PRICAT_RECORD_STATUS_STY

EXCEPTIONS
NO_LOCK_STATUS = 1 PRICAT_POSITION_NOT_FOUND = 2 POSTING_ERROR = 3
.



IMPORTING Parameters details for POST_ARTICLES_FROM_OUTSIDE

I_PRINBR - PRICAT: Unique Internal Catalog Number

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

IT_PRICAT_K009 - PRICAT: Catalog Item Scales for Condition

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

IT_PRICAT_010 - Price Catalog Inbound: Generic Field Storage

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

IT_PURCHASE_ORG - Talbe of Purchasing Organizations

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

IT_DISTRIBUTION_LINE - Table: Distribution Chains

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

I_ATTYP - Material Category

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

IT_PRICAT_K003 - PRICAT: Table for PRICAT_K003

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

IT_PRICAT_K003Z - PRICAT: Table for PRICAT_K003z

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

IT_PRICAT_K004 - PRICAT: Catalog Item Units of Measure, Dimensions, Weights, EANs/UPCs

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

IT_PRICAT_K005 - PRICAT: Catalog Item Texts

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

IT_PRICAT_K006 - PRICAT: Catalog Item Characteristics

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

IT_PRICAT_K007 - PRICAT: Catalog Item Bills of Material

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

IT_PRICAT_K008 - PRICAT: Catalog Item Prices / Conditions / Taxes

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

EXPORTING Parameters details for POST_ARTICLES_FROM_OUTSIDE

ET_ERROR_RECORDS - Price Catalog

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

E_LOG_HANDLE - Application Log: Log Handle

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

CHANGING Parameters details for POST_ARTICLES_FROM_OUTSIDE

CT_RECORD_STATUS - Table Type for Structure WRF_PRICAT_RECORD_STATUS_STY

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

EXCEPTIONS details

NO_LOCK_STATUS - Position ist nicht logisch gesperrt (LOCK_STATUS <> 'X')

Data type:
Optional: No
Call by Reference: Yes

PRICAT_POSITION_NOT_FOUND - Eine Pricat-Position wurde nicht gefunden

Data type:
Optional: No
Call by Reference: Yes

POSTING_ERROR - Fehler in der Artikelverbuchung

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for POST_ARTICLES_FROM_OUTSIDE 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_prinbr  TYPE PRINBR, "   
lv_no_lock_status  TYPE PRINBR, "   
lv_ct_record_status  TYPE WRF_PRICAT_RECORD_STATUS_TTY, "   
lv_et_error_records  TYPE WRF_PRICAT_TRIG_REC_CHECK_TTY, "   
lv_it_pricat_k009  TYPE TT_PRICAT_K009, "   
lv_it_pricat_010  TYPE TT_PRICAT_010, "   
lv_it_purchase_org  TYPE WRF_PURCH_ORG_TTY, "   
lv_it_distribution_line  TYPE WRF_DIST_LINE_TTY, "   
lv_i_attyp  TYPE ATTYP, "   
lv_e_log_handle  TYPE BALLOGHNDL, "   
lv_pricat_position_not_found  TYPE BALLOGHNDL, "   
lv_posting_error  TYPE BALLOGHNDL, "   
lv_it_pricat_k003  TYPE TT_PRICAT_K003, "   
lv_it_pricat_k003z  TYPE TT_PRICAT_K003Z, "   
lv_it_pricat_k004  TYPE TT_PRICAT_K004, "   
lv_it_pricat_k005  TYPE TT_PRICAT_K005, "   
lv_it_pricat_k006  TYPE TT_PRICAT_K006, "   
lv_it_pricat_k007  TYPE TT_PRICAT_K007, "   
lv_it_pricat_k008  TYPE TT_PRICAT_K008. "   

  CALL FUNCTION 'POST_ARTICLES_FROM_OUTSIDE'  "Trigger External Update
    EXPORTING
         I_PRINBR = lv_i_prinbr
         IT_PRICAT_K009 = lv_it_pricat_k009
         IT_PRICAT_010 = lv_it_pricat_010
         IT_PURCHASE_ORG = lv_it_purchase_org
         IT_DISTRIBUTION_LINE = lv_it_distribution_line
         I_ATTYP = lv_i_attyp
         IT_PRICAT_K003 = lv_it_pricat_k003
         IT_PRICAT_K003Z = lv_it_pricat_k003z
         IT_PRICAT_K004 = lv_it_pricat_k004
         IT_PRICAT_K005 = lv_it_pricat_k005
         IT_PRICAT_K006 = lv_it_pricat_k006
         IT_PRICAT_K007 = lv_it_pricat_k007
         IT_PRICAT_K008 = lv_it_pricat_k008
    IMPORTING
         ET_ERROR_RECORDS = lv_et_error_records
         E_LOG_HANDLE = lv_e_log_handle
    CHANGING
         CT_RECORD_STATUS = lv_ct_record_status
    EXCEPTIONS
        NO_LOCK_STATUS = 1
        PRICAT_POSITION_NOT_FOUND = 2
        POSTING_ERROR = 3
. " POST_ARTICLES_FROM_OUTSIDE




ABAP code using 7.40 inline data declarations to call FM POST_ARTICLES_FROM_OUTSIDE

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!