Sales of an item exit of a bill of materials

When I sell an item defined as a bill of materials in a Order document (BOM Type of my DocumentLine= Sales), SBO automatically add to my documents lines the childs items (BOM Type=Chil Item)
When I generate the same Order via my interface (DI 6.5) there's no error but the documents lines childs are not generated and the TreeType property of Item is not defined as  a BoItemTreeTypes.iSalesTree
How can I generate the same documents lines with the DI ???
Need help....

Hello Serge,
I have tested and i assume they will not be automatically filled up. It would be a good idea if you open a message to our support asking for this feature.
For the moment try using this code. This code should come after you add the main Item Code (first line of the sales order)
I filled the BOM lines with the following:
Dim oTree As SAPbobsCOM.ProductTrees
Dim oTreeLines As SAPbobsCOM.ProductTrees_Lines
Dim l_long As Long
Dim i As Integer
oTree = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oProductTrees)
   If oTree.GetByKey("C7689") Then
      oTreeLines = oTree.Items()
      l_long = oTreeLines.Count
          If l_long > 0 Then
             For i = 0 To l_long - 1
                 oSalesLines.Add()
                 oTreeLines.SetCurrentLine(i)
              oSalesLines.ItemCode = oTreeLines.ItemCode
              Next
          End If
     End If
l_retcode = oSalesOrder.Add
... error handling ...
I hope it helps.
Regards,
Felipe

