SAP POS_ARTICLE_READ Function Module for NOTRANSL: POS-Interface, Lesen der Artikel-Stammdaten









POS_ARTICLE_READ is a standard pos article read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: POS-Interface, Lesen der Artikel-Stammdaten 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 pos article read FM, simply by entering the name POS_ARTICLE_READ into the relevant SAP transaction such as SE37 or SE38.

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



Function POS_ARTICLE_READ 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 'POS_ARTICLE_READ'"NOTRANSL: POS-Interface, Lesen der Artikel-Stammdaten
EXPORTING
I_DISTRIBUTION_CHANNEL = "Distribution Channel
I_INTERNAL_ARTICLE_NUMBER = "Material Number
I_LANGUAGE = "Language Key
I_SALES_ORGANIZATION = "Sales Organization
* I_WERKS = ' ' "Plant
* I_MARC_LESEN = ' ' "Generic Type
* I_FILL_MAKT_WITH_DUMMY = '0' "Generic Type
* I_RACKJOBBER_ANALYSIS = ' ' "Generic Type
* I_MATERIAL_TEXT = ' ' "Material Description (Short Text)

IMPORTING
O_MAKT = "Material Descriptions
O_MVKE = "Sales Data for Material
O_MARC = "Plant Data for Material
O_MARA = "General Material Data

EXCEPTIONS
ARTIKEL_SDDATEN_UNBEKANNT = 1 ARTIKEL_UNBEKANNT = 2 ARTIKEL_MARC_UNBEKANNT = 3 ARTIKEL_MARA_UNBEKANNT = 4 LOCK_ON_MATERIAL = 5
.




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_SAPLWPUE_001 GR Check (Correct Quantities)
EXIT_SAPLWPUE_002 GR Control (Different Quantities)
EXIT_SAPLWPUE_050 POS Inbound Processing Messages
EXIT_SAPLWPUE_100 Do Not Use! User Exit for Sales Audit: Header for IDoc WPUBON01
EXIT_SAPLWPUE_101 Do Not Use! User Exit for Sales Audit: Line Item in IDoc WPUBON0
EXIT_SAPLWPUE_102 IDoc WPUBON01 Before Document is Posted
EXIT_SAPLWPUE_103 Do Not Use: Sales Audit: Exit for User Segment E1WXX01
EXIT_SAPLWPUE_104 IDoc WPUBON01 Before Inbound Processing
EXIT_SAPLWPUE_105 Check Whether IDoc Transaction WPUBON01 Is Compressable
EXIT_SAPLWPUE_106 IDoc WPUBON01 Process User Segment
EXIT_SAPLWPUE_109 IDoc WPUBON01 After Inbound Processing
EXIT_SAPLWPUE_110 IDoc WPUUMS01 Before Posting
EXIT_SAPLWPUE_111 Do Not Use! User Exit for User Segment in IDoc WPUUMS
EXIT_SAPLWPUE_112 IDoc WPUUMS01 Before Inbound Processing
EXIT_SAPLWPUE_113 Process IDoc WPUUMS01 User Segment
EXIT_SAPLWPUE_119 IDoc WPUUMS01 After Inbound Processing
EXIT_SAPLWPUE_120 IDoc WPUKSR01 Before Document Is Posted
EXIT_SAPLWPUE_121 Do Not Use! User Exit for User Segment in IDoc WPUKSR
EXIT_SAPLWPUE_122 IDoc WPUKSR01 Process User Segment
EXIT_SAPLWPUE_123 IDoc WPUKSR01 Before Inbound Processing
EXIT_SAPLWPUE_129 IDoc WPUKSR01 After Inbound Processing
EXIT_SAPLWPUE_130 IDoc WPUFIB01 Before Document Is Posted
EXIT_SAPLWPUE_131 IDoc WPUFIB01 Process User Segment
EXIT_SAPLWPUE_132 IDoc WPUFIB01 Before Inbound Processing
EXIT_SAPLWPUE_139 IDoc WPUFIB01 After Inbound Processing
EXIT_SAPLWPUE_140 IDoc WPUWB01 Before Document Is Posted
EXIT_SAPLWPUE_141 IDoc WPUWBW01 Process User Segment
EXIT_SAPLWPUE_142 IDoc WPUWBW01 Before Inbound Processing
EXIT_SAPLWPUE_149 IDoc WPUWBW01 After Inbound Processing
EXIT_SAPLWPUE_152 IDoc WPUTAB01 Before Inbound Processing
EXIT_SAPLWPUE_159 IDoc WPUTAB01 After Inbound Processing

IMPORTING Parameters details for POS_ARTICLE_READ

I_DISTRIBUTION_CHANNEL - Distribution Channel

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

