/DSD/SL_COCKPIT - Change the Reference in the sales order items

The requirement is to set each sales order items reference field (IHREZ) to a derived value when generating the settlement document. i want to know if anyone has done something like this before and what would be the best way of going about it?

Thanks for the replies.
@ A.L.V Ramana,
Yes they all have confirmed qty. The one thing I noticed is that only the first item is being saved to table VBBE from which MD04 is getting sa sales documents. Is there any condition that must be met in order for this table to be filled except that if the item has reason for rejection or does not have confirmed qty?
@ Anirudh.vb
Thanks for the suggestion but the users wants a real time update on MD04.
Best regards,
Andre

Similar Messages

  • Regarding changing of configuration data of Sales Order/item

    Hi,
    I have taken configuration data of sales order/item from VC_I_GET_CONFIGURATION function module, i should change some of the data and save them back,
    Can any one provide the function module name to save the configuration data in SAP sytem,
    Thanks in advance,
    With regards,
    P.Prasanth.

    Try with Function module
    CE_C_PROCESSING.also you can use
    CE_I_SET_CONFIGURATION
    CUCB_CHANGE_CONFIGURATION
    CUD0_CONFIGURATION_TO_DB

  • Updating the User Status in Sales Order Item

    Dear Gurus,
    Iam trying to update the User Status on the SO item using STATUS_CHANGE_EXTERN function module and the status is successfully getting updated.
    But the problem is if Iam updating the status it has to delete the Purchase Requisition assgined to it, which is not happening.. whereas when Iam manually changing the Status, the PR is getting deleted.. Can anyone suggest some other function module or some other way of doing it other than BDC?
    Best Regards,
    Sreenivas.

    Hi ,
    I am also need to update the Item user status. Could you please provide me the logic for the FM 'STATUS_CHANGE_EXTERN'. And also let me know the where we need to write the logic in VA01/VA02.
    It would be helpful me a lot.
    Thanks
    Srihari.

  • Sales order item data & sales order schedule data

    Hello,
    I have a Sales Orders cube which is pulling data from two DSOs (one for sales order item data and the other for sales order schedule data). The common fields between these two DSOs is the Sales Order number but in my cube I have dual entries for each Sales Order document (item and schedule info).
    Example of how the data looks now:
    Sales Order . . Item Cat. . . Article . . . Net Price . . . Delivery . . . Act GI Date
    1. . . . . . . . . ...TAN. . . . . ABC123. . . .10
    1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 . . . . . . . . 01/01/2000
    2. . . . . . . . . ...TAN. . . . . CBA321. . . .15
    2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2 . . . . . . . . 01/02/2000
    How do I merge the data on the Sales Order number in the cube so it looks like below?
    Sales Order . . Item Cat. . . Article . . . Net Price . . . Delivery . . . Act GI Date
    1. . . . . . . . . ...TAN. . . . . ABC123. . . .10 . . . . . . . . . .1 . . . . . . . . 01/01/2000
    2. . . . . . . . . ...TAN. . . . . CBA321. . . .15 . . . . . . . . . .2 . . . . . . . . 01/02/2000
    Many thanks,
    Matt

    > Hello,
    >
    > I have a Sales Orders cube which is pulling data from
    > two DSOs (one for sales order item data and the other
    > for sales order schedule data). The common fields
    > between these two DSOs is the Sales Order number but
    > in my cube I have dual entries for each Sales Order
    > document (item and schedule info).
    >
    Two previous remarks:
    1) If you need to report on very detailed data consider doing an info-set joining both datastores. 2 reasons why:
    - not a good idea to report on very detailed information (sales order, GI dates) on cube level, if you have a scenario with lots of data. You end up with big dimension tables a poor report times;
    - there are better alternatives, like drill-through from cube query to DS query with report to report interface or Datastore-based reporting...so...
    With this solution you do not need to change the data model, I think, but test to be sure. See if the reporting times are acceptable. If not...
    2) First confirm your requirements, because what you show in your example as "to-be" have details that do not make sense, probably..
    - if you have more that one schedule line for each item then you would have many times the item information like material/price;
    - if not or if you could cope with that, then you can consider:
    2.1) create a new DS that agregattes from the previous on, with the same key of sales order item; do you have schedule line kf's? if so you these KF's should be additive in DS update; But if you may have more one scheduled line for 1 item then you have to decide what to do with the GI data (keep the last one posted, use code..) and other characteristics.
    2.2) update the shedule line datasource to the sales order item DS; same comments apply.
    2.3) maintain the missing data in the cube update rules from sheduled lines DS. Using code, refer to the respective item in the order item ODS. You would have to make sure that DS's data are correctly activated before updating the infocube.
    What solutions to choose?
    2.1 is better in terms of flexibility and architecture...because you could re-arrange the new DS to answer future needs, without loosing the 1st line DS's data;
    2.2 choose if data volumes and disk space are a concern...
    or
    2.3 it's OK, but i do not like it because of what explained in point 1...
    Message was edited by:
            Miguel Costa

  • Update Purchase order number in Sales order item level from inbound ORDCHG iDoc

    Hi Gurus,
    I want to update purchase order number from the iDoc 'ORDCHG' to sales order item level (sold to party purchase order number) i.e, VBAK-BSTKD.
    Which exit I need to use?  where to update?  Can you please help.
    Thank you in advance.
    Regards,
    San

    Finally Resolved the problem by writing 2 exits.
    one exit 'EXIT_SAPLVEDB_007'  for identify correct item in the sales order by updating the customer purchase order item number i.e., VBAP-POSEX.  if we update the POSEX field then it wont create new item instead, it will update the item which it is referring to .
    2nd exit for updating the purchase order number. 
    I have tried to pass the program name, screen number, field name, field value etc to bdcdata in the exit 'EXIT_SAPLVEDB_002'. but I observed that it is not going to that screen in the debugging.
    when I try E1EDP02 with QUALF '044' it will update ship-to party's purchase order number.  so to update ship-to party's purchase order number it is going to that screen. 
    so I have used that thing to update purchase order number in sold-to party's purchase order number.
    so when it is going that screen iam changing the field name 'VBKD-BSTKD_E' to 'VBKD-BSTKD' in bdcdata.  Then it is worked.
    This is the solution I found in my time.
    Any way it is solved.  Hope it will be helpful for others who will get this problem.

  • Function Module or BAPI to update Short text  for sales order item(vl02n)

    Hi All,
    I need to update the Short text for sales order item in vl02n transaction from an internal table with Delivery number and other relevant details .
    Does any body know any Function Module or BAPI which can accomplish this purpose .
    Or else writing BDC is the only option I have got ? .
    Please clarify .
    Thanking you in advance .
    With Regards,
    Suriya .

    Hi
    You can try using BAPI_SALESORDER_CHANGE if you want to change sales order
    Regards
    MD

  • Want to copy an entire sales order item and add it as a new item to same SO

    Hi,
      I want to copy an entire sales order item and add it to the same sales order with a different quantity. When I use the regular BDC and add it gets me only the default values for fields like Forwarding Agent etc. But doesnt actually copy any changes. Is there some standard SAP function module or some other mechanism I can use to exactly copy the original item along with all the changes values e.g pricing conditions, forwarding agent etc.
    Thank you for reading.

    How will this help me for copying an item? This function module is only useful for the following
    1. Delete the whole order
    2. Delete order items
    3. Change the order
    4. Change the configuration
    In order to change the order items I first need to know the items.
    Is there any function module which can read all the values in a sales order item, then I can pass them to BAPI_SALESORDER_CHANGE probably

  • How can i capture sales order items in C# and pass them to a BAPI?

    Hi everybody,
    here is another novice question for you.
    What control should i use in Visual Studio to allow the user to enter sales order items (material and qty) as a table on the screen and then put these items on a table and call the BAPI to create an order?.
    I've tried using a Datagrid and set the "edititemindex" as "1" but doesn't work.
    Any help will be greatly appretiated.
    thank you
    Javier ...

    Dear Todd,
    thanks for your reply. I'm using ASP. I tried a grid but i cannot seem to make it work, it doesn't appear at first because it's empty, i tried creating some blank rows but the same happens.
    The other thing i tried just to test is to create a row on the table "partners" to pass the needed "AG" (sold to party) and its number and the BAPI keeps returning an error "Please enter Sold ot or Ship to party". Like if the table was empty. Is there any special way to send a table to a BAPI ?. I'm sending it by ref, and i'm creating the record by first creating a structure, filling it an then calling the ADD method of the table and passing the structure. I'm i missing something here?
    Please Help, it's been days with this problem,
    I'll appreatiate it very much
    Best regards and have a great day.
    Javier ..

  • Sales order costing - tracking of actual costs at sales order item level

    Hi
    We are going with sales order costing for services
    Service material is non-valuated hence the scenario is non-valuated sales order stock
    PP module is not implemented.
    I am having following questions
    1. How to track the actual costs at sales order item level? Is Internal order/CO production order is required to be created for the same?
    2. Can I do activity confirmations directly from cost center to sales order item.
    3. Can Raw material is issued directly against sales order item.
    4. Is Sales order is a real or statistical account assignment object?

    dear friend,
    please look here:
    http://help.sap.com/saphelp_47x200/helpdata/EN/42/d7248ab27111d19e9a080009b0db33/frameset.htm
    http://help.sap.com/saphelp_47x200/helpdata/EN/90/ba6cfb446711d189420000e829fbbd/frameset.htm
    reagrds,

  • Duplicate planned order is generated with  one sales order item.

    dear :
    when the production order is confirmed with sales order item.the other new planned order is generated.
    the   requiremet quantity of sales order item  is  1,but the custstock  is 2 .display exception:26. in md04.
    please help me analyze it .
    best regards.

    Hi
    Please check rescheduling horizon in OPPQ(by default it would be 100).
    May be you would have shifted the dates of production order after converting from planned order which had crossed rescheduled horizon. This would generate additional planned order to maintain initial dates.
    If this is the case, increase Rescheduling horizon.
    Regards,
    Krishna Mohan

  • Value of NET in Sales Order item (Pricing)

    Hi,
    I have created a Price correction order. Where I put the corrected price and all the calculations happen on the entered corrected price. Like the discounts and taxes.
    All the calculations in the Pricing is perfect.
    But the value in Net for the line item is calculating incorrect value.
    For e.g. If Corrected price is 100 and the Net value for this is 60 (including discounts and taxes). Then the value in Net in the Sales order will show the Value (100 + 60) = 160.
    All the calculations in the Pricing procedure are perfect.
    Please help me with this issue, How the value is NET (Sales order item) is calulated. Is this associated with any routine.
    Thanks and regards,
    Sheetal

    Hi,
    NET will be  Prices + Surcharges - Discount.
    so, see the discounts and surcharges in your order.
    And, please give all the condition type and corresponding rates in the next post, so that i can be more helpful.
    thank you

  • How to enable GOS at sales order item

    Hi Experts,
    I have a requirement where I have to provide the customer an option to see the workflow overview at sales order item level (using Generic Object Services).
    I have developed a class based custom workflow for sales order approval and wish to intergrate GOS in VA02/VA03 at item level and not header level. I know that this is possible at header level using Business Object 2032. But I wish to know if this is possible at item level and that too in a class based workflow approach.
    Please provide your valuable suggestions.
    Thanks,
    Ajay

    Hi Janos,
    Thanks a lot for your reply. The breakpoint wasn't triggered in FM SUSR_USER_LOGONDATA_GET. Please check if the steps I followed are correct.
    1. Set external breakpoint in the FM SUSR_USER_LOGONDATA_GET.
    2. Run transaction VA02 for an order pending approval.
    Am I missing something here ? Do I need any authorization ?
    Thanks,
    Ajay

  • Partner Function- Sales Order item level

    Hi Gurus,
    I want to assigne Partner function -Employee responsible at sales order item level.
    i did the configuration settings and i am able to assigne the employee numner at sales order item level but i am not able to assigne partner function-employee resp more than 1. i want to assigne N number partner function- Emp Resp.
    kindly tell me the p

    Hi sumith
    As you want to assign N number of employees at item level . first of all go to IMG->sales and distribution ->basic functions->partner determination procedure->partner determination procedure at item level
    While doing partner determination procedure at item level don't check the boxes when you assign to your partner determination procedure. and just assign the sales  Employee partner function apart from the standard partner functions.(SP,SH,BP,PY).
    Now when you create the sales order and manually you can assign the sales employee number for all items.
    Regards
    Srinath

  • Wrong short text for sales order item

    Hi guys,
    I have an issue for the short text for sales order item. It is werid that I get the different short text depends on how we enter the material. If we only enter the material #, we get the short text for sales order item from material master data. If we enter the material #, plant and storage location, we get the short text for sales order item from customer material infor record. However, the customer material infor record is only maintained for inter-compnay transaction. System should not pick it for third-party transaction.
    I found a code in FV45PFAP_VBAP_FUELLEN:
    Bei Primärbedarfen ist MAAPV-ARKTX nicht relevant
        if vbak-vbtyp ne vbtyp_pbed.
          vbap-arktx = maapv-arktx.
        endif.
    Kundenmatinfo hat höhere Priorität
        if knmt-postx ne space.
          vbap-arktx = knmt-postx.
        endif.
        if da_arktx ne space and
           svbap-tabix = 0 and
           vbapin-matnr = vbap-matnr.
          vbap-arktx = da_arktx.
        endif.
    But it is nothing customized. Who can tell me what is wrong here?
    Thanks,
    DL

    Hi,
    Text coming from source (MMR, CMIR etc.) is being "pulled" via the access sequence. Check the Text analysis in your sales order in Tab Texts, at item category level.

  • Customer project settlement to sales order item

    Hi experts
    I wish to settlement the customer project to sales order item. Accordingly the settlement profile is defined.
    However, w.r.t. settlement strategy, what is the relevant account assignement category?
    It cantains the eligible values:
    AAC                  Description
    -           No receiver
    1           Profitability segment
    2           Requesting cost center
    3           Responsible cost center
    4           Copy rule from superior object
    Please suggest the correct setting.
    warm regards
    ramSiva

    use BADI - WBS_SETTLEMENT_RULE
    this BADI allows you to generate settlement rule as you want

Maybe you are looking for

  • Error while running the page from Jdeveloper

    Hello All, I am running the pages from my Jdeveloper but it is throwing some exception which is related to cache on the local server.Kindly help me out as i am not able to run even old pages which were running earlier.Kindly what changes on the serve

  • EMac to iMac - How do I transfer data when USB ports don't work?

    I just bought a new iMac to replace my old eMac and I need to transfer the data from the eMac to the iMac - here's the problem - the USB ports on the eMac aren't working, the devices work fine like keyboard & mouse but the USB ports are dead. I can't

  • IPod Touch 4th Generation, can you use without downloading iTunes to your computer

    My son got an iPod Touch for Christmas.  When charged and turned on, it only shows a picture of a cord and the iTunes logo.  We've been trying to download iTunes to my computer (asked question over at iTunes forum as keep receiving 'iTunesSetup.exe i

  • PDF to word document

    On my adobe reader on my pic I am able to sign in and convert PDF files to word documents in order to change them.  I have paid for this upgrade and was wondering how I can go about using this function on my iPad.

  • Cash sales billing i

    Hi, I raised the cash sale and it given the Doc no also but when i gone for billing in processing status it is telling Not processed How can i do the billing for this ? same msg is also coming for rush order