on 11-11-2008 1:47 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.