Ansicht
Dokumentation

EXIT_SAPLSADR_001 -

EXIT_SAPLSADR_001 -

CPI1466 during Backup   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This customer function module is called in the SAP function module ADDRESS_INTO_PRINTFORM when the destination country address formatting key is in the customer name space 900 - 999. Such addresses are formatted by a customer function module, not by an SAP standard routine.

You can define your own country-specific formatting routines in this function module, e.g.

  • for countries whose address format is not covered by the SAP standard,

  • for countries, whose format does not correspond to the SAP standard, because, e.g. changes have been made which will only be taken into account in a later release of the standard,

  • if all address data are to be entered or copied into the SAP system in a non-SAP standard format. This can, e.g. occur when fields have been incorrectly assigned, or several attributes have been entered in one field. You are, however, strongly advised to use semantically correct data as far as possible, as corrupt data can in general lead to other undesirable side affects.

When writing your program:

  • You can use the FORM routines in the SAP Include LXSADF00. These routines will not be changed by SAP between releases. Corrections and additions which are made in the underlying standard routines (function group SADR) will not be copied, although the changed routines may be appended to the Include LXSADF00 under different names.
  • Each record in the internal address record table must have its own record type. The codes must correspond to the guidelines in the function module ADDRESS_INTO_PRINTFORM (see the documentation of this function module), so that records can be correctly omitted from the function module ADDRESS_INTO_PRINTFORM, if required.

The standard sequence for omitting records can be over-ridden using CHANGING parameters LINE_PRIORITY.

For the export parameter return values:

  • The formatted address must be returned in the internal table ADDRESS_LINES.
  • The short form SHORT_FORM_LINE can be used. If the parameter is empty, the associated parameter is constructed from the name fields and the district, as in the standard.
  • The address short form for the data medium exchange (DME) is returned in the parameter DATA_CARRIER_LINE.
  • If the value of the parameter DATA_CARRIER_LINE_IS_COMPLETE is 'X', the parameter DATA_CARRIER_LINE is passed unchanged to the program which called ADDRESS_INTO_PRINTFORM, if the value is SPACE, the country name is added to post with a foreign destination.

Example

The Include LXSADF01 contains an example program.

In contrast to the FORM routines provided, the example program can be changed by SAP between releases, to keep it up-to-date (e.g. interface extensions).

Notes

New formatting keys must first be defined in the customer name space 900 - 999 in the table T005A.

Do this using the extended table maintenance (transaction SM30, in the menu path System -> Services) and enter the table name 'T005A'.
The new key can then be entered in the country customizing 'Address format key'.

The texts for the keys in T005A are stored in the language-dependent text table T005B. The extended table maintenance saves the text in the current logon language.
You can add texts for other languages by logging on to the SAP System in the desired language and repeating the table maintenance. The new keys then already exist, but the text fields in the new language are empty.
Alternatively, you can translate the texts with the translation transaction SE63 (menu Translation -> Short texts -> Table contents, table T005B).

A text element is to be maintained for the word 'PO Box'. Enter the the word 'PO Box' as text element '001' in the customer function group XSAD (module SAPLXSAD) analogously to the SAP function group SADR (module SAPLSADR) consistently with the coding.

This text element must be translated into the desired languages with the translation transaction se63. Only the languages of countries for which a country-specific formatting routine is to be defined in this extension are relevant.

Further information

The detailed documentation of the function module ADDRESS_INTO_PRINTFORM contains further information, especially about the meaning of the various parameters.






RFUMSV00 - Advance Return for Tax on Sales/Purchases   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

Length: 4819 Date: 20240419 Time: 102831     sap01-206 ( 103 ms )