Structure mapping is incorrect....urgent

Hi Folks,
in the below code itab  and itab1 structures are diffetenr. I need to move itab1 data into itab from that itab i suppose to pass data to ztable. when i am chk below code i am getting error as structure is not mapping. Can u plz change the code according to my requiremt.
TABLES: ZCRM_DM_VBRP.
TYPES: BEGIN OF TS_ZCRM_DM_VBRP.
       INCLUDE STRUCTURE ZCRM_DM_VBRP.
TYPES: END OF TS_ZCRM_DM_VBRP,
       TT_ZCRM_DM_VBRP TYPE STANDARD TABLE OF TS_ZCRM_DM_VBRP .
DATA:  WA_ZCRM_DM_VBRP TYPE TS_ZCRM_DM_VBRP,
       ITAB TYPE  TS_ZCRM_DM_VBRP OCCURS 0 WITH HEADER LINE.
DATA: T_OPTIONS  TYPE TABLE OF  RFC_DB_OPT INITIAL SIZE 10,
      T_FIELDS   TYPE TABLE OF  RFC_DB_FLD INITIAL SIZE 10.
STRUCTURE DECLARATION
TYPES: BEGIN OF TS_DATA.   "OCCURS 0,
       INCLUDE STRUCTURE TAB512.
TYPES: END OF TS_DATA,
       TT_DATA   TYPE STANDARD TABLE OF TS_DATA .
**WORK AREA DECLARATION
DATA:  WA_T_DATA TYPE TS_DATA.
INTERNAL TABLE DECLARATION
DATA: ITAB1 TYPE TS_DATA OCCURS 0 wIth header line.
                  START-OF-SELECTION                                         *
START-OF-SELECTION.
*CALLING FUNCTION MODULE TO READ TABLE FROM REMOTE CLIENT.
CALL FUNCTION 'RFC_READ_TABLE' DESTINATION  'DAACLNT060'
  EXPORTING
   QUERY_TABLE                =  'ZCRM_DM_VBRP'
   DELIMITER                  =  '   '
   NO_DATA                    =  '   '
   ROWSKIPS                   =  0
   ROWCOUNT                   =  0
  TABLES
    OPTIONS                   = T_OPTIONS
    FIELDS                    = T_FIELDS
    DATA                      = ITAB1
EXCEPTIONS
   TABLE_NOT_AVAILABLE        = 1
   TABLE_WITHOUT_DATA         = 2
   OPTION_NOT_VALID           = 3
   FIELD_NOT_VALID            = 4
   NOT_AUTHORIZED             = 5
   DATA_BUFFER_EXCEEDED       = 6
   OTHERS                     = 7          .
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP THE INTERNAL TABLE
LOOP AT ITAB1 INTO WA_T_DATA.
move-corresponding WA_T_DATA TO ITAB.
append itab.
ENDLOOP.

Ur correct code is here.
TABLES: ZCRM_DM_VBRP.
TYPES: BEGIN OF TS_ZCRM_DM_VBRP.
INCLUDE STRUCTURE ZCRM_DM_VBRP.
TYPES: END OF TS_ZCRM_DM_VBRP,
TT_ZCRM_DM_VBRP TYPE STANDARD TABLE OF TS_ZCRM_DM_VBRP .
DATA: WA_ZCRM_DM_VBRP TYPE TS_ZCRM_DM_VBRP,
ITAB TYPE standard table of TS_ZCRM_DM_VBRP OCCURS 0 WITH HEADER LINE.
DATA: T_OPTIONS TYPE TABLE OF RFC_DB_OPT INITIAL SIZE 10,
T_FIELDS TYPE TABLE OF RFC_DB_FLD INITIAL SIZE 10.
STRUCTURE DECLARATION
TYPES: BEGIN OF TS_DATA. "OCCURS 0,
INCLUDE STRUCTURE TAB512.
TYPES: END OF TS_DATA,
TT_DATA TYPE STANDARD TABLE OF TS_DATA .
**WORK AREA DECLARATION
DATA: WA_T_DATA TYPE TS_DATA.
INTERNAL TABLE DECLARATION
DATA: ITAB1 TYPE TS_DATA OCCURS 0 wIth header line.
START-OF-SELECTION *
START-OF-SELECTION.
*CALLING FUNCTION MODULE TO READ TABLE FROM REMOTE CLIENT.
CALL FUNCTION 'RFC_READ_TABLE' DESTINATION 'DAACLNT060'
EXPORTING
QUERY_TABLE = 'ZCRM_DM_VBRP'
DELIMITER = ' '
NO_DATA = ' '
ROWSKIPS = 0
ROWCOUNT = 0
TABLES
OPTIONS = T_OPTIONS
FIELDS = T_FIELDS
DATA = ITAB1
EXCEPTIONS
TABLE_NOT_AVAILABLE = 1
TABLE_WITHOUT_DATA = 2
OPTION_NOT_VALID = 3
FIELD_NOT_VALID = 4
NOT_AUTHORIZED = 5
DATA_BUFFER_EXCEEDED = 6
OTHERS = 7 .
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP THE INTERNAL TABLE
LOOP AT ITAB1 INTO WA_T_DATA.
move-corresponding WA_T_DATA TO ITAB.
append itab.
ENDLOOP.
reward if useful.
Amit Singla

