cancel
Showing results for 
Search instead for 
Did you mean: 

Next Row in SMARTFORM

Former Member
0 Kudos

hi all

am printing a line in smartform with field GS_it_KOND_W-vtext but displaying the first line in that field..but my requirement is i need only second line to be printed.please pass on the code...like how can i print the line that is der in the next row...please help

vijay

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

hh

Former Member
0 Kudos

Hi,

for this you will have to hard code the 2nd line.

For this what you can do is read the length of the description and fix the length of the line which is to be printed.

From that particular length take the description into a variable and u can print that variable.

If g_length is the length of the line, then

gv_2nd_line = GS_it_KOND_W-vtext + 250(250).

This will give you the second line.

Regards,

Lavanya

Former Member
0 Kudos

Hi Vijay ,

If i got it right " u expect to skip the first line of the text " .

for this , try to get the string length of the Text and split the text into other variables .

say , if gv_text2 is the variable declared in global properties ,

and first line of text "GS_it_KOND_W-vtext " as length of 250 and second with other 250 ....

now,

if STRLEN ( GS_it_KOND_W-vtext ) > 250 .

gv_text2 = GS_it_KOND_W-vtext_250(250) .

endif.

Former Member
0 Kudos

Hi Vijay,

You can create acounter and in the condition tab u can give that counter = 0.

When the condition is satisfied it will print the text.

Thanks.

Former Member
0 Kudos

Just use a loop for dispalying the text field.

Rohit