Skip to Content
author's profile photo Former Member
Former Member

SAP query - SQ01 distinct rocord

Hi,

I created a join with VBAK and VBAP tables.

We are trying to get distinct sales order document number based on sales order line item details.

Currently query output is listing sales document number repeated for input.

How we can get a list output with distinct sales document number?.

Kindly help.

Regards,

Shabeer Ahammed

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 27, 2010 at 09:00 PM

    In SQ01, create an infoset instead. To get to info set, SQ01, then Environment InfoSet. Create the info set and save. Then click on Code icon and select the code section. Select the section that code should appear and manually type in the select statement such as 'select distinct vbeln from vbap where vbeln = vbak-vbeln'.

    Generate. Get ABAP help if necessary.

    Role assignment may also be necessary.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.