‎2007 Sep 11 9:14 AM
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
‎2007 Sep 11 9:17 AM
User FM "CONVERSION_EXIT_ALPHA_INPUT"
Pass the company code to this FM & it will return value with '0' at beginning.
‎2007 Sep 11 9:26 AM
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
‎2007 Sep 11 9:28 AM
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
‎2007 Sep 11 9:37 AM
hi,
You will get Idea from this.
*************************
parameters : code(4) type c.
unpack co to code.
write : code.
‎2007 Sep 11 9:38 AM
hi,
You will get Idea from this.
*************************
parameters : code(4) type c.
unpack code to code.
write : code.