ISP_UNIT_CONVERSION is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name ISP_UNIT_CONVERSION into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
JHTD
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'ISP_UNIT_CONVERSION' "IS-M/AM: Convert Ad Sizes/Units
EXPORTING
spaltigkeit = " tjj47-seite_fsp Page/Column Format
* seitenformat = " tjj01-seite_form
* fix_groesse = " tjj13-azart_area
breite = " jhamot-breite_i
breite_eh = " jhamot-breite_ieh
hoehe = " jhamot-hoehe_i
hoehe_eh = " jhamot-hoehe_i_eh
* zus_menge = " jhamot-zus_menge
* zus_berech = " jhamot-zus_berech
search_unit = " jhamot-breite_ieh
* pv_booking_unit = " belegeinh IS-M/AM: Booking Unit
* pv_content_component = " inhk_kfm IS-M: Business Content Component
* pv_ad_design_type = " azart_gest IS-M: Design Ad Type
IMPORTING
compute_value = " komp-mglme Converted Quantity
EXCEPTIONS
UNIT_SEITENF = 1 "
UNIT_SPALTIGK = 2 "
UNIT_HOEHE = 3 "
NO_COMPUTE = 4 "
MISSING_AREA = 5 "
. " ISP_UNIT_CONVERSION
The ABAP code below is a full code listing to execute function module ISP_UNIT_CONVERSION including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
| ld_compute_value | TYPE KOMP-MGLME . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_compute_value | TYPE KOMP-MGLME , |
| ld_spaltigkeit | TYPE TJJ47-SEITE_FSP , |
| ld_seitenformat | TYPE TJJ01-SEITE_FORM , |
| ld_fix_groesse | TYPE TJJ13-AZART_AREA , |
| ld_breite | TYPE JHAMOT-BREITE_I , |
| ld_breite_eh | TYPE JHAMOT-BREITE_IEH , |
| ld_hoehe | TYPE JHAMOT-HOEHE_I , |
| ld_hoehe_eh | TYPE JHAMOT-HOEHE_I_EH , |
| ld_zus_menge | TYPE JHAMOT-ZUS_MENGE , |
| ld_zus_berech | TYPE JHAMOT-ZUS_BERECH , |
| ld_search_unit | TYPE JHAMOT-BREITE_IEH , |
| ld_pv_booking_unit | TYPE BELEGEINH , |
| ld_pv_content_component | TYPE INHK_KFM , |
| ld_pv_ad_design_type | TYPE AZART_GEST . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name ISP_UNIT_CONVERSION or its description.