SAP ISPAM_GET_SI2POS Function Module for IS-M/AM: Read AI Assigned to OPM Item









ISPAM_GET_SI2POS is a standard ispam get si2pos SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for IS-M/AM: Read AI Assigned to OPM Item 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 ispam get si2pos FM, simply by entering the name ISPAM_GET_SI2POS into the relevant SAP transaction such as SE37 or SE38.

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



Function ISPAM_GET_SI2POS 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 'ISPAM_GET_SI2POS'"IS-M/AM: Read AI Assigned to OPM Item
EXPORTING
AVM_NR = "
POS_NR = "

IMPORTING
SIZ_ITAB = "
SI_POS = "

EXCEPTIONS
NOT_FOUND = 1 SI_POS_NOT_FOUND = 2
.




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_SAPLJHA3_001 IS-M/AM: User Exit for Filling Append Structure for AI Order Element
EXIT_SAPLJHA3_211 IS-M/AM: AI Copy Schedule Lines to New Date
EXIT_SAPLJHA3_212 IS-M/AM: DT Copy Schedule Lines to New Date

IMPORTING Parameters details for ISPAM_GET_SI2POS

AVM_NR -

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

POS_NR -

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

EXPORTING Parameters details for ISPAM_GET_SI2POS

SIZ_ITAB -

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

SI_POS -

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

EXCEPTIONS details

NOT_FOUND -

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

SI_POS_NOT_FOUND -

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

Copy and paste ABAP code example for ISPAM_GET_SI2POS 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_avm_nr  TYPE JHAP-AVM_NR, "   
lv_siz_itab  TYPE JHA1_RJHASIZ_TAB, "   
lv_not_found  TYPE JHA1_RJHASIZ_TAB, "   
lv_pos_nr  TYPE JHAP-POS_NR, "   
lv_si_pos  TYPE JDTVAUSGB, "   
lv_si_pos_not_found  TYPE JDTVAUSGB. "   

  CALL FUNCTION 'ISPAM_GET_SI2POS'  "IS-M/AM: Read AI Assigned to OPM Item
    EXPORTING
         AVM_NR = lv_avm_nr
         POS_NR = lv_pos_nr
    IMPORTING
         SIZ_ITAB = lv_siz_itab
         SI_POS = lv_si_pos
    EXCEPTIONS
        NOT_FOUND = 1
        SI_POS_NOT_FOUND = 2
. " ISPAM_GET_SI2POS




ABAP code using 7.40 inline data declarations to call FM ISPAM_GET_SI2POS

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 AVM_NR FROM JHAP INTO @DATA(ld_avm_nr).
 
 
 
"SELECT single POS_NR FROM JHAP INTO @DATA(ld_pos_nr).
 
 
 


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!