Application Development 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: 

Problem with control characters and field width for customized label print

0 Kudos

Hi Floks

Iu2019m working on FedEx interface development project on R/3 3.1i.

We are sending delivery info to carrier(FedEx) through customized interface, written in C language to generate tracking#. In response to the delivery info FedEx system will send reply , which contains various delivery information along with 3 barcodes. We store that reply message in Z table for customized shipping labels.

Here we have 2 problems to store reply message in Z tables.

1. 2D barcode column has many control characters as given below (C-string). All these controls characters are converting into u2018#u2019 when it is coming to SAP to store in Z table, as shown in Z table.

C - String:

[)>^01]0206033]840]11]9184782620090710]FDE]060663432]254^] ]1/1]2LB]N]628 HEBRON AVENUE]GLASTONBURY]CT]SYNCOR INTERNATIONAL CORP06]10ZED004]11ZSYNCOR INTERNATIONAL CORP]12Z2036572520]30Z30603357000083\041015]15Z6165]20Z0.00\0.00]28Z]K1080007081]26Zedbb\00]^^^D

Z table:

[)>#01#0206033#840#11#9184782620090710#FDE#060663432#254# #1/1#2LB#N#628 HEBRON AVENUE#GLASTONBURY#CT#SYNCOR INTERNATIONAL CORP#06#1#041015#15Z6165#20Z0.00#0.00#28Z#K1080007081#26Zedbb#00

2. Said 2D barcode has 350 characters, whereas SAP has maximum limit of 256 characters in one field.

Is there any possibility to store entire 350 character in single field instead of splitting into 2 and how can we get and store control characters as it is coming from interface, in SAP.

I appreciate your patience for going through this long message and for responding to me.

Thanks

KS

<Has nothing to do with ABAP Objects - moved to ABAP General. Please choose your forums more carefully in future>

Edited by: Mike Pokraka on Sep 11, 2008 11:34 PM

1 REPLY 1

valter_oliveira
Active Contributor
0 Kudos

For your 2nd problem, you can create a field of type string (create a data type which has domain STRING), which has unlimited lenght. However, you can only have 3 of these fields in your table.

I think this will solve the # problem too.

Regards,

Valter Oliveira.