2010 Jun 09 8:05 AM
Hi frinds
I have developed BDc for uploading long text transaction IA01. Its working fine. But while uploading text first and second line having one space. i have 6 line text. Only problem in first line only. How to remove that space in Two varible
first line item variable is wa_iteam-texline02
wa_iteam-txline03 while upload give one spce two this two variable.
example:
Check the chamber safety valve by settin g the steam chamber pressure to 1.0 kg/cm2 and introduce
wa_iteam-texline02 = Check the chamber safety valve by settin
wa_iteam-txline03= g the steam chamber pressure to 1.0 kg/cm2 and introduce
i want to remove this space between two variable.
Thanks in advance.
Prabu K
2010 Jun 09 10:36 AM
Hi Prabhu,
You can use SAVE_TEXT and COMMIT_TEXT Function modules for the above pupose
instead of BDC.
Thanx..
2010 Jun 09 12:50 PM
Question is...how did the text get split like that to start with? And, are you using the *TEXT function modules to create, save, alter texts?
May not help you, but I had a problem with texts splitting incorrectly due to some problematic string-handling code....what I did was first put my text into a char field of 65,535 length with concatenate and compress to remove extra, then used function module RKD_WORD_WRAP to break on spaces, supplying my desired output length, then stored the texts...works very well. There are other FMs that do this, of course....such as FORMAT_TEXTLINES.