Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Display in Scripts

Former Member
0 Likes
763

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 .

9 REPLIES 9
Read only

kiran_k8
Active Contributor
0 Likes
743

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

Read only

Former Member
0 Likes
743

Hi,

Give * or Paragraph Format.

Thanks,

Anitha

Read only

Former Member
0 Likes
743

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

Read only

0 Likes
743

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 .

Read only

0 Likes
743

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

Read only

0 Likes
743

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.

Read only

0 Likes
743

Priya

Are you calling any report in your script or using only script for all the coding

Regards

Pavan

Read only

0 Likes
743

I am calling the script by a print program.

Read only

Former Member
0 Likes
743

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