Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Smartforms Alignment issue (Header Text)

0 Likes
1,629

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.

7 REPLIES 7
Read only

Former Member
0 Likes
1,424

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

Read only

0 Likes
1,424

Hi Ashis,

thank you for valuabel suggetion, but its not working.

Read only

0 Likes
1,424

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

Read only

0 Likes
1,424

Thank you for valuabel suggetion. i will try.

Read only

0 Likes
1,424

Let us know how you go with these suggestions.

Read only

venuarun
Active Participant
0 Likes
1,424

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

Read only

0 Likes
1,424

thank you for suggettion. i will try.