Application Development 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: 

Comparative Statement

adnanmaqbool
Contributor
0 Kudos

Dear Guys

I am developing a comparative statements having vendor names as table colums and details below the vendor name.

Now a problem is that each vendor can have different line items. For egample if I write 10 line items for first vendor , how can I go back at top for writing the detials of second vendor from top to down.

Example

Vendor1 Vendor2 Vendor3

XY

XZ

22

Now in above example If had printed the data till 22 for first vendor how can i start writing from top line once again for vendor 2 becuase I think ABAP dont support to go back on first line.

5 REPLIES 5

former_member673464
Active Contributor
0 Kudos

hii...

If you want to display as output you can use skip to line for your requirement.

SKIP for Positioning

Absolute position of the display in a list.

Syntax

SKIP TO LINE <lin>.

Positions the list display in the line <col>.

regards,

veeresh

Former Member
0 Kudos

Hi,

You can process all the vendors at a time . like you read for line item no. 1 for vendor 1, then read for line item 1 for vendor 2 and so on... and keep all the vendor details for line item 1 in line 1 and keep doing that .. .

and end of the processing display all the lines

Hope this will solve your probelm

Assign reward points if it helps.

-Gaurang

Former Member
0 Kudos

it can be possible in SAP also , but just u have to create dynamic internal tables to get desire o/p.

Regards

Prabhu

Former Member
0 Kudos

Hi,

did u get your problem solved by this ? Actually my requirement is aslo same..

Former Member
0 Kudos

WRITE:/ 'HELLO World'.

SKIP TO LINE 5.

POSITION 10.

WRITE:/ 'NEW LINE'.

Try this 4 line into ABAP program.