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

data type mis match

Former Member
0 Likes
569

hi all,

My company code has a data type of 4. and the values represented are 0100, 0200.

So when the user enter 0100 the records are able to fetch. but when the user enter 100 it does not fetch records. So how to handle it. Is there any function modules ?

regds

haritha

5 REPLIES 5
Read only

Former Member
0 Likes
537

User FM "CONVERSION_EXIT_ALPHA_INPUT"

Pass the company code to this FM & it will return value with '0' at beginning.

Read only

Former Member
0 Likes
537

Hi,

use <b>UNPACK </b>statment for this.

<b>UNPACK <variable> TO <variable>.</b>

After this you can write your select query for data retreival.

*Reward points if it helps.

Regards,

Amit

Message was edited by:

Amit Kumar

Read only

Former Member
0 Likes
537

Hi,

Take the help from this code :

data : a(10), b(10).

a = '3'.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

EXPORTING

input = a

IMPORTING

OUTPUT = b

.

write 😕 a.

write 😕 b.

reward points, if helpful,

Sandeep Kaushik

Read only

Former Member
0 Likes
537

hi,

You will get Idea from this.

*************************

parameters : code(4) type c.

unpack co to code.

write : code.

Read only

0 Likes
537

hi,

You will get Idea from this.

*************************

parameters : code(4) type c.

unpack code to code.

write : code.