Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

alpha conversion usage

Former Member
0 Likes
1,080

HI ALL

What happens if use use alpha conversion for a domain of length 4 and type c.

and what happens if we don't use it.

Thanks

preeti

4 REPLIES 4
Read only

ferry_lianto
Active Contributor
0 Likes
956

Hi Preeti,

Please check this link perhaps it may help.

http://help.sap.com/saphelp_nw04/helpdata/en/9b/f9c18f5a07f0459127e9676ae22a54/content.htm

Regards,

Ferry Lianto

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
956

Hi Preeti,

Here is what Alpha Conversion does:

Use

The ALPHA conversion is used in the BW system for each presetting for character characteristics. The 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.

The ALPHA conversion routine is used, for example, with account numbers or document numbers.

Functions

When converting from an external into an internal format this checks whether the entry in the INPUT field is wholly numerical, whether it consists of digits only, possibly with blank spaces before and/or after. If yes, the sequence of digits is copied to the OUTPUT field, right-aligned, and the space on the left is filled with zeros (‘0’). Otherwise the sequence of digits is copied to the output field from left to right and the space to the right remains blank.

For conversions from an internal to an external format (function module CONVERSION_EXIT_ALPHA_OUTPUT) the process is reversed. Blank characters on the left-hand side are omitted from the output.

Example

Input and output fields are each 8 characters long. A conversion from an external to an internal format takes place:

...

1. '1234 ' ®'00001234'

2. 'ABCD ' ® 'ABCD '

Hope this helps.

Read only

Former Member
0 Likes
956

if u use conversion_exit_alpha_input ,

if the value is 4 , this will convert to 0004 , if it is of length 4

if u use conversion_exit_alpha_output ,

if the value is 0004 , it will convert to 4.

Read only

0 Likes
956

hi,

chk this.

data :wf_version(4).

wf_version ='4'.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
            EXPORTING
              input  = wf_version
            IMPORTING
              output = wf_version.

output => wf_version = 0004

rgds

Anver