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

Columns required in SAP SCRIPTS

Former Member
0 Likes
422

We have a requirement where in we have to print only column lines in a script output. Please see below

Sale order | Item | Material| Quantity| units|

0001 |0001 |abgs | 10 | 50 |

0002 |0002 |a111 | 10 | 50 |

0003 |0001 |cccs | 40 | 50 |

0004 |0001 |a33s | 50 | 50 |

Here we need to print only the column separators s in column lines but we dont know how many items are to come, if some one has worked on such a requirement please do let me know on how to handle this.

Thanks in Advance

3 REPLIES 3
Read only

Former Member
0 Likes
399

Just see this

/E item "call ur element to the write form

L itab-field1 | itab-field2 | itab-field3

here pass the pipes into ur itab fields in the script for that paragraph format .

I think if it has to display dynamically then u can opt for this ..

See if this works for u .

in the write form call this element.

im preassuming the tab positions for ur paragraph format .

regards,

vijay

Read only

Former Member
0 Likes
399

Hi

You need to define Paragraph format with tabs

You need to define 5 tabs

and write the same line with different variables(of your sapscript) in your sapscript

&order No&,,|&Order item&,,|&Mat Descri&,,|&Quantity&,,|&Units&,,|

it will solve your problem.

Note: header and body should have different Tab spaces.

Read only

Former Member
0 Likes
399

Hi

call WRITE program and assign the items for seperate element. Now u call the form and element in MAIN window and get the result