‎2007 Jun 22 7:29 AM
Hi all,
I have a requirement in script where the output should be displayed as follows :
ProdOrder Material Serialno Compnonet compsrno
60003345 SFP_01 1502 SFP_R1 1
60003345 SFP_01 1502 SFP_R2 25
60003345 SFP_01 1503 SFP_R1 2
60003345 SFP_01 1503 SFP_r2 24
Instead it is displaying as follows:
ProdOrder Material Serialno Compnonet compsrno
60003345 SFP_01 1502 SFP_R1 1
60003345 SFP_01 1502 SFP_R2 25
60003345 SFP_01 1503 SFP_R1 2
60003345 SFP_01 1503 SFP_R2 24
how can i add blank line after each kind of serial no ?
The heading may repeat after every blank line .
‎2007 Jun 22 7:32 AM
Priya,
Give the paragraph format in the text edito and leave the link blank.
I mean
p1 &itab-vbeln&.
<b>p1</b>
p1 &itab-ernam&
This will give a line gap after vbeln.
K.Kiran.
Message was edited by:
Kiran K
Message was edited by:
Kiran K
‎2007 Jun 22 7:36 AM
‎2007 Jun 22 7:38 AM
Hi,
You need to write a Perform before printing the Line from the Mail window element, You can use the AT NEW if the New serial number is comes then take a flag and put it as X. then come to Script write like this
IF &FLAG& = 'X'.
NEW-LINE
ENDIF.
Then write the Line items here
Regards
Sudheer
‎2007 Jun 22 11:14 AM
Hi Sudheer ,
I tried what u said ...in print program the flag is X i.e
loop at it_final.
call function 'WRITE_FORM'
exporting
element = 'LIST'
FUNCTION = 'SET'
type = 'BODY'
window = 'MAIN' .
at end of sernr.
flag = 'X'.
endat.
clear flag.
endloop.
but when debugging the script found out that IF &FLAG& is not being executed ..the variable is not being taken into consideration ...could u explain in detail where i went wrong and also about the perform u mentined .
‎2007 Jun 22 11:20 AM
Hi Priya
If u have understood what i have said then there is no need to follow all these logical steps
I'm sure that any one of the above methods will help you to solve your problem
Regards
Pavan
‎2007 Jun 22 11:35 AM
Pavan ,
I need a new line on change of serial number of the material.
as per the steps given by you i get a new line after every record which is not my requirement .
Regards,
Priya.
‎2007 Jun 22 11:41 AM
Priya
Are you calling any report in your script or using only script for all the coding
Regards
Pavan
‎2007 Jun 22 11:46 AM
‎2007 Jun 22 7:38 AM
Hi priya
Let me explain more clearly
Here to give a blank line there are many options in your script itself
on the left side column if u press F4 there u can get the data from there u can select an option "/" generally this is used for blank line
or else u can write like this
/: new-line.
or
between the two statements use (,) if use this u can get space by leaving more space u can achieve this
or
create another paragraph format which is having one line spacing and define it in between the code where u have to get the blank line
reward all helpfull answers
Regards
Pavan