on 04-30-2009 10:12 AM
Hi,
I am working on a sapscript in which i have to decrease the widht of 2 columns but i am not able to understand how to do it. i go to the info part of script saw d coding like his:-
/E FINAL
C1 &i_final-count_c(3Z)& &i_final-text_c(24)& &i_final-result_c(8)&
&i_final-count_m(3)& &i_final-text_m(22)& &i_final-result_m(8)&
&i_final-nonconfirm_m(10)& &i_final-count_mi(3)& &i_final-text_mi(25)&
= &i_final-result_mi(8)& &i_final-nonconfirm_mi&
/* ************************************************************
/* **** CHANGE THE NAME OF VARIABLE C, M AND MI RESPECTIVELY
/* ************************************************************
/* FOR CRITICAL PROPERTIES
/: IF &I_FINAL-TEXT_C+24(16)& NE ' '
C1 &i_final-text_c+24(16)&,,,,&i_final-result_c+8(8)&,,
&i_final-text_m+22(18)&,, &i_final-result_m+8(8)&,,,,,,,,
&i_final-text_mi+25(15)&,,,, &i_final-result_mi+8(8)&
/: ELSEIF &I_FINAL-RESULT_C+8(8)& NE ' '.
&temp(40)& &i_final-result_c+8(8)&,, &i_final-text_m+22(18)&
= ,, &i_final-result_m+8(8)&,,,,,,,, &i_final-text_mi+25(15)&,,
= &i_final-result_mi+8(8)&
/* FOR MAJOR
/: ELSEIF &I_FINAL-TEXT_M+22(18)& NE ' '
C1 &i_final-text_c+24(16)&,,,,&i_final-result_c+8(8)&,,
&i_final-text_m+22(18)&,, &i_final-result_m+8(8)&,,,,,,,,
&i_final-text_mi+25(15)&,,,, &i_final-result_mi+8(8)&
/: ELSEIF &I_FINAL-RESULT_M+8(8)& NE ' '
C1 &i_final-text_c+24(16)&,,,,&i_final-result_c+8(8)&,,
&i_final-text_m+22(18)&,, &i_final-result_m+8(8)&,,,,,,,,
&i_final-text_mi+25(15)&,,,, &i_final-result_mi+8(8)&
/: ELSEIF &I_FINAL-TEXT_MI+25(15)& NE ' '
C1 &i_final-text_c+24(16)&,,,,&i_final-result_c+8(8)&,,
&i_final-text_m+22(18)&,, &i_final-result_m+8(8)&,,,,,,,,
&i_final-text_mi+25(15)&,,,, &i_final-result_mi+8(8)&
/: ELSEIF &I_FINAL-RESULT_MI+8(8)& NE ' '
C1 &i_final-text_c+24(16)&,,,,&i_final-result_c+8(8)&,,
&i_final-text_m+22(18)&,, &i_final-result_m+8(8)&,,,,,,,,
&i_final-text_mi+25(15)&,,,, &i_final-result_mi+8(8)&
/: ENDIF.
/E BREAK
/: NEW-PAGE
Please provide me guidlines where i can make the changes to decrease the width of the lines.
Edited by: ricx .s on Apr 30, 2009 11:29 AM
Hello,
The spacing between the columns can be decreased by reducing the number of tabs used in the code.
Actually a double comma ( ,,) indicates a tab position.
Here, in the code you can see 4 commas. You can reduce this to 2.
Another way is to change the tab positions of paragraph format C1.
Thanks,
Sowmya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can make changes in the offsets if it is not harming the display of the data...
for example
&i_final-text_c+24(16)&,,,,&i_final-result_c+8(8)&,, " in this line you can reduce +24(16) to +24(10)
" or to something else where the display of data is not harmed
&i_final-text_m+22(18)&,, &i_final-result_m+8(8)&,,,,,,,, " and also in this line +22(18) to +22(10 or 12) or
" something
&i_final-text_mi+25(15)&,,,, &i_final-result_mi+8(8)& " in this line + 25(15) to +25(10 or 12)
" or something
and also in the line just after the final text element
&i_final-count_c(3Z)& &i_final-text_c(24)& &i_final-result_c(8)& " you can change the offsets
" which are there in the brackets where the display of the data is not harmed
&i_final-count_m(3)& &i_final-text_m(22)& &i_final-result_m(8)&
&i_final-nonconfirm_m(10)& &i_final-count_mi(3)& &i_final-text_mi(25)&
&i_final-result_mi(8)& &i_final-nonconfirm_mi&
Regards,
Siddarth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
for all the lines...
&I_FINAL-RESULT_MI+8(8)& NE ' '
C1 &i_final-text_c+24(16)&,,,,&i_final-result_c+8(8)&,,
&i_final-text_m+22(18)&,, &i_final-result_m+8(8)&,, " *,,,,,,* reducing these many tab spaces
&i_final-text_mi+25(15)&,, " *,,* and reducing 1 tab space...
&i_final-result_mi+8(8)&
by removing thos many comma's which has been mentioned in red will decrease width of the column
Regards,
Siddarth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
I had tried as u had said but there is no such difference among it ,i am chekcing on the same client .
I had removed all the ,, in the script. but when i execute through my program it is still displaying the output not properly.
plzz provide me guidlines to solve this problem.
Edited by: ricx .s on Apr 30, 2009 12:46 PM
yes i had activated the form and i am doing the adjustments,now the data is displaying bit ok, actualy the data is to be displayed in the specified columns and now i want to know how to reduce the column width in it? i think i have to make adjustements in the column also so that it can be displayed more properly.
how can i know that this purticular line is available for this column.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.