Similar Messages

  • Structured mapping

    Hi
    Is there anything like structure mapping in xi ?? or otherwise whatever the mappings that we use like ABAP, XSLT, JAVA etc .......will be called as structure mapping ?? If I got to choose out of these which XI supports
    a. Structure Mapping
    b. Node mapping
    c. Value Mapping
    d. Functional Mapping
    then I believe value mapping is the only one that XI supports. plz correct  me if I am wrong.
    thanks
    kumar

    Kumar,
    As far as my references and understanding the answer to your question is
    <b>Structure Mapping</b>  & <b>Value Mapping</b>.
    <b><i><b>SAP Definition:</b></i></b>
    Define Mapping rules to assign fields that are semantically identical - <b>Structure Mapping</b>
    Conversion rules to transfer the field content to target format -<b>Value Mapping</b>.
    Best regards,
    raj.
    Message was edited by:
            Raj

  • Explain How to use Structure mapping button

    Hi All
    Iam Developing an application "Implementing and Using Exceptions in Guided Procedures"
    Can you please explain How to use Structure mapping button,
    Plz give me steps in details
    Thanks
    Srinivas

    Hi
    Create a project using 0020 as method.
    Max

  • Value mapping,Structure mapping

    Hi GURUs,
    I need inforamtion regarding structure mapping.
    conversion rules,Node , boolean,constant etc example.
    I will give points to every one.

    Hi ,
    The following websites wil provide u with required solution:
    Excellent PDF Document on Mapping
    http://help.sap.com/bp_bpmv130/Documentation/Operation/MappingXI30.pdf
    Mapping Development with the ABAP Workbench
    http://help.sap.com/saphelp_nw04/helpdata/en/10/5abb2d9df242f6a62e22e027a6c382/content.htm
    ABAP Mappings
    http://help.sap.com/saphelp_nw04/helpdata/en/ba/e18b1a0fc14f1faf884ae50cece51b/content.htm
    how to create a flat file out of an IDoc-XML by means of an ABAP mapping program and the J2EE File Adapter.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a
    How to Use ABAP Mapping in XI 3.0
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e3ead790-0201-0010-64bb-9e4d67a466b4
    cheers!
    gyanaraj
    ****Pls reward points if u find this helpful

  • Resource map is incorrect

    I have a file showing a quicktime icon in a Final Cut Pro 5 folder. When I try to open it in Quicktime I get a resource map is incorrect error. Trying to open it in FCP5 give a general error.
    What is a resource map is incorrect error and what would cause it?
    Any to correct it?
    Thanks

    The "Google" in my post above contains the search parameters that I put into Safari.
    I entered "resource map quicktime" -without the quotes. Maybe it only works properly if you use Safari as that is also part of the URL:
    http://www.google.com/search?client=safari&rls=en-us&q=resourcemapquicktime&ie=UTF-8&oe=UTF-8
    The link to the thread here on AD was: http://discussions.apple.com/thread.jspa?messageID=6141662
    Depending on the browser, you might have to right click, choose copy link and paste it in the address bar.

  • "Resource map is incorrect" - msg.  can't open QT mov.

    I thought I safely backed up a number of files, including movies and stills to an external drive. Now when I try to open these, I get the following message:
    *The movie could not be opened. The resource map is incorrect.*
    This is a first for me - and a scary one, although I think I have other copies of most of these files on another drive. I wonder what happened? Googling around, it seems others have had this experience - possibly a resource fork being stripped in the data transfer...and apparently, virtually no way to reconstitute or recover, although someone thought that a ResEdit expert (I'm not that) might have some luck. The same thing happens when I copy these files to the desktop.
    With the jpegs, I'm getting a message: *Couldn't open the file. It may be corrupt or a file format that Preview doesn't recognize.*
    I'm at a loss...you'd think your backed up files are safe. As I recall, these were simply dragged from files on my computer to the plugged in external drive - as I've done for years. Oddly enough, a few of the movies in certain folders do open up - apparently not affected.
    A real mystery. Any help/suggestions appreciated.
    k.

    Thanks BD and Japamac,
    MS DOS/FAT - a Windows format? I don't think so. This is a Seagate Barracuda 200 GB/7200 RPM typical of drives I use to back up files. It's possible it wasn't formatted correctly, although every drive I have gets the usual initiation. Get Info tells me its Mac OS Extended (Journaled)
    One of the files that does open is a 5.83 GB QT movie.
    I'm going to drag a few files into this drive to see what happens: OK, dragging a 1.67 GB movie into the external drive gives me an error message (Error code - 36): "Finder cannot complete operation because some data in (file name) could not be read or written" This is a file that plays fine in QT player on my computer. Let' try a few jpgs": These are Graphic Converter copies, but GC isn't recognizing them (Unknown format message.) Tried a few more QT files and Picture Viewer ones - all getting Error-36.
    Could the drive be corrupted in some way?
    I think Japamac's idea to use cloning from now on is a good one..but D&D never failed me until now...
    What about wiping this drive and reformatting? Any recommended optional procedure in Drive Utility?
    Also: yes, this is FW, and I've had no issues with the cable so far. Will try another external drive to make sure.

  • Mp3 won't play. "The Resource map is incorrect".

    Symptom:
    When I double click an mp3 in finder, quicktime gives an error:
    *"The movie could not be opened. The resource map is incorrect"*
    When I press spacebar to try and hear it, the preview shows the artwork, but no music plays.
    *What I've tried:*
    When I do a "get info", finder correctly reports that it is a "+Mp3 Audio+" and not a movie
    I tried to reinstall quicktime 7.5.5 to no avail.
    The music opens fine in itunes.
    Any ideas? Thanks!

    How is the drive where the clips are stored, formatted?
    Macs use HFS+ (Mac OS Extended) formatting which provides for support of Resource Forks in files.
    Windows FAT format does not provide this functionality -it is a so called flat format -Resource Forks are stripped from the file. Your Mac needs that information to tell the operating system how to handle the files, for instance, what application opens them.
    If your drive is indeed FAT formatted as most "off the shelf" drives are, you will have to reformat (Erase) it using Disk Utility and recapture the footage. This will of course destroy all information on the drive.

  • General error: The resource map is incorrect?

    I'm getting a 'General Error' with a number of clips on the timeline. I go to the media, try to open it in Quicktime, and get a pop-up: 'The resource map is incorrect.'
    Is any repair possible, or do I have to recapture the material? It would be interesting to know what the 'resource map' is, and if there is anything I might have done personally to make it 'incorrect'.
    Ben

    How is the drive where the clips are stored, formatted?
    Macs use HFS+ (Mac OS Extended) formatting which provides for support of Resource Forks in files.
    Windows FAT format does not provide this functionality -it is a so called flat format -Resource Forks are stripped from the file. Your Mac needs that information to tell the operating system how to handle the files, for instance, what application opens them.
    If your drive is indeed FAT formatted as most "off the shelf" drives are, you will have to reformat (Erase) it using Disk Utility and recapture the footage. This will of course destroy all information on the drive.

  • Cannot open ... because file's resource map is incorrect.

    I need the ability to open QT files and FCP movies in QT 6.0.1 while booted to OS 9.2.2. However, even though the files open fine in OSX QT7 and FCP 5 (as well as FCP3) applications, I very often get an error message when trying to open them in OS9 with QT6:
    Cannot open "<flename>" because a file's resource map was incorrect.
    Is there a utility to fix this?
    Thansk,
    Cris

    Possible $50 solution:
    http://www.lacie.com/products/product.htm?pid=10498
    LaCie FastCoder
    Pocket-sized DV to MPEG transcoder
    LaCie FastCoder
    User Benefits:
    * Pocket-sized DV to MPEG-1 and MPEG-2 hardware encoder
    * Compact, silent and FireWire bus-powered
    * Full support for QuickTime compatible files
    * High-quality, real-time encoding on G3, G4 and G5 Macs with built-in FireWire ports
    A unique real-time encoder, this compact, silent device allows you to quickly convert DV NTSC to MPEG-1 and/or MPEG-2 files using a FireWire bus. The LaCie FastCoder is compatible with Mac OS 9.2 and OS X 10.2.6 or greater. It comes bundled with the Capty FastCoder Utility for hardware encoding, Capty DVD/VCD 2.x (Full Version) for DVD and Video CD authoring, and SilverKeeper software for backing up your projects. This easy to use, portable encoder supports QuickTime full quality DV-compatible files exported from Apple’s Final Cut Pro, Final Cut Express, iMovie, or Adobe Premiere Pro.
    specs...
    MPEG-2
    2 to 10Mbits/s (CBR/VBR)
    2 to 6Mbits/s (VBR Elementary Stream)
    (from B&H web site)
    For $50, might as well give it a try!
    --Cris

  • The resource map is incorrect

    For some reason all of my quicktime files on my external hard drive will no longer open.  I get this error :  The resource map is incorrect.
    Is there anyway to fix these files or get them open?

    How is the drive where the clips are stored, formatted?
    Macs use HFS+ (Mac OS Extended) formatting which provides for support of Resource Forks in files.
    Windows FAT format does not provide this functionality -it is a so called flat format -Resource Forks are stripped from the file. Your Mac needs that information to tell the operating system how to handle the files, for instance, what application opens them.
    If your drive is indeed FAT formatted as most "off the shelf" drives are, you will have to reformat (Erase) it using Disk Utility and recapture the footage. This will of course destroy all information on the drive.

  • All "Site Content and Structure" default views incorrectly showing "There are no items to show in this view"

    Hi All,
    On my SharePoint Online site (Office 365) all my “Site Content and Structure” default views are showing “There are no items to show in this view”. For example the “Checked out To Me” view shows “There are no items to show in this view” (shown in screenshot
    below). I know this is incorrect and should show at least ten items that have been checked out to me for over two months. I am also a member of the Site Collection Administration and Owner groups.
    What I am trying to do is view all the "Checked Out items" within a Site Collection including it's sub-sites.
    Is there a feature that needs to be activated to get the correct information from the “Site Content and Structure” default views?
    I hope you can help
    Colin

    Hi Colin,
    As I understand, all “Site Content and Structure” default views are showing “There are no items to show in this view” in your SharePoint online site.
    Check things below:
    1. Go to site content and structure logs in site setting to check if there is correct information.
    2. Create a new site collection to check if there are items in Site Content and Structure.
    3. Switch another computer to check if it can work.
    If the issue still exists, I recommend you to post it in the O365 forum.
    http://community.office365.com/en-us/f/default.aspx
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    Best regards,
    Sara Fan
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • SOAP Scenario-Sender and receiver having same structure- Mapping Required?

    Hi,
    We are having a SOAP to SOAP scenario. In that the sender and receiver are having same structure. Is it possible to by-pass mapping and just do the configuration from ID
    Thanks and regards,
    Siji Anup

    Hi Siji,
    AFAIK you can skip ESR development. Check the example in this blog When and how to create an scenario in SAP PI without mapping objects.
    Regards.

  • Hierarchical structure to Flat Structure mapping in Message mapping

    Hi Experts,
       I need to map the below hierarchical segments of SHPMNT03 IDOC XML to  repitative stucture G_SHL of 857 EDI XML.
    Segments from IDoc.
    E1EDT20(Shipment)
    E1EDL20(Delivery)
    E1EDL24(Delivery Line Item)
    E1EDL44(IDoc: Handling Unit Item Delivery) for Pack)
    Required Target Segment:
    SHIPMENT HL (BOL)
    DELIVERY HL (PO NUMBER 1)
    ITEM HL (PART A)                       
    PACK HL (1ST BUNDLE)
    PACK HL (2ND BUNDLE) 
    ITEM HL (PART B)
    PACK HL (1ST BUNDLE)
    DELIVERY HL (PO NUMBER 2)
    ITEM HL (PART A)
    PACK HL (1ST BUNDLE)
    PACT HL (2ND BUNDLE)
    PACK HL (3RD BUNDLE)
    Please let me know how to achive this.
    I tried to achive this by changing the context of the target field, but in that case I am loosing the sequence. I get all delivery together, all Item together..like this.Please tell me how to retain the sequence.
    Please reply ASAP.
    Thanks in advance,
    Shweta.

    Hi Sushama,
    Could you be bit more elaborative on the problem. What exactly is the error ?? what is the source/target structure ? with this information one would be able diagnose the scenario assist you!!!
    Regards
    Manju

  • XML structure - mapping one Oracle column to many XML attributes

    Hi,
    I need to insert data into EMP table reading from xml file and this is how the file would look like....
    <?xml version='1.0'?>
    <ROWSET>
    <ROW num="1">
    <EMPLOYEE_ID>7369</EMPLOYEE_ID>
    <LAST_NAME>Smith</LAST_NAME>
    <FIRST_NAME>JOHN</FIRST_NAME>
    <PHONE> 905000123</PHONE>
    <PHONE> 905000456</PHONE>
    <PHONE> 905000789</PHONE> ...... n
    (There could be many phone numbers in the xml file and I need to concatenate all the numbers and insert in the PHONE column of emp table)
    <SALARY>800</SALARY>
    </ROW>
    <!-- additional rows ... -->
    </ROWSET>
    I am new to XML and would to know the set of lines required to read the data from xml and insert into EMP table. All this is for Oracle 10g R2.
    Please let me know solution using XSU if possible.

    Hi,
    Chk this:
    /people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping
    Re: Conversion of source XML structure to single string using PI 7.1
    Thanks
    Amit

  • File to RFC Structure mapping

    Hi All
    This is the first time I am going to work on customized mapping for the following requirement, please give your inputs.
    I am working on File to Proxy Scenario where I have created custom proxy using standard RFC Function Module.
    I have created my source data type, message type and service interface. The target structure I got by importing corresponding RFC structure and created service interface and proxy for the same.
    Now I am trying for graphical mapping here to map file structure to RFC structure. Can you please tell if I have to consider whether its header data or item data. I mean how can I mention that there will be multiple entries of item.
    Please let me know if mentioning in data type i.e 1 to unbound is sufficient and no need to do anything specially while mapping them to targe RFC tables.
    Also, please let me know if my approach is correct. Thanks for your inputs.
    Regards
    Amol

    >
    Amol wrote:
    > Hi All
    > This is the first time I am going to work on customized mapping for the following requirement, please give your inputs.
    >
    > I am working on File to Proxy Scenario where I have created custom proxy using standard RFC Function Module.
    >
    > I have created my source data type, message type and service interface. The target structure I got by importing corresponding RFC structure and created service interface and proxy for the same.
    >
    > Now I am trying for graphical mapping here to map file structure to RFC structure. Can you please tell if I have to consider whether its header data or item data. I mean how can I mention that there will be multiple entries of item.
    >
    > Please let me know if mentioning in data type i.e 1 to unbound is sufficient and no need to do anything specially while mapping them to targe RFC tables.
    >
    > Also, please let me know if my approach is correct. Thanks for your inputs.
    >
    >
    > Regards
    > Amol
    if you are asking about how to actually map a file to a RFC/Proxy structure please note that such requirements are defined by the business. The logic is owned by the customer.
    But in case you are trying a POC scenario then all you need to consider is to make sure the mandatory fields and segments are mapped in the RFC/Proxy structure

Maybe you are looking for