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

Regarding select statement

Hi ,

data: t_coss like coss occurs 0 with header line.

concatenate 'OP' t_aufk-aufnr '%' into l_aufnr.

select * from coss into corresponding fields of table t_coss

where OBJNR = l_aufnr and

VRGNG = 'KSOS'.

in the above statement i want to get all teh records from table which have

l_aufnr as OP000001147344*

ie there are almost 5 records in teh table with l_aufnr value as

OP0000011473440002

OP0000011473440003

OP0000011473440006

OP0000011473440007

OP0000011473440009

as of now iam writing the l_aufnr as above but the statementis failing to fetch data please suggest

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Aug 12, 2009 at 12:38 AM
    SELECT * FROM coss INTO CORRESPONDING FIELDS OF TABLE
      WHERE OBJNR LIKE 'OP000001147344%'
       AND VRGNG = 'KSOS'.
    

    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.