Last field has no value in sender flat file.....

Hi,
I am doing FCC on sender flat file.
If the last field in the flat file has no value i.e. say if comma is my fiels seperator ,then the file is lik:
1,2,3,
The last node of my XML is not formed and giving me mapping errors....How do I solve dis??
Plz help
Edited by: sriparna1 on Oct 20, 2010 12:34 PM

For comma seperated structures, the missing fiels are ignored.
Make sure you defined the endseperator.
Edited by: nagarjuna _s on Oct 20, 2010 12:46 PM

Similar Messages

  • Dithering buttons based off of whether or not a choice field has a value

    Hi,
    I am trying to dither out a button until a choice field has a value in it. I have been noticing that users have been submitting the form without selecting any of the options in the choice field (has about 40 choices).
    I would make that field required, but it would interfere with different views of the form that do not have that section attached to them.
    I have tried dithering the button if the value or if the field itself is either blank or not present, but it does not appear to be working.
    I was thinking that I may need to create a single line of text field that populates if a value is present, however, was hoping there would be an easy way to do this.
    Any help would be greatly appreciated!
    Thanks (happy holidays),
    Greg
    Greg Baker

    Hi  Greg,
    Thank you for your posting!
    For achieving your demand , you can use JavaScript as following:
    Create a field CurrentView to record the current view.
    Add set a field’s value rule on switch view button, such as when we click switch view 1 button, the rule will set the CurrentView  field to 1.
    Add  below JavaScript:
    function validateDropDown() {
    var curView =document.getElementById(“CurrentView”);
    if(curView==1)
    var ddl = document.getElementById("DropdownListID");
    if (ddl.selectedIndex == 0 || ddl.options[ddl.selectedIndex].value == "")
    alert("Please select an option! ");
    return false ;
    else { return true ;}
    </script>
    Hope this helps,
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Sending Flat file as an Email Attachment

    Hi,
    I have configured Mail Adapter to send XML Payload as an attachment .
    But now i need to send Flat file as an attachment using Mail Adpater . Can any body help me out in this regard

    Hi Vinay,
    Yes , steps will same as earlier, use the blog i provided you.
    *Configuring the Receiver Mail Adapter*
    For outgoing mails, you need SMTP or IMAP4 access to your mail server. To access the mail server, enter the following URL:
    smtp://YourServer or imap://YourServer/YourInbox
    By selecting the Use Mail Package checkbox, you can include additional information to the XI message payload, that is, the mail sender.
    If the mail has a plain-text format, you can select the Use Mail Package checkbox to convert the mail message to XML.
    Working with Mail Packages
    You can dynamically set the sender, receiver, and mail title by using the mail package format. When the mail package format is used, your structure of the payload must adhere to the structure of the mail package.
    You can create the mail package structure using the graphical mapping tool. The XSD of the mail package is provided as an attachment in SAP Note 748024.
    Creating a Mail Package with XSLT Mapping
    If you want to determine the mail receiver dynamically from a payload field, but want the
    payload to be sent unchanged, sometimes it is too complicated to use the graphical
    mapping tool to create the mapping. The following figure provides an XSLT example that you can use, if your original payload provides the tags sender, receiver, and subject. The XSLT will set these values and copy the whole payload to the Content tag. The original payload will be the mail body.
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="1.0">
    <xsl:output method="xml" indent="yes" />
    <xsl:template match="*">
    <ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
    <Subject><xsl:value-of select="//subject"/></Subject>
    <From><xsl:value-of select="//sender"/></From>
    <To><xsl:value-of select="//receiver"/></To>
    <Content><xsl:copy-of select="/"/></Content>
    </ns:Mail>
    </xsl:template>
    </xsl:stylesheet>
    When you use the MessageTransformBean module in the module processor
    configuration of the communication channel, you can directly apply the XSLT mapping to the adapter module.
    Enter localejbs/AF_Modules/MessageTransformBean as the first module. Select
    the Type Local Enterprise Bean and select a value for Module Key.
    You can also use the XSLT file for an interface mapping in the Integration Repository.
    Changing the Name and Type of the Payload
    By default, the payload of the XI message is sent as an attachment. If you use mail
    package, the mail text in the Content tag is sent as a mail body (inline). If you want to change this or influence the name of the attachment, you can do this using the
    MessageTransformBean module.
    Enter localejbs/AF_Modules/MessageTransformBean as the first module.
    Select the Type Local Enterprise Bean and select a value for Module Key.
    If you use the Mail Package, then you have to apply the Mime type in the tag
    Content_Type:
    <ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
    <Subject>Hello</Subject>
    <From>[email protected]</From>
    <To>[email protected]</To>
    <Content>This is a mail</Content>
    <Content_Type>text/plain; charset="ISO-8859-1";
    name="MyFile.xml"</Content_Type>
    </ns:Mail>
    Exactly how the mail content is displayed at the receiver end depends on the mail client. If the customer has a different mailing system, the mail look may look different at the customer side.
    *_Sending a Mail with Attachment  (That is what you need)_*
    If you want to send a mail with a body and attachment, or with several attachments, the message sender has to provide an XI message with additional attachments. For each additional payload of the XI message, the mail adapter creates an attachment for the mail. To enable this feature, you select the Keep Attachments checkbox when configuring the mail adapter. By default, the payload of the message is also sent as an attachment. If you do not want the payload to be sent as an attachment, set ContentDisposition to inline. If you want to give each attachment a certain name, you can use the swap module. The swap module changes the main payload.
    Enter the localejbs/AF_Modules/PayloadSwapBean module as Local
    Enterprise Bean between the two modules that change the attachment names.
    Select a value for Module Key.
    You can find the name of the payload that you want to set as the main payload in the XI message monitor (SXMB_MONI).
    Useful SAP Notes
    SAP Note 748024: Here you can download the XSD structure of the Mail Package.
    SAP Note 794943: Description of the module “PayloadSwapBean”
    SAP Note 793922: Description of the module
    Hope this will help you.
    Regards
    Aashish Sinha
    PS : reward points if helpful

  • THROUGH HTTP CAN WE SEND FLAT FILE IN  PI7.3?

    Hi Experts,
    We have an requirement that Through HTTP can we send flat file in PI7.3.(For EX:source side HTTP and Target side is IDOC or PROXY)
    Can any one please suggest me how can I proceed for that?
    Please let me know if there is any Documents or Blogs are there related to above requirement...
    Thanks,
    Shaik

    Hi Shaik,
    You can try following approach might help.
    Tell the sender system to use post method for HTTP connection. In post method the particular application will hit to a URL and data will be passed. Source system should pass the data same as that of Text file. Use following link which will help you to convert the data sent as text into XML. Further you can use this XML to convert further into IDOC or proxy.
    Adapter User-Module for HTTP Adapter?

  • Sending Flat File

    Hi Folks,
         I have a requirement of fetching a flat file from the non sap system to sap system and send flat file from sap system to non sap system. Can anybody help me how to achieve this ?
    Thanks & Regards,
      Santosh

    check if this helps for you
    text file from sap<->non-sap
    sending a file from the SAP app server to a network
    File from SAP R/3 to other Server
    Sending Data from R/3 to Java and Java to SAP
    Regards
    Kumar

  • How to print blank line on BIP template when the field has no value?

    I have a BIP template like below and all these CHILDREN, NAME, GRAND_CHILDREN, NAME are fields arranaged in the template as a row.Reps can enter values in each of these fields for a max upto 3 rows. The first 2 rows have the values and the last is blank.
    CHILDREN: NAME: GRAND_CHILDREN: NAME:
    Son     John Daughter     Smith
    Daughter Laura Son      Kevin
    In the third row since the fields have no values, the report print blank rows, but I want to delete that blank row and show only the rows(first 2 rows) that have values for the fields.
    Does any one know how to get around this? Please help me to resolve this.
    Thanks in advance,
    RV

    Thanks.Here is the sample XML. Fields that refer to are as follows:
    Children: DependentDD1, DependentDD2, DependentDD3
    Name: DependentFF1, DependentFF2, DependentFF3
    Grandchildren: GrandchildDD1, GrandchildDD2, GrandchildDD3
    Name: GrandchildFF1, GrandchildFF2, GrandchildFF3
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ListofIO>
    - <ListOfBipCustomerProfileReport>
    - <Contact>
    <FirstName>ROSCOE</FirstName>
    <LastName>CLOUGH</LastName>
    <LeadContactType />
    <PartyTypeCode>Person</PartyTypeCode>
    <PartyUId>XXXXXXXXX</PartyUId>
    <PersonUId>XXXXXXXXX</PersonUId>
    <PrivacyCode>Opt-Out: All Parties</PrivacyCode>
    <RelationtoHousehold />
    <SocialSecurityNumber>XXXXXXXXX</SocialSecurityNumber>
    <UserType>Prospect</UserType>
    - <ListOfA-FmrCustomerProfile>
    - <A-FmrCustomerProfile>
    <DependentDD1>Son</DependentDD1>
    <DependentDD2>Daughter</DependentDD2>
    <DependentDD3 />
    <DependentFF1>John</DependentFF1>
    <DependentFF2>Laura</DependentFF2>
    <DependentFF3 />
    <GrandchildDD1>Daughter</GrandchildDD1>
    <GrandchildDD2>Son</GrandchildDD2>
    <GrandchildDD3 />
    <GrandchildFF1>Smith</GrandchildFF1>
    <GrandchildFF2>Kevin</GrandchildFF2>
    <GrandchildFF3 />
    </A-FmrCustomerProfile>
    </ListOfA-FmrCustomerProfile>
    </Contact>
    <Login>A482003</Login>
    </ListOfBipCustomerProfileReport>
    </ListofIO>

  • How to Map Idoc-Orders05 Qualifier permitted values to a flat file Str

    Hi All,
    My scenario is IDoc-xi-flat file. I have a problem in mapping the respective qualifier value in IDoc to the flat file structure. I am using the function fix values in Message Mapping. Suggest how should the target field should look like to map to the qualifier.
    Thanks
    Gowri K.

    hi,
    can you tell a little bit more on what are you trying to achive?
    do you only need one qualifier in file or all or what?
    can you use the same structure as in IDOC ?
    be a little more precise
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • How to insert row where DB date field has default value.

    APEX 4.1, Oracle 11.2
    I'm trying to insert a row using "javascript:addRow();" where the report query is an SQL Query (Updateable Report).
    1)  Several of the fields are display-only with defaulted values.
    2)  No problem with the VARCHAR2 fields.
    3)  And if RUN_DT is a text field, the insert works.
    4)  But I get errors when trying to make RUN_DT (DD-MON-YYYY) display-only and default it to P63_RUN_DT.  I display P63_RUN_DT so I see it is correct.
    Now, this is not a new question.  See:
    Error inserting sysdate with time in tabular form region  https://forums.oracle.com/thread/2551916  (Not answered)
    Date value in tabular form  https://forums.oracle.com/thread/2478358 (Not answered)
    Help! Unable to set default date value for Tabular form DB date field! https://forums.oracle.com/thread/2473208  (Not answered)
    Default Value Date Picker Field https://forums.oracle.com/thread/2468973  (Not answered)
    Tabular Form Default Value PL/SQL https://forums.oracle.com/thread/2464192  (Not answered)
    Display 1st region invoice date into tabular form invoice date column. https://forums.oracle.com/thread/2458561  (Not answered)
    Default System date and time in Tabular form https://forums.oracle.com/thread/2449615 (Not answered)
    Setting default value of Tabular form item is not working https://forums.oracle.com/thread/2396024 (Not answer)
    apex tabular form https://forums.oracle.com/thread/2337098 (Not answered)
    Various folks recommended using Default PL/SQL and SYSDATE when SYSDATE was the desired default value.  That worked for some and not for others.  I could not get it to work for me.  The errors I receive are "•Column must have a value. (Row 1) " and "ORA-01410: invalid ROWID".   I believe the ROWID error is an example of spurious error cascade caused by the RUN_DT problem.   I believe it will disappear once the RUN_DT problem is solved.
    I will try to replicate on apex.oracle.com
    Thoughts?
    Howard

    Update: At least in my case, it seems the RUN_DT date column cannot be Standard Report Column.  I made it "Display as Text (saves state)".  Standard Report Column works for the defaulted VARCHAR2 columns.  Go figure! 
    (more)  And I could not get it to work with "Item" (P63_RUN_DT) as the Default.   However, it seems to work -- so far -- using Default PL/SQL of TO_DATE(:P63_RUN_DT,'DD-MON-YYYY').

  • Validating if a field has changed value

    I have a custom field: Oportunity Number. This number will be generated for new Opts. by a web service.
    I am trying to validate if a user tries do change or delete this number with editing.
    I am using:
    FieldValue('<nNmero_Oport_ITAG>') = PRE('<nNmero_Oport_ITAG>')
    and it seems to be working fine for changes. OTH if the user just blanks out the field, above expression is not catching it...
    I´d appreciate any help.
    Txs.
    Antonio

    Just a guess. You can also try
    FieldValue('<nNmero_Oport_ITAG>') = PRE('<nNmero_Oport_ITAG>')
    OR [<nNmero_Oport_ITAG>] IS NOT NULL
    Thanks VK

  • Whether the fields of a single row in an internal table has got value.

    I am doing an archiving report in PS Module.
    The table RPSCO has 12 fields which represent each month.The records in the table are based on OBJNR  and YEAR
    Now i need to check for the latest year which month has some value .If any of the month  has got some value i need to take that month.
    Sample table given below.
    OBJNR           year    Month1    month2      month3    so on
    1)PR00002409  2006     0.00     0.00     664.70-     0.00 0.00     0.00     0.00     0.00     0.00                                                                      
    0.00     0.00     0.00     0.00
    2)PR00002409  2005     0.00     0.00     0.00     0.00     0.00     0.00     0.00 0.00     0.00     0.00     48.70     127.20     0.00
    In this case the output should be Month3.Because the latest year is 2006 and Month is Month3.

    Hi Susmita,
    You have to use DO VARYING option from field 3 onwards.
    Below is the sample program to check whether the field has a value or not.
    tables: rpsco.
    data: it_rpsco like rpsco occurs 0 with header line.
    data: v_wlp type rpsco-wlp00,
          v_wtp type rpsco-wtp00,
          v_pos type i.
    select * from rpsco into table it_rpsco where gjahr = '2007'.
    if lines( it_rpsco ) gt 0.
    loop at it_rpsco.
      clear v_pos.
      do 16 times varying v_wlp from it_rpsco-wlp00 next it_rpsco-wlp01
                  varying v_wtp from it_rpsco-wtp00 next it_rpsco-wtp01.
       v_pos = v_pos + 1.
       if not v_wlp is initial.
         write:/5 v_pos , 35 v_wlp, 70 v_wtp.
         exit.
       endif.
      enddo.
    endloop.
    endif.
    Regards,
    Kumar Bandanadham
    Edited by: Velangini Showry Maria Kumar Bandanadham on Jun 1, 2009 9:30 AM

  • Flat file conversion-Ignore data in incoming file(Sender)

    Hi All,
    We have a below requirement for sender flat file:
    In our datatype we have Recordset
                                                 - Item
    In file we are getting  as
                 Header(Values)
                 Item......
                 Item.....
                 Trailor(Values)
    I want to ignore Header and Trailor data at channel level.Could you please tel me how Can i do that?
    Thanks in Advance
    Best Regards,
    Harleen Kaur Chadha

    Hi,
    For the structure mentioned in query
    we are receiving data from sender as
         Records
             Header(Values)
             Item....
             Item...
            Trailor
    and we have set recordset per message as 1 in communication channel
      In sender datatype we have
              Records
               Header (Field1..1)
                Item(Record 1...n)
              Trailor(Field 1..1)
             Records
    We are using ignore parameter to ignore header and Trailor values it works if we are getting one item but if multiple items are coming its failing at channel level.
    Could you please suggest which parameter we can use to ignore Header and Trailor using recordset per message as 1 as a option?
    Thanks in advance
    Best Regards,
    Harleen Kaur Chadha

  • Could not find the fields in Flat file, But able to see the fields in receiver Communcication channel

    Hi All,
    My scenario is Proxy to file, After testing my scenario the flatfile is getting generated without any errors.
    I can able to see all the fields in receiver communication channel payload. But some fields are missing in flatfile which is generated after conversion.
    This is my structure below
    Record
    ---Header
          a
          b
          e
          g
    ---Trailer
          c
          d
    ---Details
          e
          f
    And here is my content  conversion below
    Header.fieldFixedLengths   2,4,6,7
    Header.endSeparator         'nl'
    Trailer.fieldFixedLengths     3,5
    Trailer.endSeparator           'nl'
    Details.fieldFixedLengths    6,7
    Details.endSeparator          'nl'
    Actually in header there are nearly 34 fields, I can able to see all the 34 fields in reciever CC, But in generated flat file I can able to see only first 30 fields remaing 4 are missing in flat file.
    it is like in the above structure In Header there are a,b,e,g fields.I am getting a, b fields e and f are missing in flatfile.
    Thanks in advance.
    Please suggest me the solution.
    Thanks & Regards,
    Satish

    Hi Satish
    As you said 4 fields values are missing out of 34. Are those fields values are coming as blank in the file or not at all coming.
    Ex:
    you have 4 fields a,b,e,g and in channels you have defined length as 2,4,6,7
    If values for fields a,b,e,g are coming as 1,22,33,44444 respectively then the flat file is generated as
    1-22--33----4444--- (Consider - as space here)
    Now if you say e and g value then is the flat file generated as
    1-22---------------
    or
    1-22--
    Regards
    Osman

  • JSP page error: JSPtranslate: attribute | has no value.

    Hi again,
    I've written the JAVA class, the TLD and the JSP but when I try to provide the parameters to the TLD file in the JSP I get this error: JSPTranslate: attribute | has no value. /**** My TLD file is in a WEB_INF/tags/ directory. ***/
    I've included my JAVA class, JSP and TLD files below.
    package com.ibm.samples.TEMP;
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    public class TEMP extends TagSupport
         private int mandatory = 0;
    //Set method base upon info from .tld file
         public void setMandatory(int mandatory)
             this.mandatory = mandatory;
    //Init tag called from .JSP page that used the custom tag.
        public int doStartTag() {
           try
                JspWriter out = pageContext.getOut();
                out.println("<table border=1>");
           if (mandatory == 1)
               out.println("<tr><td> <input type=\"text\"" +
                     "style=\"background-color:yellow\" size=\"25\" name=\"user\">");
              else
               out.println("<tr><td> <input type=\"text\"" +
                     "style=\"background-color:white\" size=\"25\" name=\"user\">");
           catch (Exception ex)
                  throw new Error("Failure");
    // Must return SKIP_BODY because there isn't a body for this tag.
           return SKIP_BODY;
    //End tag ends table and exits, along with error / exception catching
         public int doEndTag(){
            try  {
                                  JspWriter out = pageContext.getOut()
                                  out.println("</table>");
                          catch (Exception ex)
                                  throw new Error("Failure.");
          return EVAL_PAGE;
    --------------END OF CLASS--------------
    ----------------------JSP----------------------
    <%@ taglib [tagdir="/WEB-INF/tags/" | uri="/WEB-INF/tags/inputTAGS.tld"] prefix="I" %>
    <HTML>
      <HEAD> 
           <TITLE>Custom Tags</TITLE> 
      </HEAD>
      <BODY BGCOLOR = "WHITE">
          <H3>Custom Tags!</H3>
          <FORM METHOD="GET" ACTION="customTags.jsp">
            <P>
            Enter First Name:<br>:
            <P>
            <I:inputTags mandatory="1"/>
            <P>
            Enter Last Name:<br>:
            <P>
            <I:inputTags mandatory="1"/>
            <P>
            Enter Phone Number:<br>:
            <P>
            <I:inputTags mandatory="0"/>
            <P>
            <INPUT TYPE="SUBMIT" VALUE="Submit">
            <INPUT TYPE="RESET" VALUE="Reset">
          </FORM>
      </BODY>
    </HTML>
    --------------END OF JSP--------------
    --------------------TLD--------------------
    <?xml version = "1.0" encoding = "ISO-8859-1"?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
    "http://java.sun.com/dtd/Web-jsptaglibrary_1_2.dtd">
    <taglib xmlns = "http://java.sun.com/JSP/TagLibraryDescriptor">
    <tlib-version>1.0</tlib-version>
    <jsp-version>1.2</jsp-version>
    <short-name>Input tags library</short-name>
    <description>Custom tags test</description>
    <tag>
    <name>inputTags</name>
    <tag-class>com.ibm.samples.temp.TEMP</tag-class>
    <description>
    Formatted text box:
    </description>
    <attribute>
    <name>mandatory</name>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
    </attribute>
    </tag>
    </taglib>
    - LS6V

    I made a new web project and the TLD link is fine. But I have a new error:JspTranslate: unable to load class null I'm recieving the error in my JSP page editor.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <%@ taglib uri = "/WEB-INF/lib/tag.tld" prefix="I" %>
    <HTML>
      <HEAD>
           <TITLE>Custom Tags</TITLE>
      </HEAD>
      <BODY BGCOLOR = "WHITE">
          <H3>Custom Tags!</H3>
          <FORM METHOD="GET" ACTION="JSPTAG.jsp">
            <P>
            Enter First Name:<br>:
            <P>
    ERROR FOUND HERE ----------->>> <I:inputTag mandatory="1"/>
            <P>
            Enter Last Name:<br>:
            <P>
            <I:inputTag  mandatory="1"/>
            <P>
            Enter Phone Number:<br>:
            <P>
            <I:inputTag mandatory="0"/>
            <P>
            <INPUT TYPE="SUBMIT" VALUE="Submit">
          </FORM>
      </BODY>
    </HTML>---------------------------JAVA CLASS-------------------------
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    public class TAG extends TagSupport
         private String mandatory="";
         private int iMandatory = 0;
    //Set method base upon info from .tld file
         public void setMandatory(String hold)
             mandatory = hold;
             iMandatory = Integer.parseInt(mandatory);
         public String getMandatory()
          return(mandatory);
    //Init tag called from .JSP page that used the custom tag.
        public int doStartTag() {
           try
            JspWriter out = pageContext.getOut();
            out.println("<table border=1>");
             if ( iMandatory == 1)
               out.println("<tr><td> <input type=\"text\"" +
                     "style=\"background-color:yellow\" size=\"25\" name=\"user\">");
            else
               out.println("<tr><td> <input type=\"text\"" +
                     "style=\"background-color:white\" size=\"25\" name=\"user\">");
           catch (Exception ex)
                  throw new Error("Failed in doStartTag");
    // Must return SKIP_BODY because there isn't a body for this tag.
           return SKIP_BODY;
    //End tag ends table and exits, along with error / exception catching
         public int doEndTag(){
            try {
                 JspWriter out = pageContext.getOut();
                out.println("</table>");
            } catch (Exception ex){
                  throw new Error("Failed in doEndTag");
            return EVAL_PAGE;
    }---------------------------TLD------------------------
    <?xml version ="1.0" encoding = "UTF-8"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <taglib xmlns ="http://java.sun.com/JSP/TagLibraryDescriptor">
      <tlib-version>1.0</tlib-version>
      <jsp-version>1.2</jsp-version>
      <short-name>Input tags library</short-name>
      <description>Custom tags test</description>
      <tag>
        <name>inputTag</name>
        <tag-class>source.TAG</tag-class>
        <description>
            Formatted text box:
        </description>
        <attribute>
          <name>mandatory</name>
          <required>true</required>
          <rtexprvalue>true</rtexprvalue>
          <type>String</type>
        </attribute>
      </tag>
    </taglib>

  • How to create Fixed Length Flat File from Open Hub in BI 7.0

    My requirement is to produce a Fixed length Flat file by Open Hub destination. My Open Hub has four fields. Now the requirement is to create another extra field in Open Hub which will contain all of the four fields value. In addition to that the fields should be fixed length that means if for any field no value is there and the field length/type is CHAR4 then 4 spaces should be there as the field value. SO, basically the Open Hub output will be single field which will contain information of four fields.
    How to get this using End Routine of Transformation (from DSO to Open Hub) ?

    Hi,
    You can map the four input fields to the new field in the Open Hub, and change rule type to "Routine".
    For example, if your source fields are called "first", "second", "third" and "forth", the ABAP routine could be similar to:
    DATA: l_t_1  TYPE C LENGTH 4,
          l_t_2  TYPE C LENGTH 4,
          l_t_3  TYPE C LENGTH 4,
          l_t_4  TYPE C LENGTH 4.
    IF source_fields-first IS INITIAL.
      l_t_1 = '    '.
    else.
      MOVE source_fields-first TO l_t_1.
    endif.
    IF source_fields-second IS INITIAL.
      l_t_2 = '    '.
    else.
      MOVE source_fields-second TO l_t_2.
    endif.
    IF source_fields-third IS INITIAL.
      l_t_3 = '    '.
    else.
      MOVE source_fields-third TO l_t_3.
    endif.
    IF source_fields-forth IS INITIAL.
      l_t_4 = '    '.
    else.
      MOVE source_fields-forth TO l_t_4.
    endif.
    CONCATENATE l_t_1 l_t_2 l_t_3 l_t_4 into result.
    In the example, the program uses four blank spaces if any of the fields has no value. 
    Additionally, if non-initial values in input fields could be shorter than 4 characters (if the input fields have no fixed length), you could use STRLEN to evaluate if it is necessary to add blank spaces to complete the fixed length of 4.
    I hope this helps you.
    Regards,
    Maximiliano

  • ESB not moving data from database to flat file

    Using ESB, created an database adapter/routing service (polling for changed records) & file adapter to write all records from a database table to a flat file as a series of XML entries in the file. I only get the last record from the database into the flat file. Using JDev 10.1.3.2 and SOA Suite 10.1.3. Have a 'status' column in the source database table that is set to 'PROCESSED' when the record has been processed. After I get the one XML element, representing the last record in the database, I look at the database table and ALL rows have their 'status' column set to PROCESSED - the field was null before the database table was processed.
    How do I get ALL of the records into the flat file?
    Thanks - Casey

    Hi.
    Check this:
    ESB File Adapter: Append to log file not supported???
    Denis

Maybe you are looking for

  • Multiple iPhoto libraries from external drive. How to work with them all

    I'm not an expert user so forgive me. But I have tons of pictures and videos of family. I've had to save 2 libraries on an external drive and going on my 3rd. I had to do it because the computer was running super slow and giving me warnings. Each lib

  • Option keys no longer working!

    Can any experienced user provide a solution for this seemingly simple problem? Since I upgraded to 10.6.8, my keyboard (first slim version, extended) option keys are dead. All other keys seem to be working normally. Here are just a few problems assoc

  • Using NI-CAN in TestStand

    Hi, I have a requirment for writing TestScript to test NICAN in TESTSTAND. I tried with the .lib file in NICAN driver but am getting "parameters not recagonized" error.and i need to add the varibles manually. NI can has many complex structures,which

  • Getting log file when starting J2EE 1.4 Application Server

    I get a log file when starting up the Application Server. I am just a beginner. Is there anyone who could help me in setting up? Thanks, AboliRanade

  • How do I authorize my pc to purchase songs from itunes store

    Does anyone have information on how to authorize my pc through ITUNES store to redeem purchases?