Problem in using WS_DELIVERY_UPDATE(updating the deliveries)

Hi Gurus,
Iam facing problem  i updating the deliveries using the fm WS_DELIVERY_UPDATE..This is the code..
MOVE : lwa_mchb-matnr   TO lwa_vbpok-matnr,
                   lwa_mchb-charg   TO lwa_vbpok-charg,
                   lwa_mchb-lgort   TO lwa_vbpok-lgort,
                   lwa_mchb-clabs   TO lwa_vbpok-lfimg,
                   lv_gross_weight  TO lwa_vbpok-brgew,
                   lwa_mchb-clabs   TO lwa_vbpok-ntgew.
                   lwa_vbpok-SPE_INB_ITM_UPD = 'X'.
            APPEND lwa_vbpok TO lit_vbpok.    
          CLEAR : lwa_idetail,
                  lwa_vbpok,
                  lv_gross_weight.
        ENDLOOP.
Fill the header data
        lwa_vbkok-vbeln_vl  = gwa_header-vbeln.
        lwa_vbkok-wadat_ist = sy-datum.
        lwa_vbkok-bolnr     = gwa_header-bolnr.
        lwa_vbkok-traid     = gwa_header-traid.
        lwa_vbkok-spe_inb_dlv = 'X'.
Call the function module to update the delivery
        CALL FUNCTION 'WS_DELIVERY_UPDATE'
          EXPORTING
            vbkok_wa                 = lwa_vbkok
            synchron                 = lc_x
            no_messages_update       = space
            update_picking           = lc_x
            commit                   = lc_x
            delivery                 = gwa_header-vbeln
            nicht_sperren            = lc_x
            if_database_update       = '1'
            if_error_messages_send_0 = lc_x
          TABLES
            vbpok_tab          = lit_vbpok
            prot               = lit_prot.
            commit work.
I have to update the following item fields
1>BATCH
2>LGORT
3>NTGEW
4>LFIMG
5>BRGEW...
also two header fields..The header fields are updated successfully,but the item fields are not updated..Please tell me where iam wrong...what else needs to be passed..
Your help us highly appreciated..
Regards,
Raj

Hi,
Thanks for the repl
i also passed..
vbeln_vl,
posnr_vl,
vbeln,
posnn
Still not working...any other info to pass to FM
Regards,
Raj

