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

Problem with Logical Database - Get stmt

Hi,

There is a standard LDB which is used in custom developed report.

GET A

GET B

When there is no record fetched from B table, it moves to end-of-selection and finishes the report execution. But in some cases I dont want this to happen. Only GET A needs to be executed. It need not do a GET B statement, since there is no corresponding record in B table.

If some condition.

GET A.

else.

GET A.

GET B.

endif,

But this is not posiible., since it cant be binded by If stmts.

Please let me know how can this be achieved.

Thanks

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Jul 09, 2009 at 03:57 PM

    You may need to use fm LDP_PROCESS for this.

    Please check demo program DEMO_LOGICAL_DATABASE

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 09, 2009 at 04:09 PM

    Hi,

    Try Reject statment...check Sap help for more info..

    GET A.
    IF some condition.
      REJECT.
    ENDIF..
    
    GET B.
    endif,

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thats fine. But I dont want the GET B to get executed. Since there is no record in tht table for tht condition.

      Get B -> Fetch wil return no record. So it goes to end-of-selection and completed report processing. But in my case it shouldnt happen. It should proceed further down in processing the report. So only i thought

      If some condition.

      Get B

      endif.

      So when there is no record case, Get B will not be executed. Binding by if is not possible.

      So please let me know how to proceed

  • author's profile photo Former Member
    Former Member
    Posted on Feb 10, 2010 at 04:36 AM

    Solved

    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.