cancel
Showing results for 
Search instead for 
Did you mean: 

smart form limitation for char length allowing only 50 char.

Former Member
0 Kudos

hi experts,

i am trying to print a text and i declared a character variable of length

TEXT (65) type c,

when i pass this to form attributes via function module.

in smartforms the <b>associated type</b> i gave it as <b>char 65</b> it doesn't doesn't allowed me..

but if i decrale it as <b>char50</b> it allows.....!

so i tried to take the input from selection screen and copied that text to a string type variable.and copied the text from char in to string variable and passed it to

call function and i declared in associated type as <b>STRING</b>

as it is allowing but....

i am getting a type mismatch error.

please suggest me how to print a string of length 65 characters by taking input from selection screen.

Regards

Sivaram Arigela

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

Defiene any string with char type.

u CAN define like ....

Name type char80

Address type char100 like that.

Rewards points if it is useful.

Former Member
0 Kudos

If you are passing this variable through driver program to smartforms. as venkatesh suggested declare two variables and break the text into two parts a(50) and a+51(15). send it to smartforms. Declare two variables suppose A of type char50 and B of type char15. then print them side by side as suggested by Venkatesh. If it works out award points to Venkatesh.

Regards,

mallick

Former Member
0 Kudos

Hi,

if possible you can use the

<b>tline-tdline</b> ( which is a character type and lenght 132 )

thanks & regards,

Venkatesh

Former Member
0 Kudos

Hi,

if the variable declared in the smartform is not taking more length

then declare two variables of length 50 and 50

take the value of the variable from the selection screen

and split at 50th postion and put in first variable of lenght 50

and the remaining in the next 50

and pass these two values to the smartform

and while printing give the two variables side by side

i did in the same fashion for the scripts

thanks & regards,

Venkatesh