‎2009 Feb 16 12:02 PM
hi
my requirement is to create a function module for EBCDIC conversion for -ve quantities. this is for Accounts Payable Invoices Record
for example a Quantity Received, S9(8), of -1150 ... will be passed as 0000115}
For example an A/P Invoice Amount, S9(10)v9(2), of -592.52 ... will be passed as 00000005925K
Negative
0 = }
1 = J
2 = K
3 = L
4 = M
5 = N
6 = O
7 = P
8 = Q
9 = R
with regards,
srinath.
‎2009 Feb 16 12:52 PM
Hi,
Have you considered using the ABAP command TRANSLATE?
You can disassemble the value (WRITE into a character structure with 8 + 1 character fields) and then TRANSLATE the second field using the dictionary you wrote in your post.
TRANSLATE ls_value-last_digit USING '0}1J2K3L4M5N6O7P8Q9R'.
<<text removed>>
Regards,
Ogeday
Edited by: Matt on Feb 17, 2009 5:56 AM - Please do not ask for points
‎2009 Feb 17 5:17 AM
Hi,
Check with the following link.
http://www.sapdb.org/7.4/htmhelp/07/a16387a57411d2a97100a0c9449261/content.htm
Thanks,
Neelima.
‎2009 Feb 17 5:26 AM
Hi,
Use this standard INCLUDE program at the begining of u rprogram..
RSEBCASC
syntax is :
translate itab-matnr using asc_to_ebc.
Check out this...
Regards
Kiran