Problem 1 source to 1 or 2 targets!

Hi,
I have the following scenario:
File -> PI -> IDoc1 and IDoc2.
The file can contain items only for Idoc1, only for Idoc2 or for both.
I know how to do "1 to n" mapping, but my problem is that when there are only items for one of the Idocs, the 2nd Idoc is sent to ECC too (with empty positions), and that generates an error. I don't know how to avoid that without a BPM. I need to "detect" the empty Idocs and don't send them

You can insert more than 1 Condition Branch in a Switch Step...by default it will be 1 Condition Branch and 1 Otherwise Branch.
If you want to insert more Condition Branch......right-click on Switch -
> Choose Insert ---> branch (not sure of the name)...but yes you can insert more than one branches....check and confirm.
just a doubt cant you change the occurence of the IDOC from 1..1 to 0..unbounded and then perform the logic to create the 1 or 2 IDOCs?..... there is blog by Michal on how to do this..../people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
Also check this WIKI: https://wiki.sdn.sap.com/wiki/display/XI/File%20to%20Multiple%20IDOC%20Splitting%20without%20BPM
Check if you can implement something similar in your case also.
Regards,
Abhishek.

Similar Messages

  • Getting the Source File name Info into Target Message

    Hi all,
    I want to get the Source file name Info into Target message of one of the fields.
    i followed Michal BLOG /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    Requirement :
    1) I am able to get the Target file name as same as the source file name when i check the ASMA in Sender & Receiver Adapter , with out any UDF...............this thing is OK
    2) I took One field extra in the target structure Like "FileName" & I mapped it Like
                              Constant(" " )--UDF-----FileName
    I Checked the Option ASMA in Both Sender & Receiver Adapters
    Here iam getting the Target File name as same as Source file name + Source File name Info in the Target Field " FileName".
    I Dont want to get the Target File name as same as Source file name. I want like Out.xml as Target file name.
    If i de-select the Option ASMA in Adapters means it is showing " null" value in the target field "FileName".
    Please Provide the Solution for this
    Regards
    Bopanna

    Hi All,
    Iam able to do this by checking the Option ASMA in only sender adapter itself
    Regards
    Bopanna

  • RRI Problem : Variable Screen Popup while Jumping  to Target Query

    While jumping from Source to Target query (both are BEx queries), Variable Entry Screen of the Source is popping Up again during Jump, which after pressing Execute (F8) without entering any values, displaying Target Query results correctly. My Target query is having one and only variable on Inv Doc Num of type Replacement Path and I am not supposed to get any variable Screen Popup during Jump. How can I suppress this reappearance of Variable Screen??. I have tried with Delete Options etc in RSBBS  Assignment rules and searched for OSS Notes but not succeeded so far. I am on BW3.50 SP20. Any help will be highly appreciated.

    Hi Jr,
    I am not having the same variables in the Target at all. In fact the characteristics for which variable screen appears in the source are not there in target. I mean Posting Date, Billing Month...Etc are not ther in the Traget. In the Source Query Rows, I have Inv. Doc No as one of the Characteristics.No variable is defined for Inv Doc Num in the Source Query.
    I am not getting your question"From which cell..??". If I select any perticular Cell in the Inv Doc Result Rows of the Source Output, During Jump it will return only the details of that particular invoice only? Is itn't?. But I want details of all those invoices, that appesrs in the Source Output. That is why, I am selecting my Jump target from the GOTO botton (Red Arrow like Symbol in BEx Tool Bar), and choosing my Target.
    Thanks

  • Mapping conversion of source value 4448601.75 to target value 448601

    Mapping conversion of source value 4448601.75 to target value 4448601 or source value 999999.99 to target value 999999
    Here standard functions like round, floor, ceil..etc, will not work because they will convert source value 4448601.75 to 4448602 and source value 999999.99 to 1000000.
    Also i may have blank or white spaces coming in front of the source value from R/3 side like _____999999.99 and i want the value at the target side as _____999999. Here _____ representing blank or white spaces.
    How i will do the mapping, can someone help me out.
    Thanks,
    Ashish
    Edited by: Ashish Soni on Sep 6, 2008 9:53 PM

    >>Here standard functions like round, floor, ceil..etc, will not work because they will convert source value 4448601.75 to 4448602 and source value 999999.99 to 1000000.
    No....! The floor function can be used. It returns the largest integer that is not greater than the passed value. However this will also trim the spaces.
    So u can write a UDF that accept the number and substring till the decimal point and returns it.
    Try this.. It works..
    public String converv(String a,Container container)
    return a.substring(0,a.indexOf('.'));
    Thanks
    SaNv...

  • Mapping Identical Source GL Account to Idential Target Essbase Account

    Is there a way to use a rules to map a source GL account to a target essbase account that are both identical? If so, can someone please provide some guildence. I tried looking at the fdm admin guide, but have not come up to a solution.
    Thanks,
    Trung

    You can use a wildcard map of * to *

  • Problem in Sourcing sequence for plant in Sales Order.

    Hi
    I am facing problem in Sourcing sequence for plant in Sales Order.
    If in Sales order i am selecting material then system is picking plant automaticly 8635 which is worng. For customer XYZ/ ship to ID ZXY, system should pick plant in sequence 5400 - 2300 - 5050.
    Could you please confirm what is exactly problem and what seeting i need to check.
    pls confirm

    But it is defind for material master.
    Because 8635 existed in materila master so system determines 8635 plant into your sales order.
    You can set only one plant as automatic else you can enter manually in sales order.
    If you automatic as  5400 then assign in Customer material info record or Customer or material master any where you can maintain.

  • Datacopy command copied [0] source data blocks to [1073] target data blocks

    Hi,
    When I ran this particular script, datacopy command executed successfully but the values did not copied (Plan1 has values). Can you please suggest.
    Datacopy command copied [0] source data blocks to [10736] target data blocks
    SET UPDATECALC OFF;
    SET CREATEBLOCKONEQ ON;
    FIX("")
    DATACOPY "Plan1" TO "Plan2";
    EndFIX
    Thanks, UB

    FIX("")
    DATACOPY "Plan1" TO "Plan2";
    EndFIX^^^Did you mean to have your FIX statement blank?
    FWIW, you don't need the CREATEBLOCKONEQ setting at all for the purposes of the DATACOPY.
    I'm a little puzzled by the log file message -- 0 blocks to 1073 (or is it 10736?). That seems somewhat unlikely -- how could you copy nothing to something. Unless it is somehow triggered by the CREATEBLOCKONEQ setting but I don't believe that has any impact beyond block creation in formulas.
    Do you see an actual increase in the number of blocks in database statistics?
    Regards,
    Cameron Lackpour

  • Problems with sources of supply determination for external requirements.

    Hi gurus...
    My scenario is  SRM Classic Extended.
    We have a problems with sources of supply determination for external
    requirements comes from ECC. The shopping cart is created with successful
    based in the purchase requisition at ECC, but when i try to make the
    determination of sources of supply the system doesnt find any source of
    supply.
    There are a lot sources of supply creates for these parameters. The
    contracts were already replicated to ECC.
    This problem only occurs with external requirements comes from ECC, if i
    created a shopping cart directly at SRM, using the same parameters, the
    system propose the sources of supply correctly.
    Is there something that we can do?? This is the normal comportment for the souces of supply?
    Tks,
    Gustavo Nogueira

    Hello Gustavo Nogueira
    Then it is an issue.
    How are you searching the source of supply in sourcing cockpit.
    Can you replicate the issue?
    Let me know step by step,
    as per standard SAP , source of supply data must be available for shopping carts so that buyer can assign the source of supply.
    please share what source of supply you have there .

  • Building SCD Type2 changes. Any record deletion in Source does not expire the Target Record

    Building SCD Type2 changes. Any record deletion in Source does not expire the Target Record. When I Delete any Record in Source Table, I expect the same record should be 'Expired' with 'End_Date' with Active = 'N'. 
    BTW: In 'Table Comp',  I have Checked the 'Detect Deleted rows(s) ...'. /  ' ... largest generated key'  is selected by default..
    This is not happening..! My Update and Insert works fine..!

    Hi
    Do you have detect deletes set on Table Comparison?
    I also add the Map operations to the output of History Preserving and manage each stream of the Insert/Update/deletes separately and control the record start/effective & record end/Expiry dates with more variables based on the stream req, ie updates to end previous record have record end date set to variable for business or run date set to date - 1.
    You only need key gen for inserts (including the deleted record final state)
    Use merge to bring back together.

  • How to data insert Source server and Linked server (Target Server) at same transaction

    I have try several times for Data insert Source server and Linked server (Target Server) at same transaction.  I am using Begin transaction.  but Source server is completed and Linked server error (or Linked server Completed and source server
    ERROR). at this moment I want ROLL back. how?

    Hi
    Run below query by changing to yourr linked server name and see if DTC is enable or not.. if not
    Begin distributed transaction
    select * from [ServerName].master.dbo.sysprocesses
    Commit Transaction
    To enable MSDTC on each Web server on Windows Server 2008
    Click Start, click Run, type dcomcnfg and then click OK to open Component Services.
    In the console tree, expand Component Services, expand Computers, expand My Computer, and then expand Distributed Transaction Coordinator.
    Right click Local DTC, and click Properties to display the Local DTC Properties dialog box.
    Click the Security tab.
    In the Security Settings section, click Network DTC Access.
    In the Client and Administration section, select Allow Remote Clients and Allow Remote Administration.
    In the Transaction Manager Communication section, select Allow Inbound and Allow Outbound.
    In the Transaction Manager Communication section, select Mutual Authentication Required (if all remote machines are running Windows Server 2003 SP1), select Incoming Caller Authentication Required (if running MSDTC in a cluster), or select No Authentication
    Required if some of the remote machines are pre-Windows Server 2003 SP1. No Authentication Required is the recommended selection.
    Select Enable XA Transactions, and then click OK.
    Repeat steps 1 through 9 on the other Web servers.
    Thanks
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • Merge update source table and delete from target table problem

    Hello Friends, 
    I am a newbie in SQL Server world and I am in a situation where I need to delete the bunch of records from the TARGET table using the values from the SOURCE table. 
    The TARGET table has close to 400 Million records, so I need to delete the records in small batches of about ~10,000 rows.
    I figured out a way to delete in batches by refering the following 2 posts
    http://sqlperformance.com/2013/03/io-subsystem/chunk-deletes
    http://dba.stackexchange.com/questions/1750/methods-of-speeding-up-a-huge-delete-from-table-with-no-clauses
    I think my best option to delete and update in 1 pass would be through using Merge statement, so for that I constructed following SQL.
    MERGE dbo.table1 AS TARGET
    USING 
    SELECT File_name FROM dbo.table2
    WHERE  FILE_DESC = 'EDI'
    AND [Processed_date] < DATEADD (WEEK, -10, Getdate ()) AS SOURCE
    ON (TARGET.File_name = SOURCE.File_name)
    WHEN MATCHED THEN DELETE (FROM THE TARGET)
    WHEN MATCHED 
        THEN UPDATE SET SOURCE.PROCESS_delete_date = GETDATE()
    But, when executed, it throws following error and I am struggling to figure out what is wrong with the above syntax. 
    Msg 156, Level 15, State 1, Line 3
    Incorrect syntax near the keyword 'SELECT'.
    Msg 156, Level 15, State 1, Line 5
    Incorrect syntax near the keyword 'AS'.
    Can any expert please help a newbie as I learn the new way.
    Thanks a lot.

    Visakh, we can have more than 1 matched clause in merge as per the Microsoft sql statement, but we need to add a condition along with the match. thanks for your prompt response on this query. your query is logically fine but when executed, it throws
    following error. Msg 156, Level 15, State 1, Line 2 Incorrect syntax near the keyword 'DELETE'. Msg 102, Level 15, State 1, Line 8 Incorrect syntax near ')'. remember, my server machine is 2005 version & my work machine is 2012. dont know why your query
    is not working.
    MERGE is available only from 2008 onwards
    Yes you're correct but again not more than two  MATCHED clauses even if you specify condition
    see MSDN documentation below
    WHEN MATCHED THEN <merge_matched>
    Specifies that all rows of target_table that match the rows returned by <table_source> ON <merge_search_condition>, and satisfy any additional search condition, are either updated or deleted according to the <merge_matched> clause.
    The MERGE statement can have at most two WHEN MATCHED clauses. If two clauses are specified, then the first clause must be accompanied by an AND <search_condition> clause
    from
    http://msdn.microsoft.com/en-us/library/bb510625.aspx
    Also I guess Composable DML which used is also not present in 2005
    So in your case you can try this instead
    DECLARE @DELETED_FILES table
    File_Name varchar(100)
    DELETE t
    OUTPUT DELETED.File_Name INTO @DELETED_FILES
    FROM dbo.table1 t
    INNER JOIN dbo.table2 s
    ON t.File_name = s.File_name
    WHERE s.FILE_DESC = 'EDI'
    AND s.[Processed_date] < DATEADD (WEEK, -10, Getdate ())
    UPDATE r
    SET r.Process_Delete_Date = GETDATE()
    FROM dbo.table2 r
    INNER JOIN @DELETED_FILES AS p
    ON p.File_Name = r.File_Name
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Mapping from source in same DB as target

    We are running a warehouse where part of the data is pumped into a holding schema in the same database as the target schema resides.
    Using OWB3 we set the "schema property" of all objects in the mappings referring to the holding schema and generated the loads. This worked just fine.
    Now I am looking at upgrading to OWB92 but it seems the "schema property" is obsolete. Does that mean I HAVE to create a database link to the holding schema in the target schema using locations and connectors, or is there another way of directly referecing the holding schema in the mappings that load data from holding to target ?

    Nikolai -
    I just tried this as well. I went from source to staging area which is setup as a target schema. That worked fine.
    Then I tried to map from the staging target schema to another target schema on the same instance.
    The deployment correctly prefixed with the schema name rather than the database link, but my problem now is that it doesn't appear that the 2nd target schema has permissions to select from the table in the first target schema.
    Can this be fixed somewhere in configuration or do I have to manually grant select on any tables in this situation?
    Thanks,
    Dave

  • Map one source elements to two different target elements

    Hi Gurus,
                In our scenario, we have single source. and we are mapping this single source to two different structures, based on condition in the source records on one field, we are mapping to either X structure or Y structure. in my case i have to generate only one file at a time based on condition.
              If condition is true, i have to mapp it for X structure, if its false i have to mapp it for Y structure. but in my case i getting a blank file for another mapping. i should stop this blank file.
             any suggestions and solutions will be rewarded. this is an urgent issue, please help me.
            Thanks in advance.... 
    Thanks & Regards,
    Anuj..

    I have already used an if-then construct and an enhanced ID.Thanks anyway.
    Let me explain using a source interface (s1) and target interfaces t1 and t2.
    Based on the condition, only one interface(lets say t1) will be selected, target mapping is done for this.
    But the problem is that the other interface (t2) also executes(having only the root node) and the end result is i have two files - one with the mapped payload and another empty one with only the root node.
    My requirement is to remove this empty file at the mapping stage itself , as -
    1) i only need a single file at the receiver.
    2) i do not want an extra payload for every record i send, creating unnecessary load on my IE.
    Also due to performance issues i do not want to move this to a BPM.
    I have attached the o/p screenshot at http://www.flickr.com/photos/14210232@N03/1550768802/
    In window 1 i have the correct output .i.e of the interface t1 which was mapped.
    In window 2 i have the unwanted output. i.e the interface t2 which is creating another file at the receiver.
    <b><b>Ques</b></b>: When using enhanced ID/multi-mapping, under Messages tab, if i set my target message type to 0..1, should it not work? I have tried this but it doesn't.
    Do let me know a way out! Thanks.
    Anuj.

  • Can the source files be loaded from target server

    Hi,
    I have owb client on windows2000 and target on linux server. The current plan is to create runtime repository connection for the target and execute mapping from windows where the source files are located.
    Is there way to put the source files on target server machine (there is no owb client install)? What's the best business practice regarding how the owb and source files are distributed? Thanks.
    Tarcy

    The problem is not the code or html.
    This: "The Java Runtime Environment cannot be loaded from <\bin\server\jvm.dll>
    indicates that you are attempting to run the server jvm, and it does not exist. This can be because either the java command option "-server" was used, or a configuration file setting.
    As shipped by Sun, the JRE does not include the server jvm; the JDK does. If you want the server jvm in the JRE, copy the \server\ directory and contents from the JDK to the JRE.
    If you installed using defaults,
    copy from: C:\Program Files\Java\jdk1.5.0\jre\bin
    copy to: C:\Program Files\Java\jre1.5.0\bin

  • How to get source table name according to target table

    hi all
    another question:
    once a map was created and deployed,the corresponding information was stored in the repository and rtr repository.My question is how to find the source table name according to the target table,and in which table these records are recorded.
    somebody help me plz!!
    thanks a lot!

    This is a query that will get you the operators in a mapping. To get source and targets you will need some additional information but this should get you started:
    set pages 999
    col PROJECT format a20
    col MODULE format a20
    col MAPPING format a25
    col OPERATOR format a20
    col OP_TYPE format a15
    select mod.project_name PROJECT
    , map.information_system_name MODULE
    , map.map_name MAPPING
    , cmp.map_component_name OPERATOR
    , cmp.operator_type OP_TYPE
    from all_iv_xform_maps map
    , all_iv_modules mod
    , all_iv_xform_map_components cmp
    where mod.information_system_id = map.information_system_id
    and map.map_id = cmp.map_id
    and mod.project_name = '&Project'
    order by 1,2,3
    Jean-Pierre

Maybe you are looking for