SAP ISM_COPY_FUNCTION_CALL Function Module for IS-M/AM: Access Copying Functions









ISM_COPY_FUNCTION_CALL is a standard ism copy function call 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: Access Copying Functions 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 copy function call FM, simply by entering the name ISM_COPY_FUNCTION_CALL into the relevant SAP transaction such as SE37 or SE38.

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



Function ISM_COPY_FUNCTION_CALL 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_COPY_FUNCTION_CALL'"IS-M/AM: Access Copying Functions
EXPORTING
PT_AVM_ITEM = "IS-M/AM: Key Fields in JHAP
PV_XASKCOPYVARIANT = "IS-M: Query Copying Variant Indicator
PV_XWITHREFERENCE = "IS-M: Copy With Document Flow Indicator
* PV_XORDER_IN_CIC = "IS-M: Order Processing in the Customer Interaction Center

IMPORTING
PV_COPIED_AVM_NR = "

EXCEPTIONS
ERROR_OCCURED = 1 COPY_CANCEL = 2 MISSING_AUTHORITY = 3 ERROR_SOLD_TO_PARTY_CHANGE = 4
.



IMPORTING Parameters details for ISM_COPY_FUNCTION_CALL

PT_AVM_ITEM - IS-M/AM: Key Fields in JHAP

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

PV_XASKCOPYVARIANT - IS-M: Query Copying Variant Indicator

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

PV_XWITHREFERENCE - IS-M: Copy With Document Flow Indicator

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

PV_XORDER_IN_CIC - IS-M: Order Processing in the Customer Interaction Center

Data type: XORDER_IN_CIC
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for ISM_COPY_FUNCTION_CALL

PV_COPIED_AVM_NR -

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

EXCEPTIONS details

ERROR_OCCURED - Error while copying

Data type:
Optional: No
Call by Reference: Yes

COPY_CANCEL -

Data type:
Optional: No
Call by Reference: Yes

MISSING_AUTHORITY - No Authorization

Data type:
Optional: No
Call by Reference: Yes

ERROR_SOLD_TO_PARTY_CHANGE -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ISM_COPY_FUNCTION_CALL 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_pt_avm_item  TYPE JHAP_KEY_T, "   
lv_error_occured  TYPE JHAP_KEY_T, "   
lv_pv_copied_avm_nr  TYPE AVM_NR, "   
lv_copy_cancel  TYPE AVM_NR, "   
lv_pv_xaskcopyvariant  TYPE XASKCOPYVARIANT, "   
lv_missing_authority  TYPE XASKCOPYVARIANT, "   
lv_pv_xwithreference  TYPE XWITHREFERENCE, "   
lv_pv_xorder_in_cic  TYPE XORDER_IN_CIC, "   
lv_error_sold_to_party_change  TYPE XORDER_IN_CIC. "   

  CALL FUNCTION 'ISM_COPY_FUNCTION_CALL'  "IS-M/AM: Access Copying Functions
    EXPORTING
         PT_AVM_ITEM = lv_pt_avm_item
         PV_XASKCOPYVARIANT = lv_pv_xaskcopyvariant
         PV_XWITHREFERENCE = lv_pv_xwithreference
         PV_XORDER_IN_CIC = lv_pv_xorder_in_cic
    IMPORTING
         PV_COPIED_AVM_NR = lv_pv_copied_avm_nr
    EXCEPTIONS
        ERROR_OCCURED = 1
        COPY_CANCEL = 2
        MISSING_AUTHORITY = 3
        ERROR_SOLD_TO_PARTY_CHANGE = 4
. " ISM_COPY_FUNCTION_CALL




ABAP code using 7.40 inline data declarations to call FM ISM_COPY_FUNCTION_CALL

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.

 
 
 
 
 
 
 
 
 


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!