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

select Querry

Hello friends,

I am having a select query and having problems with it.

Below is the code,

BEGIN OF s_rbkp,

belnr LIKE rbkp-belnr,

bukrs LIKE rbkp-bukrs,

gjahr LIKE rbkp-gjahr,

blart LIKE rbkp-blart,

rbstat LIKE rbkp-rbstat,

xblnr LIKE rbkp-xblnr,

END OF s_rbkp,

BEGIN OF s_vttk,

tknum LIKE vttk-tknum,

exti1 LIKE vttk-exti1,

END OF s_vttk.

SELECT belnr bukrs

gjahr blart rbstat

xblnr

INTO TABLE t_rbkp

FROM rbkp

WHERE belnr IN s_belnr

AND bukrs IN s_bukrs

AND gjahr IN s_gjahr

AND blart = 'RF'

AND rbstat = 'A'.

SELECT tknum exti1

INTO TABLE t_vttk

FROM vttk

FOR ALL ENTRIES IN t_rbkp

WHERE exti1 = t_rbkp-xblnr.

I am having problems in the second select query because

exti1 and xblnr do not have the same characteristics.

Error is - When using the addition "FOR ALL ENTRIES IN itab", the fields "EXTI1"

and "T_RBKP-XBLNR" must have the same type and length.

How can I get this issue solved.

Thanks,

Raju..

Error is - When using the addition "FOR ALL ENTRIES IN itab", the fields "EXTI1"

and "T_RBKP-XBLNR" must have the same type and length.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 21, 2008 at 04:48 PM

    Create a new field in the internal table and move the values there and use it in the SELECT.

    Rob

    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.