Mapping issues while using MapwithDefault Node function for Idoc

Hi Experts,
We are facing issues while trying to generate nodes at reciver side even though it does not exist at sender side.
we are using the matmas05 and we want the nodes E1marcm and e1mardm to generated at target structure.
the structure is like this
Matmas05
idoc
E1maram
segment
      E1marcm
        segment
          msgfn
          .....other fields
          E1mardm (can be many segments)
            segment 
              lgort
              ..other fields
          E1mpgdm
             segment
             ...e1mpgdm fields
the mapping has been done like:
e1marcm -mapwithdefault-e1marcm
constant -segment
werks-mapwithdefault-werks
other fields(one to one mapping)
e1mardm-mapwith default-e1mardm
lgort-mapwithdefault(value 1000)-lgort
other fields -one to one mapping
now the problem we are facing is when e1mardm is not existing in source structure the values from the other node of e1mardm(which exists) are getting overwritten into it.
we want only the lgort to be 1000 and the segment should populate at target side.
like
e1mardm
segment
lgort value 1000
Could you please assist in solving this issue and give your valuable suggestions as how could we handle it.
Thanks and regards,
jyoti

U will achieve this using UDF function. Map the below Like.
e1mardm-mapwith default(Value Constant)-e1mardm
                                                        lgort (A) ---
e1mardm-mapwith default(Value Exit)u2014(EqualsS) (B)- (UDF1)- lgort
                            Constant(Value Exit)---   
                                          Constant(Value 1000)(C)---   
Other one to one mapping fields also you should use one more UDF.
                    Other one to one fields (A) ---
e1mardm-mapwith default(Value Exit)u2014(EqualsS)    (B) - (UDF2)- Target
                             Constant(Value Exit)---   
UDF1:
Argument A,B,C and select queue.
   //write your code here
int j = 0;
for(int i=0;i<a.length;i++)
if (b[j].equals("true"))
result.addValue(c[0]);
i--;
result.addValue(ResultList.CC);
else
result.addValue(a<i>);
j++;
UDF2:
   Argument A,B and select queue.
    //write your code here
int j = 0;
for(int i=0;i<a.length;i++)
if (b[j].equals("true"))
i--;
result.addValue(ResultList.CC);
else
result.addValue(a<i>);
j++;

