Choosing Unique Values Generically and add respective data in Standard Input

Hi,
I want to send the unique data by generic checking and adding respective other data in case of Standard (X12) Input 850 Message.
My Input :
ISA*00* 00 *ZZ*THEM *ZZ*US 991221*1226*U*00401*000000025*0*T
GS*PO*THEM*US*19991221*1226*1*X*004010
ST*850*0001
BEG*00*NE*3859199838**950727***IBM
PER*AA*Andrew Carlson*TE*(708) 555-2930
DTM*002*970523
PO1*1*93*BX*145.39**CB*KOW-20392-10
PID*F****Uninterruptible Power System
PER*AA*Camilla Anderson*TE*(708) 555-2011
PO1*2*25*EA*35.68**CB*ABX-2001
PID*F****High Volume Printer Stand
PER*AA*Miranda Cappelan*TE*(708) 555-1111
PO1*3*4*PC*2002.91**CB*ABX-2001
PID*F****Electronics Cabinet Package (56" High)
PO1*1*2*BX*145.39**CB*KOW-20392-10
PID*F****Uninterruptible Power System
PER*AA*Camilla Anderson*TE*(708) 555-2011
CTT*3
SE*14*0001
GE*1*1
IEA*1*000000025
My Expected Output :
<OrderFile>
<Order>
<Header>
<PODate>950727</PODate>
<PONumber>3859199838</PONumber>
</Header>
<LineItems>
<PONumber>KOW-20392-10</PONumber>
<Quantity>95</Quantity>
</LineItems>
<LineItems>
<PONumber>ABX-2001</PONumber>
<Quantity>29</Quantity>
</LineItems>
</Order>
</OrderFile>
Need mapping link / functoids / XSLT code for this standard input 850 message.
Need Urgently.
Thanks & Regards
Thanks &amp; Best Regards, Siddharth

Hi John,
Actually I need to
put a unique check on PO1:07 element and need to add the respective PO1:02 element.
1st PO1:07 = KOW-20392-10
1st PO1:02 = 93
2nd PO1:07 = ABX-2001
2nd PO1:02 = 25
3rd PO1:07 = ABX-2001
3rd PO1:02 = 4
4th PO1:07 = KOW-20392-10
4th PO1:02 = 2
Then as PO1:07 for 1st and 4th are same, then in the output there should be one <LineItems> with <PONumber> as KOW-20392-10 and <Quantity> should be added as 93+2 = 95
Similarly as PO1:07 for 2nd and 3rd are same, then in the output there should be another <LineItems> with <PONumber> as ABX-2001 and <Quantity> should be added as 25+4 = 29
I want to use the XSLT code but as input is X12 850 standard structure I am not able use the XSLT properly.
It would be great if you can check the X12 4010 850 message standard structure and let us know how to implement this.
Thanks & Best Regards
Thanks &amp; Best Regards, Siddharth

Similar Messages

  • Difference bw the data staging of generic and appli specefic data sources

    Hi,
       Can anyone tell the difference between data staging of generic and appl specific data sources. Like we know that LO data stage in queued delta, update queue and BW delta queue, i want to know actually where the generic data stages before it is loaded into BW.
    Thanks.

    Generic data sources are based on either a DB table/view, a function module or an ABAP query. So normally the data stages in the corresponding DB tables or you calculate it at extraction time. There is no update queue like in LO.
    Best regards
       Dirk

  • HT203128 iTunes 12.1.050 - Rollback: Updated from 12.01, now I cant't change track numbers and add additional data fields. How can I roll back to the previous version? @Apple, I want a $100 gift card for the inconvenience.

    iTunes 12.1.050 - Rollback: Updated from 12.01, now I cant't change track numbers and add additional data fields. How can I roll back to the previous version? @Apple, I want a $100 gift card for the inconvenience.
    - it's all said in the title. I can't understand why the developers turn things bad ... risking loosing Apples valuable customers.
    More examples needed? (check out the communities and the reviews)
    - OSX: Maverick to Yosemite = not recommended (check it out > http://roaringapps.com/apps)
    - iPad: older versions as iPad2 should not upgrade to iOS7/8 (it's not supporting its hardware accordingly, it's designed for the latest hardware)
    - iTunes (it's possible to rollback to 10.7 - 11.4, but you need to breech OSX system security framework)
    - Pages (was a real alternative for many of us, each update reduced features and created incompatibility to older work files)
    The list could easily extend to ...

    You can offer Apple feedback here: http://www.apple.com/feedback/
    as for "
      "@Apple, I want a $100 gift card for the inconvenience"
    dream on.

  • Get previous items unique value in new add item form

    Hi
    I have on list having items related to multiple locations.
    Every location is related to one user.
    When user logs in it filters the list with that users location.
    Now when user click on add new item I want to get the data related to his location using item event listener.
    But in new item form there is no way to get the location of that user in event listener as its new item.
    So I passed the qury string parameter form list and changed the add item form link and form to get the query string paramter as default value in Add new Item form.
    But again when user clicks on save button it redirects to original url without paramter. 
    How to redirect user to url with parameter on click on Save/Cancel.
    Is there any other way to get the previous item unique value in add new item from before executing the event listener?

    Hi,
    According to your post, my understanding is that you wanted to redirect user to url with parameter on click on Save/Cancel.
    You need to modify the onclick event need to as below:
    javascript: {{ddwrt:GenFireServerEvent('__redirect={{Home.aspx?Participant={@Participant}&amp;@Activity={@Activity}}}')}}
    Here is a similar thread for your reference:
    http://social.technet.microsoft.com/Forums/en-US/b506cfe5-650e-4017-b470-9ca0a75cd390/sharepoint-2010-list-how-to-pass-parameters-in-a-url-to-another-page?forum=sharepointcustomizationprevious
    In addition, you can creating an intermediate page which just finds the filed value with a DVWP and then redirect to RedirectURL with the filed value on the Query String.
    For more information, you can refer to:
    Redirect to Another Page from NewForm.aspx with the New Item’s ID
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How to remove and add plotted data?

    In my code below I would like to add two buttons and by clicking on a button("Remove") it will remove one by one plotted data,and plot it back by clicking on the button("Add") such as the examples:
    Full data plotted by running the class
    Now by a single click on a Remove button last data point disappear
    another click and again last data point disappear, and so on
    The inverse operation would be performed by clicking on "Add" button: each click will add back a data point
    import javafx.application.Application;
    import javafx.beans.property.SimpleDoubleProperty;
    import javafx.event.EventHandler; 
    import javafx.scene.chart.NumberAxis;
    import javafx.scene.chart.XYChart;
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.chart.LineChart;
    import javafx.scene.control.Button;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.BorderPane;
    public class XYMove extends Application {
    BorderPane pane;
    XYChart.Series series1 = new XYChart.Series();
    SimpleDoubleProperty rectinitX = new SimpleDoubleProperty();
    SimpleDoubleProperty rectX = new SimpleDoubleProperty();
    SimpleDoubleProperty rectY = new SimpleDoubleProperty();
    @Override
    public void start(Stage stage) {
    final NumberAxis xAxis = new NumberAxis(12, 20, 1);
    double max = 12;
    double min = 3;
    max *= (1+((double)3/100));
    min *= (1-((double)3/100));
    final NumberAxis yAxis = new NumberAxis(min, max, 1);
    xAxis.setAnimated(false);
    yAxis.setAnimated(false);
    yAxis.setTickLabelFormatter(new NumberAxis.DefaultFormatter(yAxis) {
        @Override
        public String toString(Number object) {
            return String.format("%2.0f", object);
    final LineChart<Number, Number> lineChart = new LineChart<Number, Number>(xAxis, yAxis);
    lineChart.setCreateSymbols(false);
    lineChart.setAlternativeRowFillVisible(false);
    lineChart.setAnimated(false);
    lineChart.setLegendVisible(false);
    series1.getData().add(new XYChart.Data(1, 3));
    series1.getData().add(new XYChart.Data(2, 8));
    series1.getData().add(new XYChart.Data(3, 6));
    series1.getData().add(new XYChart.Data(4, 7));
    series1.getData().add(new XYChart.Data(5, 5));
    series1.getData().add(new XYChart.Data(6, 6));
    series1.getData().add(new XYChart.Data(7, 4));
    series1.getData().add(new XYChart.Data(8, 7));
    series1.getData().add(new XYChart.Data(9, 6));
    series1.getData().add(new XYChart.Data(10, 7));
    series1.getData().add(new XYChart.Data(11, 6));
    series1.getData().add(new XYChart.Data(12, 7));
    series1.getData().add(new XYChart.Data(13, 6));
    series1.getData().add(new XYChart.Data(14, 12));
    series1.getData().add(new XYChart.Data(15, 10));
    series1.getData().add(new XYChart.Data(16, 11));
    series1.getData().add(new XYChart.Data(17, 9));
    series1.getData().add(new XYChart.Data(18, 10));
    pane = new BorderPane();
    pane.setCenter(lineChart);
    Scene scene = new Scene(pane, 800, 600);
    lineChart.getData().addAll(series1);
    stage.setScene(scene);        
    scene.setOnMouseClicked(mouseHandler);
    scene.setOnMouseDragged(mouseHandler);
    scene.setOnMouseEntered(mouseHandler);
    scene.setOnMouseExited(mouseHandler);
    scene.setOnMouseMoved(mouseHandler);
    scene.setOnMousePressed(mouseHandler);
    scene.setOnMouseReleased(mouseHandler);
    stage.show();
    EventHandler<MouseEvent> mouseHandler = new EventHandler<MouseEvent>() {
    @Override
    public void handle(MouseEvent mouseEvent) {
        if (mouseEvent.getEventType() == MouseEvent.MOUSE_PRESSED) {            
            rectinitX.set(mouseEvent.getX());
        else if (mouseEvent.getEventType() == MouseEvent.MOUSE_DRAGGED || mouseEvent.getEventType() == MouseEvent.MOUSE_MOVED) {
            LineChart<Number, Number> lineChart = (LineChart<Number, Number>) pane.getCenter();
            NumberAxis xAxis = (NumberAxis) lineChart.getXAxis();
            double Tgap = xAxis.getWidth()/(xAxis.getUpperBound() - xAxis.getLowerBound());
            double newXlower=xAxis.getLowerBound(), newXupper=xAxis.getUpperBound();            
            double Delta=0.3;
            if(mouseEvent.getEventType() == MouseEvent.MOUSE_DRAGGED){
            if(rectinitX.get() < mouseEvent.getX()&& newXlower >= 0){   
                newXlower=xAxis.getLowerBound()-Delta;
                newXupper=xAxis.getUpperBound()-Delta;
        else if(rectinitX.get() > mouseEvent.getX()&& newXupper <= 22){   
                newXlower=xAxis.getLowerBound()+Delta;
                newXupper=xAxis.getUpperBound()+Delta;
            xAxis.setLowerBound( newXlower );
            xAxis.setUpperBound( newXupper );                       
            rectinitX.set(mouseEvent.getX());                                
        public static void main(String[] args) {
            launch(args);
    }Thanks!

    I would use an ObservableList (probably backed by a LinkedList) of XYChart.Data to store the collection of "deleted" data points. Create the buttons as usual; your "Remove" button's event handler should remove the last element of the series and add it to the first element of the deleted items data points. The "Add" button should remove the first element of the deleted data points and add it to the end of the series. You can bind the "disable" property of the remove and add button to Bindings.isEmpty(series1.getData()) and Bindings.isEmpty(deletedDataPoints), respectively.
    Something like
    ObservableList<XYChart.Data<Number, Number>> deletedDataPoints = FXCollections.observableList(new LinkedList<XYChart.Data<Number, Number>>());
    removeButton.setOnAction(new EventHandler<ActionEvent>() {
      @Override
      public void handle(ActionEvent event) {
        deletedDataPoints.add(0, series1.getData().remove(series1.getData().size()-1));
    addButton.setOnAction(new EventHandler<ActionEvent>() {
      @Override
      public void handle(ActionEvent event) {
        series1.getData().add(deletedDataPoints.remove(0));
    removeButton.disableProperty().bind(Bindings.isEmpty(series1.getData()));
    addButton.disableProperty().bind(Bindings.isEmpty(deletedDataPoints));The other approach would be to use a separate List for all the data points, and keep an integer variable storing the number of data points displayed. Your "remove" button would decrement the number displayed, and your "add" button would increment the number displayed. Both would also call
    series1.getData().setAll(allDataPoints.sublist(0, numberOfDisplayedPoints));You might even be able to make the numberOfDisplayedPoints an IntegerProperty and bind the data property of the series to it in a nice way. This approach probably doesn't perform as well as the previous approach (using a stack of deleted points), because you are not directly giving the chart as much detailed information about what has changed.
    Both approaches get problematic (in the sense that you need to carefully define your application logic, and then implement it) if the underlying data has the potential to change.

  • Easy Question How to create Basic Groups and add respective Users

    Please help. I need to know how to create a basic group and later add users to the group. The group name would be callled Hardware and I will add johnsmith and janedoe to the group. Should I concern myself with the group id for whatever reason? I think the command is somthing like groupadd. Do I do somthing like:
    # groupadd Hardware
    # useradd -G Hardware johnsmith
    # useradd -G Hardware janedoe
    I'm using Solaris 10 if that helps.
    A million thanks I very New2Solaris,
    Johnny Mac

    Ok here is what I found on the net:
    change a user's group information change a user's primary group membership:
    usermod -g Hardware johnsmith
    usermod -g Hardware janedoe
    I forgot to mention that these are existing accounts (sorry)
    In order to change user's supplemental group membership:
    usermod -G Hardware johnsmith
    usermod -G Hardware janedoe
    is the supplemental group simply adding them to another group and not changing there primary group, which by default I think is staff. I would like to keep them in staff and add them to another group, in this case Hardware.
    Anyones thougths?

  • How to calculate and save planning data in bex input-ready query using keyfigures for calculation from different infoproviders

    Hi Dear All,
    We have two real time infocubes and two aggregation levels based on these cubes in one multiprovider
    first cube1 is like
    char1| char2| keyfig_coefficient(single value for each combination of char1 and char2)
    same aggregation level1
    (we have input query to fill coefficients by one responsible user)
    second cube2 is like
    char1| char2| keyfig_quantity| keyfig_result
    same aggregation level2
    Input ready query should be like (for all other users of different org units)
    char1|char2|keyfig_coeff| keyfig_quant(for input) | keyfig_result = keyfig_coeff*keyfig_quant(calculated value, should be saved to cube2)
    And we don't have pregenerated lines in cube2, users have to add new lines themselves by wad.
    Question is, what is the optimal (easiest) way to make calculation and save result data to cube2 where keyfigures for calculation should be used from different infoproviders. I need just a hint.
    Appreciate any help.
    Nadya.

    I found decision, agregation levels sould be based on multiprovider, not included.

  • Modify and add new field in standard Purchase Order script

    Hi All,
           I have some problem with Modify and add some new fields in Standard Purchase Order script. From ME22n transaction code it display PO detail. In <b>item detail</b> with <b>condition</b> tab all data will display in Currently PO script output.
           But I want to display ME22n->Item Detail->Invoice->Taxes Data. how to display this data in standard PO script. All data are fetch from <b>Structure</b> like ( KOMV,KOMVD..etc) then How it can be Display?
    Waiting for Replay.
    Himanshu Patel.

    Work with an Abaper.Tell your requirement [ addition of a field] and ask him to include this field by using the functionality " Field Exit".

  • MDIS Value Map and Add

    I know this has been discussed but I'm running into a peculiar problem.
    For Default MDIS Handling:
    Automap unmapped values: Yes
    Unmapped value handling: Add
    I'm trying to import into Catalog Items table.
    The field Supplier is setup with 2 display fields: ID and Name.
    The field Product Group is setup with 2 display fields: ID and Name.
    The field Category is setup with 2 display fields: ID and Name.
    Category ID and Product Group ID are the same value, the ECC Material Group #.
    The ECC extract only has the ID's for all 3 fields, and I'm getting 3 different types of behaviors.
    Automap for all 3 fields should NOT happen, since the source only has the ID, where as the destination has ID and Name.  And I have not saved any template in the mapping as suggested by other posts.
    Supplier mapping fails, and the unmapped values are not added to the Supplier table, creates ValueX exception.
    Product Group automap is successful (I'm not too sure why), even though the source only has the ID.
    Category mapping fails, and the unmapped values are ADDED to the Categories table.
    So 3 fields and 3 different kinds of mapping behavior. Any clues?
    Thanks.

    Dear derek
    Automap for all 3 fields should NOT happen, since the source only has the ID, where as the destination has ID and Name. And I have not saved any template in the mapping as suggested by other posts.
    Assuming these 3 fields are lookup tables, thenThis will happen if the remote key mapping is enabled for these tables. let me explain further-when you imported for the first time in these tables data from remote system for each record a remote key was created which is unique for the table.
    This enables auto mapping oif the values even if all the display fields are not present and we need not combine/partition the fields.
    What is Catergory field type? If this is hierarchy table check again the import map configuration what is the setting for handling unmapped hierarchy nodes. you may get the answer.
    regards
    Ravi

  • Auc value 0 and no deactivation date in AS03

    Hello everybody,
    I have a strange situation. My client posted a invoice on a auc in 2008. In the same month he cancelled this invoice with the same transaction (F-43) but with negative posting. He let the auc like this and now he wants this auc to be deacitivated. How can I deactivate this auc in this case?
    Regards,
    Sorin.

    You can block the asset using AS05. Select block 'acqusition' option. then you should not able to post any doc to this asset. If the asset is having any book value, then you continue to depreciate it till to zero.
    thanks

  • Does any one know how to fix width of column generic and also wrap data without space

    I make following  changes in Template > Column Template > Column Template 1
    <td #ALIGNMENT#; headers="#COLUMN_HEADER_NAME#" style="width:300px; white-space:-moz-pre-wrap !important;word-break: break-all;"> #COLUMN_VALUE# </td>
    data is wraping but width is not getting fix.
    so any one can tell me how to solve the problem.

    Hi,
    It is much easier help on layout issues when you create example to apex.oracle.com.
    Regards,
    Jari

  • How to get the card unique  key(KMC) and the key data

    I want to know how to get them above in the applet.
    If can't, how to do?
    Edited by: 893695 on 2011-10-28 上午5:03

    But during personalization, where are the the application level key(derived three key: enc, mac, dek) come from?They are generated by whatever is doing the personalisation. If they are application level they are stored in the application. If they are ISD/SSD keys they are not accessible to the applet.
    the custom command "put key"?Either custom or ISO7816-4 or GlobalPlatform. Once again it depends on where the keys come from or are stored.
    Cheers.
    Shane

  • Is it possible to add more data to a prepaid plan before the current data allowance is used up?

    My data is nearly used up and I will b eon the road when it is completely used up.  I would like to add more now so that I do not have to pull off the road to login and add more data to my plan.  The website is very poorly designed and of it is possible to do this I can't find where it is.  Please do not tell me to call the CS line like you have everyone else who has asked similar questions.  If so please state that this is the only way to add more data to a plan/account as I don't have the availability to sit on hold for 40 minutes...  Thanks

        TSchlottman, we want that process to be as easy as possible for you. Happy to provide direction on how to change your plan. To change your minutes, text or data: Go to the Change Minutes, Text or Data page in My Verizon. If you have multiple lines on your account with separate plans, select the plan you’d you like to make a change to, and click Next. Select the data plan you’d like to have and click Next at the bottom of the page. Select the date when you want your changes to take effect and click Next. Review your changes and click Submit Changes.
    BrianP_VZW
    Follow Us on Twitter @VZWSupport

  • Unable to add volumes (Data Area Full)

    Hello,
    The data area in our MAXDB is 100 % full and the database does not come up in Online mode. It gives the following error -  "-24798 data area is full [db_online -f]".
    As it does not come up in online mode, I am unable to add data volumes using the GUI.
    Can you please let me know the steps to add disk files ? I believe I need to use command line interface and a few commands to achieve this. It would be great if you could let me know these commands to add new space in admin mode.
    This is MAXDB 7.6 on Windows.
    Thanks and Regards,
    Parag.

    Parag,
    if the database ran full during startup, it was not possible to add a data volume in MaxDB releases from 7.6.03.03 up to 7.6.04.04  - neither with the gui nor the command line.
    To fix the situation, you can start the database into admin mode and add a data volume prior going online.
    regards,
       Henrik

  • How to change country and add credit card details

    Hi
    I'm unable to change my itunes store account permanently.  I can change my store from "UK" to "UAE" and then the store I'm in is the UAE's, however when I then go to the top left, choose account to try and add my cc details the country still shows UK.  I then go back to Account info where I'm offered the chance to chanage my country, I then change it to "UAE" and am brought back to the iTunes home page, now again in the correct country.  However when I go back to the account to once again try and add my cc details the country shows as "UK". 
    I have successfully changed the country through the Apple website and so my Apple ID has the correct address associated with it, but not so when I try to log into it in iTunes.
    Grateful for any help.

    Problem fixed - once I changed the country to UAE and was brought back to what looked like a home page for iTunes UAE offering to set up an ID however once I followed the screens and agreed to the terms (all in Arabic - I couldn't find a way to show English) I was then brought to the screen for adding CC details but this time my country was listed as UAE.

Maybe you are looking for