Skip to Content

Subquery using 0CLR_DOC_NO data while selecting data by 0AC_DOC_NO


I'm trying to create two querries:

1. Dispalying data of documents (selection by user)

2. Displaying data of clearing documents for those documents that were choosen in the first query.

like that:

Q1 Q2

... ...

0ac_doc_no ...

0clr_doc_no <=> 0ac_doc_no

... ...

... ...

(above model is simlified - I would use appropriate time characteristics in this case to avoid errors)

Using the standard SUBQUERY technics (variable / replacement path / query ) is as far as I know is impossible because in this case referencial characteristisc is always the one.

Also, I was trying to create two replacement path variables (one using another in replacement path) but after creating the first variable it is not seen as a variable to be choosen in the second variable.

Any suggestions will be appreciated.

Regards, Leszek

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 09, 2015 at 01:44 PM

    Create a variable on document -> Choose processing by replacement path -> Go to replacement path tab -> Replace with Query and give the query name.

    It will take output of the source query and execute.

    Hope it answers - Kumar

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Leslaw Piwowarski

      You try by maintaining only 0clr_doc_no in your first query to take input for second query. It should work as expected.

      RRI will take only selected value as input to jump to other query. If you want to use it, you need to take higher level attribute to jump. But it will bring all doc number related to that value.

      - Kumar

  • Posted on Oct 12, 2015 at 06:45 AM

    Hi Leslaw,

    Try to use Report-to-Report interface, RSBBS T/code.



    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.