SAP ISMAM_ORDER_HEADER_MAINTAIN Function Module for IS-M/AM: Maintain Sales Document Header









ISMAM_ORDER_HEADER_MAINTAIN is a standard ismam order header maintain 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: Maintain Sales Document Header 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 header maintain FM, simply by entering the name ISMAM_ORDER_HEADER_MAINTAIN into the relevant SAP transaction such as SE37 or SE38.

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



Function ISMAM_ORDER_HEADER_MAINTAIN 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_HEADER_MAINTAIN'"IS-M/AM: Maintain Sales Document Header
EXPORTING
* PV_TESTRUN = "Switch to Simulation Mode for Write BAPIs
* PS_RJHAORDER_OLD = "

CHANGING
PS_RJHAORDER = "
PS_RJHAORDERX = "IS-M/AM: Change Information for Sales Document
PS_RJHAORDER_TMP = "IS-M/AM: Order Objects with Temporary Numbers
PS_RJHAORDERX_TMP = "IS-M/AM: Change Information for Order Objects with Temp.No.
PS_RJHAORDER_TMP_KEY = "IS-M: Significance of Temporary Key in Order Objects
* PV_AVM_NR_INTERNAL = "
* PT_RETURN = "Return Table
.



IMPORTING Parameters details for ISMAM_ORDER_HEADER_MAINTAIN

PV_TESTRUN - Switch to Simulation Mode for Write BAPIs

Data type: BAPI_VBKA_MISC-TESTRUN
Optional: Yes
Call by Reference: Yes

PS_RJHAORDER_OLD -

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

CHANGING Parameters details for ISMAM_ORDER_HEADER_MAINTAIN

PS_RJHAORDER -

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

PS_RJHAORDERX - IS-M/AM: Change Information for Sales Document

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

PS_RJHAORDER_TMP - IS-M/AM: Order Objects with Temporary Numbers

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

PS_RJHAORDERX_TMP - IS-M/AM: Change Information for Order Objects with Temp.No.

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

PS_RJHAORDER_TMP_KEY - IS-M: Significance of Temporary Key in Order Objects

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

PV_AVM_NR_INTERNAL -

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

PT_RETURN - Return Table

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

Copy and paste ABAP code example for ISMAM_ORDER_HEADER_MAINTAIN 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_testrun  TYPE BAPI_VBKA_MISC-TESTRUN, "   
lv_ps_rjhaorder  TYPE RJHAORDER_STR, "   
lv_ps_rjhaorderx  TYPE RJHAORDERX_STR, "   
lv_ps_rjhaorder_old  TYPE RJHAORDER_STR, "   
lv_ps_rjhaorder_tmp  TYPE RJHAORDER_TMP_STR, "   
lv_ps_rjhaorderx_tmp  TYPE RJHAORDERX_TMP_STR, "   
lv_ps_rjhaorder_tmp_key  TYPE RJHAORDER_TMP_KEY_STR, "   
lv_pv_avm_nr_internal  TYPE AVM_NR, "   
lv_pt_return  TYPE BAPIRET2_T. "   

  CALL FUNCTION 'ISMAM_ORDER_HEADER_MAINTAIN'  "IS-M/AM: Maintain Sales Document Header
    EXPORTING
         PV_TESTRUN = lv_pv_testrun
         PS_RJHAORDER_OLD = lv_ps_rjhaorder_old
    CHANGING
         PS_RJHAORDER = lv_ps_rjhaorder
         PS_RJHAORDERX = lv_ps_rjhaorderx
         PS_RJHAORDER_TMP = lv_ps_rjhaorder_tmp
         PS_RJHAORDERX_TMP = lv_ps_rjhaorderx_tmp
         PS_RJHAORDER_TMP_KEY = lv_ps_rjhaorder_tmp_key
         PV_AVM_NR_INTERNAL = lv_pv_avm_nr_internal
         PT_RETURN = lv_pt_return
. " ISMAM_ORDER_HEADER_MAINTAIN




ABAP code using 7.40 inline data declarations to call FM ISMAM_ORDER_HEADER_MAINTAIN

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 TESTRUN FROM BAPI_VBKA_MISC INTO @DATA(ld_pv_testrun).
 
 
 
 
 
 
 
 
 


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!