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 CString mismatch in Smartforms

Former Member
0 Likes
1,660

Hi

We have created a Smartform and for printing the BOL details .

For getting the HU details we have used a data type

huident_str TYPE string, ( it is a string type ) .

The intention is that in the Smartform output we will have a final internal table where in all the Handling Unit Details ( HU Details ) would be displayed . But in the output of the smartforms we have a window to display all the Handling unit details .

But what is happening is that we have nearly 100 HU details to de displayed in the same column and each HU is of 10 Char in length . So if we have nearly 52 Items in a single column the expectation is that it needs to display all the 52 line itmes .

So i hope it would require 52* 10 = 520 char in length but since we have declared a data type of string the value is getting truncated . Is there any soilution to increase the data type or else is there any method to display all the details .

Would be great helpful if we could get the necessary information .

Thanks in advance .

Regards

K.Nadesh Kumar

2 REPLIES 2
Read only

Former Member
0 Likes
1,108

Hi Nadesh,

I am giving you some example regarding your string truncation issue u can refer the link also whcih iam giving below.

*Input string

ipstr = '<FT><H><T> Line Clearance </></></>'.

*Removing only "</>"

REPLACE ALL OCCURRENCES OF '</>' IN ipstr WITH ' '.

*Removing only "<"

REPLACE ALL OCCURRENCES OF '<' IN ipstr WITH ' '.

CONDENSE ipstr.

*Length of Input String

len = STRLEN( ipstr ).

DO len TIMES.

*Char by Char

ch = ipstr+pos(1).

pos = pos + 1.

http://help.sap.com/saphelp_470/helpdata/en/fc/eb3434358411d1829f0000e829fbfe/content.htm.

Regards,

Aswin Girmaji

Read only

0 Likes
1,108

Plz close