SAP ISH_DISTRIBUTE_CHANGE_PLAN_VAL Function Module for









ISH_DISTRIBUTE_CHANGE_PLAN_VAL is a standard ish distribute change plan val SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 ish distribute change plan val FM, simply by entering the name ISH_DISTRIBUTE_CHANGE_PLAN_VAL into the relevant SAP transaction such as SE37 or SE38.

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



Function ISH_DISTRIBUTE_CHANGE_PLAN_VAL 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 'ISH_DISTRIBUTE_CHANGE_PLAN_VAL'"
EXPORTING
AUFNR = "Order number
EINRI = "Institution
* EVENT = 'HCO009' "Event
KALKVAR = "Costing variant
* TMODE = 'E' "Processing mode
* TUPDATE = 'A' "Update mode

IMPORTING
SUBRC = "Return value: <>0 if error

TABLES
BAUTEILE = "Table with base planning objects for costing
* MSGTAB = "Collecting Messages in the SAP System

EXCEPTIONS
NO_CONFIGURATION_FOUND = 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_SAPLNHCO_001 IS-H: Function exit for changing an account assignment line

IMPORTING Parameters details for ISH_DISTRIBUTE_CHANGE_PLAN_VAL

AUFNR - Order number

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

EINRI - Institution

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

EVENT - Event

Data type: TN02E-EVENT
Default: 'HCO009'
Optional: Yes
Call by Reference: No ( called with pass by value option)

KALKVAR - Costing variant

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

TMODE - Processing mode

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

TUPDATE - Update mode

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

EXPORTING Parameters details for ISH_DISTRIBUTE_CHANGE_PLAN_VAL

SUBRC - Return value: <>0 if error

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

TABLES Parameters details for ISH_DISTRIBUTE_CHANGE_PLAN_VAL

BAUTEILE - Table with base planning objects for costing

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

MSGTAB - Collecting Messages in the SAP System

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

EXCEPTIONS details

NO_CONFIGURATION_FOUND - No configuration found which supports event

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

Copy and paste ABAP code example for ISH_DISTRIBUTE_CHANGE_PLAN_VAL 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_aufnr  TYPE COAS-AUFNR, "   
lv_subrc  TYPE SY-SUBRC, "   
lt_bauteile  TYPE STANDARD TABLE OF NTPV, "   
lv_no_configuration_found  TYPE NTPV, "   
lv_einri  TYPE TN02A-EINRI, "   
lt_msgtab  TYPE STANDARD TABLE OF BDCMSGCOLL, "   
lv_event  TYPE TN02E-EVENT, "   'HCO009'
lv_kalkvar  TYPE RK70_KKEA-KLVAR, "   
lv_tmode  TYPE RK70_KKEA, "   'E'
lv_tupdate  TYPE RK70_KKEA. "   'A'

  CALL FUNCTION 'ISH_DISTRIBUTE_CHANGE_PLAN_VAL'  "
    EXPORTING
         AUFNR = lv_aufnr
         EINRI = lv_einri
         EVENT = lv_event
         KALKVAR = lv_kalkvar
         TMODE = lv_tmode
         TUPDATE = lv_tupdate
    IMPORTING
         SUBRC = lv_subrc
    TABLES
         BAUTEILE = lt_bauteile
         MSGTAB = lt_msgtab
    EXCEPTIONS
        NO_CONFIGURATION_FOUND = 1
. " ISH_DISTRIBUTE_CHANGE_PLAN_VAL




ABAP code using 7.40 inline data declarations to call FM ISH_DISTRIBUTE_CHANGE_PLAN_VAL

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 AUFNR FROM COAS INTO @DATA(ld_aufnr).
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_subrc).
 
 
 
"SELECT single EINRI FROM TN02A INTO @DATA(ld_einri).
 
 
"SELECT single EVENT FROM TN02E INTO @DATA(ld_event).
DATA(ld_event) = 'HCO009'.
 
"SELECT single KLVAR FROM RK70_KKEA INTO @DATA(ld_kalkvar).
 
DATA(ld_tmode) = 'E'.
 
DATA(ld_tupdate) = 'A'.
 


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!