SAP ISP_POSTAGE_GET Function Module for IS-M/SD: Determine Postal Charges for Existing Delivery Type









ISP_POSTAGE_GET is a standard isp postage get 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/SD: Determine Postal Charges for Existing Delivery Type 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 isp postage get FM, simply by entering the name ISP_POSTAGE_GET into the relevant SAP transaction such as SE37 or SE38.

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



Function ISP_POSTAGE_GET 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_POSTAGE_GET'"IS-M/SD: Determine Postal Charges for Existing Delivery Type
EXPORTING
GEWICHTSEINHEIT = "Unit of Weight
* STUECKZAHL = '0' "No.of Units
VRSNDDATUM = "Shipping Date
GEWICHT_EXKL_BLG = "
GEWICHT_INKL_BLG = "
* KURSTYP = ' ' "
LFARTLOG = "Logistical delivery type
* POSARTPOST = ' ' "
* POSTTARIF = ' ' "
* SENDARTPO = ' ' "
* SENDAVARPO = ' ' "

IMPORTING
POSTENTGELT = "Postal charges

EXCEPTIONS
NO_CALCULATION_SCHEME = 1 NO_POSTAGE_CATEGORY = 2 NO_PRICES_FOUND = 3 WRONG_CURRENCY = 4 WRONG_INPUT = 5
.



IMPORTING Parameters details for ISP_POSTAGE_GET

GEWICHTSEINHEIT - Unit of Weight

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

STUECKZAHL - No.of Units

Data type: RJLL40-STUECKZAHL
Default: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)

VRSNDDATUM - Shipping Date

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

GEWICHT_EXKL_BLG -

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

GEWICHT_INKL_BLG -

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

KURSTYP -

Data type: KOMK-KURST
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

LFARTLOG - Logistical delivery type

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

POSARTPOST -

Data type: RJLL40-POSARTPOST
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

POSTTARIF -

Data type: RJLL40-POSTTARIF
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

SENDARTPO -

Data type: TJV01-SENDARTPO
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

SENDAVARPO -

Data type: TJV01-SENDAVARPO
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for ISP_POSTAGE_GET

POSTENTGELT - Postal charges

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

EXCEPTIONS details

NO_CALCULATION_SCHEME -

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

NO_POSTAGE_CATEGORY -

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

NO_PRICES_FOUND -

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

WRONG_CURRENCY -

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

WRONG_INPUT -

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

Copy and paste ABAP code example for ISP_POSTAGE_GET 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_postentgelt  TYPE RJLL40-ENTGELT, "   
lv_gewichtseinheit  TYPE RJLL40-GEWEINHEIT, "   
lv_no_calculation_scheme  TYPE RJLL40, "   
lv_stueckzahl  TYPE RJLL40-STUECKZAHL, "   '0'
lv_vrsnddatum  TYPE RJLL40-VRSNDDATUM, "   
lv_gewicht_exkl_blg  TYPE RJLL40-GEWICHT, "   
lv_no_postage_category  TYPE RJLL40, "   
lv_no_prices_found  TYPE RJLL40, "   
lv_gewicht_inkl_blg  TYPE RJLL40-GEWICHT, "   
lv_kurstyp  TYPE KOMK-KURST, "   SPACE
lv_wrong_currency  TYPE KOMK, "   
lv_lfartlog  TYPE TJV01-LFARTLOG, "   
lv_wrong_input  TYPE TJV01, "   
lv_posartpost  TYPE RJLL40-POSARTPOST, "   SPACE
lv_posttarif  TYPE RJLL40-POSTTARIF, "   SPACE
lv_sendartpo  TYPE TJV01-SENDARTPO, "   SPACE
lv_sendavarpo  TYPE TJV01-SENDAVARPO. "   SPACE

  CALL FUNCTION 'ISP_POSTAGE_GET'  "IS-M/SD: Determine Postal Charges for Existing Delivery Type
    EXPORTING
         GEWICHTSEINHEIT = lv_gewichtseinheit
         STUECKZAHL = lv_stueckzahl
         VRSNDDATUM = lv_vrsnddatum
         GEWICHT_EXKL_BLG = lv_gewicht_exkl_blg
         GEWICHT_INKL_BLG = lv_gewicht_inkl_blg
         KURSTYP = lv_kurstyp
         LFARTLOG = lv_lfartlog
         POSARTPOST = lv_posartpost
         POSTTARIF = lv_posttarif
         SENDARTPO = lv_sendartpo
         SENDAVARPO = lv_sendavarpo
    IMPORTING
         POSTENTGELT = lv_postentgelt
    EXCEPTIONS
        NO_CALCULATION_SCHEME = 1
        NO_POSTAGE_CATEGORY = 2
        NO_PRICES_FOUND = 3
        WRONG_CURRENCY = 4
        WRONG_INPUT = 5
. " ISP_POSTAGE_GET




ABAP code using 7.40 inline data declarations to call FM ISP_POSTAGE_GET

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 ENTGELT FROM RJLL40 INTO @DATA(ld_postentgelt).
 
"SELECT single GEWEINHEIT FROM RJLL40 INTO @DATA(ld_gewichtseinheit).
 
 
"SELECT single STUECKZAHL FROM RJLL40 INTO @DATA(ld_stueckzahl).
DATA(ld_stueckzahl) = '0'.
 
"SELECT single VRSNDDATUM FROM RJLL40 INTO @DATA(ld_vrsnddatum).
 
"SELECT single GEWICHT FROM RJLL40 INTO @DATA(ld_gewicht_exkl_blg).
 
 
 
"SELECT single GEWICHT FROM RJLL40 INTO @DATA(ld_gewicht_inkl_blg).
 
"SELECT single KURST FROM KOMK INTO @DATA(ld_kurstyp).
DATA(ld_kurstyp) = ' '.
 
 
"SELECT single LFARTLOG FROM TJV01 INTO @DATA(ld_lfartlog).
 
 
"SELECT single POSARTPOST FROM RJLL40 INTO @DATA(ld_posartpost).
DATA(ld_posartpost) = ' '.
 
"SELECT single POSTTARIF FROM RJLL40 INTO @DATA(ld_posttarif).
DATA(ld_posttarif) = ' '.
 
"SELECT single SENDARTPO FROM TJV01 INTO @DATA(ld_sendartpo).
DATA(ld_sendartpo) = ' '.
 
"SELECT single SENDAVARPO FROM TJV01 INTO @DATA(ld_sendavarpo).
DATA(ld_sendavarpo) = ' '.
 


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!