SAP POS_SA_SCREEN_STATUS Function Module for NOTRANSL: Anzeigen und Ändern von POS-Status









POS_SA_SCREEN_STATUS is a standard pos sa screen status 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: Anzeigen und Ändern von POS-Status 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 sa screen status FM, simply by entering the name POS_SA_SCREEN_STATUS into the relevant SAP transaction such as SE37 or SE38.

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



Function POS_SA_SCREEN_STATUS 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_SA_SCREEN_STATUS'"NOTRANSL: Anzeigen und Ändern von POS-Status
EXPORTING
DOCNUM = "IDoc Number
SEGNUM = "Number of SAP segment
SEGNUM_END = "Number of SAP segment
KEY = "Object key
MESTYP = "Message Type
SNDPRN = "Partner Number of Sender

IMPORTING
STATUS = "Status for external documents at POS interface - inbound
.




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_SAPLWPSA_001 Change the Control for Document Links and POS Monitoring

IMPORTING Parameters details for POS_SA_SCREEN_STATUS

DOCNUM - IDoc Number

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

SEGNUM - Number of SAP segment

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

SEGNUM_END - Number of SAP segment

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

KEY - Object key

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

MESTYP - Message Type

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

SNDPRN - Partner Number of Sender

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

EXPORTING Parameters details for POS_SA_SCREEN_STATUS

STATUS - Status for external documents at POS interface - inbound

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

Copy and paste ABAP code example for POS_SA_SCREEN_STATUS 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_docnum  TYPE EDIDC-DOCNUM, "   
lv_status  TYPE POSWPSA-STATUS, "   
lv_segnum  TYPE EDIDD-SEGNUM, "   
lv_segnum_end  TYPE EDIDD-SEGNUM, "   
lv_key  TYPE OBJECTCONN-OBJECTID, "   
lv_mestyp  TYPE EDIDC-MESTYP, "   
lv_sndprn  TYPE EDIDC-SNDPRN. "   

  CALL FUNCTION 'POS_SA_SCREEN_STATUS'  "NOTRANSL: Anzeigen und Ändern von POS-Status
    EXPORTING
         DOCNUM = lv_docnum
         SEGNUM = lv_segnum
         SEGNUM_END = lv_segnum_end
         KEY = lv_key
         MESTYP = lv_mestyp
         SNDPRN = lv_sndprn
    IMPORTING
         STATUS = lv_status
. " POS_SA_SCREEN_STATUS




ABAP code using 7.40 inline data declarations to call FM POS_SA_SCREEN_STATUS

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 DOCNUM FROM EDIDC INTO @DATA(ld_docnum).
 
"SELECT single STATUS FROM POSWPSA INTO @DATA(ld_status).
 
"SELECT single SEGNUM FROM EDIDD INTO @DATA(ld_segnum).
 
"SELECT single SEGNUM FROM EDIDD INTO @DATA(ld_segnum_end).
 
"SELECT single OBJECTID FROM OBJECTCONN INTO @DATA(ld_key).
 
"SELECT single MESTYP FROM EDIDC INTO @DATA(ld_mestyp).
 
"SELECT single SNDPRN FROM EDIDC INTO @DATA(ld_sndprn).
 


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!