How to update UDF of sales order line of closed sales order header

Hello experts,
We are using SAP 8.81.313  PL 05  and we noticed that through SDK using businessobject SAPbobsCOM.BoObjectTypes.oOrders,  we can't update an user defined field on sales order line for a sales order with header closed.
calling the method  Update()   it returns 0  but actually the table field  was not changed !
Also we noticed that It's possible to make an update of UDF of delivery line for a delivery with header closed.
I don't understand why.
Is it a bug or the expected behavior ?
Our customer needs to change some UDF of sales order line even when the order header is CLOSED.
Please help me.
Many thanks for your time.
Best regards
Andrea

Hi Elio,
Yes from UI it's the expected behavior but through DI API  I could update an user defined field of sales order line even if the LineStatus is equal to "C" (Closed) but only if the order header is not closed.
Regards
Andrea

Similar Messages

  • Import new sales order line in existing sales order

    Hi All,
    I want to import new sales order line in existing sales order using these open Interface tables or APIs.
    I did some test but the import request always give me the error message:
    You are trying to insert an existing order or update an order that does not exist. Please enter a correct operation code.
    Help..
    BR,
    Edited by: user7993358 on 2011/5/26 下午 8:48

    Hi,
    The script available in Oracle Note 746796.1 may be of help with your troubleshooting.
    Cheers,
    Arun

  • How to release Stock blocked against deleted line items from  Sales order.

    We have Scenario as follows.
    Sales order made for  items available in stock.  Deleted few lineitems from sales order balance items delivered and invoiced. Sales cycle is complete in all sense.
    What we have noticed is when we are creating new sales order / Delivery for deleted items from above Sales order it shows deleted quantity is blocked against old sales order. These line items are no longer
    available in old sales order since it is deleted also it is not appearing in open sales order report (VA05).
    Overall stock available is same as quantity mentioned in deleted line item.
    In MD04 - Sales requirenment transaction it shows sales order / line item against which it is blocked.
                    i.e deleted line item.
    How to release these stock and make available for sales. Any standard process available ? or any other solutions
    Thanks & Regards,

    I got a solution for my question from other forum. for info
    Go to SE38 and enter program SDRQCR21 then execute...
    Enter line item which is blocked for sales order in MD04 and enter plant then check Data
    transfer box and uncheck other boxes... It will pop up information and click yes...
    You will get one report and Stock inconsistency will go off and then check it in MD04....
    regards

  • Adding Sales Order Lines repeating for all orders

    I have a C# program whereby I am trying to get Sales Orders from one database (source) and create them in another database (destination). I asked a question on how to set the current line and was helped.
    The only problem now is that for all Business Partners, the lines being added are all the same (i.e. with the same row numbers and details as the first Sales Order to be entered)
    Source database (TCount represents the number of lines in the document & the DocNum each separate sales order)
    Destination database (compare columns with above)
    As you can see the rows of Source docnum 6 are repeated in the destination table always
    How can I fix it so that it adds the sales orders properly? My code snippet below:
    unaddedSOs = sList.Except(dList).ToList();
                // Add the Sales Orders that are missing to destination database
                SAPbobsCOM.Documents sboSO = (SAPbobsCOM.Documents)oCompanyDestination.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders);
                if (unaddedSOs.Count > 0)
                    // Loop through unadded Sales Orders
                    foreach (var item in unaddedSOs)
                        // Set properties of the Sales Order object
                        sboSO.CardCode = item.cardCode;
                        sboSO.CardName = item.cardName;
                        sboSO.DocDate = item.docDate;
                        sboSO.DocDueDate = item.docDueDate;
                        // Add Sales Order Document Lines
                        SAPbobsCOM.Recordset rsLines = oCompanySource.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
                        // Get Sales Orders from source database                   
                        rsLines.DoQuery("SELECT ItemCode, Quantity, Price FROM RDR1 WHERE DocEntry = '" + item.docNum + "'");
                        rsLines.MoveFirst();
                        if (rsLines.RecordCount > 0)
                            int row = 0;
                            while (!rsLines.EoF)
                                sboSO.Lines.SetCurrentLine(row);
                                sboSO.Lines.ItemCode = rsLines.Fields.Item("ItemCode").Value;
                                sboSO.Lines.Quantity = rsLines.Fields.Item("Quantity").Value;
                                sboSO.Lines.Price = rsLines.Fields.Item("Price").Value;
                                sboSO.Lines.Add();
                                rsLines.MoveNext();
                                row++;
                        // Try to add the Sales Order to the database        
                        int lRetCode = sboSO.Add();
                        if (lRetCode != 0)
                            int temp_int = lErrorCode;
                            string temp_string = sErrorMsg;
                            oCompanyDestination.GetLastError(out temp_int, out temp_string);
                            // Incase adding a Sales Order failed
                            if (lErrorCode != -4006)
                                // Display error message
                                MessageBox.Show(lErrorCode + " " + sErrorMsg);
                MessageBox.Show("Syncing Complete!!!");
    Any help appreciated,
    Regards Kinyanjui

    Hi Kinyanjui,
    Are you using the same SO for all unadded orders?
    unaddedSOs = sList.Except(dList).ToList();
    // Add the Sales Orders that are missing to destination database
    if (unaddedSOs.Count > 0)
        // Loop through unadded Sales Orders
        foreach (var item in unaddedSOs)
            SAPbobsCOM.Documents sboSO = (SAPbobsCOM.Documents)oCompanyDestination.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders);
            // Set properties of the Sales Order object
            sboSO.CardCode = item.cardCode;
            sboSO.CardName = item.cardName;
            sboSO.DocDate = item.docDate;
            sboSO.DocDueDate = item.docDueDate;
            // Add Sales Order Document Lines
            SAPbobsCOM.Recordset rsLines = oCompanySource.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
            // Get Sales Orders from source database               
            rsLines.DoQuery("SELECT ItemCode, Quantity, Price FROM RDR1 WHERE DocEntry = '" + item.docNum + "'");
            rsLines.MoveFirst();
            if (rsLines.RecordCount > 0)
                int row = 0;
                while (!rsLines.EoF)
                    sboSO.Lines.SetCurrentLine(row);
                    sboSO.Lines.ItemCode = rsLines.Fields.Item("ItemCode").Value;
                    sboSO.Lines.Quantity = rsLines.Fields.Item("Quantity").Value;
                    sboSO.Lines.Price = rsLines.Fields.Item("Price").Value;
                    sboSO.Lines.Add();
                    rsLines.MoveNext();
                    row++;
            // Try to add the Sales Order to the database     
            int lRetCode = sboSO.Add();
            if (lRetCode != 0)
                int temp_int = lErrorCode;
                string temp_string = sErrorMsg;
                oCompanyDestination.GetLastError(out temp_int, out temp_string);
                // Incase adding a Sales Order failed
                if (lErrorCode != -4006)
                    // Display error message
                    MessageBox.Show(lErrorCode + " " + sErrorMsg);
            Marshal.ReleaseComObject(sboSO);
            GC.Collect();
    MessageBox.Show("Syncing Complete!!!");
    Best regards,
    Pedro Magueija

  • How to update UDF in OID11g(OIM 11g configured with LDAP SYNC)

    Hi All,
    I have configured OIM11g with LDAP SYNC and it is working fine. i have added some UDF on the user creation form and the same attributes has been created on OID as well. Now, when i create users on OIM with these custom attributes the values are not getting updated on OID resource, can anyone please let me know how to update these attributes on OID?
    Thanks in advance,

    to Update a UDF you must assign a copy value adpter in Lookup.USR_PROCESS_TRIGGERS(design console / lookup definition)
    eg.
    CODE --------------------------DECODE
    USR_UDF_MYATTR1----- Change MYATTR1
    USR_UDF_MYATTR2----- Change MYATTR2
    Edited by: Lighting Cui on 2011-8-3 上午12:25

  • Back order line in transact move order form , drived the inventory negative

    Hi,
    I had problem with transacting some lines in several move orders (it was stuck and giving error each time I tried to transact or delete from view update allocation –> delete line)
    In order to cancel these lines to proceed the manufacturing process I back ordered those lines by:
    Inventory super user - > move orders - > transact move order - > tools - > back order line
    Note that the move orders type was Manufacturing Pick
    Now I noticed that this drives the WIP subinv Negative for those items .
    So what is the problem and how can I solve it?
    Thank you
    Edited by: Ahmed.Abbas on Apr 16, 2011 2:39 AM

    hi,
    The problem was in the interface managers (Material transaction , Move transaction ) were inactive , i launched them
    Review note 141493.1 in metalink to know how.
    I also deleted the pending transactions with errors from mtl_material_transactions_temp and mtl_transaction_lots_temp ( the items were lot control ) .
    Thats all :)

  • Service Order Lines Print in Descending Order on Invoice

    When printing a service order invoice with multiple lines, the output for the invoice lists the order lines in descending order. Is there a way to change this so that the lines print in the same order? i.e (lines 1,2,3 print 3,2,1 and we want them to print 1,2,3)

    Hi
    See Note 646563 - Sorting of billing items according to characteristics
    Regards
    Eduardo

  • How to get the texts for each line item for Sales order in a smartform

    I'm createing a smart form in which i need to display certain texts for each line item of a sales order. How can i get those??
    I'm trying with the table STXH and FM read_text... but i'm not clear how and what i'm getting... can anybody pls help me.....

    Hi There,
    But then i will be getting only the value. i want to link that against the particular material of the Purchase Order.
    Like for ex:
    PO No.  Material Code        Line Item        Basic        Excise       Tax       Inv Value
    0000001 5000251                010               100           16         4.64      120.64
    0000001 5000252                020               200           32         9.28      241.28
    Can u help me on this?
    Regards,
    Jitesh

  • How to update pick up date (VBAK-ABHOD) field in sales order

    I am creating sales orders using BAPI_SALESORDER_CREATEFROMDAT2 but it is not updating VBAK-ABHOD field i .e pick up date. Is there any FM which updates the pick up date VBAK-ABHOD also.
    I need to update pick up date for a special type of sales orders (Delivery orders) which are created in reference to schedule agreement.
    Is there any other way we can update pick up date. My last option is BDC but donot want to use it.
    Thanks in Advance.
    Rajesh.

    Hi Rajesh,
    You can not find any field in BAPI Change Or Create for sales order even header change BADI is for SAP Modification only. The best way to code in form USEREXIT_MOVE_FIELD_TO_VBAP  in MV45AFZZ, orelse you can use CALL TRANSACTION Method.
    Please let me know if you have any issues.
    Thanks and regards,

  • How to Update the New Condition values for list of sales orders

    Hi
    Client requirement is they have set of old Sales Orders to be executed. But the material prices have been revised in the meantime. Now they want to update the current prices in the sales order before proceeding further.

    Hi,
    Though Lakshmi suggested you the right option, it may not be carried out for Sales Documents in random and will be much suited for Sales Documents with continuous sequence like 00010, 00011, 00012, 00013, etc.
    If you want to New Pricing to be carried out for Specific Lists of documents like 00010, 00017, 00043, 00057, etc, then you can do by following option:
    Go to Transaction "MASS", Select the Table - VBAK and Field - PRSTD and proceed by entering the Sales Documents Lists to carry out New Pricing.
    Hope this will be helpful to you.
    Rgds,

  • How to update "profit center for billing"(VBAP-PCTRF) for sales order.

    Now, we need to bring "profit center for billing" in sales order to correspondence with meterial master, while BAPI "BAPI_SALESORDER_CHANGE" contain not this field, is there any way to achieve except modify database table directly.
    Thanks!

    Hello,
    Pay attention with BAPIs in SAP, they often use different names as input parameters as the actual fieldnames.
    In your example you can use the BAPI BAPI_SALESORDER_CHANGE.
    You have to check the parameter ORDER_ITEM_IN (table) with field PROFIT_CTR.
    This will correspond with the field VBAP-PCTRF that you want to update.
    You will also have to use the table ORDER_ITEM_INX of the BAPI and flag your field (PROFIT_CTR) with an 'X' in order to update it in the database.
    Always use the RETURN (table) parameter from the BAPI to see what the result is of your update.
    Success.
    Wim

  • How to update UDF based upon the row level dimensions.

    Hello Experts,
    I have made 4 new udf at Sales Order.  Its displaying at Righthand side under General Category.
    Now at row level im entering item detail, and other things with 4 profit center vaues.
    So i want that if i enter value in those 4 proft center in row level then it should automatically update those 4 udf with that value.
    It always happen in Add mode of SO, if SO open in update mode then i can update those udf with other values also, which can be differ then row level profit center values.
    If we need to create any trigger or any query for that, then guide me for that.
    Regards,

    Hi Chintesh,
    You can use the option of changing value when the exising column value changes. (also check the option refersh only option)
    pls revert in case more help.
    Regards,
    Datta Kharat

  • Queries for Open Sales Order Lines and Open Purchase Order Lines

    Experts,
    Forgive me if these have been addressed elsewhere but I can't find them.  I'd like to create two queries to use as Alerts as follows:
    1.  Query of open lines in Sales Orders that are more than two weeks old
    2.  Query of open lines in Purchase Orders that are more than 2 days old
    Thanks in advance for your help.
    Steve

    Hi Steve,
    A couple of query templates you can use for your alerts are as follows:
    Purchase Orders
    SELECT T0.\[DocNum\], T0.\[DocDate\], T0.\[DocDueDate\], T0.\[CardCode\], T0.\[CardName\], T1.\[ItemCode\], T1.\[Dscription\], T1.\[Quantity\], T1.\[OpenQty\], T1.\[Price\] FROM OPOR T0  INNER JOIN POR1 T1 ON T0.DocEntry = T1.DocEntry WHERE T0.\[DocDueDate\] < (getdate() -2) AND  T1.\[LineStatus\] = 'O'
    Sales Orders
    SELECT T0.\[DocNum\], T0.\[DocDate\], T0.\[DocDueDate\], T0.\[CardCode\], T0.\[CardName\], T1.\[ItemCode\], T1.\[Dscription\], T1.\[Quantity\], T1.\[OpenQty\], T1.\[Price\] FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry WHERE T0.\[DocDueDate\] < (getdate() -14) AND  T1.\[LineStatus\] = 'O'
    You can change the SELECT section to remove some of the columns or add extra columns if need be.  Once your happy with the query you can attach it to an alert and set the frequency.
    Regards,
    Adrian

  • How to reprocess those Order (& Line) Status is Entered Orders

    We are fairly new to Oracle Apps.
    We process Sales order via backend API. There are some Orders created but have ENTERED status. In Oracle Apps, those orders' Schedule Ship Date is BLANK.
    Will the Schedule Ship Date automatically fill in later and send the order to BOOK status directly?
    Or we will have to reprocess those Orders via API again?
    (Our goal was to have the Order directly go to BOOKED status.)
    And Where can I look into and find out how the process was designed?
    Thank you very much for any advise.

    I am not sure whether you trying to bring in (import) the orders in the booked status or bringing them in entered and trying to book them later using some other means. Also it depends on whether you are using deferred booking (have to run background engine) or online booking.
    If you are bringing these orders in BOOKED status in the API the only reason I suspect is that the workflow behind these orders is not even started. Scheduled Ship Date has no bearing on booking (unless you have a processing constraint that says not to book the order unless scheduled ship date is there).
    To start with I will check whether there are rows in the table (wf_item_activity_statuses for the item_type ='OEOH' and item_key=to_char(order_header_id)) or check the workflow using either OM screen against the order or using workflow admin responsibility.
    Thanks
    Nagamohan

  • How to change a condition price in line service of Purchase Order

    People,
    we have to do the following development in Purchase Order (ME21N, ME22N, ME23N) :
    We have a developed screen in Purchase Order header, where the user provides some information. As a result, this information must be transfered to line service, under a certain condition price. Is it possible? I checked we can "put" the value using a field symbol to (SAPLMLSP)TKOMV[] internal table.
    But I believe this is not the best option. Do you have an idea?
    Thanks a lot!

    Hi,
    I can see you have couple of posts regarding Service Line Condition Price. Did you find a way to change them?
    I'm currently facing similar situation, and still debugging to find out possible solutions.
    Thanks,

