Merging of flat files based on some value in the file.

Hi all,
  I have one requirment in which I need to pick some flat files(Let say N number of files).
Third row in each file, needs to be read and all files having same value in 3rd row needs to be merged in single file.
There should be as many output files as many different values at row 3rd in all files.
All the files having unique 3rd row value, will be having sequence number in 4th row. While merging we need to take care of the sequence number and need to be merged based on sequence number.
All the files need to be placed at some FTP location
Thanks
Jai

thanks for ur response Raj.
My input files don't have any fixed length or structure.. So It is not possible to write FCC.
Can you please explain your point in detais
My approach is to store the files at some intermediate location and go with two interfaces.
If you have any other idea please let me know.
Thanks
Jai

Similar Messages

  • Map default values in Header based on multiple values in the line item

    Hi
    I have a scenario in which the Header field of an IDOC should be populated with some default values based on some mixed mvt types in the line items.
    eg:
    Header -
    > Delivery type -
    > needs to be mapped to A (for X of line item 1)or B (for Y of line item 2) or C (for Z of line item 3 )
    based on line items field
    line item1---> mvt type---> X
    line item 2-->mvt type----->Y
    line item 3 -
    > mvt type -
    > Z
    mvt types doesnt necessarily have to come in that order and even the same mvt type can repeat in multiple line items.
    Can we achieve this logic in XI ?

    I think if you include removeContext, Sort, SplitByValue (on Value Change), CollapseContext to mvt type in all line items and then use ifelse condition to achieve your result.
    I will give an example of line Item1
    mvt type --->RemoveContext ->Sort>SplitByValue(on value change) --> CollapseContext
    Use the above mapping to IF function and check if it is having X, Y or Z then map the appropriate value to target field.
    Do the same for rest of the line items.

  • Line item pricing based on total value of the order

    Hi,
    We need to charge as a separate line item (material) 'Insurance' as a % based on the total value of the order less one line item. Our orders are created on the web and posted via a BAPI.
    (a) depending on where the customer is located, we charge a certain added shipping cost.
    (b)  the customer has the choice to ask for insurance or not.
    The actual order may be 10 lines totaling $1,000 and due to location, the BAPI slaps on an added line item of $100. If the customer chose the insurance option, the BAPI needs to slap on another line item whose value would be, say 2% of the total order, i.e. 2% of 1000 (instead of on 1000+100). Of course, if the customer doesn't choose this option he is not charges this extra line and further if the customer is not in the particular region, the 100 charge may also not be there.
    The 2% can vary time to time so needs to be driven by a condition record based on %.
    How can we achieve this in the pricing procedure? The logic of how the BAPI will function is clear to us, we are stuck on the pricing procedure configuration.
    Glad to answer any further questions you may need for clarifications.
    Many thanks!

    Ideally insurance would be levied on end customer based on Inco Terms like CIF, DDU etc.,
    So you can have an access sequence for which you can make use of tables like 033 & 034 in V/07.  In VK11, for this combination, maintain the required insurance percent.
    In condition type V/06, for this condition type, maintain "C" for Manual entries, since you have indicated that customer has the choice.  Otherwise, this can be populated automatically in sale order.
    Similarly, for shipment cost also, you can have the Inco2 as one of the combination so that based on region, this condition type will be populated in sale order.  If you have shipment cost configured, then this can be achieved.
    In your pricing procedure, you have to assign the shipment cost condition type next to insurance and assign the From-To step accordingly.
    thanks
    G. Lakshmipathi

  • How to restrict some values in the final report output.

    Hi Experts,
    I have scenario where I dont want to include the values in the output of report.
    If you observe above there are some un assigned cost elements and its the report output. I dont want these to be in the report.
    Please suggest me.
    Thanks,
    Ravi

    Hi Friends,
    Thank you for the reply.
    I tried to exclude the values, but i dont find any chance to exclude them
    If i try the same from characteristic restriction, its allowing me to exclude.
    Is there any other possibility to restrict these? Please suggest

  • Getting Value Based on Descending value of the count

    Hi,
    I have values in the list as below
    Title,Count
    title1,3
    title2,5
    title3,4
    Now i need to fetch the title column value based on descending order of the count column value.
    But writing spquery as below but not getting the exact value
    "<OrderBy><FieldRef Name='Count' Ascending='FALSE' /></OrderBy>";
    Please let me know if i am making any mistake here.
    Regards,
    Sudheer
    Thanks & Regards, Sudheer

    Hi,
    In addition to Hemendra, there is OOB option to order items in descending order per one column value.
    You could create a view for this list, and configure in Sort section.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Create a derived column based on a value within the file name

    I am importing a CSV file which is easy enough, but I have an issue where I need to manufacture a couple of column values based on the filename of the input.  So this same process will import different types of records to the same table in sql server.
     I need to pull out the record code from the file name.  
    For instance, say I can use the same package to input two different CSV files.  One is named Input_M02_Data.csv and one named Input_B15_Data.csv.  I need to create a derrived column and store the record code there (i.e.:  M02 or B15) based
    on which file it came out of.  
    fyi-
    I also need to create a second column for Dept based off of the file name as well.  M02 is dept 45 and B15 is dept 99  which I also need to insert into this table when I import the data from the .csv file.  
    Any help is greatly appreciated!

    Hi Jason,
    According to your description, you want to add two derived columns based on the file name to also insert into table. One stores the value between two “_” within file name, another stores the department based on that column.
    If in this scenario, we can add a variable FileName that stores the filename, then add the two variables as derived columns like below in the Derived Column Transformation:
    Name:
    SUBSTRING(@[User::FileName],FINDSTRING(@[User::FileName],"_",1)+1,FINDSTRING(@[User::FileName],"_",2)-(FINDSTRING(@[User::FileName],"_",1)+1))
    Dept:
    @[User::Name] =="M02"?"dept 45":@[User::Name] =="B15"?"dept 99":"dept 00"
    The following screenshot is for your reference:
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • Carry some values to the next page

    Hi Friends,
    i do have urgent problem, below is my requirement -
    1)i have a search page, in that i have delete, update , detail icons to navigate pages.here delete and update OK.
    2)when i click the detail icon in search page , i want carry some fields to detail page.i have a Eo based VO. in that Vo , i am making some fields to join with the other table-these fiedls i want carry to detail page.
    Thanks
    vamshi

    Hi Pratap,
    "I am getting values in log window- where as values are not rendering at application." - means down of the jdeveloper window please observe we have (Message,Embeded OC4J Server, Compiler)
    Process request code:
    String ProgId = pageContext.getParameter("ProgId");
    String ProgName = pageContext.getParameter("ProgName");
    System.out.println("proganme"+ProgName );// this value is coming down of the jedeveloper in my case log window.
    String Product = pageContext.getParameter("Product");
    String BusinessUnit = pageContext.getParameter("BusinessUnit");
    String Region = pageContext.getParameter("Region");
    String ComponentType = pageContext.getParameter("ComponentType");
    String Category = pageContext.getParameter("Category");
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    Serializable [] parameters = {ProgId,ProgName,Product,BusinessUnit,Region,ComponentType,Category};
    am.invokeMethod("initSupDetails",parameters);
    Process FormRequest:NO code.
    I think you got my point.
    Thanks
    vamshi

  • Can I have different "details" formatting based on a value in the Group?

    Post Author: pcdelozi2
    CA Forum: General
    Greetings!  I'm using Crystal Reports 11.0 and have the need to generate 3 different "formats" in the DETAILS section, based on what I am grouping on.  Can this be done?  For example, If what I am grouping on has 3 different values (AREA, LINE, POINT), then for each of those, I would like to branch to a different formating section.  Any advice would be appreciated!
    Thanks!

    Post Author: V361
    CA Forum: General
    I have CR XI:   go to section expert, look for the x/2 button to the right of Suppress (No-Drill Down)  click on the button, create a formula for example 
    {Customer.Contact First Name} = "Alejandra"
    In this case, this section will suppress every time the {Customer.Contact First Name} = "Alejandra"

  • Filtering a region source based upon a value in the calling form

    Hi,
    I am calling a report form with the following SQL
    select
    "RESPONSE_ID",
    "ASSIGNMENT_ID",
    "QUESTION_ID",
    "DATE_CREATED",
    "GRADING_1_10",
    "RESPONSE"
    from "#OWNER#"."CR_QUESTION_RESPONSES"
    where assignment_id = NVL(:P17_ASSIGNMENT_ID, assignment_id).
    P17_ASSIGNMENT_ID is populated from the calling form, but it is not been recognised when the query is run.
    Is there a way to pass values to a query dynamically?
    Thanks.

    Hi,
    Most likely :P17_ASSIGNMENT_ID is not set
    To check the value of :P17_ASSIGNMENT_ID you can add it to the query:
    select
    :P17_ASSIGNMENT_ID val_check,  -- <-- added to check value
    "RESPONSE_ID",
    "ASSIGNMENT_ID",
    "QUESTION_ID",
    "DATE_CREATED",
    "GRADING_1_10",
    "RESPONSE"
    from "#OWNER#"."CR_QUESTION_RESPONSES"
    where assignment_id = NVL(:P17_ASSIGNMENT_ID, assignment_id)Regards,
    Lev
    Edited by: le on Nov 29, 2010 11:32 AM

  • CAML Query to get specific item in folder based on dropdown value using Javascript client object model

    Hi,
    I am using the Javascript Client object model.
    I have a custom list and a custom document library.
    Custom list contains 2 columns - dlName , dlValue
    The document library contains 2 folders - "folder1" ,  "folder2" and contains some images.
    The image name starts with the "dlValue" available in the custom list
    I am using a visual webpart and using javascript client object model.
    I am trying to achieve the below functionality:
    1) Load a dropdown with the custom list.
    2) set the image based on the value in dropdown.
    I have achieved the first option, I have set the dropdown, but not sure how to query the folder and set the image.
    Below is the code i have used so far:
    //In Visual webpart
    <select id="ddlTest" >
    </select>
    <br/>
    <div id="PreviewLayer">
    <img id="imgPlaceHolder" runat="server" alt="Image" title="imgPlaceHolder" src=" " />
    </div>
    // In Javascript file
    function RenderHtmlOnSuccess() {
    var ddlTest = this.document.getElementById("ddlTest");
    ddlTest.options.length = 0;
    var enumerator = this.customListItems.getEnumerator();
    while (enumerator.moveNext()) {
    var currentItem = enumerator.get_current();
    var dropdownValue = currentItem.get_item("dlValue");
    ddlTest.options[ddlTest.options.length] = new Option(currentItem.get_item("dlName"), dropdownValue);
    setImage(dropdownValue); // Not sure how to query the folder and set the image based on value.
    // Also if dropdown value is changed, corresponding image should be shown
    How to query the folder and based on dropdown value, show the image? Also, how to handle the dropdown value change?
    Thanks

    Hi,
    Here are two links for your reference:
    Example of how to Get Files from a Folder using Ecmascript \ Javascript client object model in SharePoint 2010
    http://sharepointmantra.wordpress.com/2013/10/19/example-of-how-to-get-files-from-a-folder-using-ecmascript-javascript-client-object-model-in-sharepoint-2010/
    SP2010 JSOM Client Object Model: How to get all documents in libraries including all folders recursively
    http://sharepoint.stackexchange.com/questions/70185/sp2010-jsom-client-object-model-how-to-get-all-documents-in-libraries-including
    In SharePoint 2013, we can also use REST API to achieve it.
    http://msdn.microsoft.com/en-us/magazine/dn198245.aspx
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • Conversion of flat file to word document

    Hello,
    I have a reqt where in I have data available in the flat file on the presentation server .
    I want to extract some information based on some logic from the flat file and move it to the word document.
    In case anyone has an idea how to go about it, please let me know.
    Thanks.

    Here is the sample report to open word doc with some testing message......
    Report Test.
    INCLUDE ole2incl.
    DATA: word TYPE ole2_object, documentos TYPE
    ole2_object,
    documento TYPE ole2_object,
    selection TYPE ole2_object,
    font TYPE ole2_object.
    CREATE OBJECT word 'WORD.APPLICATION'.
    CALL METHOD OF word 'Documents' = documentos.
    CALL METHOD OF documentos 'Add' = documento.
    CALL METHOD OF documento 'Activate'.
    GET PROPERTY OF word 'Selection' = selection.
    GET PROPERTY OF selection 'Font' = font.
    SET PROPERTY OF word 'Visible' = 1.
    SET PROPERTY OF font 'Name' = 'Arial'.
    SET PROPERTY OF font 'Size' = 12.
    SET PROPERTY OF font 'Bold' = 1. "o 0
    SET PROPERTY OF font 'Underline' = 1. "o 0
    CALL METHOD OF selection 'TypeText' EXPORTING #1 = 'Word Doc Test'.
    CALL METHOD OF selection 'TypeParagraph'.
    CALL METHOD OF documento 'SaveAs' EXPORTING #1 = 'c:test.doc'.
    CALL METHOD OF word 'Quit'.
    Hope this will help.....

  • Mapping target based on a value and grouping

    I’m having a problem with mapping a source IDOC to a target XML.
    The main problem is with mapping the output based on a value in the each segment and then grouping them properly.
    Here is the format of the source and target (There are more fields used, I am only showing these to explain my problem.)
    The Source IDOC is PPCC2RECORDER01
    We are using the E1BP_PP_PDC_OPERA2 segment which can repeat basically unbounded.
    example
    PPCC2RECORDER01
         EDI_DC40
         E1PPCC2RECORDER
              E1BP_PP_PDC_OPERA2
                   OrderID
                   OperationID
              E1BP_PP_PDC_OPERA2
                   OrderID
                   OperationID
    The Target XML looks like the folowing
    <Workorders>
         <WorkOrder> <!-- Occurs 0 - unbounded -->
              <WorkOrderHeader> <!-- Occurs 1 per Workorder -->
                   <WorkOrderID></WorkOrderID>
              </WorkOrderHeader>
              <WorkOrderOperation> <!-- Occurs 0 - unbounded -->
                   <OperationID></OperationID>
              </WorkOrderOperation>
         </WorkOrder>
    </WorkOrders>
    WorkOrder in the target repeats for each unique OrderID
    and WorkOrderOperation should repeat for each Operation ID contained within a WorkOrder
    Here is sample input
    PPCC2RECORDER01
         EDI_DC40
         E1PPCC2RECORDER
              E1BP_PP_PDC_OPERA2
                   OrderID          0000111
                   OperationID     0010
              E1BP_PP_PDC_OPERA2
                   OrderID          0000111
                   OperationID     0020
              E1BP_PP_PDC_OPERA2
                   OrderID          0000111
                   OperationID     0030
              E1BP_PP_PDC_OPERA2
                   OrderID          0000222
                   OperationID     0015
              E1BP_PP_PDC_OPERA2
                   OrderID          0000222
                   OperationID     0025
              E1BP_PP_PDC_OPERA2
                   OrderID          0000333
                   OperationID     0100
    This is the output I am getting
    <Workorders>
         <WorkOrder>
              <WorkOrderHeader>
                   <WorkOrderID>0000111</WorkOrderID>
              </WorkOrderHeader>
              <WorkOrderOperation>
                   <OperationID>0010</OperationID>
              </WorkOrderOperation>
              <WorkOrderOperation>
                   <OperationID>0020</OperationID>
              </WorkOrderOperation>
              <WorkOrderOperation>
                   <OperationID>0030</OperationID>
              </WorkOrderOperation>
              <WorkOrderOperation>
                   <OperationID>0015</OperationID>
              </WorkOrderOperation>
              <WorkOrderOperation>
                   <OperationID>0025</OperationID>
              </WorkOrderOperation>
              <WorkOrderOperation>
                   <OperationID>0100</OperationID>
              </WorkOrderOperation>
         </WorkOrder>
         <WorkOrder>
              <WorkOrderHeader>
                   <WorkOrderID>0000222</WorkOrderID>
              </WorkOrderHeader>
         </WorkOrder>
         <WorkOrder>
              <WorkOrderHeader>
                   <WorkOrderID>0000333</WorkOrderID>
              </WorkOrderHeader>
         </WorkOrder>
    </WorkOrders>
    This is the desired output
    <Workorders>
         <WorkOrder>
              <WorkOrderHeader>
                   <WorkOrderID>0000111</WorkOrderID>
              </WorkOrderHeader>
              <WorkOrderOperation>
                   <OperationID>0010</OperationID>
              </WorkOrderOperation>
              <WorkOrderOperation>
                   <OperationID>0020</OperationID>
              </WorkOrderOperation>
              <WorkOrderOperation>
                   <OperationID>0030</OperationID>
              </WorkOrderOperation>
         </WorkOrder>
         <WorkOrder>
              <WorkOrderHeader>
                   <WorkOrderID>0000222</WorkOrderID>
              </WorkOrderHeader>
              <WorkOrderOperation>
                   <OperationID>0015</OperationID>
              </WorkOrderOperation>
              <WorkOrderOperation>
                   <OperationID>0025</OperationID>
              </WorkOrderOperation>
         </WorkOrder>
         <WorkOrder>
              <WorkOrderHeader>
                   <WorkOrderID>0000333</WorkOrderID>
              </WorkOrderHeader>
              <WorkOrderOperation>
                   <OperationID>0100</OperationID>
              </WorkOrderOperation>
         </WorkOrder>
    </WorkOrders>
    How can I get this to map the way I want?  I have tried many different mappings some result in the error message "Cannot produce target element WorkOrders/WorkOrder/WorkOrderOperation[4]/OperationID. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd"
    Thanks,
    Tim

    OK,,, So I'm a little closer.  I have the first OperationID for each Workorder comming out, but the other OperationIDs are being dropped.  Here is a sample of what is coming out now
    <Workorders>
    <WorkOrder>
    <WorkOrderHeader>
    <WorkOrderID>0000111</WorkOrderID>
    </WorkOrderHeader>
    <WorkOrderOperation>
    <OperationID>0010</OperationID>
    </WorkOrderOperation>
    </WorkOrder>
    <WorkOrder>
    <WorkOrderHeader>
    <WorkOrderID>0000222</WorkOrderID>
    </WorkOrderHeader>
    <WorkOrderOperation>
    <OperationID>0015</OperationID>
    </WorkOrderOperation>
    </WorkOrder>
    </WorkOrders>
    Looks like it needs to be a change in the mapping for WorkOrderOperation, any Ideas on what this mapping needs to be?  Right now I have
    OperationID -> RemoveContext -> SplitByValue(each value) -> WorkOrderOperation
    I've trie to use the FormatByExample as shown above only going to WorkOrderOperation instead of OperationID, but get the Error message I mentioned above.
    Thanks,
    Tim

  • Change an Object property based on a value coming from the Excel sheet

    hi all
    i've been able to bind a value from the excel sheet to my my component
    but i want to change a property of an object in my component based on this value at the run time.
    during the design time, it works fine
    for example, if my value called "_xvisible"
    and i use to it to hide some object.
    if i set _xvisible during the design time in excel, it works fine in the run mode.
    but during the run mode, if the value got changed, there is no affect.
    thank you
    Amr

    Hi
    See the xcelsius samples present inside xcelsius SDK. there are examples describing how to bind data which will work at runtime also.
    Hope this helps
    Rush-me

  • We are doing flat freight amounts: in some invoice we want freight to appea

    FOR AR INVOICE:
    When we sell a labor item, I don't want the freight to show up at the bottom subtotal .
    When we sell a book or CD or DVD for shipment, I want the freight to show up at the bottom
    It is also true, people who sell FREIGHT related items do not sell NON FREIGHT related items.
    Any way to do this please?
    Mike

    Hi Julie,
    I have checked all training material regarding user defined searches and I simply can't get this thing to work.
    What I want to do is that the freight charges should be 0 if a certain payment term is used.
    But is it even possible to get a column in the freigh charges window - to be changed based in a value from the document header?
    If I test to do this in the same window (A/R invoice) it works fine - but not if I try to reproduce the same UDS in the freight charges document I can't get the proper syntax som fetch a values form the other window.
    I tried to use:
    IF $[$47.0.0] = -1
    SELECT 0
    Here I tried to identify the Payment Terms code as item 47 but that does not work.
    Where can I get help?
    Thank you in advance,
    Susanna

  • Dashboard on Flat File system

    Hi Experts,
    Requirement: To develop a dashboard on flat files, where every 15 days a new flat file will be saved in a particular directory.
    Is there any possibility to develop a dashboard on multiple flat files (because every 15 days new file is adding in a directory)?
    Can any one explain what is the best approach for such requirements.
    Thanks Regards
    Ramakrishna Kamurthy

    Hi Ramakrishna,
    unfortunately there is no way that you can dynamically change the settings and/or amount of data sources in Xcelsius. You will have to merge those flat files into one (e.g. from your source system).
    @Waqas:
    They have a video on youtube for the csv connector::
    http://www.youtube.com/v/Vs_iNNGJgB4&hl=en&fs=1&
    Centigon Solutions Quote:
    CSV Connector for Xcelsius 2008 provides direct connectivity to any CSV file with point and click simplicity. Enabling you to bypass XML configuration or web services, CSV connector is the perfect solution for loading external data into your Xcelsius dashboards on your desktop. Whether loading CSV data from a web server or your local file system, CSV connector provides connectivity quickly, without any additional server-side installation.
    Regards
    Victor

Maybe you are looking for

  • Extended notifications: Missing tasks in SOST

    Hi! I've configured extended notifications via SWNCONFIG, including different task filters. When I execute the SWN_SELSEN report, a range of notifications is represented in SCOT. However, when I run SOST, I'm missing notifications on two tasks. Tasks

  • BAPI_PR_CREATE Extension Issue

    Hi I am using BAPI_PR_CREATE to upload Purchase Requisition Create data for ME51n Transaction. Here there is screen Enhancement has been added to ME51n. When Iam uploading data through BAPI_PR_CREATE the below error message is been shown in RETURN st

  • It must be simple. Problem with a locked text, layer, or who knows what

    Ok, so I'm a newbie with Indesign. The guy who was helping me with indesign here at my company is on vacations and overseas. I just can't call him to ask this. It's pretty simple. I am editing a newsletter, I took the old template to use as a base fo

  • Mix firewire 800 & 400 hard drives

    I am getting a new 21.5". I now have a 20" (firewire 400). I have a G-RAID2 with 2 800 and one 400 firewire ports. I also have a G-Drive 400 which I use for Time Machine. On the new iMac, I will connect the G-RAID2 with a 800 cable. But then, should

  • How to configure a Office 365 email on SAP BI 4.1SP05 server to send scheduled reports by email ?

    Hi All, I am trying to figure out how to configure office 365 server on BI platform so that I can send scheduled reports by Email. Below are the system details: SAP BI 4.1 SP05 Microsoft Office 365 Email account I referred to the SCN post for configu