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

sapscript

Former Member
0 Likes
932

hi,

in sapscript what is the use 3 tabs in character format? we can define the tab with 2 commas , it need only one tabs, then what is the extra 2 tabs?

and also what is the use left right, center in tabs,

pls explain

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
912

Hi,

Tab format is use to put the data at partucular place. e.g.: if you have defined 3 tabs. First tabs is for 1cm, 2nd tab at 5cm & 3rd tab is 8cm. Then when the output is being displayed then the first tab will start writing the data on page from left after leavin 1cm space. 2nd tab will write the data leaving the space 5cm from the left side of the page. & 3rd will write the data form 8cm form the left.

Reward points if helpful answer.

Ashvender

6 REPLIES 6
Read only

Former Member
0 Likes
913

Hi,

Tab format is use to put the data at partucular place. e.g.: if you have defined 3 tabs. First tabs is for 1cm, 2nd tab at 5cm & 3rd tab is 8cm. Then when the output is being displayed then the first tab will start writing the data on page from left after leavin 1cm space. 2nd tab will write the data leaving the space 5cm from the left side of the page. & 3rd will write the data form 8cm form the left.

Reward points if helpful answer.

Ashvender

Read only

Former Member
0 Likes
912

Hi

Character formats are like

C - Centered

L - Left alligned ( means the data starts from Left side begining)

R - Right alligned (from Right end side)

B - Bold

You can define the paragraph format(say ZA) and define tab settings in it to display the fields at proper positions

Tabs wills

10 CHAR LEFT

30 CHAR left

40 CHAR right

and the data of fields will be written as

ZA &itab-EBELN&,,&ITAB-EBELP&,,&ITAB-MATNR&

two commas indicate the TAB setting space between fields

<b>Reward points for useful Answers</b>

Regards

Anji

Read only

0 Likes
912

how it will identify that which tab is using

Read only

0 Likes
912

Hi,

Wen you output the different field in a line then you need to use the comma two times:

e.g:


,,itab-a ,, itab-b ,, itab-c

two times comma before itab-a represents the first tab.

two times comma before itab-b represents the 2nd tab.

two times comma before itab- represents the 3rd tab.

If you want to use two tabs together then you need to write like this:

,,,, itab-a

Reward points if helpful answer.

Ashvender

Read only

0 Likes
912

but if there are more thhan 3 fields, suppose threre are 5 fields , how to use that

Read only

0 Likes
912

Hi,

You can create 5 tabs in script.

Ashvender