cancel
Showing results for 
Search instead for 
Did you mean: 

problem in changing the space between the lines in sap script

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

i had tried to solve the problem by reducing and increasing the space lines but there is no effect on the script output.

plzzz provide me guidleines to solve this problem.

Former Member
0 Kudos

This should work. Remember SAPscripts are client dependent so if you are making changes in one client and testing in another you need to transport the script.

Former Member
0 Kudos

Hi,

Did you do remove ',,,,,,' from all the places because i see so many similar statements which has that... so have you removed it from all places...

and also did you activate the script after making the changes..

Regards,

Siddarth

Former Member
0 Kudos

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

Former Member
0 Kudos

did u activate the form...

Former Member
0 Kudos

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.