on 03-29-2012 7:55 AM
Hi all,
I am creating a table in sap script which is having 4 columns.
The problem is that I want to keep the starting point of each column as fixed.
eg the first col should start from 3 rd row, secood column from 20th row .
I am not able to do so using tabs as the second column's alignment gets disturbed if the content of the first column is small; for a particular row.
Kindly help me and guide me how i can do this
Hi subhabrata,
I assume you have the problem when the value of a column is to long, in that case the columns for that row all move one step to the right.
As far as I know the simplest solution is to make the columns as wide as the maximum value you will be for thatcolumn. If that is not possible. Chop the value at a defined length, you can do this by specifiying the maximum length in brackets as the last part of the variable name just before the &. Like this &MY_VAR(10)&. So even if the contents of MYVAR is 20 character long it will now only print the first 10.
Cheers
Adi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you please quote your question clearly again. Using tabs we are able to fix the positioning. It does not matter whether we have value in prEvious field or not. Please clarify first column 3rd row and 2nd column 20 row not clear.
Nabheet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try using Tabs while printing the data in script.if suppose,you are printing MATNR,ERNAM on script.for that your code in your script is as follows.
AS ,,&IT_MARA-MATNR&,,&IT_MARA-ERNAM&
Under Paragraph format AS ,create tabs as below
1 3 ch " content of the first column would start after 3 space
2 20 ch " content of the second column would start after 20 space
accordingly adjust the tab positions, apply those tabs into script by using Double comma as i mentioned in the above code snippet.i hope this would resolve your issue.
with regards
Naresh Bammidi
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.