2009 May 04 4:17 AM
Hi,
I am working on the sapscript in which i am having 2 problems i.e. there is a footer window in which there is a box in which i want to draw the line so that it can be divided into 2 parts .
here's d code for it:-
SB Remarks: &WLINES(120)&
SB &WLINES+120(120)&
/
/: BOX XPOS '0' CH YPOS '4' LN WIDTH '114' CH HEIGHT '0' LN FRAME '10' TW
/
SB THIS IS A COMPUTER GENERATED REPORT AND DOESNOT REQUIRE A SIGNATURE
/* &WLINES(80)&
The 2nd problem is of the long text(description) of a thing in which the text gets divided when the line changed in a purticular column.is dere any way through which the text do not get divided when the line chnages.
Plzz provide me guidlines to solve this problem .
Edited by: ricx .s on May 4, 2009 10:07 AM
Hi,
I am working on the sapscript in which i am having 2 problems i.e. there is a footer window in which there is a box in which i want to draw the line so that it can be divided into 2 parts .
here's d code for it:-
SB Remarks: &WLINES(120)&
SB &WLINES+120(120)&
/
/: BOX XPOS '0' CH YPOS '4' LN WIDTH '114' CH HEIGHT '0' LN FRAME '10' TW
/
SB THIS IS A COMPUTER GENERATED REPORT AND DOESNOT REQUIRE A SIGNATURE
/* &WLINES(80)&
The 2nd problem is of the long text(description) of a thing in which the text gets divided when the line changed in a purticular column.is dere any way through which the text do not get divided when the line chnages.
Plzz provide me guidlines to solve this problem .
Edited by: ricx .s on May 4, 2009 10:07 AM
2009 May 04 9:28 AM
Hi,
You can use 'UL' command in sap script. just give it a try.
Varun
2009 May 04 9:38 AM
Hi,
I had tried to do it but it does not have the desiered reslt.
In my 2 nd problem i want to maintain the text of the MIC Description which is displayed in the sapscript does not displayed properly as it just break the works due to the end of the column and comes to the next page.
should i use the SPRO for it and try to make settings in it.
plzz provide me guidleines to solve this problem.
Edited by: ricx .s on May 4, 2009 10:58 AM
2009 May 04 9:35 AM
Hi,
Use the following commands to draw a line in a window.
POSITION WINDOW
POSITION XORIGIN '15.00' CM YORIGIN '12.50' CM
BOX HEIGHT '0.00' CM WIDTH '11.00' CM FRAME 8 TW
set the values of X-ORIGIN YORIGIN and WIDTH acc to ur requirement.
Regards
Rajesh kumar
2009 May 04 11:31 AM
hi rajesh,
thanks for ur help and i had rewarded ur help ,i had managed the window according to my requierment. my first problem is solved but the 2 nd is still pending which i had meintioned in my previous post. plzz provide me guidlines to solve this problem.
2009 May 04 11:39 AM
use '=' command. use it with if condition.
ex:
if wa_char > 30 then use ' =' (extended line) else use '*' (default paragraph)
if its breaking to next page then move your window in sapscript a little upwards. shud solve your problem.
varun
Edited by: Varun Mathur on May 4, 2009 4:12 PM
2009 May 04 11:44 AM
hi,
but there is a code written and should i use it for the whoel code.does it going to effect the whole codiing?
here;s d code:-
/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
plzz provide me guidlines to solve this problem.
2009 May 04 11:45 AM
Hi,
Try out using the following statement.It might solve ur problem.
/: INCLUDE name OBJECT o ID i LANGUAGE l PARAGRAPH p
NEW-PARAGRAPH np
Regards
Rajesh Kumar
2009 May 04 11:57 AM
hi,
where should i use it ,i tried to use it in the begining of the code but it didn't work.as i have to display the description field in a proper format so that it cannot displace the wrods of it.
should i use it in each if else condition statement in the code or somewhere else.to be very honest i had never worked on sap script and i am able to make 3 changes till now and this last change is bit confusing,how can i come to know which include or object id should be used ?
Edited by: ricx .s on May 4, 2009 12:58 PM
2009 May 04 12:06 PM
Hi,
use F1 help by clicking the cursor on INCLUDE of the given statement.
It will give you all the documentation.
Regards
Rajesh Kumar
2009 May 04 12:43 PM
hi,
i am not able to understand his concept.plzz provide em guidleines to solve this problem.
2009 May 05 4:23 AM
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |