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

EBCDIC conversion

Former Member
0 Likes
650

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.

3 REPLIES 3
Read only

Former Member
0 Likes
550

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

Read only

Former Member
0 Likes
550
Read only

Former Member
0 Likes
550

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