Mapping issue, how to create properly data

Hi All,
I have a multiple IDOCs to FILE scenario, and I'm having issues with mapping data.
Please take a look at this:
IDOC structure:
<IDOCNAME> (0..unbounded)
   <IDOC> (1..1)
      <SOURCESEGMENT1> (0..unbounded)
         <SOURCEFIELD1> (0..1)
         <SOURCESEGMENT2> (0..unbounded)
            <SOURCEFIELD2> (0..1)
Target structure:
<Recordset> (1..unbounded)
   <targetsegment> (1..unbounded)
      <targetfield> (1..1)
Each Recordset will be create for each incoming IDOC. So, if there are 5 incoming IDOCs, then 5 Recordset will be created.
Each targetsegment will be created if SOURCEFIELD2 = "1". So, if 1 IDOC contains 3 sourcefield2 with values 1, 2, 1, then it will need to be created twice.
The targetfield will have corresponding value of SOURCEFIELD1when SOURCEFIELD2 = "1". So, if for sourcefield2 values 1, 2, 1 we got sourcefield values A, B, C then we will have A and C created.
My issue is in the targetfield. I am not able to generate corresponding values.
My actual map is
IDOCNAME --> Recordset
if SOURCEFIELD2 (IDOC context) = "1" --> CREATE targetsegment
For targetfield, how can I generate the right values I need?

The problem is with the context handling at the parent and child level.
The parent level: targetsegment is mapped with the source field context set at IDoc level: so all the values 1,2,1 at ifwithoutelse input are within same context. now after the condition check, if you see the output (Display queue) of ifwithoutelse (I have a feel you have used this function) function, you will see the queue has two values true, true. The entry for the second context (2) would be missing. While the entry for the targetfield level will have all three values from SOURCEFIELD1. So there is a queue mismatch.
At the parent level use:
SOURCEFIELD2(context at IDoc level) -> Equals (=1)->CreateIf->targetsegment
SOURCEFIELD1(default context)->targetfield
This should work.
Though I dont understand one thing, how the 0..unbounded occurance at the IDoc name level would work for Idoc collection! Even if you receive multiple IDocs of same idoc type, the multiple occurance for each idoc would be at <IDOC> level, which should be 1..Onbounded. For receiver IDoc multimapping this is the case.
I really doubt if multimapping at <IDocName> level works with IDoc!
Hope this works.
Regards,
Suddha

