SAP ISM_SALES_ORDER_ARCHIVE Function Module for IS-M/SD: Read Order for Archiving with Check
ISM_SALES_ORDER_ARCHIVE is a standard ism sales order archive 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/SD: Read Order for Archiving with Check 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 ism sales order archive FM, simply by entering the name ISM_SALES_ORDER_ARCHIVE into the relevant SAP transaction such as SE37 or SE38.
Function Group: JKADK
Program Name: SAPLJKADK
Main Program: SAPLJKADK
Appliation area: J
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISM_SALES_ORDER_ARCHIVE 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 'ISM_SALES_ORDER_ARCHIVE'"IS-M/SD: Read Order for Archiving with Check.
EXPORTING
VBELN = "Order Number
POSEX = "Item Number
LIMITED = "
SELDAT = "End of selection
IMPORTING
YJKAK = "Order Header
TABLES
YJKAP = "Order Item
YJKPAUNV = "
YKONV = "Conditions
YJGTSADR = "Voucher Shipping Addresses
YJKAPRV = "
YJKAPCC = "Payment Card Data
YJNTRECH = "Research
YNAST = "Message status
YJKAP_INACTIVE = "
YJKEP = "Order Schedule Line
YJKKD = "
YJKKUEND = "Termination Data
YJKPA = "Partner Data
YJKPAZ = "Delivery Via.Assignments
YJKPROM = "
YJKGIFT = "
YJKCOMM = "
EXCEPTIONS
NO_DATA_FOUND = 1
IMPORTING Parameters details for ISM_SALES_ORDER_ARCHIVE
VBELN - Order Number
Data type: JKAK-VBELNOptional: No
Call by Reference: No ( called with pass by value option)
POSEX - Item Number
Data type: JKAP-POSEXOptional: No
Call by Reference: No ( called with pass by value option)
LIMITED -
Data type: JPSD_XFELDOptional: No
Call by Reference: No ( called with pass by value option)
SELDAT - End of selection
Data type: JKAP-GUELTIGBISOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ISM_SALES_ORDER_ARCHIVE
YJKAK - Order Header
Data type: JKAKOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ISM_SALES_ORDER_ARCHIVE
YJKAP - Order Item
Data type: JKAPOptional: No
Call by Reference: No ( called with pass by value option)
YJKPAUNV -
Data type: JKPAUNVOptional: No
Call by Reference: No ( called with pass by value option)
YKONV - Conditions
Data type: KONVOptional: No
Call by Reference: No ( called with pass by value option)
YJGTSADR - Voucher Shipping Addresses
Data type: JGTSADROptional: No
Call by Reference: No ( called with pass by value option)
YJKAPRV -
Data type: JKAPRVOptional: No
Call by Reference: No ( called with pass by value option)
YJKAPCC - Payment Card Data
Data type: JKAPCCOptional: No
Call by Reference: No ( called with pass by value option)
YJNTRECH - Research
Data type: JNTRECHOptional: No
Call by Reference: Yes
YNAST - Message status
Data type: NASTOptional: No
Call by Reference: Yes
YJKAP_INACTIVE -
Data type: JKAP_INACTIVEOptional: No
Call by Reference: Yes
YJKEP - Order Schedule Line
Data type: JKEPOptional: No
Call by Reference: No ( called with pass by value option)
YJKKD -
Data type: JKKDOptional: No
Call by Reference: No ( called with pass by value option)
YJKKUEND - Termination Data
Data type: JKKUENDOptional: No
Call by Reference: No ( called with pass by value option)
YJKPA - Partner Data
Data type: JKPAOptional: No
Call by Reference: No ( called with pass by value option)
YJKPAZ - Delivery Via.Assignments
Data type: JKPAZOptional: No
Call by Reference: No ( called with pass by value option)
YJKPROM -
Data type: JKPROMOptional: No
Call by Reference: No ( called with pass by value option)
YJKGIFT -
Data type: JKGIFTOptional: No
Call by Reference: No ( called with pass by value option)
YJKCOMM -
Data type: JKCOMMOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_DATA_FOUND - No data available
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ISM_SALES_ORDER_ARCHIVE 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_vbeln | TYPE JKAK-VBELN, " | |||
| lv_yjkak | TYPE JKAK, " | |||
| lt_yjkap | TYPE STANDARD TABLE OF JKAP, " | |||
| lv_no_data_found | TYPE JKAP, " | |||
| lt_yjkpaunv | TYPE STANDARD TABLE OF JKPAUNV, " | |||
| lt_ykonv | TYPE STANDARD TABLE OF KONV, " | |||
| lt_yjgtsadr | TYPE STANDARD TABLE OF JGTSADR, " | |||
| lt_yjkaprv | TYPE STANDARD TABLE OF JKAPRV, " | |||
| lt_yjkapcc | TYPE STANDARD TABLE OF JKAPCC, " | |||
| lt_yjntrech | TYPE STANDARD TABLE OF JNTRECH, " | |||
| lt_ynast | TYPE STANDARD TABLE OF NAST, " | |||
| lt_yjkap_inactive | TYPE STANDARD TABLE OF JKAP_INACTIVE, " | |||
| lv_posex | TYPE JKAP-POSEX, " | |||
| lt_yjkep | TYPE STANDARD TABLE OF JKEP, " | |||
| lt_yjkkd | TYPE STANDARD TABLE OF JKKD, " | |||
| lv_limited | TYPE JPSD_XFELD, " | |||
| lv_seldat | TYPE JKAP-GUELTIGBIS, " | |||
| lt_yjkkuend | TYPE STANDARD TABLE OF JKKUEND, " | |||
| lt_yjkpa | TYPE STANDARD TABLE OF JKPA, " | |||
| lt_yjkpaz | TYPE STANDARD TABLE OF JKPAZ, " | |||
| lt_yjkprom | TYPE STANDARD TABLE OF JKPROM, " | |||
| lt_yjkgift | TYPE STANDARD TABLE OF JKGIFT, " | |||
| lt_yjkcomm | TYPE STANDARD TABLE OF JKCOMM. " |
|   CALL FUNCTION 'ISM_SALES_ORDER_ARCHIVE' "IS-M/SD: Read Order for Archiving with Check |
| EXPORTING | ||
| VBELN | = lv_vbeln | |
| POSEX | = lv_posex | |
| LIMITED | = lv_limited | |
| SELDAT | = lv_seldat | |
| IMPORTING | ||
| YJKAK | = lv_yjkak | |
| TABLES | ||
| YJKAP | = lt_yjkap | |
| YJKPAUNV | = lt_yjkpaunv | |
| YKONV | = lt_ykonv | |
| YJGTSADR | = lt_yjgtsadr | |
| YJKAPRV | = lt_yjkaprv | |
| YJKAPCC | = lt_yjkapcc | |
| YJNTRECH | = lt_yjntrech | |
| YNAST | = lt_ynast | |
| YJKAP_INACTIVE | = lt_yjkap_inactive | |
| YJKEP | = lt_yjkep | |
| YJKKD | = lt_yjkkd | |
| YJKKUEND | = lt_yjkkuend | |
| YJKPA | = lt_yjkpa | |
| YJKPAZ | = lt_yjkpaz | |
| YJKPROM | = lt_yjkprom | |
| YJKGIFT | = lt_yjkgift | |
| YJKCOMM | = lt_yjkcomm | |
| EXCEPTIONS | ||
| NO_DATA_FOUND = 1 | ||
| . " ISM_SALES_ORDER_ARCHIVE | ||
ABAP code using 7.40 inline data declarations to call FM ISM_SALES_ORDER_ARCHIVE
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 VBELN FROM JKAK INTO @DATA(ld_vbeln). | ||||
| "SELECT single POSEX FROM JKAP INTO @DATA(ld_posex). | ||||
| "SELECT single GUELTIGBIS FROM JKAP INTO @DATA(ld_seldat). | ||||
Search for further information about these or an SAP related objects