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

Fetching data using BEGDA, ENDDA in PA0009.

I have to fetch data from PA0009 for <b>one particular PERNR</b>.

let me know if the following condition will <b>always</b> pick a unique record or not.

Select * from PA0009

into table it_pa0009

where BEGDA <= SY-datum and

ENDDA >= Sy-DATUM and

BNKSA = '0'.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 01, 2007 at 05:45 AM

    You may not get unique record..

    Please keep where condition properly

    use subty field in where condition ,if you use this condition then you will get it.

    Try to see the data in SE11 and run your program in debugging and see the results.

    Thanks

    Seshu

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 01, 2007 at 05:48 AM

    Hi,

    The following is the primary key in table PA0009.

    PERNR
    SUBTY
    OBJPS
    SPRPS
    ENDDA  "<<<<
    BEGDA "<<<<
    SEQNR
    

    So you select will not pick a unique record.

    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.