SAP ISU_GET_SD_CONTRACT_DATA Function Module for INTERNAL: Read Cleaning Object Data for Service Contract









ISU_GET_SD_CONTRACT_DATA is a standard isu get sd contract data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for INTERNAL: Read Cleaning Object Data for Service 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 isu get sd contract data FM, simply by entering the name ISU_GET_SD_CONTRACT_DATA into the relevant SAP transaction such as SE37 or SE38.

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



Function ISU_GET_SD_CONTRACT_DATA 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 'ISU_GET_SD_CONTRACT_DATA'"INTERNAL: Read Cleaning Object Data for Service Contract
EXPORTING
* X_SDAUFNR = "Service Contract
* X_POSNR = "Sales document item
* X_OBJL_PROVIDED = "Indicator
* X_KUNDE = "Customer Number 1
* X_WEMPF = "Customer Number 1
* X_XVBAK = "Back-Up for VBAK Fields After Changes to Sold-To Party

CHANGING
XY_OBJ = "

TABLES
* T_VISER02 = "Table of Object List for Sale Document
* T_ELOCSD = "Table Type for Standard Table EWAELOCSD
* T_PROPSD = "Table Type for Standard Table EWAELOCSD
* T_VBAP = "Table for Structure VBAPVB

EXCEPTIONS
NOT_FOUND = 1 SYSTEM_ERROR = 2 NOT_QUALIFIED = 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_SAPLEEWA_MD_ROUTE_001 Checks for Comparison: Service Frequency for Route/Container
EXIT_SAPLEEWA_MD_ROUTE_002 Prepares Customer Subscreen Call of Route
EXIT_SAPLEEWA_MD_ROUTE_003 Prepares Customer Subscreen (PAI) of Route
EXIT_SAPLEEWA_MD_ROUTE_004 Closes Route Customer Subscreen (PAI)
EXIT_SAPLEEWA_MD_RO_001 Check Default Route for Service Frequency
EXIT_SAPLEEWA_MD_RO_002 Check on Admissibility of Service Interval Grouping
EXIT_SAPLEEWA_MD_RO_004 Prepares the Customer Subscreen Call for Header Data
EXIT_SAPLEEWA_MD_RO_005 Prepares the CALL SUBSCREEN PAI for Header Data
EXIT_SAPLEEWA_MD_RO_006 Closes the CALL SUBSCREEN PAI of the Header Data
EXIT_SAPLEEWA_MD_RO_007 Prepares the Customer Subscreen Call for Item Data
EXIT_SAPLEEWA_MD_RO_008 Prepares the CALL SUBSCREEN PAI for Item Data
EXIT_SAPLEEWA_MD_RO_009 Closes the CALL SUBSCREEN PAI of the Item Data

IMPORTING Parameters details for ISU_GET_SD_CONTRACT_DATA

X_SDAUFNR - Service Contract

Data type: SER02-SDAUFNR
Optional: Yes
Call by Reference: Yes

X_POSNR - Sales document item

Data type: SER02-POSNR
Optional: Yes
Call by Reference: Yes

X_OBJL_PROVIDED - Indicator

Data type: REGEN-KENNZX
Optional: Yes
Call by Reference: Yes

X_KUNDE - Customer Number 1

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

X_WEMPF - Customer Number 1

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

X_XVBAK - Back-Up for VBAK Fields After Changes to Sold-To Party

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

CHANGING Parameters details for ISU_GET_SD_CONTRACT_DATA

XY_OBJ -

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

TABLES Parameters details for ISU_GET_SD_CONTRACT_DATA

T_VISER02 - Table of Object List for Sale Document

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

T_ELOCSD - Table Type for Standard Table EWAELOCSD

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

T_PROPSD - Table Type for Standard Table EWAELOCSD

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

T_VBAP - Table for Structure VBAPVB

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

EXCEPTIONS details

NOT_FOUND - No Object Found

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

SYSTEM_ERROR - Other Error

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

NOT_QUALIFIED - Input Parameters Are not Qualified

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

Copy and paste ABAP code example for ISU_GET_SD_CONTRACT_DATA 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_xy_obj  TYPE ISUWA_OBJ, "   
lv_not_found  TYPE ISUWA_OBJ, "   
lt_t_viser02  TYPE STANDARD TABLE OF T_VISER02, "   
lv_x_sdaufnr  TYPE SER02-SDAUFNR, "   
lv_x_posnr  TYPE SER02-POSNR, "   
lt_t_elocsd  TYPE STANDARD TABLE OF ISUWA_EWAELOCSDALL, "   
lv_system_error  TYPE ISUWA_EWAELOCSDALL, "   
lt_t_propsd  TYPE STANDARD TABLE OF ISUWA_IEWAPROPSD, "   
lv_not_qualified  TYPE ISUWA_IEWAPROPSD, "   
lv_x_objl_provided  TYPE REGEN-KENNZX, "   
lt_t_vbap  TYPE STANDARD TABLE OF VA_VBAPVB_T, "   
lv_x_kunde  TYPE KUNNR, "   
lv_x_wempf  TYPE KUNNR, "   
lv_x_xvbak  TYPE ISUWA_XVABK. "   

  CALL FUNCTION 'ISU_GET_SD_CONTRACT_DATA'  "INTERNAL: Read Cleaning Object Data for Service Contract
    EXPORTING
         X_SDAUFNR = lv_x_sdaufnr
         X_POSNR = lv_x_posnr
         X_OBJL_PROVIDED = lv_x_objl_provided
         X_KUNDE = lv_x_kunde
         X_WEMPF = lv_x_wempf
         X_XVBAK = lv_x_xvbak
    CHANGING
         XY_OBJ = lv_xy_obj
    TABLES
         T_VISER02 = lt_t_viser02
         T_ELOCSD = lt_t_elocsd
         T_PROPSD = lt_t_propsd
         T_VBAP = lt_t_vbap
    EXCEPTIONS
        NOT_FOUND = 1
        SYSTEM_ERROR = 2
        NOT_QUALIFIED = 3
. " ISU_GET_SD_CONTRACT_DATA




ABAP code using 7.40 inline data declarations to call FM ISU_GET_SD_CONTRACT_DATA

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 SDAUFNR FROM SER02 INTO @DATA(ld_x_sdaufnr).
 
"SELECT single POSNR FROM SER02 INTO @DATA(ld_x_posnr).
 
 
 
 
 
"SELECT single KENNZX FROM REGEN INTO @DATA(ld_x_objl_provided).
 
 
 
 
 


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!