SAP ISM_COA_ASS_CALL Function Module for IS-M: Access Contract Assignments Dialog
ISM_COA_ASS_CALL is a standard ism coa ass 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: Access Contract Assignments Dialog 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 coa ass call FM, simply by entering the name ISM_COA_ASS_CALL into the relevant SAP transaction such as SE37 or SE38.
Function Group: JHWA2
Program Name: SAPLJHWA2
Main Program: SAPLJHWA2
Appliation area: J
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
![](https://www.se80.co.uk/training-education/wp-content/uploads/2019/07/normal-function-module.png)
Function ISM_COA_ASS_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_COA_ASS_CALL'"IS-M: Access Contract Assignments Dialog.
EXPORTING
PS_TJ180 = "
* PT_ASS = "
* PT_XASS = "
* PV_MSGID = "Messages, Message Class
* PV_MSGNO = "Messages, Message Number
* PV_CB_PROGRAM = "Program used for return
* PV_CB_MARK = "Module to be called up with return (F3)
* PV_TRTYP_FCODE = "
* PV_AVM_NR = "
* PV_POS_NR = "
* PV_GRF_NR = "
* PV_AGEN = "
* PV_INSE = "
* PV_PROD = "
* PV_POSNR = "
CHANGING
PS_T185F = "
PS_T185 = "
PS_T185V = "
* PS_COA = "Contract
PV_FLG_UPDATE = "Has the Data Changed?
EXCEPTIONS
NO_CHANGES = 1
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_SAPLJHWA2_001 IS-M: Customer-Specific Fields in Assignment Overview
EXIT_SAPLJHWA2_002 IS-M: Fill Dynamic Part for View JHVGAV
IMPORTING Parameters details for ISM_COA_ASS_CALL
PS_TJ180 -
Data type: TJ180Optional: No
Call by Reference: Yes
PT_ASS -
Data type: JHW1_ASS_TABOptional: Yes
Call by Reference: Yes
PT_XASS -
Data type: JHW1_ASS_TABOptional: Yes
Call by Reference: Yes
PV_MSGID - Messages, Message Class
Data type: SY-MSGIDOptional: Yes
Call by Reference: Yes
PV_MSGNO - Messages, Message Number
Data type: SY-MSGNOOptional: Yes
Call by Reference: Yes
PV_CB_PROGRAM - Program used for return
Data type: T185-BPROGOptional: Yes
Call by Reference: Yes
PV_CB_MARK - Module to be called up with return (F3)
Data type: T185-BMODULOptional: Yes
Call by Reference: Yes
PV_TRTYP_FCODE -
Data type: TJ180-TRTYPOptional: Yes
Call by Reference: Yes
PV_AVM_NR -
Data type: JHTVABRUF-AVM_NROptional: Yes
Call by Reference: Yes
PV_POS_NR -
Data type: JHTVABRUF-POS_NROptional: Yes
Call by Reference: Yes
PV_GRF_NR -
Data type: JHTVABRUF-GRUPPABRNROptional: Yes
Call by Reference: Yes
PV_AGEN -
Data type: JHTVABRUF-AGENTUROptional: Yes
Call by Reference: Yes
PV_INSE -
Data type: JHTVABRUF-INSERENTOptional: Yes
Call by Reference: Yes
PV_PROD -
Data type: JHTVABRUF-PRODHOptional: Yes
Call by Reference: Yes
PV_POSNR -
Data type: JHTVABRUF-POSNROptional: Yes
Call by Reference: Yes
CHANGING Parameters details for ISM_COA_ASS_CALL
PS_T185F -
Data type: T185FOptional: No
Call by Reference: Yes
PS_T185 -
Data type: T185Optional: No
Call by Reference: Yes
PS_T185V -
Data type: T185VOptional: No
Call by Reference: Yes
PS_COA - Contract
Data type: JHW1_COA_STROptional: Yes
Call by Reference: Yes
PV_FLG_UPDATE - Has the Data Changed?
Data type: JPAM_XFELD_VAROptional: No
Call by Reference: Yes
EXCEPTIONS details
NO_CHANGES - No changes have been made
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ISM_COA_ASS_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_ps_t185f | TYPE T185F, " | |||
lv_ps_tj180 | TYPE TJ180, " | |||
lv_no_changes | TYPE TJ180, " | |||
lv_pt_ass | TYPE JHW1_ASS_TAB, " | |||
lv_pt_xass | TYPE JHW1_ASS_TAB, " | |||
lv_pv_msgid | TYPE SY-MSGID, " | |||
lv_pv_msgno | TYPE SY-MSGNO, " | |||
lv_pv_cb_program | TYPE T185-BPROG, " | |||
lv_pv_cb_mark | TYPE T185-BMODUL, " | |||
lv_ps_t185 | TYPE T185, " | |||
lv_pv_trtyp_fcode | TYPE TJ180-TRTYP, " | |||
lv_ps_t185v | TYPE T185V, " | |||
lv_pv_avm_nr | TYPE JHTVABRUF-AVM_NR, " | |||
lv_ps_coa | TYPE JHW1_COA_STR, " | |||
lv_pv_pos_nr | TYPE JHTVABRUF-POS_NR, " | |||
lv_pv_grf_nr | TYPE JHTVABRUF-GRUPPABRNR, " | |||
lv_pv_flg_update | TYPE JPAM_XFELD_VAR, " | |||
lv_pv_agen | TYPE JHTVABRUF-AGENTUR, " | |||
lv_pv_inse | TYPE JHTVABRUF-INSERENT, " | |||
lv_pv_prod | TYPE JHTVABRUF-PRODH, " | |||
lv_pv_posnr | TYPE JHTVABRUF-POSNR. " |
  CALL FUNCTION 'ISM_COA_ASS_CALL' "IS-M: Access Contract Assignments Dialog |
EXPORTING | ||
PS_TJ180 | = lv_ps_tj180 | |
PT_ASS | = lv_pt_ass | |
PT_XASS | = lv_pt_xass | |
PV_MSGID | = lv_pv_msgid | |
PV_MSGNO | = lv_pv_msgno | |
PV_CB_PROGRAM | = lv_pv_cb_program | |
PV_CB_MARK | = lv_pv_cb_mark | |
PV_TRTYP_FCODE | = lv_pv_trtyp_fcode | |
PV_AVM_NR | = lv_pv_avm_nr | |
PV_POS_NR | = lv_pv_pos_nr | |
PV_GRF_NR | = lv_pv_grf_nr | |
PV_AGEN | = lv_pv_agen | |
PV_INSE | = lv_pv_inse | |
PV_PROD | = lv_pv_prod | |
PV_POSNR | = lv_pv_posnr | |
CHANGING | ||
PS_T185F | = lv_ps_t185f | |
PS_T185 | = lv_ps_t185 | |
PS_T185V | = lv_ps_t185v | |
PS_COA | = lv_ps_coa | |
PV_FLG_UPDATE | = lv_pv_flg_update | |
EXCEPTIONS | ||
NO_CHANGES = 1 | ||
. " ISM_COA_ASS_CALL |
ABAP code using 7.40 inline data declarations to call FM ISM_COA_ASS_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."SELECT single MSGID FROM SY INTO @DATA(ld_pv_msgid). | ||||
"SELECT single MSGNO FROM SY INTO @DATA(ld_pv_msgno). | ||||
"SELECT single BPROG FROM T185 INTO @DATA(ld_pv_cb_program). | ||||
"SELECT single BMODUL FROM T185 INTO @DATA(ld_pv_cb_mark). | ||||
"SELECT single TRTYP FROM TJ180 INTO @DATA(ld_pv_trtyp_fcode). | ||||
"SELECT single AVM_NR FROM JHTVABRUF INTO @DATA(ld_pv_avm_nr). | ||||
"SELECT single POS_NR FROM JHTVABRUF INTO @DATA(ld_pv_pos_nr). | ||||
"SELECT single GRUPPABRNR FROM JHTVABRUF INTO @DATA(ld_pv_grf_nr). | ||||
"SELECT single AGENTUR FROM JHTVABRUF INTO @DATA(ld_pv_agen). | ||||
"SELECT single INSERENT FROM JHTVABRUF INTO @DATA(ld_pv_inse). | ||||
"SELECT single PRODH FROM JHTVABRUF INTO @DATA(ld_pv_prod). | ||||
"SELECT single POSNR FROM JHTVABRUF INTO @DATA(ld_pv_posnr). | ||||
Search for further information about these or an SAP related objects