SAP ISM_OLPRODORDER_CANCEL Function Module for IS-M/AM Accesses the TS and Rejects All Changes to Curr.Online Prod.Order
ISM_OLPRODORDER_CANCEL is a standard ism olprodorder cancel 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 Accesses the TS and Rejects All Changes to Curr.Online Prod.Order 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 olprodorder cancel FM, simply by entering the name ISM_OLPRODORDER_CANCEL into the relevant SAP transaction such as SE37 or SE38.
Function Group: JHTO
Program Name: SAPLJHTO
Main Program: SAPLJHTO
Appliation area:
Release date: 06-Dec-2002
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function ISM_OLPRODORDER_CANCEL 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_OLPRODORDER_CANCEL'"IS-M/AM Accesses the TS and Rejects All Changes to Curr.Online Prod.Order.
EXPORTING
PS_RJHATKO = "IS-M/AM: Online Header Data for Technical System
PV_BACK_TO_AENVERS_NR_OL = "IS-M: Last Change Version for Technical System
TABLES
PT_RJHATPO = "IS-M/AM: Online Item for Technical System
PT_RJHATMOTO = "IS-M/AM: Online Ad Spec for Technical System
PT_RJHATEO = "IS-M/AM: Online Schedule Line in Technical System
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_SAPLJHTO_001 IS-M/AM: Fill Transfer Structures for Online Technical System
EXIT_SAPLJHTO_002 IS-M/AM: Read Transfer Structures from Online Technical System
EXIT_SAPLJHTO_003 IS-M/AM: Evaluate Return from Online Positioning System
IMPORTING Parameters details for ISM_OLPRODORDER_CANCEL
PS_RJHATKO - IS-M/AM: Online Header Data for Technical System
Data type: RJHATKOOptional: No
Call by Reference: No ( called with pass by value option)
PV_BACK_TO_AENVERS_NR_OL - IS-M: Last Change Version for Technical System
Data type: RJHAK-YAENVER_NROptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ISM_OLPRODORDER_CANCEL
PT_RJHATPO - IS-M/AM: Online Item for Technical System
Data type: RJHATPOOptional: No
Call by Reference: Yes
PT_RJHATMOTO - IS-M/AM: Online Ad Spec for Technical System
Data type: RJHATMOTOOptional: No
Call by Reference: Yes
PT_RJHATEO - IS-M/AM: Online Schedule Line in Technical System
Data type: RJHATEOOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for ISM_OLPRODORDER_CANCEL 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_ps_rjhatko | TYPE RJHATKO, " | |||
| lt_pt_rjhatpo | TYPE STANDARD TABLE OF RJHATPO, " | |||
| lt_pt_rjhatmoto | TYPE STANDARD TABLE OF RJHATMOTO, " | |||
| lv_pv_back_to_aenvers_nr_ol | TYPE RJHAK-YAENVER_NR, " | |||
| lt_pt_rjhateo | TYPE STANDARD TABLE OF RJHATEO. " |
|   CALL FUNCTION 'ISM_OLPRODORDER_CANCEL' "IS-M/AM Accesses the TS and Rejects All Changes to Curr.Online Prod.Order |
| EXPORTING | ||
| PS_RJHATKO | = lv_ps_rjhatko | |
| PV_BACK_TO_AENVERS_NR_OL | = lv_pv_back_to_aenvers_nr_ol | |
| TABLES | ||
| PT_RJHATPO | = lt_pt_rjhatpo | |
| PT_RJHATMOTO | = lt_pt_rjhatmoto | |
| PT_RJHATEO | = lt_pt_rjhateo | |
| . " ISM_OLPRODORDER_CANCEL | ||
ABAP code using 7.40 inline data declarations to call FM ISM_OLPRODORDER_CANCEL
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 YAENVER_NR FROM RJHAK INTO @DATA(ld_pv_back_to_aenvers_nr_ol). | ||||
Search for further information about these or an SAP related objects