Must have the same type and the same length

hi experts,
DELIVERY_PLANT  data type STRING    //from proxy class, can't be changed
      BEGIN OF ty_citem,
          article type matnr,
          werks   type werks,
       END OF ty_citem,
LOOP AT it_items INTO lv_item.
    lv_citem-article = lv_item-article.
    lv_citem-werks = lv_item-DELIVERY_PLANT.
    APPEND lv_citem TO GT_citem.
    clear lv_citem.
  ENDLOOP.
SELECT matnr werks
       from marc
       into table GT_marc
       for all entries in GT_citem
       where matnr = GT_citem-article  and werks = GT_citem-werks.
error message here:When you use the addition "FOR ALL ENTRIES IN itab", the fields "WERKS"
and "GIT_CITEM-WERKS" must have the same type and the same length.

Hi,
You know for statement FOR ALL ENTRIES in where clause data type and length should be match.
As per my understanding ,here GT_citem-werks is a string. But you know data type of WERKS_D is char with lencth 4.
Use the below select statement.
SELECT matnr werks
       from marc
       into table GT_marc
       for all entries in GT_citem
       where matnr = GT_citem-article  and werks = GT_citem-werks+0(4).
Thanks.
Subhankar

Similar Messages

Maybe you are looking for

  • RPE-01008: Recovery of this request is in progress in process flows.

    Hi, I am calling shell script as an userdefined activity in a process flows. All the process flows were working fine. Today, all the process flows wherever the shell script is called ended up with an error showing " RPE-01008: Recovery of this reques

  • How to create a RAR for deployment?

    I am using SOA Suite 11g. I am a newbie and try to create a simple web service that will invoke a simple sql query to the database. In my BPEL composite, I used the "Invoke" activity to execute a simple sql query using a service created via the "Data

  • PDF file to be attached in mail .Showing error in opening the Document .

    Hi ABAP Gurus , Good Morning ! I converted a smartform to PDF and sended to function SO_NEW_DOCUMENT_ATT_SEND_API1 to send a mail external... So, when I tried to open the file attachment, I can't open this file. and I watch a message : 'There was a e

  • SMC 3.6 can not detect  A5k module

    Hi All , I just install smc 3.6 on solaris 10 special for monitor A5k + zone , on pdf say if i want see a5k module i must install SUNWluxox , any body know abaut the package ? because the patch release only support solaris 8 and 9 ?. thanks

  • CS3 to CS5 Design suite

    I currently have CS3 suite and have been happy running it on my vista 64bit for a few years now. I have got to the stage where CS5 seems to have some tools I would like to try. Now my questions are:- Now if I install a trial version of CS5 will it in