â2015 Feb 19 10:45 AM
Dear All,
first we have created function module read_text.when user want what ever the data posted in header text through me21n . automatically shown in out put.but having allignment issue.
There are 7line in paragraph.please help me how to allignment in 7 line.
below the screenshots.
â2015 Feb 19 12:58 PM
Hi,
In Read text, You must be getting Table with 7 records in It.
Loop into the table and split each record at ':', and store it in an internal table.
Now you can use a template inside that loop on internal table with two columns with fixed length for each column
in template, in first column display record of Odd table indexes, e.g. sy-tabix = 1,3,7 i.e : not divisible by 2
and in second column display record of even table indexes e.g , 2,4,6 i.e divisible by 2.
Hope this will solve your problem
Thanks,
Ashish
â2015 Feb 23 5:21 AM
Hi Ashis,
thank you for valuabel suggetion, but its not working.
â2015 Feb 23 5:46 AM
Hi Rasmi,
Try to make use of FM CALL FUNCTION 'FORMAT_TEXTLINES' or CALL FUNCTION 'FOPC_CONVERT_TEXT_TO_STR'
Refer to thread
Formatting Long Texts in SAP Scripts - Code Gallery - SCN Wiki
http://scn.sap.com/thread/1574856
Regards
Sandy
â2015 Feb 23 6:55 AM
â2015 Feb 23 7:09 AM
â2015 Feb 23 6:10 AM
Hi Rasmi,
Create a include text for that, I think it will solve your issue, Anyway your are using the read text to get the terms and conditions, so you can pass it to here by include text.
With Regards
Arun VS
â2015 Feb 23 6:56 AM