Similar Messages

  • Safety issues while using Sleepless & other software for iOS 10.7.4

    Hi All,
    I just wanted to know if it was safe to use software that lets you bypass the sleep mode on a mac book pro. Also is it safe to use software that alous you to controle the fan, ect. If it is ok then which software is best to use?

    I'm not sure why you'd want to 'bypass' sleep mode, but you can do that through Energy Saver by setting Sleep to "Never," no third-party software needed. There are applications that let you control your fans but unless you're having problems, for instance, with your fans speeding up enough to control heat I find them useless and potentially harmful - Apple does a good job of fan control and if you're having problems then it's likely a hardware or software problem that can be solved with a SMC reset.
    Clinton

  • HTTP 500 Error while using XML HTTP Port for idoc

    Hi,
    I am trying to send CRM idocs via XML Http instead of usual t-rfc.
    After standard idoc - pi configs i get the below error.
    transferring the IDoc by HTTP, the return code with the message '500Error during parsing of SOAP header' has occurred.
    In BD87 I get the below error.
    The target address was: http://yyyyyy.XXX.local:800X/sap/xi/engine?type=entry
    I get the http 500 error as:-
    Check whether the IDoc can be sent again.
    It is unfortunately not possible to determine automatically whether the IDoc has in fact arrived in the target system and the error occurred afterwards
    Any idea on how to trouble shoot or resolve this.
    Regards,
    Anirban

    Hi Anirban,
      Follow the below links for troubleshooting.
    Troubleshooting  File-to-IDOC Scenario in XI.
    The specified item was not found.
    Regards,
    Leela

  • Using standard node functions

    Hi all, i am newbie
    i want to knwo how can i convert following source message to target message
    using standard node functions?
    Source Message
    <devices>
        <device>
            <sn>123</sn>
            <city>Berlin</city>
        </device>
        <device>
            <sn>345</sn>
            <city>Berlin</city>
        </device>
        <device>
            <sn>777</sn>
            <city>Bonn</city>
        </device>
    </devices
    Target Message
    <cities>
        <city>
            <name>Berlin</name>
            <devices>
                <sn>123</sn>
                <sn>345</sn>
            </devices>
        </city>
        <city>
            <name>Bonn</name>
            <devices>
                <sn>777</sn>
            </devices>
        </city>
    </cities>

    Hi,
    Since you are newbie i would suggest follow the stefan's blog. use formatbyexample for your requirement.
    New functions in the Graphical Mapping Tool XI ... | SCN
    Please read the comments also you will get more idea
    Regards,
    Muniyappan.

  • Unable to change reference point location while using the Transform Functions in Photoshop Elements 6.0.

    Unable to change reference point location while using the Transform Functions in Photoshop Elements 6.0.

    Which operating system are you using?
    In photoshop elements 6, as far as i know, you can only change the Reference Point Location for transforms using the small grid in the left hand corner of the tool options bar with Transform enabled.

  • HT3743 HT4623 We're sorry, we are unable to continue with your activation at this time. Please try again later, or contact customer care.----How to fix this issue while setting up the iphone for the new ios?

    HT4623 We're sorry, we are unable to continue with your activation at this time. Please try again later, or contact customer care.----How to fix this issue while setting up the iphone for the new ios?

    If you don't have a SIM card in the phone, you must put one in. It's required for activation.
    If you do, then your phone was probably hacked to unlock it from the original carrier. Contact them and see if they will unlock it. If they will not do so, then you can't use that phone.

  • How to Use the language function for assignment and validation

    Hi All,
    If anyone can explain me in details with example ,how to use the language function for assignments and validations?
    Thanks
    Arnab

    Hi Arnab,
    The expression is checked only for the current MDM session.
    If u login with the ABC language it will always show the ABC language no matter how many times u execute it.
    Try connecting to the DM with the XYZ language.
    It should go to the if part rather than else.
    Hope it helps.
    Thanks,
    Minaz

  • I have Ps CS4.  I run Apple OS X 10.9.5  on a new MacPro 3GHz 8-core Intel Xeon E5 - 64 GB.    I hardly ever use CS4 ( preferring Elements for my low level needs), but I now want to use it's function for stitching together a landscape.  I fire it up and g

    I have Ps CS4.  I run Apple OS X 10.9.5  on a new MacPro 3GHz 8-core Intel Xeon E5 - 64 GB.    I hardly ever use CS4 ( preferring Elements for my low level needs), but I now want to use it's function for stitching together a landscape.  I fire it up and get Error 150:30 with the suggestion to contact you  - hence this message

    I have Ps CS4.  I run Apple OS X 10.9.5  on a new MacPro 3GHz 8-core Intel Xeon E5 - 64 GB.    I hardly ever use CS4 ( preferring Elements for my low level needs), but I now want to use it's function for stitching together a landscape.  I fire it up and get Error 150:30 with the suggestion to contact you  - hence this message

  • How to use Spell-check functionality for textbox (like Orkut, gtalk)

    How to use Spell-check functionality for tex Hello Friends,
    I am working on a JSP application. I wanted to add Spell check for text box like we have here, when we post a message. It automatically shows red line under the word, when ever spelling is wrong. Please tell me how I can do this. If possible, the code too.
    Thanks.

    I believe the spell checking you see here, or on any other site, is the spell checking built into Firefox. At least that's what I see. Are you using Firefox?

  • Does anyone know how to use the bcc functionality for apple mail while accessing it on the cloud from my PC?

    I am currently away from my MAC and want to send an email through apple mail with the bcc functionality.  I am using the cloud to get to my mail, however, I can't figure out how to use the BCC functionality, please help.  Thanks!

    Open your mail,
    lower left corner click on settings,
    go to composing and check BCC, save and your done

  • IDOC mapping issue (calculation using parent and child fields)

    We are mapping an IDOC to a file for output to a third party.  The IDOC has many segments, some of which are embedded.  This is where I'm having the issue.  I am trying to perform a calculation on a field from the parent node (E1EDP01-MENGE) with the field from the child node (E1EDP05-KRATE) to determine the total tax for that line (qty X rate). 
    <b>Issue:</b> The mapping that is in place is using the same MENGE value for all calculations, even where the E1EDP01 segment is not a parent of the E1EDP05 segment. 
    Please review the screen prints and explain how I can correctly group the E1EDP05 child segments rate field (KRATE) with the corresponding parent segment E1EDP01 quantity (MENGE).
    <b>Example:</b>
    Parent segment, E1EDP01 / Child segment E1EDP05 (There are many E1EDP05 segments for 1 E1EDP01 segment)
    E1EDP01 (parent node)
      E1EDP05 (child node)
    <b>Target structure</b>
    ITEM (parent) --->E1EDP01 is mapped at node level
      -->ITEM_DATA --->E1EDP01 is mapped at node level
      -->ITEM_TAX --->E1EDP01 is mapped at node level
           -->(fields for item_tax)
           -->Record type
           -->Invoice number
           -->Line total
           -->etc...
    I am mapping (E1EDP01-MENGE) for calculation with (E1EDP05-KRATE) to determine tax at the line item level. I have the context set at each Node, E1EDP01 for MENGE and E1EDP05 for KRATE.  I was using CopyValue, but this was using the frist occurence of MENGE for all line items.
    <b>mapping example</b>
    <u><b>*I am using MENGE (Copy_Value) then multiplying by KRATE to get the line item total.  This was causing the same MENGE (because of Copy_Value) for all line items.</b></u>
    E1EDP01-MENGE|Copy_Value|MULT--->TAX_ITEM-LINE_TOTAL
    E1EDP05-KRATE|
    I removed the CopyValue and now I'm getting the following error:
    Cannot produce target element /ns0:MT_DTN_INVOICE1/INVOICE/ITEM/ITEM_TAX[3]/LINE_TOTAL. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd
    How can I map this so the child records (E1EDP05) are grouped with the correct parent records (E1EDP01)?
    Thanks in advance!
    Michael

    Check this blog:
    /people/claus.wallacher/blog/2006/04/17/replication-of-nodes-using-the-graphical-mapping-tool
    Regards
    Stefan

  • Posting period issue while deleting a confirmation posted for a limit PO

    Hi ..
    I am facing an issue whiel deleting a confirmation posted for a limit PO.
    Confirmation was posted for a limit PO in SRM and it created a service entry sheet in SAP. If I deleted that confirmation in the same posting period, then it is getting deleted. No issue here.
    But if I deleted that confirmation in the next posting period then the reversal document is going to error in process. RZ20 is showing the error "Positng only possible in periods 2012/2 and 2012/3".
    Posting date of reversal document is current date only and the backend posting period is 2012/3, but still it is failing with this posting period error.
    If I tried to delete a confirmation posted for a normal PO then I could able to delete it even in next posting period by just changing the posting date.
    Why this posting occurs while deleting the limit confirmation, even through the posting date is falls within the backenn posting periiod? Is it like, SAP system is trying to delete the service entry sheet in original posting period? Kindly help.
    I am in SRM 5.0 (server 5.5) SP12.
    Thanks,
    Arun

    OK.
    Well, if the variable is not used in any interval selection, then I would say "something happened to it".
    I would make a copy of the query and run it to check if I get the same problem with period 12.
       -> If not, something is wrong in the original query (you can proceed as below, if changes to original are permitted).
    If so, then try removing the variable completely from the query and hardcode restriction to 12.
       -> If problem still persists, I would have to do some thinking.
    If problem is gone, then add the variable again. Check.
       -> If problem is back, then the variable "is sick". Only quick thing to do, is to build an identical variable and use that one.
    If problem also happens with the new variable, then it's time to share this experience with someone else and consider raising an OSS.
    Good luck!
    Jacob
    P.S: what fisc year variant are you using?
    Edited by: Jacob Jansen on Jan 25, 2010 8:36 PM

  • Issue while using SUNOPSIS MEMORY ENGINE (High Priority)

    Hi Gurus,
    While using SUNOPSIS MEMORY ENGINE to generate a .csv file using the database table as a source it is throwing an error in the operator like.
    ODI-1228: Task SrcSet0 (Loading) fails on the target SUNOPSIS ENGINE connection SUNOPSIS MEMORY ENGINE.
    Caused By: java.sql.SQLException: unknown token
    (LKM used : LKM Sql to Sql.
    IKM used : IKM Sql to File Append.)
    can you please help me regarding this ASAP as it has became the show stopper for me to proceed further.
    Any Help will be greatly Appreciable.
    Many Thanks,
    Pavan
    Edited by: Pavan. on Jul 11, 2012 10:22 AM

    Hi All,
    The Issue got resolved successfully.
    The solution is
    we need to change the E$_,I$_,J$_,...... to E_,I_,J_,.... ((i.e; removing the '$' Symbol)) in the PHYSICAL SCHEMA of SUNOPSIS MEMORY ENGINE as per the information given below.
    When running interfaces and using a XML or Complex File schema as the staging area, the "Unknown Token" error appears. This error is caused by the updated HSQL version (2.0). This new version of HSQL requires that table names containing a dollar sign ($) are surrounded by quotes. Temporary tables (Loading, Integration, and so forth) that are created by the Knowledge Modules do not meet this requirement on Complex Files and HSQL technologies.
    As a workaround, edit the Physical Schema definitions to remove the dollar sign ($) from all the Work Tables Prefixes. Existing scenarios must be regenerated with these new settings.
    It worked fine for me.
    Thanks ,
    Pavan Kumar

  • Problem while using a user function

    Hi,
    I just want to learn how a user function in ODI works.
    I have created a user function(for Oracle technology).
    In Definition Tab, I gave bfun($(branchc))
    In implementation I gave
    if ($(branchc) = 'it' || 'cse') then
    return('IT')
    else
    return('Non-IT')
    end if
    In a mapping rule i am using it as BFUN(STUDENT.BRANCH)
    I am getting the following error...
    Bad Query: ORA-00904: "BFUN": Invalid Identifier
    select BFUN('STUDENT.BRANCH') from EX.STUDENT STUDENT where (1=2).
    EX is my source schema.
    Please help me in resolving this.

    Hi,
    That is a common error on ODI.
    The ODI function, (as ODI variable) is to "substitute words", it means, ODI is a code generator and a function are made to substitute code, not to "execute" that action coded.
    For instance: If there are a "case when" instruction that is necessary be typed over and over again, at several places just change the column to be evaluate, you can create a ODI function to substitute this code avoiding type it several times and better, let the same code in just one place.
    Is a way to have “Object Orientation” coding (OO) to code generation...
    Does it make any sense to you?
    Cezar Santos

  • Using pl/sql functions for transformation

    How can I use pl/sql functions in the transformation mapping field for my interface?
    I have a name field where firstname and lastname are concatenated via a space-character and I would like to extract this 'name' field to 2 separate database attributes.
    This means that I need to use a function that uses SUBSTRING and INSTR to be able to get the firstname and lastname separatly out of the name-field.
    The INSTR-function isn't known inside the expression editor in ODI so I'm wondering how I can use my own function?

    Hi Romanna,
    Are you sure? Where did you do your transformation?
    -Source, Staging area or Target
    I try this on Oracle target...
    FIRST_NAME = substr(MYTABLE.FIRST_LASTNAME, 1, instr(MYTABLE.FIRST_LASTNAME, ' ')-1)
    LAST_NAME = substr(MYTABLE.FIRST_LASTNAME,instr(MYTABLE.FIRST_LASTNAME, ' ')+1)

Maybe you are looking for

  • IPod no longer plays my purchase music???

    Hi everyone, I've recently moved my music collection to a different computer and everything seems fine except purchased songs etc won't play on my iPod. They transfer over fine but when it goes to play anything purchased it skips to the next track. I

  • Error in service call of Portal Component while accessing CRM iview

    Hi Experts, When I'm trying to open the iview, i'm getting portal runtime error.  Below is the log I found.  I check the permissions and everything looks fine.  We have migrated from EP6 to EP7 EHP1 SP8.  This iview is working properly in EP6 but thr

  • Difference in time stamp

    Hi ! My data load failed due to difference in time stamp . Why this has happened although I have replicated the DS ? Moreover the time stamp that I have found in R3 in table ROOSPRMSC is Ok with the error message but the time stamp found in RSOLTPSOU

  • Receive transaction error (InTransit shipment)

    Hi I am doing a receiving for Inter org, using the type Intransit shipment, in 11.5.10.2 Inserted the data in the rcv_headers_interface and rcv_transaction_interface table, run the receiving transaction processor conc prog. found no records in po_int

  • TS2446 How to unlock my apple ID account

    I need help how to unlock my apple ID account? Thanks