Menu Close

How do you write a conversion routine in SAP BW?

How do you write a conversion routine in SAP BW?

In the BW system, conversion routines essentially serve to simplify the input of characteristic values for a query runtime. For example, for cost center 1000, 1000 is entered instead of the the long value with leading zeros 0000001000 (from the database) is not to be entered.

What is conversion routine SAP?

A conversion routine (also known as a conversion exit) uses a self-written implementation to override standard conversions (where values are passed from an ABAP data object to a dynpro field or from a dynpro field to an ABAP data object and in the formatting of data using the statements WRITE and WRITE TO).

How do I create a conversion routine in ABAP?

Conversion Routines

  1. Step1. Create a DB table with below fields and each field having data element and domain.
  2. Step2. Here the data element.
  3. Step3. The domain with no conversion routine.
  4. Step4. Create the table, activate it.
  5. Step5. Provide the below values and save it.
  6. Step6.
  7. Step7.
  8. Step8.

How does SAP calculate conversion exit?

Go to a table, field for which you want to find the conversion exit. Double click on data element and double click on ‘Domain’. You can see the conversion exit at domain level ex: MATN1 for MARA-MATNR field. Double click on conversion exit, you will find two function modules.

What is conversion routine Alpha?

An ALPHA conversion routine adds leading zeros if the character field only contains numbers. ALPHA conversion routine is registered automatically when a characteristic is created. If you do not want to use this routine, you have to remove it manually.

What is alpha conversion in SAP?

If any Document number is in the format 012345 (ie starting with Zero) and the maximum length of the info object is 60, then when we get the Document number in SAP BI, we will get that as 012345 preceding with 54 zeros. The info object is used in other flows as well. …

What is the use of alpha conversion routine?

An ALPHA conversion routine adds leading zeros if the character field only contains numbers. For every conversion routine, two function modules are available. You could use these modules without using the actual conversion routine setup, by calling them directly.

What are enhancements in ABAP?

Enhancements are transport objects in their own right that can be stored in packages of their own unlike modifications, which are part of the object they modify. Since during an upgrade all SAP objects are replaced by the new version of these objects, after the upgrade all modifications are gone.

How do you create a custom conversion exit in SAP?

In this tutorial we will see how to create a custom Conversion Routine and use it to format the ALV output using ABAP code. Create 1 input parameter and 1 output in both the FM’s and write the logic as per your requirement. Here is a sample logic to convert the date into DD/MM/YYYY format.

What is the use of delivery class in SAP ABAP?

The delivery class of a database table controls the transport of table data in installations, upgrades, or client copies, and in transports between customer systems. It is also applied in extended table maintenance (transaction code SM30).

How do you use conversion exit?

Process

  1. Declare the internal and the external length of the field to the ALV Grid Control.
  2. Specify the conversion exit using field EDIT_MASK of the field catalog (see Formatting Column Contents).
  3. Pass the field catalog with method set_table_for_first_display before the list is displayed for the first time.

What is Conversion_exit_alpha_output?

CONVERSION_EXIT_ALPHA_OUTPUT is a standard SAP function module available within R/3 SAP systems depending on your version and release level.

What is an infoobject conversion routine?

Conversion routines are used in the BW system so that the characteristic values (key) of an InfoObject can be displayed or used in a different format to how they are stored in the database.

What are the different types of sap conversion routines?

There are standard conversion routines which are delivered by SAP like ALPHA, MATNR or WBSEL (see online documentation below). When such routines are used it is important to know that there are no automatic checks regarding the correct internal values.

How are infoobjects converted to internal format?

Most of the InfoObjects use a conversionroutine ALPHA. (Which often causes problems as seen in scn posts) If there isn’t a conversion routine definied with an InfoObject the external format is also transfered to the internal format. Meaning a customer number can be stored as 4711 or 00004711.

What is the purpose of conversion routines in BW?

In the BW system, conversion routines essentially serve to simplify the input of characteristic values for a query runtime. For example, for cost center 1000, 1000 is entered instead of the the long value with leading zeros 0000001000 (from the database) is not to be entered.

Posted in Advice