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

Select

hi to all,

help me in this issue

SELECT *

FROM ZFtable

INTO IT_cus

WHERE ZSTAT = IT_CUSBAL-ZSTAT

AND ZINVIND = ' '

AND TRANSINST EQ ' '

when i keep this transinst eq ' ' it is not collecting any date but date is therein database is there any mistake in select stament.

thanks in advance

kiran kumar

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2006 at 12:24 PM

    You can do the following :

    SELECT *

    FROM ZFtable

    INTO IT_cus

    WHERE ZSTAT = IT_CUSBAL-ZSTAT

    AND ZINVIND = ' '

    AND TRANSINST <b>= SPACE.</b>

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2006 at 12:30 PM

    Hi,

    Check the data type of this field "TRANSINST"...

    also check the initial value of the data type..

    Try to compare it with the initial value.

    Regards

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2006 at 12:31 PM

    Hi Kiran,

    Kindly try this code:

    SELECT * FROM zftable INTO it_cus
    WHERE zstat EQ it_cusbal-zstat
    AND   zinvind <b>IS INITIAL</b>
    AND   transinst <b>IS INITIAL</b>.

    hope this helps!

    best regards,

    Thangesh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2006 at 12:37 PM

    Hi kiran,

    there are 2 ways.

    first create a field like TRANSINST and let it initial.

    data TRANSINST like ZFTABE-TRANSINST.

    *

    SELECT * FROM ZFTABE where TRANSINST = TRANSINST.

    ...

    ...

    ENDSELECT.

    *

    Another way is to check with initial.

    Regards, Dieter

    Message was edited by: Dieter Gröhn

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2006 at 12:40 PM

    It seems that the value in the field for TRANSINST is not SPACE. Hence It is not returning you any data.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 17, 2006 at 12:48 PM

    Hi kiran,

    u query is fine..but It seems that the value in the field for TRANSINST is not equal to SPACE. So u r not getting any values.Chek the same...

    Regards,

    nagaraj

    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.