SAP ISM_COA_ASS_BASIS_SET Function Module for IS-M: Transfer Contract Gross from Document Pric.Procedure to Assignment









ISM_COA_ASS_BASIS_SET is a standard ism coa ass basis set 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: Transfer Contract Gross from Document Pric.Procedure to Assignment 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 basis set FM, simply by entering the name ISM_COA_ASS_BASIS_SET 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_BASIS_SET 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_BASIS_SET'"IS-M: Transfer Contract Gross from Document Pric.Procedure to Assignment
EXPORTING
PT_KOMV = "Document Procedure
PV_KALSM = "
PV_VBTYP = "
PV_KNUMV = "Document Number
* PV_KPOSN = "Document Item
PV_AVM_NR = "Order
PV_POS_NR = "Item
PV_GRUPPABRNR = "Billing Dataset
PV_PSTYV = "Item Category
PV_WAERK = "Document Currency for Order
PV_FKDAT = "

IMPORTING
PV_AB_BRUTTO = "Contract Gross
PV_KB_BRUTTO = "

EXCEPTIONS
NO_ASSIGNMENT = 1 CONVERSION_FAILED = 2 NO_BASIS_FOUND = 3
.




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_BASIS_SET

PT_KOMV - Document Procedure

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

PV_KALSM -

Data type: KOMK-KALSM
Optional: No
Call by Reference: Yes

PV_VBTYP -

Data type: KOMK-VBTYP
Optional: No
Call by Reference: Yes

PV_KNUMV - Document Number

Data type: KOMK-KNUMV
Optional: No
Call by Reference: Yes

PV_KPOSN - Document Item

Data type: KOMP-KPOSN
Optional: Yes
Call by Reference: Yes

PV_AVM_NR - Order

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

PV_POS_NR - Item

Data type: JHTVABRUF-POS_NR
Optional: No
Call by Reference: Yes

PV_GRUPPABRNR - Billing Dataset

Data type: JHTVABRUF-GRUPPABRNR
Optional: No
Call by Reference: Yes

PV_PSTYV - Item Category

Data type: JHTVABRUF-PSTYV
Optional: No
Call by Reference: Yes

PV_WAERK - Document Currency for Order

Data type: KOMK-WAERK
Optional: No
Call by Reference: Yes

PV_FKDAT -

Data type: KOMK-FKDAT
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for ISM_COA_ASS_BASIS_SET

PV_AB_BRUTTO - Contract Gross

Data type: JHTVABRUF-AB_BRUTTO
Optional: No
Call by Reference: Yes

PV_KB_BRUTTO -

Data type: JHTVABRUF-AB_BRUTTO
Optional: No
Call by Reference: Yes

EXCEPTIONS details

NO_ASSIGNMENT -

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

CONVERSION_FAILED - Currency Translation Failed

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

NO_BASIS_FOUND -

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

Copy and paste ABAP code example for ISM_COA_ASS_BASIS_SET 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_komv  TYPE JHF1_XKOMV_TAB, "   
lv_pv_ab_brutto  TYPE JHTVABRUF-AB_BRUTTO, "   
lv_no_assignment  TYPE JHTVABRUF, "   
lv_pv_kalsm  TYPE KOMK-KALSM, "   
lv_pv_vbtyp  TYPE KOMK-VBTYP, "   
lv_pv_knumv  TYPE KOMK-KNUMV, "   
lv_pv_kb_brutto  TYPE JHTVABRUF-AB_BRUTTO, "   
lv_conversion_failed  TYPE JHTVABRUF, "   
lv_pv_kposn  TYPE KOMP-KPOSN, "   
lv_no_basis_found  TYPE KOMP, "   
lv_pv_avm_nr  TYPE JHTVABRUF-AVM_NR, "   
lv_pv_pos_nr  TYPE JHTVABRUF-POS_NR, "   
lv_pv_gruppabrnr  TYPE JHTVABRUF-GRUPPABRNR, "   
lv_pv_pstyv  TYPE JHTVABRUF-PSTYV, "   
lv_pv_waerk  TYPE KOMK-WAERK, "   
lv_pv_fkdat  TYPE KOMK-FKDAT. "   

  CALL FUNCTION 'ISM_COA_ASS_BASIS_SET'  "IS-M: Transfer Contract Gross from Document Pric.Procedure to Assignment
    EXPORTING
         PT_KOMV = lv_pt_komv
         PV_KALSM = lv_pv_kalsm
         PV_VBTYP = lv_pv_vbtyp
         PV_KNUMV = lv_pv_knumv
         PV_KPOSN = lv_pv_kposn
         PV_AVM_NR = lv_pv_avm_nr
         PV_POS_NR = lv_pv_pos_nr
         PV_GRUPPABRNR = lv_pv_gruppabrnr
         PV_PSTYV = lv_pv_pstyv
         PV_WAERK = lv_pv_waerk
         PV_FKDAT = lv_pv_fkdat
    IMPORTING
         PV_AB_BRUTTO = lv_pv_ab_brutto
         PV_KB_BRUTTO = lv_pv_kb_brutto
    EXCEPTIONS
        NO_ASSIGNMENT = 1
        CONVERSION_FAILED = 2
        NO_BASIS_FOUND = 3
. " ISM_COA_ASS_BASIS_SET




ABAP code using 7.40 inline data declarations to call FM ISM_COA_ASS_BASIS_SET

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 AB_BRUTTO FROM JHTVABRUF INTO @DATA(ld_pv_ab_brutto).
 
 
"SELECT single KALSM FROM KOMK INTO @DATA(ld_pv_kalsm).
 
"SELECT single VBTYP FROM KOMK INTO @DATA(ld_pv_vbtyp).
 
"SELECT single KNUMV FROM KOMK INTO @DATA(ld_pv_knumv).
 
"SELECT single AB_BRUTTO FROM JHTVABRUF INTO @DATA(ld_pv_kb_brutto).
 
 
"SELECT single KPOSN FROM KOMP INTO @DATA(ld_pv_kposn).
 
 
"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_gruppabrnr).
 
"SELECT single PSTYV FROM JHTVABRUF INTO @DATA(ld_pv_pstyv).
 
"SELECT single WAERK FROM KOMK INTO @DATA(ld_pv_waerk).
 
"SELECT single FKDAT FROM KOMK INTO @DATA(ld_pv_fkdat).
 


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!