Similar Messages

  • I have two apple id's because my hotmail account is no longer active. How can I delete the old one and use or update the new one?  Every time I try it won't allow me and now my iPad thinks there are two accounts and they are arguing with each other. Help!

    I have two apple id's because my hotmail account is no longer active. How can I delete the old one and use or update the new one?  Every time I try it won't allow me and now my iPad thinks there are two accounts and they are arguing with each other. Help!

    You can't merge accounts or copy content to a different account, so anything that you bought or downloaded via the old account is tied to that account - so any updates that those apps get you will only be able to download via that account. You can change which account is logged in on the iPad via Settings > Store

  • WebPart is raising the following error "Invalid data has been used to update the list item.The field you are trying to update may be read only"

    I have created a farm solution and then i deploy it to SharePoint server, the code looks as follow, and i use it to update a page info values (as the current page values represents old info):-
    [ToolboxItemAttribute(false)]
    public partial class VisualWebPart1 : WebPart
    // Uncomment the following SecurityPermission attribute only when doing Performance Profiling using
    // the Instrumentation method, and then remove the SecurityPermission attribute when the code is ready
    // for production. Because the SecurityPermission attribute bypasses the security check for callers of
    // your constructor, it's not recommended for production purposes.
    // [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Assert, UnmanagedCode = true)]
    public VisualWebPart1()
    protected override void OnInit(EventArgs e)
    base.OnInit(e);
    InitializeControl();
    using (SPSite site = new SPSite(SPContext.Current.Site.Url))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists["Pages"];
    web.AllowUnsafeUpdates = true;
    foreach (SPListItem items in list.Items)
    items["Author"] = "SharePoint";
    items["Created"] = "01/08/2014 01:44 PM";
    items.Update();
    list.Update();
    web.AllowUnsafeUpdates = false;
    protected void Page_Load(object sender, EventArgs e)
    but when i try adding this web part to a page i got the following error:-
    Invalid data has been used to update the list item.The field you are trying to update may be read only
    so can anyone advice?

    i only changed lines bitween 
    web.AllowUnsafeUpdates = true;
    and
    web.AllowUnsafeUpdates = false;
    and other parts of code remains without change
    so it will updates all pages in current web
    yaşamak bir eylemdir

  • Invalid data has been used to update the list item. The field you are trying to update may be read only.

    Trying to follow Serge Luca's Step by Step Tutorial. Creating Workflows for Windows Sharepoint Services and MOSS2007.  http://sergeluca.spaces.live.com/blog/cns!E8A06D5F2F585013!859.entry
    I have an onWorkflowActivated, followed by an ifElse condition and a log to history.
    In the IfElse, each branch has a code segment, that trys to update the status column in the list that the workflow is attached to.
    private void Authorize_ExecuteCode(object sender, EventArgs e)
    // tried serveral methods
    WorkflowProperties.Item["Status"] = "Automatically Approved";
    // tried all of the following (one at a time)
    item.update();
    WorkflowProperties.Item.Update();
    WorkflowProperties.Item.SystemUpdate();
    //tried this as well.
    Microsoft.SharePoint.SPListItem item = WorkflowProperties.Item;
    item["Status"] = "Automatically Approved";
    item.Update() ;
    On the update call I keep getting "Invalid data has been used to update the list item. The field you are trying to update may be read only."
    Could someone explain how to update "Status" column of the list item that the workflow is working on?
    Thank you very much.
    Bill
     

    Hi:
    you can do the following:
    add the following code to the workflow.xml file (under the MetaData section)
    Code Snippet
    <ExtendedStatusColumnValues>
    <StatusColumnValue>Branch1</StatusColumnValue>
    <StatusColumnValue>Branch2</StatusColumnValue>
    </ExtendedStatusColumnValues>
    then add 2 SetState activities one in each branch of the IfElse.
    for the code behind of setState1 (branch1) write the following code:
    Code Snippet
    state = Convert.ToInt32(SPWorkflowStatus.Max);
    for setState2 (branch2) write the following:
    Code Snippet
    state = Convert.ToInt32(SPWorkflowStatus.Max) + 1;
    where state is the variable assigned to the field State in the properties of the SetState(design lever), or instead of state u can use the following code:
    Code Snippet
    ((SetState)sender).State
    where sender is the object sent through the function parameter.
    hope this answered your question
    Best Regards

  • Invalid data has been used to update the list item. The field you are trying to update may be read only (Lookup Field).

    Hi.
    I am getting below error while adding value to look-up field.
    Invalid data has been used to update the list item. The field you are trying to update may be read only.
    I have tried many forums ans post but didn't come to know what's the root cause of issue. I am also posting Code for creating and adding lookup field.
    CAML to create lookup field (It works Fine)
    string lkproductNumber = "<Field Type='Lookup' DisplayName='Product Number' StaticName='ProductNumber' ReadOnly='FALSE' List='" + pNewMaster.Id + "' ShowField='Product_x0020_Number' />";
    Code to insert value to lookup field
    ClientContext client = new ClientContext(SiteUrl);
    client.Load(client.Web);
    client.Credentials = new NetworkCredential(this.UserName, this.Password, this.Domain);
    // Lookup Lists
    List pmList = client.Web.Lists.GetByTitle("Product_Master");
    //List Conatining Lookup Columns
    List piList = client.Web.Lists.GetByTitle("Product_Inventory");
    client.Load(piList);
    query.ViewXml = "<View/>";
    ListItemCollection collection = pmList.GetItems(query);
    client.Load(collection);
    client.ExecuteQuery();
    int prodid=0;
    foreach (ListItem item in collection)
    if (Convert.ToString(item["Product_x0020_Number"]) == ProductNumber)
    { prodid = Convert.ToInt32(item["ID"]); }
    ListItem piItem = piList.AddItem(new ListItemCreationInformation());
    piItem["Product_x0020_Number"] = new FieldLookupValue() { LookupId = prodid };
    piItem.Update();
    client.ExecuteQuery();
    Exception Detail
    Microsoft.SharePoint.Client.ServerException was caught
    Message=Invalid data has been used to update the list item. The field you are trying to update may be read only.
    Source=Microsoft.SharePoint.Client.Runtime
    ServerErrorCode=-2147352571
    ServerErrorTypeName=Microsoft.SharePoint.SPException
    ServerStackTrace=""
    StackTrace:
    at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream)
    at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse()
    at WebServiceProviders.ClientServices.NewProductInventory() in Z:\.............ClientServices.cs:line 889
    InnerException:
    Quick response is highly appreciated.
    Thanks
    Mehar

    Try some thing like below,
    your data value that needs to be update should be in this format "ID of the lookup";#"Title of the Lookup" 
    For example,
    listItem["Product_x0020_Number"]
    = "1;#iPhone";
    listItem["Product_x0020_Number"]
    = "2;#Mobile";
    Hope this helped you....

  • Function module or BAPI that is used to update the records in RBKP table.

    Hello All,
    Can anybody please give me the name of any Function module or BAPI that is used to update the records in RBKP table.
    Please help me
      I need to change the fiscal year in RBKP table
    Thanks in Advance,
    Regards,
    LIJO

    Hi,
    You can use the BAPIs,
    BAPI_ACC_INVOICE_RECEIPT_CHECK Accounting: Check Invoice Receipt (OAG: LOAD PAYABLE)
    BAPI_ACC_INVOICE_RECEIPT_POST  Accounting: Post Invoice Receipt (OAG: LOAD PAYABLE)
    Hope this helps.
    Regards,
    Renjith Michael.

  • HT4972 My ipad 1 is stuck on IOS 4 as the IOS 5 update instructions do not work. When I use itunes update the software looks for an update file and the apple site doesn't have one!

    My ipad 1 is stuck on IOS 4 as these IOS 5 update instructions do not work. When I use itunes update the software looks for an IOS 5 software update file and the apple site doesn't seem have one anywhere!

    If you have an iPad 1, the max iOS is 5.1.1. For newer iPads, the current iOS is 6.0.1. For the iPad Mini the iOS is 6.0.2. The Settings>General>Software Update only appears if you have iOS 5.0 or higher currently installed.
    iOS 5: Updating your device to iOS 5 or Later
    http://support.apple.com/kb/HT4972
    How to install iOS 6
    http://www.macworld.com/article/2010061/hands-on-with-ios-6-installation.html
    iOS: How to update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT4623
    If you are currently running an iOS lower than 5.0, connect the iPad to the computer, open iTunes. Then select the iPad under the Devices heading on the left, click on the Summary tab and then click on Check for Update.
    Tip - If connected to your computer, you may need to disable your firewall and anitvirus software temporarily.  Then download and install the iOS update. Be sure and backup your iPad before the iOS update. After you update an iPad (except iPad 1) to iOS 6.x, the next update can be installed via wifi (i.e., not connected to your computer).
     Cheers, Tom

  • Problems when trying to update the free version of Adobe Reader Updater 11.0.00 on Windows 8. There

    Problems when trying to update the free version of Adobe Reader Updater 11.0.00 on Windows 8. There is something to fix.??

    Have you tried http://ardownload.adobe.com/pub/adobe/reader/win/11.x/11.0.03/misc/AdbeRdrUpd11003.msp ?

  • What is the use of updating the phone software???

    hi friends ,
    i jus want to know wat is the use of updating phone software

    99% of the time to fix software bugs people have found and reported back to nokia, in other cases speed improvement, memory improvement, and overall fixes to problems that occur on your phone...
    However, sometimes updates can give you problems you never had before

  • Problem in useful life of the asset?

    Hi,
    I don't know what and where it is going wrong so need your suggestion please:
    We have created one new asset class and trying to check dep. in testing server but system is calculated dep. with useful life as 10 years only for all the assets I have created.
    In OAYZ, I have just given the dep. key and the fields of useful life and period is blank for all the dep. areas. Also, tried with useful life 5 but result is same.
    In Asset Master, I have mentioned the useful life as 5 years for all the dep. area.
    The problem is system is system is showing the values based on useful life of 10 years, why I don't know what shall I do please suggest....
    I have checked it by creating some of other assets as well with different useful lives but the result is same.
    Please help!!!
    Thanks in advance....
    Regards
    Nitin

    Hi Nitin,
    If the depreciation is based on 10 years even if you have entered useful life 5 years then it means depreciation key is not configured as dep based on useful life.
    It seems depreciation is based on explicit percentage which must be 10% in your case.
    Check what dep key is assigned in Asset master and go to T code AFAMA, AFAMS for depreciation key settings.
    If you still have doubts of how to go about it then attach screenshots of AFAMA,AFAMS.
    Hope it solves.
    Regards,
    GSR

  • Using Tabstrip update the database table

    Hi Guy's,
    I created two screens(100 & 110).
    Click 1 pushbutton HRP1000 related information is displayed.
    Click 2 pushbutton it displays HRP1001 relatd information.
    worked to read the data from the Database tables and output displayed sucessfuly .   However i want to entered data in those fields wants to update to database table.
    Please friends help me how to work this senario.
    Thanks and Regards,
    Sai.

    Hi Guy's,
    To update the database records, wrote the logic in PAI
       WHEN 'SAVE'.
        INSERT HRP1001.
    INSERT INTO HRP1001  VALUES wa_P2.
    it displaying an error message " the work area wa_p2 is not long enough.
    and also i tried using it_p2
    it displaying an error message " you can't use internal table as work area".
    Please help me friends  it is very urgent.
    Thanks and Regards,
    Sai.

  • Any BAPI or FM to use to update the Customer Address with change log?

    Hi, does anyone have used any BAPI or FM that will update the customer address (Central Address management fields) and the change will be logged in the change history of customer master? I have tried several FM that can update the fields but none of the change will show up in the change history of the customer master.
    So far, I have tried the following FM:
    ADDR_MAINTAIN_COMPLETE
    ADDR_UPDATE
    BDC is not acceptable due to high volume of data. However, the change log is also required.
    Please share any advice.
    Thank you,

    Hi Minami,
    for chenge address use FM : BAPI_BUPA_ADDRESS_CHANGE       (SAP BP, BAPI: Change Address)
    otherwise check with below FM ,for address related information
    BAPI_BUPA_ADDRESSES_GET              SAP BP, BAPI: Determine All Addresses
    BAPI_BUPA_ADDRESS_ADD                   SAP BP, BAPI: Add Address
    BAPI_BUPA_ADDRESS_CHANGE                 SAP BP, BAPI: Change Address
    BAPI_BUPA_ADDRESS_GETDETAIL             SAP BP, BAPI: Read Address
    BAPI_BUPA_ADDRESS_GET_NUMBERS    SAP BP, BAPI: Read Address Numbers
    BAPI_BUPA_ADDRESS_REMOVE                    SAP BP, BAPI: Delete Address
    Regards,
    Tutun

  • Which functional modules we can use to update the costs in WBS?

    Hello friends,
         I need to update the costs assigned to WBS elements at cost element level using TCode CJR2. Which function modules are available to do this?
    Can you show me sample implementation for the same?
    Thanks in advance,
    Amol C.

    You can't.
    A UIImage object is a high-level way to display image data. You can create images from files, from Quartz image objects, or from raw image data you receive. The UIImage class also offers several options for drawing images to the current graphics context using different blend modes and opacity values.
    Image objects are immutable, so you cannot change their properties after creation.

  • "SharePoint list itme update error : Invalid data has been used to update the list item. The field you are trying to update may be read only."

    Hi Everyone,
    i am facing one problem ...
    when i am updating an SharePoint List item, it is throwing above error....
    This is my code......
     try
                    tbl = getListDateTable("NCR");
                    DataTable dt = tbl;
                    oWebsite = mysite.OpenWeb();
                    oList = oWebsite.Lists["NCR"];
                    SPListItem itemToUpdate = null;
                    foreach (SPListItem listItem in oList.Items)
                        listItem.Update();
                        workOrderID = Convert.ToInt32(txtTitle.Text);
                        itemToUpdate = listItem;
                    //SPListItem itemToUpdate = oList.GetItemById(workOrderID);
                    //itemToUpdate.Fields["Title"].ReadOnlyField = false;
                    //string str = ddlStatus.SelectedValue;
                    itemToUpdate["Title"] = txtTitle.Text;
                    itemToUpdate["JobNumber"] = txtJobNumber.Text;
                    itemToUpdate["PartNumber"] = txtPartNumber.Text;
                    itemToUpdate["PartDescription"] = txtPartDescription.Text;
                    //itemToUpdate["RequiredBy"] = txtRequiredBy.Text;
                    itemToUpdate["ReportedBy"] = txtReportedBy.Text;
                    itemToUpdate["WrittenBy"] = txtWrittenBy.Text;
                    //itemToUpdate["DateOpened"] = txtDateOpened.SelectedDate;
                    //itemToUpdate["DateClosed"] = txtDateClosed.SelectedDate;
                    itemToUpdate.Update();
                    oList.Update();
                   // bind();
                catch (Exception ex)
                    throw ex;
    Thanks
    viswanath

    Hi Viswanath,
    If you are using People/User Type Field Column then use below code methord
    SPUser user = web.EnsureUser(loginName);
    item["UserTypeFieldName"] = user;
    Lookup Type Field Column then use below code methord
    public static SPFieldLookupValue GetLookupFieldFromValue(string lookupValue,string lookupSourceColumn, SPList lookupSourceList)
    SPFieldLookupValue value = null;
    SPQuery query = new SPQuery();
    query.Query = "<Where><Eq><FieldRef Name='" + lookupSourceColumn + "'/><Value Type='Text'>" + lookupValue + "</Value></Eq></Where>";
    SPListItemCollection listItems = lookupSourceList.GetItems(query);
    if(listItems.Count > 0 )
    value = new SPFieldLookupValue(listItems[0].ID,lookupValue);
    return value;
    item["LookupField"] = GetLookupFieldFromValue(lookupfieldValue, lookupSourceColumn, listName);
    Please mark the replies as answers if they help or unmark if not.

  • I faced a problem since I have updated the Iphone version ......

    I have Iphone 3GS, the vesion was 4.0.2 and I have updated it to the latest one witch is 4.3.3 using the I tunes, since that time I faced a problem with the battery charge, I noticed that it is dicresing rapidly without using the Iphone.
    To solve the problem I:
    1) Off the 3G.
    2) Off the bluetooth.
    3) Off the location service.
    4) Off the Wi-Fi.
    and still Iam facing the same problem with the battery charge.

    Error 1611: This error may indicate a hardware issue with your device. Follow the steps in this article. Alsoattempt to restore while connected with a known-good 30-pin Dock Connector cable, computer, and network to isolate this issue to the device. The MAC address being missing or the IMEI being the default value (00 499901 064000 0) can also confirm a hardware issue. Out-of-date or incorrectly configured proxy or security software, such as FoxyProxy, can cause error 1611. To troubleshoot third-party security software, follow these steps.
    From here >  iOS: Resolving update and restore alert messages

Maybe you are looking for

  • ITunes for Windows: "Disk is locked" when installing or opening iTunes

    I tried to open Itunes and it keeps saying that the itunes library.itl is locked. I even uninstalled it and installed it again. I need help.

  • How to Process Customer Orders

    My Question is Using the AdventureWorks2012 Database how would you create a Stored Procedure that will Allow a customer to buy multiple items and the store proc process the whole things and nsert all the necessary information in the Sales.OrderHeader

  • Black line on Retina display

    Dear support community, today I realized a fine black line on the left side (Portrait, home button down) of the retina display of my new iPad. I´ve never seen it before. Is it normal/standard? Or how can I get rid of it? Best regards, Supwolf

  • Unit of measurement : VBRP-VRKME

    Hi all, The Unit of Measurement field is VBRP-VRKME in my scenario. Now the problem is that it is showing the values in german language but if i double click on the line item , the same field is shown in english language. In my internal table only  t

  • Having troubles setting up home networking and cant locate comcast isp # and other related info neccessary to do so

    please forgive my computer illiteracy.. I'm trying to set up home networking to include my laptop, husband's i-pad and our mobile phones if possible. I need my internet options info (isp#, etc) and can't locate them