Application Development 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: 

Need solution regarding Paragraph formats in SAP scripts

Former Member
0 Kudos

Hi All,

I have column headers under that column headers iam displaying data. which is going on to multiple pages.i have 6 columns. iam getting 8 records. for some records

does'nt contain data for some fields . in that situation the data is not displaying under the coressponding column. if all the fields contain data the data is displaying under the coresponding columns. i defined paragraph format with tabs 10 20 30 40. as T1. and iam using this paragraph format. Please give me the solution to display the data under the corressponding column headers.

Thanks and Regards

Ramesh

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi,

In SAPSCRIPT displaying the data under the column headings is all about measurement. There is no other mechanism, which can do this. The better way is to maintain your tab with the minimum measurement and further in your line editor you use <b>,,</b> for one tab. Hence use this mechanism and arrange your data accordingly.

This is the only way you can achieve ur result, pls remember patience is the key in SAPSCRIPT.

Reward points if useful.

Rgds

3 REPLIES 3

Former Member
0 Kudos

hi,

In SAPSCRIPT displaying the data under the column headings is all about measurement. There is no other mechanism, which can do this. The better way is to maintain your tab with the minimum measurement and further in your line editor you use <b>,,</b> for one tab. Hence use this mechanism and arrange your data accordingly.

This is the only way you can achieve ur result, pls remember patience is the key in SAPSCRIPT.

Reward points if useful.

Rgds

Former Member
0 Kudos

Hi,

After creating the paragraph format with tabs have you used double comma(,,) in the text element. In your case you can use like this...

&var_1&,,&var_2&,,&var_3&,,&var_4&,,&var_5&,,&var_6&. Now the first column will be displayed in 1st character position. Then the next colum will start at 10th character postion and 3rd column on 20th character positon and so on. This will avoid the shifting of column data if there is no data in the previous column.

Thanks and Regards,

Bharat Kumar Reddy.V

former_member223537
Active Contributor
0 Kudos

Hi,

In the Text Elements define it as follows :

T1 &&FIELD1&&SPACE(10)&&FIELD2&&SPACE(10)&&FIELD3&&SPACE(10)...........

Best regards,

Prashant