cancel
Showing results for 
Search instead for 
Did you mean: 

Input to a structure field beyond 72 chars

Former Member
0 Kudos

Hi,

I Have a RFC_READ_TABLE bapi.I have a table called OPTIONS and a single field called TEXT in that.

length of the TEXT field shoulb be only 72 chars.

But is need to send data of lengh 87 chars as per my requirement

PLNTY='A' AND PLNNR='7000006' AND PLNAL NE '01' AND ISTRU NE SPACE AND LOEKZ NE 'X'

THE THING IS WE HAVE TO SPLIT THE FULL STRING TO 72 CHARS, AND THE NEXT PART OF THE STRING IS TO SEND AS 2ND LINE TO THE TABLE MEANS AS SECOND ROW.

CAN ANY ONE PLZ HELP ME OUT

REGARDS,

CHANDRASEKHAR

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi you can use this code

String text = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz";

String text1="";

String text2="";

if (text.length()>72)

{

text1 = text.substring(0,71);

text2=text.substring(72,text.length());

}

set text 1 in the first row and text2 in second row of the table.

Former Member
0 Kudos

Hi,

i dont have option for adding rows.

I am not getting any option .

i created table object and in that i am getting only one option called setText(). i am not having any option os appending row.

How to do that??

thanks

Chandrasekhar