SAP ISMAM_ORDER_READ Function Module for IS-M/AM: Read Order (Complex Order Structure)
ISMAM_ORDER_READ is a standard ismam order 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 IS-M/AM: Read Order (Complex Order Structure) 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 ismam order read FM, simply by entering the name ISMAM_ORDER_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: JHA1
Program Name: SAPLJHA1
Main Program: SAPLJHA1
Appliation area: J
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISMAM_ORDER_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 'ISMAM_ORDER_READ'"IS-M/AM: Read Order (Complex Order Structure).
EXPORTING
PV_AVM_NR = "IS-M: Order
* PV_AVM_ACTUALIZE = 'X' "
* PV_FILL_GLOBAL_MEMORY = 'X' "
* PV_CLEAR_TABLES = 'X' "
* PV_FLG_DIALOG = 'X' "
* PV_CALLER = "IS-M: Order updater - Initiator
* PV_EVENT = "IS-M: Order Updater - Event
* PV_XNO_OUTPUT = "IS-M: Do not perform output determination
* PS_RJHAVMREAD = "IS-M/AM: Tables not to be Read From ISP_AVM_READ
IMPORTING
PS_RJHAORDER = "
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_SAPLJHA14_001 IS-M: Payment Relevance for FD Update
EXIT_SAPLJHA1_001 IS-M/AM: Transfer Order During Update
EXIT_SAPLJHA1_002 IS-M/AM: Order; Output Control; Fields
EXIT_SAPLJHA1_003 IS-M/AM: Order with Revenue Objects Prior to Update (Read)
EXIT_SAPLJHA1_004 IS-M: Import an Order
EXIT_SAPLJHA1_005 IS-M: Initialize Order Memory
EXIT_SAPLJHA1_006 IS-M/AM: Check Order Prior to Update
IMPORTING Parameters details for ISMAM_ORDER_READ
PV_AVM_NR - IS-M: Order
Data type: JHAK-AVM_NROptional: No
Call by Reference: Yes
PV_AVM_ACTUALIZE -
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: Yes
PV_FILL_GLOBAL_MEMORY -
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PV_CLEAR_TABLES -
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PV_FLG_DIALOG -
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PV_CALLER - IS-M: Order updater - Initiator
Data type: TJHAVMUPD-AVMUPD_CALOptional: Yes
Call by Reference: No ( called with pass by value option)
PV_EVENT - IS-M: Order Updater - Event
Data type: TJHAVMUPD-AVMUPD_EVNOptional: Yes
Call by Reference: No ( called with pass by value option)
PV_XNO_OUTPUT - IS-M: Do not perform output determination
Data type: XNO_OUTPUTOptional: Yes
Call by Reference: Yes
PS_RJHAVMREAD - IS-M/AM: Tables not to be Read From ISP_AVM_READ
Data type: RJHAVMREADOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for ISMAM_ORDER_READ
PS_RJHAORDER -
Data type: JHA1_RJHAORDER_STROptional: No
Call by Reference: Yes
Copy and paste ABAP code example for ISMAM_ORDER_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_pv_avm_nr | TYPE JHAK-AVM_NR, " | |||
| lv_ps_rjhaorder | TYPE JHA1_RJHAORDER_STR, " | |||
| lv_pv_avm_actualize | TYPE XFELD, " 'X' | |||
| lv_pv_fill_global_memory | TYPE XFELD, " 'X' | |||
| lv_pv_clear_tables | TYPE XFELD, " 'X' | |||
| lv_pv_flg_dialog | TYPE XFELD, " 'X' | |||
| lv_pv_caller | TYPE TJHAVMUPD-AVMUPD_CAL, " | |||
| lv_pv_event | TYPE TJHAVMUPD-AVMUPD_EVN, " | |||
| lv_pv_xno_output | TYPE XNO_OUTPUT, " | |||
| lv_ps_rjhavmread | TYPE RJHAVMREAD. " |
|   CALL FUNCTION 'ISMAM_ORDER_READ' "IS-M/AM: Read Order (Complex Order Structure) |
| EXPORTING | ||
| PV_AVM_NR | = lv_pv_avm_nr | |
| PV_AVM_ACTUALIZE | = lv_pv_avm_actualize | |
| PV_FILL_GLOBAL_MEMORY | = lv_pv_fill_global_memory | |
| PV_CLEAR_TABLES | = lv_pv_clear_tables | |
| PV_FLG_DIALOG | = lv_pv_flg_dialog | |
| PV_CALLER | = lv_pv_caller | |
| PV_EVENT | = lv_pv_event | |
| PV_XNO_OUTPUT | = lv_pv_xno_output | |
| PS_RJHAVMREAD | = lv_ps_rjhavmread | |
| IMPORTING | ||
| PS_RJHAORDER | = lv_ps_rjhaorder | |
| . " ISMAM_ORDER_READ | ||
ABAP code using 7.40 inline data declarations to call FM ISMAM_ORDER_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 AVM_NR FROM JHAK INTO @DATA(ld_pv_avm_nr). | ||||
| DATA(ld_pv_avm_actualize) | = 'X'. | |||
| DATA(ld_pv_fill_global_memory) | = 'X'. | |||
| DATA(ld_pv_clear_tables) | = 'X'. | |||
| DATA(ld_pv_flg_dialog) | = 'X'. | |||
| "SELECT single AVMUPD_CAL FROM TJHAVMUPD INTO @DATA(ld_pv_caller). | ||||
| "SELECT single AVMUPD_EVN FROM TJHAVMUPD INTO @DATA(ld_pv_event). | ||||
Search for further information about these or an SAP related objects