Sales order request date could not updated by the interface.

Hi Experts.
Please refer to following scenario:
1.Sales order line with quantity 1000.
2.Customer wants to split the order quantity to 200 & 800, by the same time, need to specify the request date for the newly added line (With quantity 800)
But the request date always defaulted from the order header level.
Refer to the following scripts:
INSERT INTO oe_headers_iface_all
order_source_id,
orig_sys_document_ref,
operation_code,
created_by,
creation_date,
last_updated_by,
last_update_date,
change_reason,
ORG_ID,
CHANGE_SEQUENCE,
FORCE_APPLY_FLAG
VALUES
0, -- order_source_id
'OE_ORDER_HEADERS_ALL372793', -- orig_sys_document_ref
'UPDATE', -- operation_code
12613, -- created_by
SYSDATE, -- creation_date
12613, -- last_updated_by
SYSDATE, -- last_update_date
'SYSTEM',
204,
2,
'Y'
INSERT INTO oe_lines_iface_all
order_source_id,
orig_sys_document_ref,
orig_sys_line_ref,
orig_sys_shipment_ref,
operation_code,
ordered_quantity,
created_by,
creation_date,
last_updated_by,
last_update_date,
change_reason,
org_id,
CHANGE_SEQUENCE,
inventory_item_id,
OVERRIDE_ATP_DATE_CODE
VALUES
(0, -- order_source_id
'OE_ORDER_HEADERS_ALL372793', -- orig_sys_document_ref
'OE_ORDER_LINES_ALL687228', -- orig_sys_line_ref
'OE_ORDER_LINES_ALL687228.1', -- orig_sys_shipment_ref
'UPDATE', -- operation_code
800,
12613, -- created_by
SYSDATE, -- creation_date
12613, -- last_updated_by
SYSDATE, -- last_update_date
'SYSTEM',
204,
2,
245205,
'Y'
INSERT INTO oe_lines_iface_all
order_source_id,
orig_sys_document_ref,
orig_sys_line_ref,
split_from_shipment_ref,
split_from_line_ref,
operation_code,
ordered_quantity,
created_by,
creation_date,
last_updated_by,
last_update_date,
org_id,
CHANGE_SEQUENCE,
inventory_item_id,
REQUEST_DATE,
OVERRIDE_ATP_DATE_CODE
VALUES
(0, -- order_source_id
'OE_ORDER_HEADERS_ALL372793', -- orig_sys_document_ref
'LT_TESTLINE', -- orig_sys_line_ref
'OE_ORDER_LINES_ALL687228.1', -- split_from_shipment_ref
'OE_ORDER_LINES_ALL687228', -- orig_sys_line_ref of the line for which you want to split the line
'INSERT', -- operation_code
200,
12613, -- created_by
SYSDATE, -- creation_date
12613, -- last_updated_by
SYSDATE, -- last_update_date
204,
2,
245205,
'22-NOV-2014',
'Y');
3.SO has been splitted to 2 lines:
1.1. 800 request date 12-NOV-2014
1.2  200 request date 12-NOV-2014
Christy

Hi
Sorry , for keeping messing up :
38.45.0 is referring to Invoice row level base key
logic is saying  Delivery number is equal to invoice row level base key
If you look at the link and Gagan answer ,your problem should have been solved .
Please close this thread if your problem is solved .
Thann you
Bishal
Definitely need a coffee to start my day
Edited by: BIshal Adhikari on Jul 9, 2009 6:44 AM
Edited by: BIshal Adhikari on Jul 9, 2009 6:44 AM

Similar Messages

  • When restoring and updating my iPhone I am getting the following message " iTunes could not update to the carrier settings for your iPhone.an unknown error occurred (1630)

    When restoring and updating my iPhone I am getting the following message " iTunes could not update to the carrier settings for your iPhone.an unknown error occurred (1630).can anyone please with a knowledge tell me what I should do please. Thank you

    The search bar can be very valuable...........
    In using it, I found out other's have had this issue and it likely means you have a 3G iPad?  If you do, go into settings and turn off cellular data, then try to update again and you should be OK........

  • Data is not updated in the database

    hi.. to all..
    i'm using the following code ...... but the data is not updated in the database.. the output window get closed as soon as i clicked save button...
    i don't know wat's problem with the program...
    Plz help me.. to get resolve this problem..
    import java.applet.*;
    import java.awt.*;
    import java.sql.*;
    import java.awt.event.*;
    import sun.jdbc.odbc.*;
    public class Customerdetails extends Frame implements ActionListener
         TextField ccod,cname,add,phno,conp,email,fax;
         Label l1,l2,l3,l4,l5,l6,l7;
         Button save,exit;
         Connection con;
         ResultSet rs;
         Statement stmt;
         String s1,s2,s3,s4,s5,s6,s7;
    public Customerdetails()
        super("CustomerDetails");
        setSize(700,750);
        setLayout(null);
        setBackground(new java.awt.Color(245, 117, 105));
        l1=new Label("Customercode");
        l2=new Label("CompanyName");
        l3=new Label("Address");
        l4=new Label("PhoneNumber");
        l5=new Label("Contact person");
        l6=new Label("EmailAddress");
        l7=new Label("FaxNumber");
        l1.setBounds(20,100,100,70);
        l2.setBounds(20,180,100,70);
        l3.setBounds(20,270,100,70);
        l4.setBounds(20,340,100,70);
        l5.setBounds(20,420,100,70);
        l6.setBounds(20,500,100,70);
        l7.setBounds(20,580,100,70);
        ccod=new TextField();
        cname=new TextField();
        add=new TextField();
        phno=new TextField();
        conp=new TextField();
        email=new TextField();
        fax=new TextField();
        ccod.setBounds(200,120,150,50);
        cname.setBounds(200,200,150,50);
        add.setBounds(200,280,150,50);
        phno.setBounds(200,360,150,50);
        conp.setBounds(200,440,150,50);
        email.setBounds(200,520,150,50);
        fax.setBounds(200,600,150,50);
        Button save= new Button("Save");
        Button exit= new Button("Exit");
        save.setBounds(200,680,100,40);
        exit.setBounds(350,680,100,40);
        add(l1);
        add(ccod);
        add(l2);
        add(cname);
        add(l3);
        add(add);
       add(l4);
       add(phno);
       add(l5);
       add(conp);
       add(l6);
       add(email);
       add(l7);
       add(fax);
       add(save);
       add(exit);
      save.addActionListener(this);
      exit.addActionListener(this);
      setVisible(true);
    addWindowListener(new WindowAdapter(){
      public void WindowClosing(WindowEvent w) {System.exit(0);}});
    public void actionPerformed(ActionEvent ae)
    Customerdetails cud= new Customerdetails();
    if(ae.getSource()==save)
    s1=ccod.getText();
    s2=cname.getText();
    s3=add.getText();
    s4=phno.getText();
    s5=conp.getText();
    s6=email.getText();
    s7=fax.getText();
    try
          String query = "insert into Customerdetails (Customercode,CompanyName,Address,PhoneNumber,Contact person,EmailAddress,FaxNumber)"+ "values('"+s1+"','"+s2+"','"+s3+"','"+s4+"','"+s5+"','"+s6+"','"+s7+"')";
          Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
          con=DriverManager.getConnection("jdbc:odbc:prism");
          stmt=con.createStatement();
          rs=stmt.executeQuery(query);
          stmt.close();
    catch(ClassNotFoundException e)
      System.out.println(e);
    catch(SQLException e)
      System.out.println(e);
    else if(ae.getSource()==exit)
    System.exit(0);
    else
    System.exit(0);
    public static void main(String args[])
       Customerdetails cud= new Customerdetails();
    }

    This doesn't look right:
    ,FaxNumber)"+ "values(because it's equal to ,FaxNumber)values(and your SQL server won't understand it, put a whitespace between.
    /M

  • Maintenance Order TECO date must not be befor the Permit Issue Date

    Hi Friends,
    I have a genuine requirement like " Maintenance Order TECO date must not be befor the Permit Issue Date ".
    The requirement is System shall issue a message if TECO date is before the Permit issue date.
    Guys pls help me onthis.
    Thanks & Regards,
    krishna

    Krishna,
    What you can do is use a User Exit: IWO10004 Maintenance order: Customer check for order completionand check that the reference date of completion, also you would need the approval date for the assigned permits in Order by using the table "IHSG" or a relevant function module to get the details of the Permit approval date. After you have the permit approval date, you can compare it with the reference date of  completion and if mismatched then generate the relevant error message.
    regards,
    Muhammad Usman Kahoot

  • Error: Can't Add a New Sales Order: -10  Exchange rate not updated,

    Hi,
    I'm trying to add several Sales Orders contained in a XML document, whose root element corresponds to the Sales Person created that XML. Anyway, after I fill a Sales Order Document Object with the info in the XML and try to add it the following error appears: "Exchange rate not updated  [RDR1.U_Desc4][line: 2] , 'USD'" Which is strange because this company handles most of its transactions in MXP Currency. I will post the piece of Code that fills the object hoping it helps:
    For Each xndSalesOrder In xmlSalesOrder.Item("SalesMan").ChildNodes
                    oSalesOrder = Me.Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders)
                    oSalesOrder.DocType = SAPbobsCOM.BoDocumentTypes.dDocument_Items
                    With xndSalesOrder.Item("HEADER")
                        oSalesOrder.CardCode = .Item("Deudor").InnerText
                        oSalesOrder.DocDate = DateTime.Parse(.Item("FechaCont").InnerText, Nothing)
                        oSalesOrder.DocDueDate = DateTime.Parse(.Item("FechaEnt").InnerText, Nothing)
                        oSalesOrder.Comments = .Item("Observaciones").InnerText
                        oSalesOrder.DocRate = 11
                        oSalesOrder.DocCurrency = "MXP"
                        'oSalesOrder.ContactPersonCode = .Item("Contacto").InnerText
                        'User Fields
                        oSalesOrder.UserFields.Fields.Item("U_RefOV").Value = _
                            xndSalesOrder.Attributes.Item(0).InnerText
                        oSalesOrder.UserFields.Fields.Item("U_Referencia2").Value = .Item("Referencia").InnerText
                        oSalesOrder.UserFields.Fields.Item("U_FechaReferencia").Value = _
                            DateTime.Parse(.Item("FechaReferencia").InnerText, Nothing)
                    End With
                    With xndSalesOrder.Item("LINEAS")
                        For Each xndLinea In .ChildNodes
                            If intContLineas >= 1 Then                             oSalesOrder.Lines.Add()
                            End If
                            oSalesOrder.Lines.ItemCode = xndLinea.Item("Articulo").InnerText
                            oSalesOrder.Lines.Quantity = CDbl(xndLinea.Item("Cantidad").InnerText)
                            oSalesOrder.Lines.Price = CDbl(xndLinea.Item("Precio").InnerText)
                            oSalesOrder.Lines.TaxCode = xndLinea.Item("Impuesto").InnerText
                            oSalesOrder.Lines.DiscountPercent = CDbl(xndLinea.Item("DescuentoTotal").InnerText)
                            oSalesOrder.Lines.SalesPersonCode = xmlSalesOrder.Item("SalesMan").Attributes.Item(0).InnerText
                            oSalesOrder.Lines.Currency = "MXP"
                            'User Fields
                            oSalesOrder.Lines.UserFields.Fields.Item("U_Promocion").Value = _
                                xndLinea.Item("AplicaProm").InnerText 'Valores posibles: Si, No
                            oSalesOrder.Lines.UserFields.Fields.Item("U_Desc1").Value = _
                                CInt(xndLinea.Item("Descuento1").InnerText)
                            oSalesOrder.Lines.UserFields.Fields.Item("U_Desc2").Value = _
                                CInt(xndLinea.Item("Descuento2").InnerText)
                            oSalesOrder.Lines.UserFields.Fields.Item("U_Desc3").Value = _
                                CInt(xndLinea.Item("Descuento3").InnerText)
                            'If xndLinea.Item("AplicaProm").InnerText = "Si" Then
                            oSalesOrder.Lines.UserFields.Fields.Item("U_Desc4").Value = _
                                CInt(xndLinea.Item("Descuento4").InnerText) 'This is the UDF that's giving me problems!!!
                            'End If
                            intContLineas += 1
                        Next
                       If oSalesOrder.Add() <> 0 Then
                            Me.Company.GetLastError(intErrorAdd, sErrMsgAdd)
                            If (0 <> intErrorAdd) Then
                                FillLog("Sales Order Error: " & CStr(intErrorAdd) & "," & sErrMsgAdd)
                            End If
                            xmlLogSalesOrder.Item
                        End If
                    End With
                Next
    If you look at the code I've even tried the solution of hardcoding the DocRate and the Currency as seen in a similar post about the DTW.
    Sorry if code is in Spanglish, its quite late around here. I hope you can help me because it's kind of an urgent matter and I can't seem to find a solution for it.
    Other useful data: SAP BO 2005 Patch 4.
    Thanks in advance...
    Alfredo Gargari

    Hi Alfredo,
    Have you tried to add the same salesorder by hand, I think you wil first get a form with exchange rates.
    I think you should add a check to your program to check for an update currency rate (the sbobob function GetCurrencyRate does this for you).
    GetCurrencyRate MethodDescription
    Returns a Recordset object that contains the currency rate for a specified date and currency code.
    See Currency Bobs sample.
    Syntax
    Public Function GetCurrencyRate( _
       ByVal Currency As String, _
       ByVal Date As Date _
    ) As Recordset
    Parameters
    Currency
    Specifies the currency code.
    Date
    Specifies the date for the currency exchange rate.
    Return Type
    A Recordset object that contains one field named CurrencyRate that holds the rate value.
    SAP Business One returns 0 if the system cannot find the exchange rate.
    Regards,
    Ad

  • Sales order materials (BOM) are not coming to the delivery

    Hello,
    created the sales order with BOM materials, in the sales it's showing the all materls (BOM materials) as per our configuration. but when i try to create  the delivery it's not showing the all materials in delivery.
    maintained item level bom
    for material -
    A,  i have maintined the components A1, A2 & A3 (items), when i created order with material A,  its showing the A, A1,A2 & A3 materialsin the order, but when i try to create the delivery its showing only A1 & A2 materials. it not showing in the delivery A3 material.
    any locks or blocks for POI?
    any one help regarding this issue
    Regards|ks

    Hello,
    i have checked the delviery group in the sales order all items are under the same delviery group. but why the delviery not showing all item in one delviery?
    Could you please reply
    Regards|KS

  • CRM Activity - Data is not updated in the screen

    Hi Experts!
    I have a FOP called from CIC0 of the CRM to execute in the ISU. This FOP has an step that updates some data from activity. When this process returns to CRM the data are not displayed right, only when I click in button end contact and I execute the search again. I need to know if is there a way to perform a refresh of the buffer or anything like this to display the data that have been updated.
    Best regards,
    Caíque Escaler

    Hello caique,
    Please refer notes 785874,1064984 and see if this helps.
    regards,
    Muralidhar Prasad Chatna

  • Data is not updating in the tables

    Hi all,
    I am facing a problem while creating customer and material, after creating and saving the customer and material, if i am going in the change mode, then system is giving awkward message;
    "The material '##' is not been created yet or it has not been activated ",
    in case of customer also it is giving the same error, saying "the customer '#######' is not been created yet"
    please help me solving this problem, as i am not able to understand why this is happening.
    Thanks
    Edited by: saur06_80 on Jul 1, 2010 12:34 PM

    Check your workplace, use TCODE SBWP.
    If SAP fails to store the newly created material/cusrtomer in the database, then the user usually receives an exception message (which is so cryptic that noone understands this mail and just ignores it). This message is just telling you that there was a posting failure. You can then analyze the reason for the failure in SM13.
    Hope this can assist you.
    Thanks & Regards
    JP

  • Number of plays and last play date are not updated in the iPhone 5.

    I am managing music manually, and play music using the regualy player and in my car through blue tooth, but the number of plays doesn't update. I have lists for new music, based on number of plays, and it never changes.

    That doesn't make sense. It works on my iPad and iPod, and used to work on the iPhone. I think something changed in one of the recent updates.

  • Upload sales order item data

    Hi All,
    I need to upload sales order item data.Could you please tell me the steps in R/3 to replicate data BW.
    Thanks
    Raj

    Hi,
    Steps to upload sales order item:
    1) Maintain extract structure (LBWE)
    2) Maintain Datasource. (LBWE)
    3) Replicate datasource in BW
    4) Assign Infosources (RSA1 - BW)
    5) Maintain comm struc/transfer rules (RSA1 - BW)
    6) Maintain infocubes and update rules (RSA1 - BW)
    7) Activate extract structures (LBWE)
    8) Delete setup tables / setup extraction (For deleting – LBWG and for setup use OLI7BW).
    9) Infopackage for delta init
    10) Set up periodic V3 update (LBWE)
    11) InfoPackage for delta load.
    Hope this helps.
    PB

  • Date is not inserted in the DB table

    Hi,
         I have a view, showing some data, including date and I have a save button. View has some of the fields update able. When I click the save button a bean function is called which run the query to update values in the DB table, taking those values from the view.
         Now the problem is, date is not updated as the query doesn't run just  because of the date and I am getting this error:
    ORA-01861: literal does not match format string
    and the date format is: 2013-09-23
    I have tried using to_date() method, but it didn't work for me.
    Here is my query:
                oracle.jbo.domain.Date  Pshipdate =( oracle.jbo.domain.Date) rowSelected.getAttribute("Pshipdate");
                    "UPDATE SHIPEXT" +
                    " SET APP = " +
                    "'" + status + "' " +
              ", PSHDAT = " + "to_date('" + Pshipdate + "', 'dd/mm/yyyy')"
                    +  ", MBY = " +
                    "'" + LoggedInUser + "'"
                    + ", IP = " +
                    "'" + IP + "'"
                    + ", DSREMS = " +
                    "'" + descrems + "'" +
                    ",  MDAT  = "
                    + "to_date('" + getCurrentTimeStamp() + "', 'dd/mm/yyyy')" +
                    " Where WO =" +
                    "' " + workorder + "'"
                    + "AND SR = " +
                    "'" + sr + "'"

    I'll repost what you branched off
    There's all kinds of things wrong.
    For a start, I can't see P_shipdate anywhere, though I can see Pshipdate.
    If you mean Pshipdate, Java is converting it to a string which you are then converting back to a date with to_date.
    Check that the default print  string returned is of dd/mm/yyyy format.
    Similarly with MDAT and getCurrentTimestamp - what is default print string of geCurrentTimestamp?
    All these problem could be avoided if you use bind variables.
    We are trying to help but you seem determined not to accept any help.
    Have you checked the print string formats of Pshipdate and getCurrentTimestamp?

  • I deleted all Apps on iPad as they were associated with an out of date Apple ID and I could not update them, but the "App Store" logo still shows that there are 2 to be updated and when I go there I cannot delete. Please assist. Thanks.

    I deleted all Apps on iPad as they were associated with an out of date Apple ID (which I have forgotten the password) and I could not update them, but the "App Store" logo still shows that there are 2 to be updated and when I go there I cannot delete. Please assist. Thanks.

    Why don't you explain what happens when you try to delete these two apps that are showing that they need updates. You can only delete them if they are actually installEd on the iPad. Are they on the device?

  • Deletion of Request which are not updated to data target

    hi,
    I want to all PSA data whether it is updated or not In our project this is being done by Using a Process chain, But it is not deleting the request which are not updated to any data target or failed, I have selected both the check boxes
    Only successfully booked requests
    Only requests with errors, not updated in any data target
    but even after selecting this check box it is not deleting the failed request, can any one tell me why it is so.
    Any help in this would be highly appreciated.

    Try to do it without checking any of the checkboxes...
    Regards,
    Luis

  • Idoc segment for updating Sales order item dates

    Hi All,
    I would ike to update the sales order item dates (loading date, Goods Issuance date etc) from an IDOC.
    please let me know the Idoc segment and fields that need to be filled in?
    Thanks in advance.
    Regards,
    Zeeshan.

    Hi,
    Here are some details of the segments in the idocs -
    SEGNAM Segment Name E1EDL20
    VBELN Sales and Distribution Documen 180001539
    SEGNAM Segment Name E1EDL18
    QUALF IDOC Qualifier: Control (Deliv PIC : Picking with flow records (inbound)
    SEGNAM Segment Name E1EDL18
    QUALF IDOC Qualifier: Control (Deliv PGI : Post delivery goods issue (inbound)
    SEGNAM Segment Name E1EDT13
    QUALF IDOC Qualifier: Date (Delivery 010 : Picking
    NTANF Constraint for activity start 20090808
    ISDD Actual start: Execution (date) 20090808
    SEGNAM Segment Name E1EDL24
    POSNR Item number of the SD document 10
    MATNR Material Number 1112
    WERKS Plant SG01
    KDMAT Material belonging to the cust 1112
    LFIMG Actual quantity delivered (in 55
    VRKME Sales unit EA
    POSEX External item number 10
    ORMNG Original Quantity of Delivery 55
    SEGNAM Segment Name E1EDL41
    QUALI Qualifier for Reference Data o 001 : Purchase order data of customer
    BSTNR Customer purchase order number 4500004668
    BSTDT Customer purchase order date 10
    POSEX Item Number of the Underlying 10
    SEGNAM Segment Name E1EDL37
    Regards,
    Shamma

  • PC Sync could not update the data to the mobile ph...

    Ok now I am a little annoyed with my Nokia 6680.
    For the last four months it has been working fine but all of a sudden it has stopped synching with either of my PC's.
    The phone connects ok and I can do file transfers etc however when I try to sync it fails with the message
    "The Synchronisation has been Terminated!"
    and
    "PC Sync could not update the data to the mobile phone."
    I updated PC Sync to latest version on both PC's and I have tried cable and bluetooth connections but get the same issue.
    In the end I bit the bullet and re-initialised the phone and it began working again.... for three days and then its doing the same thing again. It still connects ok but no sync.
    My Laptop is using WinXP SP2 and my home PC is on WinXP SP1.
    Anyone able to help with this please, my phone is effectively now a paper weight and I will go back to Pocket PC phones again.

    Thanks for the tip I had the SAME problem on the 6822 same error. The phone had been fine for a month or so. Then nothing would synch, thought it was the PC fixed / reinstalled the software changes options nothing would work same error.
    Read your note, powered down the phone and Bingo all synched fine!
    Thanks very much. I'm using a Nokia 6822

Maybe you are looking for

  • Office Web Apps is not working

       Hi,      We have tried to deploy Office Web Apps Server but, after a number of tests, we haven't been able to view PowerPoint presentations. We tested "everything" but it didn't work.      Finally, to simplify and focus the problem, we just deploy

  • Double retirement of an asset

    Hi All, We have an issue in our project. The asset value is 8534.96 in the books A user has first retired an asset on 9th Sep-06 for 7254.71.  Another user has thereafter retired the same asset with the date 3rd Sep-06 with the correct amount 8534.96

  • Spml2 :: Living la vida loca

    Hej, I just installed spml2 on the idm 7.1.1.2 and i runned some examples so far looks pretty nice... but I have no idea how to get information back.... I tried this for example:    String url = "http://--------------/idm/servlet/openspml2";         

  • TS1372 ipod classic error 1434 no restore

    hi i dropped my ipod and it stopped working, then it came up connect to itunes to restore, it wouldnt let me restore as it comes up (the ipod "ipod" could not be restored. An unknown error occurred (1434).) i then tried to do a disk diagnostic of my

  • Scroll motion on image fill resets itself...

    When I set the scroll motion for a rectangle with an image fill, it resets the vertical final motion to 1 after I set it to 0.