‎2008 Jul 17 8:05 AM
hi,
i want 0100000000100 2006 to get it as 0100000000100. it means i need to split at space.
is this statement right?
SPLIT it_bkpf-awkey AT '' INTO it_bkpf-awkey.
please help.
‎2008 Jul 17 8:11 AM
Hi,
The Syntax will be
SPLIT it_bkpf-awkey AT SPACE INTO <two turget string in which you will store the split string>regards,
anirban
‎2008 Jul 17 8:10 AM
Hi,
Try this and check.
SPLIT text AT space INTO it_bkpf-awkey. (SPACE is an ABAP keyword)
Hope this would help you.
Murthy
‎2008 Jul 17 8:15 AM
‎2008 Jul 17 8:18 AM
hi,
i guess u r trying to populate it into body of internal table rather than a variable or work area.
Can u check it_bkpf-awkey is field in the body of internal table, if so change it to work area or any other variable.
revert back if any issues,
Regards,
Naveen
‎2008 Jul 17 8:11 AM
Have you tried it and did did it work?.
Either way, you've answered your own question. What next?.
‎2008 Jul 17 8:11 AM
Hi,
The Syntax will be
SPLIT it_bkpf-awkey AT SPACE INTO <two turget string in which you will store the split string>regards,
anirban
‎2008 Jul 17 8:12 AM
hi,
Use SPLIT Keyword.
SPLIT var from space into V1 V2.
String before space will stored in V1.
String After Space stored in V2.
Hope this will help.
Regards
Sumit Agarwal
‎2008 Jul 17 8:13 AM
Hi Poonam,
try this:
SPLIT it_bkpf-awkey AT SPACE INTO it_bkpf-awkey.
Hope this helps you.
Regards,
Chandra Sekhar
‎2008 Jul 17 8:16 AM
Hi
Split will break the string into two parts with the condition.
SPLIT
'Jatender#Narang'
AT '#'
INTO: str1 str2.
The str1 contains 'Jatender'
and str2 contains 'Narang'.
If helpfull please reward.
Jatender Narang
‎2008 Jul 17 8:37 AM
Hi,
it giving as it_bkpf-awkey ended unexpectedlyit is expected. because after split in your case you will get two substrings whereas you are providing space for only one. thats why in my above syntax i asked you to provide 2.
after the allocation you may write the first to get your desire output.
Regards,
anirban