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

func. module

Former Member
0 Likes
863

hi,

why we use this function module in our programm

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

thanks jAYANT

10 REPLIES 10
Read only

Former Member
0 Likes
841

Jayant,

CONVERSION_EXIT_ALPHA_INPUT
____________________________________________________
Short Text
Conversion exit ALPHA, external->internal

ALPHA conversion is used especially with account numbers. During conversion from the external to the internal format, the system checks to see if input in the INPUT field is purely numeric, that is, if this input consists only of numbers, possibly with spaces before and after them. If this is the case, then the number string is inserted right- justified in the display field OUTPUT and all spaces to the left of the value are filled with zeroes ('0'). If the input is not purely numeric, it is inserted in the display field from left to right and all extra spaces are filled with blanks.

Example:

(Input field and output field are both eight characters in length)

1. '1234    ' --> '00001234'
2. 'ABCD    ' --> 'ABCD    '
3. ' 1234   ' --> '00001234'

Conversion from the internal to the external format (function module CONVERSION_EXIT_ALPHA_OUTPUT) is undertaken in exactly the opposite manner.

Read only

valter_oliveira
Active Contributor
0 Likes
841

Hello.

That's a convertion routine to insert data, for example, in database tables.

An example.

In your program you have material like '1000000001'. With that FM, it will transform to '000000001000000001', which is the internal format of the field in table.

Regards.

Read only

former_member654348
Participant
0 Likes
841

converts any number into a string fill with zeroes, with the number at the extreme right

Read only

Former Member
0 Likes
841

it is used to convert the external format no to internal format number.

for more details see the FM documentation.

regards,

madhu

Read only

former_member195383
Active Contributor
0 Likes
841

this function adds leading ZEROS before a value...search in SDN with FM name...u will get sufficient info

Read only

GauthamV
Active Contributor
0 Likes
841

hi,

'CONVERSION_EXIT_ALPHA_INPUT'

'CONVERSION_EXIT_ALPHA_OUTPUT'

these function modules are used to compress or get leading zeros.

for example: material no: 123456789.

u can get 000000000123456789.since 18 is length of matnr.

Read only

Former Member
0 Likes
841

It adds leading zeroes for the given value

for example if u pass VBELN value 78...

it returns 0000000078.

Read only

Former Member
0 Likes
841

The FM--> CONVERSION_EXIT_ALPHA_INPUT

It converts any number into a string fill with zeroes, with the number at the extreme right

Read only

Former Member
0 Likes
841

Hi,

For Example :

include the necessary characters at SPRO, permitted extra characters.like '.,()-\/#&[]{}

And also I have used the conversion routine CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' for this infoobject.

EXPORTING

input = TRAN_STRUCTURE-PTXZ01

IMPORTING

OUTPUT = RESULT.

If useful reward points.

Sridhar.

Read only

Former Member
0 Likes
841

Hi Jayanth,

Conversion routines are function modules used to convert the user input values into format in which the actual values are stored in database tables.

for example

material number.... you enter 38 in your selection screen.... but in your database table it is stored as 000000000000000038 The end user entering the value doesnt know what is the internal format.

In such a case conversion exits are used to convert the value given into internal format and also internal format back to display format

conversion_exit_alpha_input..... converts input to internal format

38 .... 000000000000000038

conversion_exit_alpha_output ... converts internal format to display format

000000000000000038 to 38

regards

padma