Similar Messages

  • Third Party GRN Posting Date to be Copied to Sales Order Line item Billing Date

    Hello Experts
    I have a client requirement where in they want to bill line items in the sales order ( third party process ) to the end customer in sync with the GRN posting dates happened in the PO
    For EG if GRN happened on 1st July 2014 then Billing Date should come in as 31st July 2014 so when they execute VF04 giving from and to dates as 1st july to 31st corresponding sales order can be invoiced
    Actual problem is for suppose if i create a sales order in the month of june say 26th basing on the factory calendar setting and invoicing list maintained in the customer master system defaults the billing date to 30th June 2014 , and the same when user runs VF04 from 1st June to 30th June this sales order shows as due and mistakenly end user invoices the customer ( whereas logical GR would have only received in July 1st )
    My requirement is similar to below threads but i am unable to find answer how to copy GR Posting date to Billing Date of the sales order line item
    use GR Doc date as billing date
    3rd party sales process (w/o ship notif) - Billing

    Hi Lakshmipathi ji,
    As my requirement is to update the billing date at the sales order line item level , As a process user goes in executes VF04
    For Ex
    Sales Order Created Date is 1st June 2014 then System Defaults Billing Date at line item to 30th June 2014
    Now when i do GRN suppose on 1st July 2014 for that line item , system should trigger a code where in check the posting date of the GRN and override the same in the Biiling Date field of the sales order line item
    So when VF04 is run for a month All the GRN which are recieved in the month of July are invoiced in July
    Please share me your thoughts do we need to check any userexits from MM side which reads the posting date of GRN and then copies in to my third party sales order
    Regards
    Hiba

  • Customer exit for tab 'Billing Plan' at item level in VA02

    Hi gurus,
    is there any customer or user exit for tab 'billing plan' in va02 where we find other tab like SALE A, SALES B, SHIPPING etc, i allready tried mv45afzz (userexit_field_modification) and exit V60F0001( Cmod). the requirement is to suppress field NET VALUE for certain user n based upon sale order type. so i cant use transaction variant.
      well i found one include "RV60FUS4" which contain form 'userexit_field_modification' but i dont know how to change the code n through which user exit.
    any reply will be awarded.
    thanks

    well include "RV60FUS4" which contain form 'userexit_field_modification' worked with development key from sap.
    thanks

  • Sales Order Line item status with Resource Related Billing

    Hi
    The Resource related billing is done based on the costs accumulated on account assigned WBS Element. The WBS Element system status is set 'Finally Billed'. The overall status of Sales Order line item is still 'open' and does show up in 'Open Order' reports.
    SAP vide their note 439288 recommends running report SDVBUK00 to correct the sales Order item status. However this note is applicable only upto 4.6C. Our system in ECC 6.0. We tried running this report and did not get desired results. We checked the program and discovered that the corrections suggested as per above note, are not available.
    Is there any new SAP note applicable for ECC 6.0 needs to be applied ? Or is there any other report needs to be run in case of ECC6.0?
    Thanks in advance
    with regards

    HI,
    Please raise message to SAP through service marketplace.
    Thanks,
    Vrajesh

  • Sales order line item user exit?

    Hi Folks,
    Can any one of you suggest me an user exit in sales order line item level?
    I want something which stops before/ or just after entering the quantity in the item level.
    We wanted to set up a issue which deals with rounding profile comming from CMIR record to take from Ship-to rather than standard Sold-to party functionality.
    Thanks a TON in advance.
    Praveen.

    Praveen,
    Check this post
    https://forums.sdn.sap.com/click.jspa?searchID=7098802&messageID=1674246
    Regards,
    Satish

  • User Exit to make changes in sales order line item data.

    Hi All,
    I need to know about user exit by whcih I can make changes in sales order line item details --> Account assignment tab --> Sales order no and line item no.
    I want to make changes so as to bring the active maintenance contract no and line item no here instead of sales order no and line item no. So whenever ( Va02 or Va03) we go to sales order line item and se the account assignment tab I should see the contract no there.
    Just let me know the USER EXIT to do the above changes.
    Points will be awarded.
    Regards,
    Satish.

    Hi,
    Please have a look at the following user exits...
    1. user exit_ save_document
    2. user exit_save_document_prepare
    Regards
    sankar

  • EXIT - Sales Order - Text Item

    After creating the invoice, I would like to hide the texts of the sales order's itens, so that it is impossible to change them. I think that are need to add some code to sales order save user exit, where? how do I do it?
    Miguel

    helo ,
    please be clear on ur question.

  • Revenue Recognition based on User Status of assigned Sales Order line item

    Dear Community members,
    We have requirement to recognize / de-recognize revenue posted to WBS for calculation of RA, based on the 'User status' of the assigned Sales Order line item.
    To elaborate requirement further -
    1) WBS Element - XXX - 10 ( with operative indicator - Plan/Bill/Account Assign)
    2) Sales Order(SO) Line Items assigned to the above WBS -
    - SO No -  123 Line Item 10 - Actual Rev - $ 300 - User Status - EXE (Meaning this work is in progress , partial payment received thus actual revenue for RA at WBS is 'Zero'
    - SO No -  124 Line Item 20 - Actual Rev - $ 400 - User Status - COMPL(Meaning this work is Complete , all payment received thus actual revenue for RA at WBS is $400
    - SO No -  125 Line Item 10 - Actual Rev - $ 800 - User Status - EXE (Meaning this work is in progress , partial payment received thus actual revenue for RA at WBS is 'Zero'
    As per WBS reports Actual Revenue posted to WBS XXX-10 is $ 1500 ( $300$400$800) , however since two SO line items ( SO 123 /line item 10 and SO 125 / line Item 10 ) are NOT having User status 'COMPLETE', the actual revenue posted by those line items $ 1100/- ($300 + 800)  should not be included as Actual Revenue for RA at WBS level.
    Thus Actual Revenue for RA at WBS XXX-10 should be $ 400 /- ( the revenue posted by SO 124/line item 20 which has user status as 'COMPLETE')
    How do above can be achieved?? Is there any standard solution for this?? Is any SAP Note available for this (I too am looking for one but not found any ) ?? do we need any enhancement , Customer exit etc
    Thanks in advance
    with regards

    Hi,
    Thanks. You are right that the 'Completed Contract Method' would defer revenue recognition. However, the status checked would be of the RA object (WBS Element in this case, as RA key is on WBS and RA is being calculated on the WBS).
    However, our requirement is to check the user status of the Sales Order Line items assigned to the WBS element and filter the revenues posted based on the active user status of individual Sales Order Line item.
    Please give you inputs.
    Thanks in advance
    With regards

  • User Exit regarding SD billing Document

    Hi Experts,
    I want several user exits of SD billing document.  The one is used to update Item condition when Billing document created, and the second is used to save to my add-on table before document saved.   Could you have any suggestions?
    Thanks.

    [User exits in sales document processing|http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/frameset.htm]

  • Sales Order Pricing User Exit Problem

    Hi,
    I am facing a problem related to coding in Sales Order pricing user exits. Scenario is as mentioned below:
    Based on Material Entered and Sold To in Sales Order, auto determination of a manual pricing condition happens. For doing this, coding has been done in USEREXIT_PRICING_PREPARE_TKOMP by changing XKOMV table. Auto determination of the manual price is happening properly.
    From Sales Overview Screen when user goes to the Conditions tab, Net Value is not getting calculated. When we navigate away to Schedule line tab and then come back to COnditions tab, Net Value is automatically getting calculated.
    AM i missing something in the coding part? As the data is getting populated automatically I guess some piece of code needs to be triggered. Can anyone shed some light into this.
    Thanks in advance,
    thunderans.

    Prabhu: After filling in XKOMV structure, I am calling FM PRICING. On doing this, the Sales Pricing is getting calculated but even then net value of order at header i.e VBAK-NETWR is not getting populated when we are in Sales Overview screen. When, I am getting into Conditions tab and coming back to Sales Overview screen, Net value is getting populated correctly. This portion of everything not getting populated at the same time is bothering me. The pricing conditon that I am  filling is a manual pricing condition.
    I put a breakpoint after FM PRICING which correctly populates XKOMV structure. How do I properly update Order Net Value in Sales Overview screen wihtout having to navigate to any other tab?
    Nicklas: I am looping at Order line within the user exit USEREXIT_PRICING_PREPARE_TKOMP and determining price. Once all line items are processed, I am using the FM PRICING for calculating Sales Prices.
    J@Y: Request to send me a bit more details into your approach.

  • Temporary invoice on sales order containing items with & without delivery

    Hi,
    I have a sales order which contains both items due to be billed on delivery and due to be billed without delivery.
    Could you please let me know how to create a temporary invoice on the basis of the order. The true/final invoice will work on the basis of the goods issue for the items on delivery and on the order for the other items.
    Thanks,

    Order & Delivery Related Billing depends on Item Category.First check these settings in VOV7.Now check the Copy Control settings in VTLA for Item Category relevant for Delivery Related Billing (F2).
    Now check in VTFA for Item Category relevant for Order Related Billing (F5).
    As per my understanding , you need the Final Invoice with both Line Items which could not be possible as Billing relevance is different for these two Items.
    Best Regards,
    Ankur

  • Change the Profit Center in Sales Order line item's Account assignment tab

    Hi Gurus,
    I need to change the Profit Center at Sales order Line item in Account Assignment Tab. Currently  The Profit center is coming from Material Master for the Line Item's Material as default but I have to change / overwrite  that.
    Can any body provide me how can i achive that means
    Any User exits, substitution or any thing ?
    I tried MV45AFZZ but i am not able to find out the right place where I can change COBL-PRCTR.
    Sony

    Hi
    There is perform which moves the values to VBAP field.
    This PRCTR field is stored in VBAP (i.e., SO line item table)
    USEREXIT_MOVE_FIELD_TO_VBAP
    Hope it works.
    VVR

  • Restrict deletion of sales order line items

    Hi,
    I need to restrict deleting of sales order line item, I think we can use the user exit, MV45AFZB, USEREXIT_CHECK_XVBAP_FOR_DELE.
    But when i set the flag to 'X', even though it does not delete at tht instance when the sales order save is clicked again the line item gets deleted.
    ANy idea , to prevent that?
    Thanks
    Keshi

    Hi Keshi,
    That is the correct exit, we are using the same without any problem. Just set US_EXIT  = CHARX.
    Regards,
    John.

  • Sales Analysis by Item Group (Monthly) - To include Sales Employee Name

    Hi,
    I have added Sales Employee Name in the Sales Analysis by Item Group (Monthly) report by A/R Invoices. I have added this under Repetitve Area Header0. However, the sales employee name showed in the preview is different than the criteria entered.  It seems that the report only the first Sales Employee Name in the report.
    Anyone have any idea? Thanks in advance
    Regards,
    MH

    That is a good question.  You have to find out any unique relationships between your Sales Employee and your sales analysis data if there is. Hope the help below can assist you:
    Relate to
    This option is relevant for special scenarios only and requires knowledge of SQL.
    This field is used for retrieving data related to key records found in tables other than the table linked as default to the current print template.
    A key record is a field used as a primary key in a certain table. This key record functions as the identifier of the record, and, therefore, it is required to retrieve any additional data related to it.
    Following is an example:
    e.g.If you need to print the name of a certain bank, which is not linked to the table used in the current print template, you must first create a Text field of Database source type using the required table and select a key record, such as Bank Code.
    Then, you need to create an additional Text field of Database source type. Select the table again, select the required column (such as Bank Name), and enter the unique ID of the field with the key record in the Relate to field.
    There might be two or more key records in the same table. In such a case, these two key records are both required for retrieving the data.
    Identical bank codes are used in many countries. If you need to print the name of a specific bank, you need to link it to a relevant country, in addition to its relevant bank code.
    You are currently working on a print template for Incoming Payments. However, you need to retrieve data (such as the business partner's bank name) linked to the key record Bank Code from the Bill of Exchange for Payment table, rather than from the Incoming Payments table.
    In the Relate to field, select the unique ID of the field containing the required key record. In this example, this is a Text field of Database source type containing Bill of Exchange for Payment in the Table field and BP Bank Country in the Column field. The drop-down list contains the unique IDs of all the fields that are situated in the same area as the current field.
    This link makes the system retrieve the Bank Code linked to the BP Bank Country field found in the Bill of Exchange for Payment table.

  • Item not relevant for Billing but still exist in Billing due list VF04

    Hi Experts,
    I am experiencing an issue where this is an STO scenario.
    The PO->DN->PGI->GR (Receiving plant) where there is no invoice required as its with the same company.
    However, I can see there is one Delivery still getting reflected in VF04 due list.
    Standard Delivery type NL has been used and already checked the item categoy relevance and its
    maintained as J ( Relevant for deliveries across EU countries.) I dont think so this was billed earlier as I had already checked the Deliveries created with same item category for past six months and they have not been billed.
    Is there any other settings that needed to be checked apart from item cateogry and verifying how the same combination of Delivery type and item category worked earlier?
    IBest Regards,
    Ramesh

    Dear Ramesh,
    You may be right that with the same item category settings, there were no billing item generated (with the billing indicator as J in your Item Category) earlier. But how now it is happenning the other way round.
    Here are the reasons:
    The outbound delivery is relevant for billing if: (YOUR PRESENT CASE)
    1. The Plants abroad active field is selected (found in Customizing under Financial Accounting -> Financial Accounting Global Settings -> Tax on Sales/Purchases -> Basic Settings -> Plants Abroad -> Activate Plants Abroad)
    2. Country of departure (country where the plant is located) and destination country (country where the ship-to party is located) need to be different EU countries.
    So, if you dont satisfy the above two conditions you will not get the billing item and that's what has happenned in your past 6 Months.
    Regards
    Edited by: SAP2020 on Nov 13, 2009 4:41 AM

Maybe you are looking for

  • Any way to disable quiz click boxes from a parent SWF?

    We've got a parent SWF that serves as a navigational shell, allowing users to move between different Captivate slides which are essentially embedded SWFs. Some of these SWFs are Captivate hot spot quizzes. We've run into a fairly significant issue -

  • Where Can I find a re download of acrobat 9 pro for mac??

    Anyone know where i can get another copy of this??

  • How to localize layout names

    I want to localize the names of "Trays" and "Top Menus" layouts that are displayed in the drop-down box in "My Profile" . I tried to translate the wwTraysLayoutLabel and wwTopMenusLayoutLabel in ww_strings.htm but this did not work. Do you have any i

  • Webservices endpoint url

    hi, I have a following scenario: Webclient-->PI 7.0-- > SAP ECC Using Sender Soap Adapter for connecting webclient Between PI 7.0 & sap ecc system it is proxies. A webclient sending a request details of customer number and Cutomer Description through

  • Share iCal among 3 macs...but, by using one file on a server

    I've read the other posts requesting a way to sync mutliple calendars. I want to do this but by maintaining ONE master calendar file somehow on a harddrive attached to my network. So no matter which computer that's attached to the network, I'd be abl