Syndicate depending on condition to a target field

HI,
I am a scenario where I need to syndicate out the value depending up on the condition:
Source:
Remote System --AAA
value1---111
valu2---- null
Another record:
Remote System --BBB
value1---333
valu2----444
Target has two fields: System and Value
Condition is : When ever remote system is BBB then I need to pass value2 to Target Value field any thing else I need to pass Vlaue1 value to Value target field...
Is this possible in MDM Syndication?
Thanks
Rajeev

Hi Rajeev,
Yes it is possible in MDM 7.1 version
create two seprate map for each system (AAA,BBB) i.e.  and set condition on each system
follow the the which may help you
1. Create field to field Map
2. In Map Properties Tab ---> Remote Key Over ride (AAA) & tiick suppress unchaged records
3. Specify Value1 = 111 and Value2= Null in free form serach
4. SAve map by selecting Remote System in our case it would be AAA
5. Give Map name & Save
follow same step for remote system BBB it will work
Note : Based on your Condition set in free form serach mapping will execute accordingly for perticuler system
Thanks,
Jignesh Patel
Edited by: jignesh patel on Sep 6, 2010 4:06 PM

Similar Messages

  • 6 IF-THEN and OR conditions for one target field mapping

    Hi Mapping experts,
    I have a validation condition involving 2 source fields and 1 target field only, however the number of conditions is 6 (OR)
    Source Fields:
    TYPE
    PONUM
    Target Field:
    BELNR
    If TYPE = 1st value   then   BELNR = PONUM substring (0, 8)  0=start position, 8=character count
    OR
    If TYPE = 2nd value   then   BELNR = PONUM substring (2, 8)
    OR
    if TYPE = 3rd value  then  BELNR = PONUM substring (4, 8) ..........  up to the 6th Validation Condition.
    When I do this using graphical mapping only (multiple IF-THEN and OR's) the validation is successful only on the 1st IF-THEN statement, then it passes the substringed value to the 1st OR function.....    When I "Display Queue" the 1st OR function the substringed value is taken as null (or:in1 <null>)  Is this because OR function is expecting Input as "True or False" value only and not a string value?
    For my requirement above, can I achieve this using graphical mapping only?    or do I have to use UDF for this?
    If it's better to use UDF for this, would anyone give me a jumpstart on the code?  (I have no experience yet in UDFs)
    Thanks, and hoping that somebody will respond accurately and completely.

    Create UDF with two inputs as TYPE & PONUM and use bleow code there..
    String out = "";
    if( TYPE.equals("1"))
    out = PONUM.substring(0,8);
    return out;
    else if( TYPE.equals("2"))
    out = PONUM.substring (2,8);
    return out;
    else if( TYPE.equals("3"))
    out = PONUM.substring (4,8);
    return out;
    else if( TYPE.equals("4"))
    out = PONUM.substring (4,8);
    return out;
    else if( TYPE.equals("5"))
    out = PONUM.substring (4,8);
    return out;
    else if( TYPE.equals("6"))
    out = PONUM.substring (4,8);
    return out;
    return "";
    Note: change the substring range as per your need in above code.
    Now do your mapping as shown below
    TYPE ------>|
                | -----> UDF ---> BELNR
    PONUM----->|

  • PO Form with Terms & Conditions that Change Depending on a Value in Another Field

    Hi - I have read through the relevant topics in this forum and have attempted several of them without luck. I am currently working on a form in which there is an empty JFMain (I do not want to populate fields on this page since I don't want things in this page my "static" header - logos, title, etc. since the Terms and Conditions pages should not show any of this.) On my page 2, I have subforms for all my fields except my Terms and Conditions. (These fields are controlled by a data file.) On my remaining pages I have 3 sets of Terms and Conditions - all about a page long - hard-coded as text and placed in subforms with a dummy field off page to ensure they print. What I want to do is print the subforms from page 2 and then the applicable terms from page 3, 4, or 5 depending on the value in a field located in one of the subforms on page 2. What I currently get is my subforms and then ALL my terms printing. Any thoughts?
    My preamble overrides look like this:
    ^define group:D_HEADER \field$POSITION\reserve".11",in\subformHEADER.
    ^define group:G_HEADER @group:D_HEADER.
    ^define group:dummy!FldNotAvail \groupG_Terms_Private_Commodity
    ^define group:dummy2!FldNotAvail \groupG_Terms_Private_Services
    ^define group:dummy3!FldNotAvail \groupG_Terms_Public
    ^define group:JfEndData!EndData @group:D_end.
    I had to place the JFEndData! statement into the Preamble since the last subform with fields called before the Terms subforms has a global field from another subform above it. For whatever reason, it was duplicating this subform after printing the Terms and Conditions.
    I tried adding a nested if statement into field that will control when I want each subform to print but it was ignored. I also tried hardcoding a group call into the preamble with the logic as well with no results. If someone has example code they can share, this would be great.

    I receive Adobe help forum posts via email and I've been saving a few for the pointers they contain. I have some saved that might help you out a bit...
    A reply to the "Please can some one help me out......." post by Mr BoJangles on 10/29/2007 gives some information about forcing a subfield to be displayed.
    A reply to the "Conditional logic" post by Marco Degl'Innocenti on 8/2/2006 gives information on initiating a subform based on the value of a field in the data stream.
    A reply to the logic post by Marco DeglInnocenti on 2/22/07 also gives information on initiating a subform based on the value of a field.
    I hope these can be of help. If you can't access them on the forum I can repost them.

  • Mapping Issue. Parsing problem to target Fields based on condition.

    Hi All,
    File to Idoc scenario.
    My file looks like below.
    HD 89650 28/01/11 "Presciber tan"
    AF "disc-rsn"
    RK "007287001" A
    KE disc-code "007287"
    KE addr-num "001"
    DF fax-num ""
    DF in-out "I"
    DF phone-2 "23221"
    AF "drs"
    RK "007287" A
    KE dr-num "00221"
    KE addr-num "001"
    DF affil "OPSM"
    DF rec-stat "A"
    DF phone-2 "12444"
    AF "disc-rsn"
    RK "dr-addraddress-1 17287|1EN" A
    KE disc-code "008287"
    KE field-name "address-1"
    KE element " 1"
    DF in-out "I"
    DF phone-2 "1232"
    DF post-code "3109"
    DF provider-num "5349201J"
    DF rec-stat "A"
    T         24
    I need to capture and create target segments only for the values "AF "disc-rsn"".And pass all the relavant rows (RK,KE,DF...) which are under "AF "disc-rsn"" to the target fields.
    I'm struggling to parse the value to the output structure as RK,KE,DF will be present under anywhere like "AF drs", "AF disc-rsn" etc.
    I'm able to create the target segments (2 Zdisc segments as 2 "AF disc-rsn" present in the file), but unable to parse the field values to the target fields.
    Ex: DF phone-2 is present in 8th, 15th,22nd row. I need to pass only 8th and 22nd rows to the target fields.
    After content conversion, My Source XML looks like below.
    <?xml version="1.0" encoding="utf-8" ?>
    - <MT_DiscountDetails>
    - <HD>
      <KeyField>HD</KeyField>
      <HDRow>89650 28/01/11 "Presciber tan"</HDRow>
      </HD>
    - <AF>
      <KeyField>AF</KeyField>
      <AFRow>"disc-rsn"</AFRow>
      </AF>
    - <RK>
      <KeyField>RK</KeyField>
      <RKRow>"007287001" A</RKRow>
      </RK>
    - <KE>
      <KeyField>KE</KeyField>
      <KERow>disc-code "007287"</KERow>
      </KE>
    - <KE>
      <KeyField>KE</KeyField>
      <KERow>addr-num "001"</KERow>
      </KE>
    - <DF>
      <KeyField>DF</KeyField>
      <DFRow>fax-num ""</DFRow>
      </DF>
    - <DF>
      <KeyField>DF</KeyField>
      <DFRow>in-out "I"</DFRow>
      </DF>
    - <DF>
    Is there any way I can acheive my  mapping based on the above condition?? Kindly suggest me.
    Thank you for your time.
    Regards
    Deepthi

    Not required. Using Java function. Solved the issue.

  • How to remove fire action to image field depending on condition

    Hi,
    I have one field as Image and having fireaction event in table and all remaining fields are Mesagestyled text
    Requirement is need to remove fire action for action some rows depending on condition.
    Pls help, how to do this?..
    Thanks in advance,
    Hanimi..

    Hanimi,
    You need to make use of switcher Region, for achieving your requirement. Refer Developer Guide for more details on Switcher Region.
    Regards,
    Gyan

  • End Routine - populating Target Field based on Master Data

    Hi,
    I have an issue with my End Routine in BI 7.0. The scenario is as follows....
    The Target-Fields ZSALES_OFFICE , 0SALES_CHANNEL etc. are being mapped 1:1 from their respective source fields. In addition to these target fields I have a target field 0SALESORG which I need to populate based on the values from 0COMP_CODE which is an attribute of ZSALES_OFFICE. The values of 0COMP_CODE are 9000, 9001, 9002 and 9003 respectively. The end routine condition needs to be implemented as follows...
    For every 0COMP_CODE which has value 9000, 0SALESORG should be populated with the value "EAST". Similarly for every 0COMP_CODE which has value 9001, 0SALESORG should be populated with the value "WEST",  for every 0COMP_CODE which has value 9002, 0SALESORG should be populated with the value "NORTH" and  for every 0COMP_CODE which has value 9003, 0SALESORG should be populated with the value "SOUTH". I tried the following code but it doesnt seem to work. Could you pls help!!
    Thanks,
    SD
    DATA: it_tab4 TYPE TABLE OF /BIC/PZF31SALOFF,
              wa_tab4 TYPE /BIC/PZF31SALOFF.
        SELECT *
          FROM /BIC/PZF31SALOFF
        INTO CORRESPONDING FIELDS OF TABLE it_tab4.
        sort it_tab4 by /BIC/ZF31SALOFF.
        LOOP AT RESULT_PACKAGE
          INTO <result_fields>.
          read table it_tab4
          with key /BIC/ZF31SALOFF = <result_fields>-/BIC/ZF31SALOFF
          into wa_tab4
          binary search.
          if sy-subrc eq 0.
            CASE wa_tab4-comp_code.
              WHEN '9000'.
                <result_fields>-salesorg = 'EAST'.
              WHEN '9100'.
                <result_fields>-salesorg = 'WEST'.
              WHEN '9200'.
                <result_fields>-salesorg = 'NORTH'.
              WHEN '9300'.
                <result_fields>-salesorg = 'SOUTH'.
              MODIFY it_tab4 FROM wa_tab4.
            ENDCASE.
          endif.
        ENDLOOP.

    Replace your select statement ,
    SELECT *
    FROM /BIC/PZF31SALOFF
    INTO CORRESPONDING FIELDS OF TABLE it_tab4.
    instead of selecting all the fields , pick only the fields which are required.(one good performance improvement)
    SELECT    /BIC/PZF31SALOFF  comp_code
    FROM /BIC/PZF31SALOFF
    INTO CORRESPONDING FIELDS OF TABLE it_tab4.
    Remove the line below , this is not required
    MODIFY it_tab4 FROM wa_tab4.

  • Exsistance of a node depends on a value of source field.

    I need to do  graphical mapping such that the exsistance of a node in target side depends upon the value of a field in sorce side. Can some one tel me how to proceed?

    Hi Pooja,
    use can use"createIf" function.Ur problem will be solved
    check here how to use createIF function...
    /people/stefan.grube/blog/2006/01/09/the-use-of-suppress-in-the-xi-30-graphical-mapping-tool
    Read this http://help.sap.com/saphelp_nw04/helpdata/en/d9/3033f96c79674f90e3ab8d101a595b/content.htm
    And check these threads
    Createif node function
    Regards
    BILL
    <b>**reward with points if it helps u!!</b>

  • Select value depending to condition

    I need to assign a value to a query select field depending on a condition from another select field.  Please tell me that this could be posible to do within the Query Manager on SAP B1.  If so, could you help me with this?
    Thanks in advanced,

    Rodney,
    This can be achieved using the case function in SQL.  You can lookup CASE contruct in the SQL help files.  I will give you a small example below for your understanding.
    SELECT T0.DOCNUM, T0.DOCDATE, T0.CARDCODE, CASE WHEN T0.SLPCODE = -1 THEN NULL ELSE T1.SLPNAME END
    FROM ORDR T0 INNER JOIN OSLP T1 ON T0.SLPCODE = T1.SLPCODE
    In the above sample SQL, I am checking the value of the Sales Person code on the Sales Order and if it is -1 (-No Sales Employee-), I am printing blank. 
    Regards
    Suda

  • LSMW - The source field is longer than the target field in MEK2

    Hi,
    I tried to create a simple LSMW script to end date condition records using MEK2 transaction.
    I provide Condition type, Plant, Material, Start Date and default Valid from and Valid to dates.
    When the program is generated, it defines just 1 character for Start date and when I try to map the date field from source, it gives following error message.
    Attention: The source field is longer than the target field.
    Message no. /SAPDMC/LSMW_OBJ_040013.
    Not sure why it is happening. I am on 46C.
    Please let me know if anybody come across such situation. I have checked all aspects, tried recreating in different systems but ended up with the same problem.
    You help in this regard will be highly appreciated.
    Regards
    Kasi

    It is a standard error, and I have not found any OSS note to fix it. In order to solve it, you can use this workaround:
    - Export the recording into a txt file
    - Edit the file, and modify the information correspondent to domain, data element and lengths (internal and external) fields, and save it
    - Import the recording
    For example, I had problems in a recording with the field SEL_DATE of the transaction VB02. Then, I changed these values:
    Values before changes:
    /SAPDMC/LSGBDC                ZTEST          ZVB02_ZA01     0018                                        0000 SEL_DATE                                                                                DATE_ON                       Valid on                                                    CHAR1                         CHAR1                          SEL_DATE                                                    0000000000                              000001000001000001CHARC
    Values after changes:
    /SAPDMC/LSGBDC                ZTEST          ZVB02_ZA01     0018                                        0000 SEL_DATE                                                                                DATE_ON                       Valid on                                                    DATUM                         DATAM                          SEL_DATE                                                    0000000000                              000010000010000010CHARC
    (values 01 has been replaced by values 10)
    The values changed correspond to fields:
    /SAPDMC/LSGBDC-PARDOMAIN
    /SAPDMC/LSGBDC-PARDATAELEMENT
    /SAPDMC/LSGBDC-LENG
    /SAPDMC/LSGBDC-INTLEN
    /SAPDMC/LSGBDC-OUTPUTLEN
    The information that you have changed should be updated in table /SAPDMC/LSGBDC, where all the information of the recordings is stored. Check this information has been updated after recording import.
    I hope this solution be useful for anyone...
    Regards.

  • Couldn't assign target field for characteristics in PI sheet config

    Dear All,
          I'm trying to configure PI sheet, i have created Process message categories as well as characteristics. Everything is working fine except the inputted value (for example weight, density) in PI sheet not getting transferred into process order. When i try to assign the destination message to the message characteristics, i couldn't find any value for the message categories which i created. System shows the below  error:
    No entries found that match selection criteria
    Message no. SV004
    Even if i try to assign manually,system shows with error
    Corresponding entry in "Destinations/Message categories" missing
    Message no. SV534
    Steps i did :
    1. Created new Control Recipe destination(ZCR) ( by copying sap provided CRD "05")
    2. Created new characteristics group(ZMCG) for process message ( by copying sap provided group "PPPI_01") and released
    3. Created Characteristics (ex. weight, density) with chars. group as ZMCG
    4. Didn't create any new message destination (Trying to use defaut "PI01")
    5. Create New Process Message Category(ZTEST) and assign the characteristics (weight, density along with PPPI_PROCESS_ORDER)
    The problem is i couldn't assign target field as "process order" to update the inputted values for the characteristics (weight, density) in O13C
    I gone through all the node in "Process Management" but unfortunately i don't know where we have to assign this destination. I hope if i assign the destination message as "PI01"  with characteristics "PPPI_PROCESS_ORDER" along with target field as "PROCESS_ORDER" for the characteristics it may update into process order. How to assign the destination message for the message category?
    Thanks

    Hi Kumar,
        Thanks. When i try to assign the destination message for the characteristics through O13C, i got the error message that "No entries found that match selection criteria". It means there is no characteristics with the combination of Process message category "ZTEST" with Destination as "PI01". If i trying to assign manually through "New entries" option, systems shows with the error "Corresponding entry in "Destinations/Message categories" missing.
    Thanks

  • How do I get more target fields to apper in inspector for a mail merge?

    I am trying to do a mail merge from a Numbers spreadsheet to a Pages document. The spreadsheet has three columns: first name, last name, units. When I choose and add the merge fields to inspector the target fields 'first name' and 'units' appear but no target field entitled 'last name' appears. I can't figure it out.

    Which version of Pages?
    Peter

  • Forcing Creation of Target Field

    Hi,
    I want 2 force the creation of target field C in my Message Mapping.:
    So, if A exist and not empty, map A to C,
    if not, map B to C.
    The problem is, if i have a not existing field on left side, the right side wont be created. But I want C to be created in any way.
    Regards,
    Udo

    There must be a hundred threads that deal with this subject already.
    http://help.sap.com/saphelp_crm60/helpdata/en/45/ff8980cbb709eee10000000a1553f6/frameset.htm
    /people/gregor.wolf3/blog/2006/07/22/create-run-and-analyze-an-e-mail-campaign-with-a-survey-part-1
    /people/gregor.wolf3/blog/2006/05/11/advanced-campaign-automation-in-mysap-crm-40-teaser

  • Condition Value in a Field of Service Request

    my problem is this:
    I want to insert a condition Value to a field(Long text) called "Recapito per il ricontatto".
    Condition is this: I have another field called "Canale di Ricontatto" (Picklist) that have 4 choices: Telephone,*E-mail*,*Fax*,*P.E.C*
    Now the condition value of "Recapito per il ricontatto"(Long Text) is this:
    IF "Canale di Ricontatto" (Picklist) IS DIFFERENT Telephone(one choices of Picklist) THEN length least 7 characters
    IF "Canale di Ricontatto" (Picklist) IS Telephone THEN no length least.
    NOW in a FIELD "Recapito per il ricontatto"(Long text)field where I must insert the validation field,I put the Default value 'a' and i check the option Default value back and after i write in a validation field:
    IIf([<plCanale_di_Ricontatto_ITAG>] < > LookupValue("OCC_CUST_LOV_SR_3", "Telefono"),Len([<ltRecapito_per_il_ricontatto_ITAG>])>6,Len([<ltRecapito_per_il_ricontatto_ITAG>])>=1)
    But when i choose Telephone and i don't write nothing in a Long Text field("Recapito per il ricontatto") the allert goes out and when i choose another choice and i put for example 'aaaaaaaaaa'(10 characters) the allert goes out again. The allert goes out always.
    Please HElp Me
    Tank you,
    Vale

    I have resolved in this way:
    Default value field (codice ASCII 255) and Ceck default back
    And condition
    [<plCanale_di_Contatto_ITAG>]<>LookupValue("OCC_CUST_LOV_SR_3", "Telefono")AND Len([<ltRecapito_per_il_ricontatto_ITAG>])>6 OR [<plCanale_di_Contatto_ITAG>]=LookupValue("OCC_CUST_LOV_SR_3", "Telefono")AND Len([<ltRecapito_per_il_ricontatto_ITAG>])>=1

  • XSLT for dynamic target field names

    Hello,
    I got a requiremt where I need to create target field names from input values.
    Input XML -
    <?xml version="1.0" encoding="UTF-8"?>
    <Createelement_MT>
    <Field Name="A">
    <Value>1</Value>
    </Field>
    <Field Name="B">
    <Value>1</Value>
    </Field>
    </Createelement_MT>
    Expected OutPut XML -
    <?xml version="1.0" encoding="UTF-8"?>
    <Createelement_MT>
    <Statement><TableName><table>XYZ</table>
    <access>
    <A> 1 </A>
    <B> 2 </B>
    </access>
    </Statement></TableName>
    </Createelement_MT>
    The value of the attribute 'Name' of field 'Field' should be the name of target field.
    XSLT:
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml"/>
    <xsl:template match="@*|node()">
    <xsl:copy>
    <xsl:apply-templates select="@*|node()"/>
    </xsl:copy>
    </xsl:template>
    <xsl:template match="Createelement_MT">
    <xsl:element name="statement">
    <xsl:element name="TableName">
    <xsl:element name="table">ABC</xsl:element>
    <xsl:element name="access">
    <xsl:for-each select="Field">
    <xsl:element name="{@Name}">
    <xsl:value-of select="Value"></xsl:value-of></xsl:element></xsl:for-each>
    </xsl:element>
    </xsl:element>
    </xsl:element>
    </xsl:template>
    </xsl:stylesheet>
    Error:
    Error: at xsl:element on line 15 of file:///......: XTDE0820: Invalid element name. Invalid QName {}
    Please help me with the xslt code for this requirement.
    Thanks!

    Hi,
                Please try this code
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
         <xsl:output method="xml"/>
         <xsl:template match="/">
              <Createelement_MT>
                   <Statement>
                        <TableName>
                             <table>XYZ</table>
                        <access>
                             <xsl:for-each select="Createelement_MT/Field">
                                  <xsl:variable name="field" select="@Name"></xsl:variable>
                                  <xsl:element name="{$field}">
                                  <xsl:value-of select="Value"></xsl:value-of>
                                  </xsl:element>
                             </xsl:for-each>
                        </access>
                        </TableName>
                   </Statement>
              </Createelement_MT>
         </xsl:template>
    </xsl:stylesheet>
    input xml
    <?xml version="1.0" encoding="UTF-8" ?>
    - <Createelement_MT>
    - <Field Name="A">
      <Value>1</Value>
      </Field>
    - <Field Name="B">
      <Value>1</Value>
      </Field>
      </Createelement_MT>
    output xml
    <?xml version="1.0" encoding="UTF-8" ?>
    - <Createelement_MT>
    - <Statement>
    - <TableName>
      <table>XYZ</table>
    - <access>
      <A>1</A>
      <B>1</B>
      </access>
      </TableName>
      </Statement>
      </Createelement_MT>
    One small request, if you think your question has been answered,could you please kindly, if possible, close this thread.
    regards
    Anupam

  • In XI Mapping multiple fields mapping to single target field.

    Hi Friends,
    In XI Mapping multiple fields mapping to single target field.
    For example my requirement is :
    Source Fields:(This RFC BAPI Structure)
    Empno                0-1
    EmpName           0-1
    Address             0-1
    Taget Field is:
    Details               0-1
    The above three fields passed to the Details Field. Here i am using Concat function
    But i have one query on that on,Every field having "line Break" required.
    Can you please help me out above this requirement.
    Thanks in Advance,
    Sateesh N.

    If you want a line break between the three fields, then try
    passing a,b,c to the udf and in the udf you would have
    return a+"\n"+b+"\n"+c;

Maybe you are looking for

  • Simplify the select query to get single record

    Please let me know what is wrong with my query. Max(p_received_date) is returning null columns too. But i need to have only null record per period, if there is date and null record for the same billing then return the date record. please check novemb

  • Video or photo's in backing up data

    I have 2 500GB external drives for Backup for a 250 GB intel imac. A friend of mines said i should put my videos on one drive and the photos on the other drive. He said this help the computer not get confuse. Is this true? If so it seem I would need

  • Got SSLKeyException:FATAL Alert:BAD_CERTIFICATE using weblogic ws test tool

    Hi, Iam trying to test the webservices using the WebLogic Webservice standard testing home page. The services work fine without SSL, but if the server is setup to use SSL, I get a BAD CERTIFICATE exception using the testing home page. Although, when

  • Non-editable view after succesful save of complaint

    Hello, We want to make the view of Complaints non-editable after succesful save of the Complaint. I think I must add some code in method EH_ONSAVE of component BT120H_CPL/ OVViewset. Do you have any idea of how to achieve this? Best Regards.

  • OSX reboots without permission on update install

    OS X 10.9.1 (13B42) Is there a setting in Mavericks to tell it not to install updates and reboot without permission? For many years, one of the reasons I liked Macs was that my Windows PC would often reboot overnight because Microsoft would decide it