SAP Function Modules

ISP_ADDRESS_INTO_PRINTFORM SAP Function module - IS-M: Convert Address to Print Form







ISP_ADDRESS_INTO_PRINTFORM 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_ADDRESS_INTO_PRINTFORM into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: JG04
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM ISP_ADDRESS_INTO_PRINTFORM - ISP ADDRESS INTO PRINTFORM





CALL FUNCTION 'ISP_ADDRESS_INTO_PRINTFORM' "IS-M: Convert Address to Print Form
  EXPORTING
*   anschr_typ = '2'            " jgtsadr-erstadr
*   flg_namenszus = ' '         "
    sadrwa_in =                 " jgtsadr       Address Data
    zeilenzahl =                " adrs-anzzl
*   spaltenzahl = '40'          " tjga1-anz_sp
*   montage_typ = 'S'           "
*   sender_country =            " land1
  IMPORTING
    sadrwa_out =                " adrs
    address_short_form_s =      " szad_field-addr_short  One-line short form of formatted address
    .  "  ISP_ADDRESS_INTO_PRINTFORM

ABAP code example for Function Module ISP_ADDRESS_INTO_PRINTFORM





The ABAP code below is a full code listing to execute function module ISP_ADDRESS_INTO_PRINTFORM 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).

DATA:
ld_sadrwa_out  TYPE ADRS ,
ld_address_short_form_s  TYPE SZAD_FIELD-ADDR_SHORT .


SELECT single ERSTADR
FROM JGTSADR
INTO @DATA(ld_anschr_typ).

DATA(ld_flg_namenszus) = 'some text here'.
DATA(ld_sadrwa_in) = 'Check type of data required'.

DATA(ld_zeilenzahl) = Check type of data required

SELECT single ANZ_SP
FROM TJGA1
INTO @DATA(ld_spaltenzahl).

DATA(ld_montage_typ) = 'some text here'.
DATA(ld_sender_country) = 'Check type of data required'. . CALL FUNCTION 'ISP_ADDRESS_INTO_PRINTFORM' EXPORTING * anschr_typ = ld_anschr_typ * flg_namenszus = ld_flg_namenszus sadrwa_in = ld_sadrwa_in zeilenzahl = ld_zeilenzahl * spaltenzahl = ld_spaltenzahl * montage_typ = ld_montage_typ * sender_country = ld_sender_country IMPORTING sadrwa_out = ld_sadrwa_out address_short_form_s = ld_address_short_form_s . " ISP_ADDRESS_INTO_PRINTFORM
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

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_sadrwa_out  TYPE ADRS ,
ld_anschr_typ  TYPE JGTSADR-ERSTADR ,
ld_address_short_form_s  TYPE SZAD_FIELD-ADDR_SHORT ,
ld_flg_namenszus  TYPE STRING ,
ld_sadrwa_in  TYPE JGTSADR ,
ld_zeilenzahl  TYPE ADRS-ANZZL ,
ld_spaltenzahl  TYPE TJGA1-ANZ_SP ,
ld_montage_typ  TYPE STRING ,
ld_sender_country  TYPE LAND1 .


SELECT single ERSTADR
FROM JGTSADR
INTO ld_anschr_typ.

ld_flg_namenszus = 'some text here'.
ld_sadrwa_in = 'Check type of data required'.

ld_zeilenzahl = Check type of data required

SELECT single ANZ_SP
FROM TJGA1
INTO ld_spaltenzahl.

ld_montage_typ = 'some text here'.
ld_sender_country = 'Check type of data required'.

Contribute (Add Comments)

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_ADDRESS_INTO_PRINTFORM or its description.