SAP ISP_SHEET_WEIGHT_CALCULATION Function Module for









ISP_SHEET_WEIGHT_CALCULATION is a standard isp sheet weight calculation 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 isp sheet weight calculation FM, simply by entering the name ISP_SHEET_WEIGHT_CALCULATION into the relevant SAP transaction such as SE37 or SE38.

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



Function ISP_SHEET_WEIGHT_CALCULATION 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 'ISP_SHEET_WEIGHT_CALCULATION'"
EXPORTING
PAPERHEIGHT = "
PAPERHEIGHT_UNIT = "
PAPERWEIGHT = "
PAPERWEIGHT_UNIT = "
PAPERWIDTH = "
PAPERWIDTH_UNIT = "
SHEETWEIGHT_UNIT_I = "

IMPORTING
SHEETWEIGHT = "
SHEETWEIGHT_UNIT_O = "

EXCEPTIONS
CONVERSION_NOT_FOUND = 1 DIVISION_BY_ZERO = 2 INVALID_DIMENSION = 3 OVERFLOW = 4 T006D_ENTRY_MISSING = 5 T006_ENTRY_MISSING = 6
.



IMPORTING Parameters details for ISP_SHEET_WEIGHT_CALCULATION

PAPERHEIGHT -

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

PAPERHEIGHT_UNIT -

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

PAPERWEIGHT -

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

PAPERWEIGHT_UNIT -

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

PAPERWIDTH -

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

PAPERWIDTH_UNIT -

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

SHEETWEIGHT_UNIT_I -

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

EXPORTING Parameters details for ISP_SHEET_WEIGHT_CALCULATION

SHEETWEIGHT -

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

SHEETWEIGHT_UNIT_O -

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

EXCEPTIONS details

CONVERSION_NOT_FOUND -

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

DIVISION_BY_ZERO -

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

INVALID_DIMENSION -

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

OVERFLOW -

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

T006D_ENTRY_MISSING -

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

T006_ENTRY_MISSING -

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

Copy and paste ABAP code example for ISP_SHEET_WEIGHT_CALCULATION 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_paperheight  TYPE JDTPVA-SFORMATHOE, "   
lv_sheetweight  TYPE JDTPVA-STDBLTTGEW, "   
lv_conversion_not_found  TYPE JDTPVA, "   
lv_division_by_zero  TYPE JDTPVA, "   
lv_paperheight_unit  TYPE JDTPVA-MEINHHOE, "   
lv_sheetweight_unit_o  TYPE JDTPVA-MEINHSBLGW, "   
lv_paperweight  TYPE JDTPVA-SPAPIERGEW, "   
lv_invalid_dimension  TYPE JDTPVA, "   
lv_overflow  TYPE JDTPVA, "   
lv_paperweight_unit  TYPE JDTPVA-MEINHPAGEW, "   
lv_paperwidth  TYPE JDTPVA-SFORMATBR, "   
lv_t006d_entry_missing  TYPE JDTPVA, "   
lv_paperwidth_unit  TYPE JDTPVA-MEINHBREIT, "   
lv_t006_entry_missing  TYPE JDTPVA, "   
lv_sheetweight_unit_i  TYPE JDTPVA-MEINHSBLGW. "   

  CALL FUNCTION 'ISP_SHEET_WEIGHT_CALCULATION'  "
    EXPORTING
         PAPERHEIGHT = lv_paperheight
         PAPERHEIGHT_UNIT = lv_paperheight_unit
         PAPERWEIGHT = lv_paperweight
         PAPERWEIGHT_UNIT = lv_paperweight_unit
         PAPERWIDTH = lv_paperwidth
         PAPERWIDTH_UNIT = lv_paperwidth_unit
         SHEETWEIGHT_UNIT_I = lv_sheetweight_unit_i
    IMPORTING
         SHEETWEIGHT = lv_sheetweight
         SHEETWEIGHT_UNIT_O = lv_sheetweight_unit_o
    EXCEPTIONS
        CONVERSION_NOT_FOUND = 1
        DIVISION_BY_ZERO = 2
        INVALID_DIMENSION = 3
        OVERFLOW = 4
        T006D_ENTRY_MISSING = 5
        T006_ENTRY_MISSING = 6
. " ISP_SHEET_WEIGHT_CALCULATION




ABAP code using 7.40 inline data declarations to call FM ISP_SHEET_WEIGHT_CALCULATION

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 SFORMATHOE FROM JDTPVA INTO @DATA(ld_paperheight).
 
"SELECT single STDBLTTGEW FROM JDTPVA INTO @DATA(ld_sheetweight).
 
 
 
"SELECT single MEINHHOE FROM JDTPVA INTO @DATA(ld_paperheight_unit).
 
"SELECT single MEINHSBLGW FROM JDTPVA INTO @DATA(ld_sheetweight_unit_o).
 
"SELECT single SPAPIERGEW FROM JDTPVA INTO @DATA(ld_paperweight).
 
 
 
"SELECT single MEINHPAGEW FROM JDTPVA INTO @DATA(ld_paperweight_unit).
 
"SELECT single SFORMATBR FROM JDTPVA INTO @DATA(ld_paperwidth).
 
 
"SELECT single MEINHBREIT FROM JDTPVA INTO @DATA(ld_paperwidth_unit).
 
 
"SELECT single MEINHSBLGW FROM JDTPVA INTO @DATA(ld_sheetweight_unit_i).
 


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!