Similar Messages

  • How to creat a Data provider  based on different fields in SAP BW ?

    Hi,
    Experts,
    There are  20 fields  of  Plant Maintainace  like : 
    SWERK
    BEBER
    STORT
    TPLNR
    EQUNR
    INGRP
    QMDAT   ---peroid
    STTXT
    QMDAT  - Date of Notification
    QMNUM
    QMTXT
    QMART
    AUSVN
    AUZTV
    AUSBS
    AUZTB
    AUSZT
    ERNAM
    QMDAB
    AUFNR
    I  want to creat a  Report based upon these fields  ?
    For that I h'v  checked the relevant Fields to the   existing standard  Datasource  in Bw side   &
    Checked  cubes   created  based upon these Datasource  in Bw side !
    i h'v found  some fields are  existing different cubes & some are  missing .
    How to creat a Data provider  based on different fields in SAP BW ?
    plz suggest      !!!!!!!
    Thanx,
    Asit
    Edited by: ASIT_SAP on Jul 15, 2011 6:25 AM
    Edited by: ASIT_SAP on Jul 15, 2011 6:27 AM
    Edited by: ASIT_SAP on Jul 15, 2011 12:37 PM

    Hi Lee, Please see below..
    DECLARE @Machine2 TABLE
    DispatchDate DATE
    INSERT INTO @Machine2 VALUES ('2014/02/01'), ('2014/02/02'), ('2014/02/03')
    DECLARE @DateFrom DATE
    SELECT @DateFrom = DATEADD(D,1,MAX(DispatchDate)) FROM @Machine2
    SELECT @DateFrom AS DateFrom
    Please mark as answer, if this has helped you solve the issue.
    Good Luck :) .. visit www.sqlsaga.com for more t-sql code snippets and BI related how to articles.

  • How we create new data base in oracle 10g express edition

    hello every body.. i student of B tech n new user of oracle so please help me how we creat new data base in oracle 10g express edition

    Hello, Oracle XE can not create more than one instance, the other editions yes, but like other editions XE allows you to create database schemas, schemas logically grouped objects like tables, views, indexes created by a user. By creating an Oracle user is associated with a schema of the same name.
    Using SYS or system accounts for creating user accounts.
    Syntax to create a user:
    create user Your_user
    IDENTIFIED BY password
    default tablespace users;
    grant connect, resources to your_user;
    Edited by: rober584812 on Jun 25, 2010 9:03 PM

  • How to create a Date or time field that automatically saves current date or time?

    hello,
    i want to know that how to create a Date/Time field that automatically shows current Date/Time when .pdf form is opened.
    also want to how to stop user to give input in Date/Time field
    currently im putting a Date field but it is accepting user input.
    hoping for quick response
    Thanks in advance!

    You can place the below code in the initialize event of the field to display the current date and time.
    Set the language to FormCalc.
    You can play around the formats to get the desired format of date and time.
    if($.rawValue eq null or $.rawValue eq "") then
    $.rawValue = Concat(Num2Date(Date(), "MM/DD/YYYY")," ", Num2Time(Time(), "h:MM:SS A"));
    endif
    You can not restrict the input area in Date time field instead you can validate the input while existing the field.
    (OR) set the field to either readOnly or protected mode.
    Thanks
    Srini

  • How to create Hive data source?!!

    I am trying to create hive data source connection.
    I am stack on creating connection profile and configuring "Generic JDBC Driver" .. after i added drivers i keep getting " Required property in driver definition missing value: Driver Class." error.
    I am adding a screenshot with the list of drivers.

    Kevin
    In Jdbc node create a Jdbc Connection Pool with the
    Url=jdbc:borland:dslocal:/jbuilder6/samples/Ejb/db/esite.jds
    and driver=com.borland.datastore.jdbc.DataStoreDriver. Create a Datasource
    using a Jndi & Jdbc Connection Pool.
    Deepak
    Kevin Gao wrote:
    in jbuilder6 samples instructions,there is instruction as:
    Create a WebLogic data source named ESiteSource. You will need to check
    your WebLogic documentation on how to create a data source. You will need
    the following settings
    1.The database URL should be of the following format:
    jdbc:borland:dslocal:/jbuilder6/samples/Ejb/db/esite.jds, ensuring that you
    have the correct path to esite.jds.
    2.The driver will be com.borland.datastore.jdbc.DataStoreDriver.
    3.This JDataStore is not password protected, but you must still specify a
    user; any user will do, e.g., user=Frank;password=
    but how to create a data source in weblogic?
    help me please!
    thanks in advance!
    Kevin Gao
    EMAIL:[email protected]

  • How to create JNDI data source name in Tomcat 6.0.18 server?

    Hai,
    How to create JNDI data source name in Tomcat 6.0.18 server?
    Regards,
    MariMuthu.A

    [http://google.com/search?q=jndi+site:tomcat.apache.org+6.0]

  • ABAP MAPPING Querry - How to create Different Target NODE NAME as of Source

    Hi,
    In abap Mapping
    <b>DATA READ FROM SOURCE XML NODE into <u>incode</u></b> ******
    data: incode type ref to if_ixml_node_collection.
    incode = idocument->get_elements_by_tag_name( 'BUSINESS_DAY' ).
    <b>CREATE OUTPUT XML NODE WITH SAME NAME AS <u>'BUSINESS_DAY'</u></b> **
    data: outcode type ref to if_ixml_node.
    outcode = incode->get_item( index = 0 ).
    data irc type i.
    irc = msgtype->append_child( outcode ).
    *<b>BUT TO CREATE OUTPUT XML NODE WITH <u>DIFFERENT NAME AS 'BUSS_DAY'</u></b>*
    data: ws_val type string VALUE 'xyz'.
    data: elementsender type ref to if_ixml_element.
    elementsender = odocument->create_simple_element(
    name = 'BUSS_DAY'
    value = ws_val
    parent = msgtype ).
    <b>Please guide me how I can assign <u>incode</u> value to ws_val.
    So that I can generate <u>OUTPUT XML NODE with different name as of SOURCE XML NODE</u></b>
    i.e. How to create Different Target NODE NAME as of
    Source with same Data
    <Note>: I am using "How to... Use ABAP Mapping in XI 3.0 ver.1.00" and to create different NODE name as of source
    is not given in it.
    Thanks & Regards.

    Hi ABAPers,
    Please Guide Me .....
    <u>This is ABAP Mapping problem in XI.</u>
    <b>How can I read data from incode into ws_val.</b>
    data: <b>ws_val</b> type string
    data: <b>incode</b> type ref to if_ixml_node_collection.
    <b>incode</b> = idocument->get_elements_by_tag_name( 'BUSINESS_DAY' ).
    Best Regards

  • How to create new data class in DDIC?

    Hi Friends,
    I want to store 5 custom tables into a particular Table space.
    For that i want to creat a new Dataclass and which has to be mapped to a new table space.
    So what i need is.
    1. How to create a new Customer data class apart from USER1 and USER that is available?
    2. How to map the newly created Dataclass to a Table space?
    Purpose: DBA wants to maintain these tables separately so that this won't disturb other data.
    SAP VERSION - 4.7EE - AIX - DB2
    Any help on this would be highly appreciated.
    Regards,
    Simha

    you can use either usr or usr1 for your  development ... because
    read the belo statment  provided by SAP
    The data class defines the physical area of the database (for ORACLE the TABLESPACE) in which your table is logically stored. If you choose a data class correctly, your table will automatically be assigned to the correct area when it is created on the database.
    The most important data classes are (other than the system data):
    APPL0    Master data
    APPL1    Transaction data
    APPL2    Organizational and customizing data
    Master data is data which is frequently read, but rarely updated. Transaction data is data which is frequently updated. Organizational und customizing data is data which is defined when the system is initialized and then rarely changed.
    There are two more data classes available, USR and USR1. These are reserved for user developments. The tables assigned to these data classes are stored in a tablespace for user developments.
    Note:The data class only has an effect on table storage for the database systems ORACLE and INFORMIX

  • How to create a data load file from Excel !!!

    Hi All,
    I'm new to HFM and would like to load data into an HFM application. As I have an Excel file with all the data. When I'm directly loading the data it throws an error saying "No section has been specified to determine if this is data, description or line item detail". How can I convert this excel file into proper format (.dat) file understandable by HFM ?

    There are several ways to get this data into HFM.
    1) FDM - best option if you have it
    2) Webforms/Data Grids
    3) HsSetValue formulas in Excel
    4) DAT file loads
    5) JVs, etc
    If you wish to use DAT files created via Excel, you will likely want to use Excel VBA macros to create your DAT file to load. We do this on occasion for special projects and it works quite well. What you can do is set up an Excel file with your data inputs to look however you want, then link your POV members and amounts to another tab (we commonly call this the Export tab and it is set up in an HFM-friendly format).
    Create a macro to write a DAT file to a specified location using data from the Export tab. The DAT file will need to be formatted as below. For a specific sample, you can extract data from your HFM app and see the format.
    !Data
    Scenario;Year;Period;View;Entity;Value;Account;ICP;Custom1;Custom2;Custom3;Custom4;Amount
    Scenario;Year;Period;View;Entity;Value;Account;ICP;Custom1;Custom2;Custom3;Custom4;Amount
    Scenario;Year;Period;View;Entity;Value;Account;ICP;Custom1;Custom2;Custom3;Custom4;Amount
    Scenario;Year;Period;View;Entity;Value;Account;ICP;Custom1;Custom2;Custom3;Custom4;Amount
    Scenario;Year;Period;View;Entity;Value;Account;ICP;Custom1;Custom2;Custom3;Custom4;Amount
    Brush up on Replace, Merge, or Accumulate load options in the HFM Admin and User Guides, then upload your new DAT file.

  • How to Create & Manage data slices easily?

    Hi All,
    We have lots of Business units; everyone works independent to each other, so they might be in different versions at any point of time.
    My requirement is to lock all previous versions, should allow them to work on current version.... so it should be a combination with Business Unit and Version.
    For ex:
    Business Unit 100 has current version 5
    Business Unit 200 has current version 3
    Business Unit 500 has current version 15
    So how can I create simple data slice to manage every business unit with their respective versions locked.
    After reading some of the threads:
    I considered creating data slice for each Business unit but we have 45 units.. with one VERSION customer exit variable to populate the variable from my ztable.
    I want to know more about how to use exit class? (CL_RSPLS_DS_EXIT_BASE)
    Will that help me much better than what I have considered above?
    OR any better way to tackle my problem?
    Thanks in advance
    Guptha

    Hi,
    I think here a simple exit data slice implementation would work. No variables would be needed at all. A feature often overlooked is the 'is_overlapping' method. Here one will get the filter of the planning function, query before the 'is_protected' method is called per record. So when the query / planning function is called the method 'is_overlapping' is called. Here one can read the Z-table with the allowed business unit, version combinations allowed to plan. This Z-table can be read using the restrictions form the filter (i.e. i_tsx_selder table or call seldr_to_range to get a easier to consume range table). Buffer the result in an internal table.
    In the 'is_protected' implementation simply lookup the internal table records and decide whether the records is protected or not.
    Using the 'is_overlapping' method on can set R_IS_OVERLAPPING = rs_c_false if the filter of the planning / function query has not non-empty intersection with the Z-table. Then the system will not call the is_protected method at all.
    Regards,
    Gregor

  • How to create master data source for Profit center group in source system

    Profit center group information is available in SAP(T-code:kch3). But, I want to have this information in BW too.
    Can anyone tell me how to create a datasource for Profit center group? And which SAP table is able to feed master data for this information?
    Many thanks
    rajatina.

    HI ,
    It looks lilke we need to use the FM like 'G_SET_LIST_SELECT' to get the Profit
    Here ais note from the forums to get profit center group from table
    From Table SETLEAF,  Field SETCLASS  =  '0106'. Field SUBCLASS with controlling area. Profit center in Field VALFROM.
    You will get Group name in Field SETNAME.
    Regards,
    Sathya

  • How to create a data connection with dynamic XML file?

    Thanks for all reply first!
    I have formatted the submitted data into an XML file on the server side,this file can be import to PDF form correctly.
    I try to send this XML file to the user to let him can review what he has submitted.
    I guess that I should create a data connection to the XML file so that it can be reviewed by the user.
    But the question is that the XML file is dynamic generated.
    How can i do?
    give me some clus or examples,please.
    thanks,
    Jasper.

    Hi Jasper,
    To show user back the result, you can use PDF instead of XML. You can store the PDF template in server and you can merge XML data with PDF template by Livecycle Form Data Integration service.
    We, as KGC, can generate huge number of Adobe Livecycle forms in small periods. Also we give consultancy on Adobe Livecycle ES products and Adobe Livecyle Designer. In case of any need, do not hesitate to contact us.
    Asiye Günaydın
    Project Consultant
    KGC Consulting Co.
    www.kgc.com.tr

  • How to create XML data source/ and load data from a web service to BI

    All,
    I m trying to find a 'how to' document (or any document) that shows how to create an XML data source to load data directly from a web service or from an XML file.
    I appreciate any help.

    Hi Mike,
    Two more for you:----
    /thread/111488 [original link is broken]
    http://help.sap.com/saphelp_nw70/helpdata/en/e6/1dd53bb90cbb1ae10000000a11402f/content.htm
    Regards,
    Suman

  • How to create a Date field with specific date limitations

    Hello, im new to creating forms in Acrobat.
    My question is, how do i create a date field and at the same time have a restriction on which dates to put.
    ie; i want the date field to only enter dates from Jan 01 2015 - Dec 31 2015.
    Thanks for your help.

    Thanks!
    I tried and it worked.
    but what are these numbers after the 2015?
    var minDate = new Date(2015, 0, 1, 0, 0, 0, 0); 
    var maxDate = new Date(2015, 11, 31, 23, 59, 59, 999); 

  • How to create new .dat file and its contents?

    Hi There
    Can anybody let me know the procedure of how to create new .ctl or .dat file to load data to tables.
    i working on 2day dba chapter 8. it shows me how to creat table and use .dat file to load data. but doesnot giv any clue how new .dat file and its contents can be created. please help.
    thanks in advance.

    Thanks for ur help
    I ve created txt file in notepad and saved it as dat file. tried to load that data thru Enterprise manager. used load data from User files everything went well and job was showing suceeded but dont know why that data is not showing in the table. i ve tried it now for three four times. used right table and pathe but dont know. has anybody got idea why that ll be?
    Thanks

Maybe you are looking for