Maybe you are looking for

  • Unable to bluetooth from my mobile to my macbook pro

    Im trying to send a picture, it finds the macbook fine, syncs up ok, ask me to choose a key, I choose my usual 4 digit number and click continue, the macbook asks for me to enter the pin, it thinks then says its paired properly, my phone however say

  • Code formatting made thing worse

    After CTRL+ALT+L (Code Reformat) in JDeveloper 11g, things got worse: Eg.: http://i.imgur.com/pEKtS.png Normally it should like this (at least this is how other IDEs are reformatting code): http://imgur.com/MRSW0 or this: http://i.imgur.com/Dkyry.png

  • BI data widget settings

    Once I complete my yahoo widgets instalation, I downloaded Prakash dargi sample widget from SDN, then I want use the same as my templet , so I right clicked on sample widget and seleted report icon,  then its asking about below detalis Abap Host ? Ja

  • Droid X compatibility with MS Outlook e-mail, calendar, and contacts?

    Hey all, I originally got into the Smart phone world with a Palm and have to admit that I loved the fact that i was able to stay 100% in wireless sync with my work e-mails, schedule, and contacts on Outlook.   If I added an appointment to my calendar

  • All of a sudden my keyboard won't type.

    All of a sudden my keyboard won't type.  This happened before and it was just something that I hit accidentally that turned off the keyboard.  Can't remember how to fix it.  It was very simple, like pressing a couple keys and it worked.