cancel
Showing results for 
Search instead for 
Did you mean: 

How to draw horzontal line after every material new line item wise

Former Member
0 Kudos

Hi all,

I have to redesign the sapscript.

For a invoice for every new material a horizontal line will be drawen.After that for that material all new line item will be displayed than again a horizontal line should drawn.

In dynamic how i can know how many line item will be there for the particular material.

Guranted points will be rewarded .

Regards

raj

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

It is difficult to dynamically get the no of records. You can define a Text Element for horizontal line which you can call after the line item text element.

Eg.

at new material.

perform write_form using 'H_LINE' 'MAIN'

perform write_form using 'LINE_ITEM' 'MAIN'.

perform write_form using 'H_LINE' 'MAIN'

endat.

In your Sapscript, in the main window -

/E LINE_ITEM

p ........

p.......

/E H_LINE

/: Uline(no_of_chars)

/

Hope This Helps!