I_INTERNAL_ARTICLE_NUMBER - Material Number

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

I_LANGUAGE - Language Key

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

I_SALES_ORGANIZATION - Sales Organization

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

I_WERKS - Plant

Data type: T001W-WERKS
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_MARC_LESEN - Generic Type

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

I_FILL_MAKT_WITH_DUMMY - Generic Type

Data type: CLIKE
Default: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_RACKJOBBER_ANALYSIS - Generic Type

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

I_MATERIAL_TEXT - Material Description (Short Text)

Data type: MAKT-MAKTX
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for POS_ARTICLE_READ

O_MAKT - Material Descriptions

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

O_MVKE - Sales Data for Material

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

O_MARC - Plant Data for Material

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

O_MARA - General Material Data

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

EXCEPTIONS details

ARTIKEL_SDDATEN_UNBEKANNT -

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

ARTIKEL_UNBEKANNT -

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

ARTIKEL_MARC_UNBEKANNT -

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

ARTIKEL_MARA_UNBEKANNT -

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

LOCK_ON_MATERIAL -

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

Copy and paste ABAP code example for POS_ARTICLE_READ 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_o_makt  TYPE MAKT, "   
lv_i_distribution_channel  TYPE MVKE-VTWEG, "   
lv_artikel_sddaten_unbekannt  TYPE MVKE, "   
lv_o_mvke  TYPE MVKE, "   
lv_artikel_unbekannt  TYPE MVKE, "   
lv_i_internal_article_number  TYPE MARA-MATNR, "   
lv_o_marc  TYPE MARC, "   
lv_i_language  TYPE MAKT-SPRAS, "   
lv_artikel_marc_unbekannt  TYPE MAKT, "   
lv_o_mara  TYPE MARA, "   
lv_i_sales_organization  TYPE MVKE-VKORG, "   
lv_artikel_mara_unbekannt  TYPE MVKE, "   
lv_i_werks  TYPE T001W-WERKS, "   ' '
lv_lock_on_material  TYPE T001W, "   
lv_i_marc_lesen  TYPE CLIKE, "   ' '
lv_i_fill_makt_with_dummy  TYPE CLIKE, "   '0'
lv_i_rackjobber_analysis  TYPE CLIKE, "   ' '
lv_i_material_text  TYPE MAKT-MAKTX. "   ' '

  CALL FUNCTION 'POS_ARTICLE_READ'  "NOTRANSL: POS-Interface, Lesen der Artikel-Stammdaten
    EXPORTING
         I_DISTRIBUTION_CHANNEL = lv_i_distribution_channel
         I_INTERNAL_ARTICLE_NUMBER = lv_i_internal_article_number
         I_LANGUAGE = lv_i_language
         I_SALES_ORGANIZATION = lv_i_sales_organization
         I_WERKS = lv_i_werks
         I_MARC_LESEN = lv_i_marc_lesen
         I_FILL_MAKT_WITH_DUMMY = lv_i_fill_makt_with_dummy
         I_RACKJOBBER_ANALYSIS = lv_i_rackjobber_analysis
         I_MATERIAL_TEXT = lv_i_material_text
    IMPORTING
         O_MAKT = lv_o_makt
         O_MVKE = lv_o_mvke
         O_MARC = lv_o_marc
         O_MARA = lv_o_mara
    EXCEPTIONS
        ARTIKEL_SDDATEN_UNBEKANNT = 1
        ARTIKEL_UNBEKANNT = 2
        ARTIKEL_MARC_UNBEKANNT = 3
        ARTIKEL_MARA_UNBEKANNT = 4
        LOCK_ON_MATERIAL = 5
. " POS_ARTICLE_READ




ABAP code using 7.40 inline data declarations to call FM POS_ARTICLE_READ

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 VTWEG FROM MVKE INTO @DATA(ld_i_distribution_channel).
 
 
 
 
"SELECT single MATNR FROM MARA INTO @DATA(ld_i_internal_article_number).
 
 
"SELECT single SPRAS FROM MAKT INTO @DATA(ld_i_language).
 
 
 
"SELECT single VKORG FROM MVKE INTO @DATA(ld_i_sales_organization).
 
 
"SELECT single WERKS FROM T001W INTO @DATA(ld_i_werks).
DATA(ld_i_werks) = ' '.
 
 
DATA(ld_i_marc_lesen) = ' '.
 
DATA(ld_i_fill_makt_with_dummy) = '0'.
 
DATA(ld_i_rackjobber_analysis) = ' '.
 
"SELECT single MAKTX FROM MAKT INTO @DATA(ld_i_material_text).
DATA(ld_i_material_text) = ' '.
 


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!