SAP ISM_COA_ASS_INFO_FOR_COA Function Module for IS-M: Information About Assignments to a Contract









ISM_COA_ASS_INFO_FOR_COA is a standard ism coa ass info for coa 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: Information About Assignments to a Contract 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 info for coa FM, simply by entering the name ISM_COA_ASS_INFO_FOR_COA 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:



Function ISM_COA_ASS_INFO_FOR_COA 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_INFO_FOR_COA'"IS-M: Information About Assignments to a Contract
EXPORTING
PS_COA = "Contract
* PV_LFZBEG = "Validity Start
* PV_LFZEND = '99991231' "Validity Period End

IMPORTING
PV_NUM_ASS_ANY = "
PV_FLG_ASS_ANY = "
PV_FLG_ASS_OTHER_BP = "
PV_FLG_ASS_AGEN = "
PT_ASS = "Contract Assignments

CHANGING
* PS_HEAD = "

TABLES
* PT_PART = "
.




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_INFO_FOR_COA

PS_COA - Contract

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

PV_LFZBEG - Validity Start

Data type: JHTVKO-LFZBEG
Optional: Yes
Call by Reference: Yes

PV_LFZEND - Validity Period End

Data type: JHTVKO-LFZEND
Default: '99991231'
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for ISM_COA_ASS_INFO_FOR_COA

PV_NUM_ASS_ANY -

Data type: SY-DBCNT
Optional: No
Call by Reference: Yes

PV_FLG_ASS_ANY -

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

PV_FLG_ASS_OTHER_BP -

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

PV_FLG_ASS_AGEN -

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

PT_ASS - Contract Assignments

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

CHANGING Parameters details for ISM_COA_ASS_INFO_FOR_COA

PS_HEAD -

Data type: JHW1_COA_STR-COA
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for ISM_COA_ASS_INFO_FOR_COA

PT_PART -

Data type: MSGPA
Optional: Yes
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for ISM_COA_ASS_INFO_FOR_COA 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_coa  TYPE JHW1_COA_STR, "   
lv_ps_head  TYPE JHW1_COA_STR-COA, "   
lt_pt_part  TYPE STANDARD TABLE OF MSGPA, "   
lv_pv_num_ass_any  TYPE SY-DBCNT, "   
lv_pv_lfzbeg  TYPE JHTVKO-LFZBEG, "   
lv_pv_flg_ass_any  TYPE JPAM_XFELD_VAR, "   
lv_pv_lfzend  TYPE JHTVKO-LFZEND, "   '99991231'
lv_pv_flg_ass_other_bp  TYPE JPAM_XFELD_VAR, "   
lv_pv_flg_ass_agen  TYPE JPAM_XFELD_VAR, "   
lv_pt_ass  TYPE JHW1_ASS_TAB. "   

  CALL FUNCTION 'ISM_COA_ASS_INFO_FOR_COA'  "IS-M: Information About Assignments to a Contract
    EXPORTING
         PS_COA = lv_ps_coa
         PV_LFZBEG = lv_pv_lfzbeg
         PV_LFZEND = lv_pv_lfzend
    IMPORTING
         PV_NUM_ASS_ANY = lv_pv_num_ass_any
         PV_FLG_ASS_ANY = lv_pv_flg_ass_any
         PV_FLG_ASS_OTHER_BP = lv_pv_flg_ass_other_bp
         PV_FLG_ASS_AGEN = lv_pv_flg_ass_agen
         PT_ASS = lv_pt_ass
    CHANGING
         PS_HEAD = lv_ps_head
    TABLES
         PT_PART = lt_pt_part
. " ISM_COA_ASS_INFO_FOR_COA




ABAP code using 7.40 inline data declarations to call FM ISM_COA_ASS_INFO_FOR_COA

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 COA FROM JHW1_COA_STR INTO @DATA(ld_ps_head).
 
 
"SELECT single DBCNT FROM SY INTO @DATA(ld_pv_num_ass_any).
 
"SELECT single LFZBEG FROM JHTVKO INTO @DATA(ld_pv_lfzbeg).
 
 
"SELECT single LFZEND FROM JHTVKO INTO @DATA(ld_pv_lfzend).
DATA(ld_pv_lfzend) = '99991231'.
 
 
 
 


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!