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

Similar Messages

  • Pop up Window before saving remembering the need (forcing) to fill required fields in a form

    Hi!
    I searched the "old" forum and have very good help from UVSAR but unfortunately I'm not able to access my message sent to that forum anymore.
    [I could never thank all the people who answered because I keep receiving "Your submission has triggered the spam filter and will not be accepted.""]
    I've have never use Java scripts in my life: I started about three days ago.
    1) I'm using Adobe Acrobat Pro X (Windows 7)
    2) I've created a form using Microsoft Word and save it as a pdf file.
    3) After I created a form using Acrobat Pro X;
    3.1.) This form it's not going to be submitted over Internet. It will be send by e-mail to some persons. They will receive it, fill in the form and send it back to me via e-mail. Note: I will save it with extended rights in order to allow to be read with acrobat reader (I'm the only one of the group having Professional edition).
    4) In that form I've created some text fields (for now it's just what I need - no radio buttons, dropdown
    menus, and so...)
    5) Choosed Properties and marked 7 fields as "required";
    6) Used a script I found in here: http://forums.adobe.com/thread/784322 (thank you for the authors of the thread)
    if (!event.target.valueAsString) {
    app.alert("My text My text", 3);
    7) This script allows me to remember people to fill that 7 specific fields (when using mouse or tab).
    8) So... What I really need? Here are the reasons for my request for help:
    8.1.) When people use the Acrobat Reader Save button (not a button I created inside the form) it will pop up an alert message. Users will receive a pop up window telling them they need to fill those fields before saving the form and send it back to me. Can someone share a script, please? Thanks in advance.
    8.2.) Is there a way to colorize the fileds that need to be filled? Again I only learned where to insert a java script yestaerday sou I'm not able to write one. I'm sorry for my newbie questions.
    8.3.) Last question: In one of the fields there will be an e-mail address. On the end of the form I want to create a button like "Send by e-mail" and When someone press that button the e-mail will be sent to the address that was written in the earlier specific field. How can I do this (link a button to an e-mail address in a specific field)? Can someone help me with a script or ideas? Hope I was clear.
    8.1.) UVSAR sent me the following code that works fine untill I save the document for the first time. Affter that he never shows me pop up window again.
    var isFilled = true;
    for (var i=0;i < this.numFields;i++){
    var f = this.getNthFieldName(i);
    if (this.getField(f).required && !this.getField(f).valueAsString) isFilled = false;
    if (!isFilled) app.alert("You must complete all the required fields");
    8.3.) With the help of UVSAR I used:
    var mailto = this.getField('emaddr').valueAsString;
    if (mailto!='') this.mailForm({ bUI:true, cTo:mailto, cSubject:"This is the subject", cMsg: "This is the body of
    the mail." });
    else app.alert("Cannot submit form until the email address field is completed");
    but gives me an error (Note: I named the filed with e-mail "emaddr")
    Once again Thank you so very very much to all the kind people who take their time to share knowledge...
    I'm not a native speaker, sorry for some errors
    Best regards
    AC

    Hi Winnie
    Unfortunately I have been sick and did not read the message before. I apologize.
    I have not received help beyond what is on the page. But when I get I tell you.
    I hope you can get answers. If you receive, I ask that you share with me.
    thank you very much
    best regards
    AC
    Date: Mon, 27 Feb 2012 09:33:10 -0700
    From: [email protected]
    To: [email protected]
    Subject: Pop up Window before saving remembering the need (forcing) to fill required fields in a form
        Re: Pop up Window before saving remembering the need (forcing) to fill required fields in a form
        created by Win_Form in Forms - View the full discussion
    Hi ACI wonder if you can share any responses on to your question above?I too have never used a script but, I have the same problems as you in regards to building a form. And wants to have the same 'protection' and message reminders for the end users. Any information, including a script and/or a contact email of experts you can share with me will help tremendously. Thank you so much in advance. Winnie
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4232307#4232307
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4232307#4232307. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Forms by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Creation of New field in Relationship block of contact page

    Hi,
    I have created a new field as value attribute in Relationship block of contact overview page. Since both AET and EEWB did not allow creation of the field as part of BUT051 I had to create value atribute. I have custom logic for the field. Can you please let me know how I can populate the field.
    Thanks,
    JC

    Hi JC,
    The context node that you are using is a mixed node, so from this node you need to get value node so that you can cast the value into cl_bsp_wd_value_node.
    Here's the sample code for getter and setter method of that attribute:
    DATA:
       lr_mixed TYPE REF TO cl_bsp_wd_mixed_node,
       lr_value_node TYPE REF TO cl_bsp_wd_value_node.
    lr_mixed ?= current  or lr_mixed ?= iterator. " use either of the code i dont have system right now
    lr_value_node ?=  lr_mixed_node->if_bsp_wd_ext_property_access~get_value_node( ).
    Here, from lr_value_node get the property access method and set the attribute value to VALUE parameter.
    Thats it
    Thanks,
    Bhushan

  • Error in creation of target node

    Sender MessageType:
    1 .Root 1..1
      2. Message header 1..1
              3 -code
               3-Name
              3-HeaderNote
    2. Data Range 1..1
          3-No
          3-type
      2. Invoice header 1..unbounded
          3 - Indicator
           3 -invoicetype
           3--invoicecode
           3 -number
           3 -no of line items
           3 -note
           3 *lineitem     1..unbounded
                4 -numb
         4  -type
    Receiver Message type
    1 Root 1..1
    2 * Message header 1..1
              3 -code
              3 -Name
         3-HeaderNote
    2*Invoiceconfirm 1..unbounded
               3-ReqID
              3 -ID
              3 -Typecode
               3-CateCode
               3-Note 
    Mapping : between sender receiver
    2*  Invoice header 1..unbounded          -
    >>&#61664; 2 *Invoiceconfirm 1..unbounded
           3- Indicator                                 -
    >>&#61664; 3-ID
           3 -invoicetype                             -
    >>&#61664; 3-Typecode
           3--invoicecode                            -
    >>3 -CateCode
           3 -number                                    -
    >>-&#61664; 3- ReqID
           3 -no of line items                           
           3 -note                                         -
    >>> 3-Note
           3 *lineitem     1..unbounded
                 4-numb
         4  -type
    <u>File Content Conversion:</u>
    Recordsetname: sender root
    NAmesapce: http:
    recordsetStructure : MessageHeader,1,DataRange,1,InvoiceHeader,*
    recordsetpermessage:1
    keyfieldname: keyfield
    <b>Parameters:</b>
    MessageHeader,3,DataRange,3,InvoiceHeader,*,LineItemOfInvoice,11
    MessageHeader.fieldNames = keyfield,Name,HeaderNote
    MessageHeade.keyfieldvalue=1
    MessageHeader.fieldSeparator= ~~
    MessageHeader.endSeparator=’nl’
    <b>DataRange.fieldNames =keyfield,type
    DataRange.keyfieldvalue=2
    DataRange.fieldSeparator =~~
    DataRange.endSeparator=’nl’</b>
    InvoiceHeader.fieldNames: Indicator,keyfield, invoicecode, number, no of line items, note 
    InvoiceHeade.keyfieldvalue=2
    InvoiceHeade.fieldSeparator =~~
    <b>There Is no error in filesender :</b>
    File is getting picked.
    <b>In sxmb_moni:</b>
    Cannot create target element /ns0:Root/ Invoiceconfirm /TypeCode. Values missing in queue context. Target XSD requires a value for this element, but the target-field mapping does not create one. Check whether the XML instance is valid for the source XSD, and whether the target-field mapping fulfils the requirement of the target XSD at com.sap.aii.mappingtool.tf7.AMappingProgram.processNode

    sender structure:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:CN_GoldenTax_SJJK0201FileMessage xmlns:ns0="http://sap.com/xi/AP/Globalization">
       <MessageHeader>
    <b>      <HeaderCode/></b>
          <HeaderName/>
          <HeaderNote/>
       </MessageHeader>
       <DataRange>
        <b>  <NumberOfInvoices/></b>
          <BeginningDateInvoices/>
          <EndDateInvoicesSelected/>
       </DataRange>
       <InvoiceHeader>
          <CancellationIndicator/>
          <GoodsListIndicator/>
          <InvoiceType/>
      <b>    <InvoiceTypeCode/></b>
          <InvoiceNumber/>
          <NumberOfLineItems/>
          <InvoiceDate/>
          <TaxMonth/>
          <BillingDocumentNumber/>
          <NetVATamount/>
          <TaxRate/>
          <TaxAmount/>
          <ClientName/>
          <ClientTaxCode/>
          <ClientAddressPhone/>
          <ClientBankAccount/>
          <SellerName/>
          <SellerTaxCode/>
          <SellerAddressPhone/>
          <SellerBankAccount/>
          <Note/>
          <NameofInvoiceIssuer/>
          <NameofVerifier/>
          <NameofCollector/>
          <LineItemOfInvoice>
             <DiscountRowSymbol/>
             <ProductDescription/>
             <Specification/>
             <UnitsofMeasure/>
             <Quantity/>
             <NetVATamount/>
             <TaxAmount/>
             <TaxRate/>
             <UnitPrice/>
             <ModeOfUnitPrice/>
             <ProductTaxItem/>
          </LineItemOfInvoice>
       </InvoiceHeader>
    </ns0:CN_GoldenTax_SJJK0201FileMessage>
    Receiver structure in Sxmb_moni:
      <?xml version="1.0" encoding="utf-8" ?>
    - <ns:CN_GoldenTax_SJJK0201FileMessage xmlns:ns="http://sap.com/xi/AP/Globalization">
    - <MessageHeader>
    <b> <keyfield>201</keyfield></b>
      <HeaderName>19980201</HeaderName>
      <HeaderNote>2</HeaderNote>
      </MessageHeader>
    - <DataRange>
    <b> <keyfield>2</keyfield></b>
      <BeginningDateInvoices>19980501</BeginningDateInvoices>
      <EndDateInvoicesSelected>19980531</EndDateInvoicesSelected>
      </DataRange>
    - <InvoiceHeader>
      <CancellationIndicator>1</CancellationIndicator>
      <GoodsListIndicator>0</GoodsListIndicator>
      <InvoiceType>0</InvoiceType>
    <b>  <keyfield>1306981140</keyfield></b>
      <InvoiceNumber>00010004</InvoiceNumber>
      <NumberOOfLineItems>1</NumberOOfLineItems>
      <InvoiceDate>19980512</InvoiceDate>
      <TaxMonth>05</TaxMonth>
      <BillingDocumentNumber>96110002</BillingDocumentNumber>
      <NetVATamount>76233.35</NetVATamount>
      <TaxRate>0.17</TaxRate>
      <TaxAmount>11076.66</TaxAmount>
      <ClientName>1</ClientName>
      <ClientTaxCode>321000789010005</ClientTaxCode>
      <ClientAddressPhone>12</ClientAddressPhone>
      <ClientBankAccount>123</ClientBankAccount>
      <SellerName>12</SellerName>
      <SellerTaxCode>130601000000000</SellerTaxCode>
      <SellerAddressPhone>233352051</SellerAddressPhone>
      <SellerBankAccount>2345326113357211</SellerBankAccount>
      <Note>234</Note>
      <NameofInvoiceIssuer>1</NameofInvoiceIssuer>
      <NameofVerifier>2</NameofVerifier>
      <NameofCollector>3</NameofCollector>
      </InvoiceHeader>
      </ns:CN_GoldenTax_SJJK0201FileMessage>
    If I use this in test of mapping : It gives error inovicetypecode not created.
    As u can see it has keyfield in sxmb_moni instaead.
    Howsover if I remove keyfieldwith invoicetypecode It works fine.
    So i think the name is not matched.
    So in conversion parameter how I cann retain the name insted of keyfield.
    As I also want to use the keyfieldvalue to identify a record in file

  • 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

  • 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.

  • 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

  • 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;

  • Creating target field based on input node

    Hi all,
      I'm facing a problem in creating the target node based on input node. See if the input node value is repeated I don't want to create the target field for the second occurrence.
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_temp xmlns:ns0="urn:test">
       <row>
          <temp_id>1002</temp_id>
       </row>
       <row>
          <temp_id>1002</temp_id>
       </row>
    </ns0:MT_ItemEvent>
    In the above structure you can see the temp_id is repeated , I want to create only one target node. Plz help me to solve this.

    HI,
    Use the UDF and in that use Vector to create the result list with the values.
    use temp_id as imput and before that remove context
    after the UDF use the Splitbyvalue
    See the below code
    String () a;
    Vector prod = new Vector();
    for (i=0;i<a.length;i++){
    if(!prod.contains(a(i))) prod.add(a(i));
    Collections.sort(prod);
    for(i=0;i<prod.size();i++){
    result.addValue((String) prod.get(i));
    Regards
    Chilla

  • Message-Mapping: Use same RFC lookup for different target fields

    Hello,
    I need to apply an RFC Lookup which delivers a boolean flag back (true or false). This RFC lookup should be used for different target fields.
    Is there a way to execute the RFC lookup just once and then store the result in an internediate variable that I can use for all futher checks for different target fields?
    If this is not possible and I have to apply the RFC lookup for all necessary target fields is it then executed for each target field ? This is exactly what I want to avoid in order not to slow down performance.
    The input parameter (=source field value) would be the same.
    Thank you for your advice!

    Exactly.
    Here is a UDF example I have that you could adapt to your needs.
    Set
    public String setCounter(String a,String b,Container container){
    /* Store values in global datacontainer
    a: mapping value and return valueparameter
    b: name for stored value parameter
    GlobalContainer myGlobalContainer;
    myGlobalContainer = container.getGlobalContainer();
    myGlobalContainer.setParameter(b.toUpperCase(), a);
    return a;
    Get
    public String getCounter(String a,Container container){
       //write your code here
    GlobalContainer gc = container.getGlobalContainer();
    if (gc.getParameter(a) != null) {
      return String.valueOf(gc.getParameter(a));
    } else {
    return "1";

  • 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.

  • Dynamically  filename is required in CC but not reuired in Target field

    HI,
    my requirement is to create filename dynamically(UDF) in Receiver communication channel but I dont want the name should be populated in the target field as target field is not provided by business.
    I received the below UDF from SDN
       String date = var1[0];
       String RFCL = var2[0] ;
       String FN = RFCL + date  ;
    AbstractTrace trace = container.getTrace();
    trace.addWarning("Test" + FN);
       String NameSpace = "http:/"+"/sap.com/xi/XI/Syatem/File";
    DynamicConfiguration conf =
    (DynamicConfiguration)container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create(NameSpace, "FileName" );
    conf.put(key,FN);
    //trace.addWarning("Test" + var2);
    //trace.addWarning("Test" + RFCL);
    result.addValue(var2);
    Can any one suggest me how I can achieve my requirement
    Thanks

    Hi
    Use the code
    public String getFileName(Container container) throws StreamTransformationException{
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    //For getting filename
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    // Retrieve the filename
    String FileName = conf.get(key);
    return FileName;}
    Map this to the root node. Do not forget to keep the Adapter Specific Message Attributes(ASMA) checked in the communication channels.
    Set Adapter Specific Message Attributes
    File Name.
    Regards
    Monika

  • File content conversion: Target Field is optional

    I am using FCC in receiver file adapter.
    My file is getting generated.
    In target structure one field is optional and hence target xml element doesnt have value. hence that field is not there in txt file. with this what happens next subsequent field gets shifted to my optional field place and then i get error field length is not correct.
    I want to put 2 spaces if that optional field length is 2 char and then there should be field separator(space) and the subsequent column.
    I am already giving fixedfieldlegnth of all the fields.
    Pl can anyone suggest how to do this.
    thanks,
    sharada

    Hi Sharada,
    Do your normal mapping to the target field that is optional.
    Use a If function before mapping the field.
    Check if the node is created in usual mapping, else map a constant with 2 spaces.
    DO something like this:
    Mapping ---------------->
                               equalsS ----> if
    constant(empty Value)--->
                      constant(2 spaces)--> then -> tgtField
                       Mapping -----------> else   
    regards,
    P.Venkat

  • Issue in mapping the same source and target fields

    Hi All,
    I am working on PI 7.0 and currently I am connecting to PI 7.0 via citrix desktop . Problem here is : in the mapping , direct mapping option that is available to map the same source and target fields is disabled . I do know that this is due to some java version issue .
    What I want to know is there any possibilty of solving this issue without installing an updated java version ?
    Regards
    Vinay P.

    I've faced the same for many times and all of that were due to Java version.
    1st of all, you have to check the authorizations you have. If you have enough (DEVELOPER_J2EE, CONTENT_ORGANIZER_J2EE, and so), and - obvious but very often forgotten - you have to assure you're trying to change it in the message mapping change mode On.
    Then, last shot should be downgrade your Java version.
    The 1.4.2 JRE version allow you to use not only the Mapp the Identical field but also Dependencies, Clear Mapping and some other tools/buttons. As mentioned above, if there's a fix in the new Java releases, I do not know (hope so) and would appreciate if you could let us know.
    Tks.

Maybe you are looking for

  • About Deployment problem

    Hi, I am doing my MSc dissertation about "The Impact of Visual Composer upon Business Requirements Gathering". When I am triied to deploy my application, I got this error message Deploying..... Error in executing a process for flex compilation, not e

  • Spinning ball all the time? new final cut?

    Hi there, After spend 300 dollars in the brand new final cut X, i notice that i also have a free spinning colourfull beachball?! yes in the previous version i never add so many hang ups and so time waiting for some operations, i have, as u can say th

  • Date function to pull back dates of the year?

    is there a built in function for returning all dates (whatever format) between to dates ? Example: Select functionname('2009/06/01', 'yyyy/mm/dd), ('2009/06/05', 'yyyy/mm/dd') from dual Wanted results 2009/06/02 2009/06/03 2009/06/04

  • Somebody can help me how to install windows in my imac

    Somebody can help me how to install windows in my imac

  • InDesign Problems when Printing to Xerox 700i Digital Color Press Running Fiery EFI

    Mac OS 10.9.3, up to date Adobe CC InDesign. Every time I print to the Xerox using Fiery features, afterward I cannot save.  If I close the file and try to re-open it, I am told that another user is modifying the document.  If I restart, then go into