Order Line Items (hierarchy) automatic load.

Hello.
I need to know if I can reproduce an Order Line Items load by eScript.
The scenario is the following: when I go to Order and I create a Line Item, I can pick an applet, choose a Product from Catalog and confirm it. If the product I choosed is a complex product (i.e. a Bundle or a Promotion) all the related line items are automatically load.
I tried to reproduce the same behavior by eScript. I created a new record and I used the Pick() function to pick a promotion from catalog. In this second scenario only the Root is created (not the line items children).
Can I reproduce the same behavior by eScript?
Thank you.
Luigi.

Hi,
in eScript you need create a structure where you fill the Root Id's. Example:
Order Id Row Id: E-KAJ
Product A Row Id: 1-234
Component A Row Id: 2-AOT
Component B Row Id: A-BOR
Columns in table S_ORDER_ITEM
ORDER_ID PAR_ORDER_ITEM_ID ROOT_ORDER_ITEM_ID
Product A E-KAJ 1-234
Component A E-KAJ 1-234 1-234
Component B E-KAJ 1-234 1-234
Find the respectivies fields in BC "Order Entry - Line Items" and fill the fields using with base the example above.
Regards.

Similar Messages

  • Need to Split Sales Order Line Item in VA01

    Hi,
      I have a requirement in which i have to split an order line item for KMAT materail number. system popup configurable screen, here all the required characteristic values have to be selected as per the customer requirement.
    After entering all the required customer specific characteristic values, system determines batch automatically. If characteristic values of the Batch matches with the characteristic values of configurable screen selected in the sales order
    Here also we have to check the sales Order Quantity (VBAP u2013 KWMENG) and order Confirmed quantity (VBEP u2013 BMENG), if the both the quantities are not same, consider order has partially confirmed.
    If Order quantity is partially confirmed, check for the batches with the same characteristic values of the quotation configurable screen and if batch found, system has to create a one more line item and new batch has to be assigned to create line item.
    Reduce the order quantity equal to the confirmation quantity in the first line item.
    Create a new line item in the quotation, copy all the remaining unconfirmed quantity from the first line item and also copy all the characteristics and properties (item category, schedule line category, business data, item data, and requirement type) and assign the batch to the new line item. System does the availability check automatically and confirms.
    In another scenario system doesnu2019t find batch, in this case capable to promise has to trigger directly.
    Here we have to check the Order confirmed quantity, if confirmed quantity is equal to zero.
    Change the item category of the line item, due to which system determines different Requirement type and schedule line category.
    Based on the Requirement type system triggers the capable to promise.
    I would lke to know which is the suitable user eixt or BADI to split the line items and what all the tables or structures i need to populate in order to create a new line item successfully.
    I have seen many post in sdn but no body gives the right user exit name where i can add new line item.
    Regards,

    Hi Amit,
      Thanks for your reply. In this scenario configurable material is involved. And first Make to Stock scenario is executed to check any material with customer entered characteristics are avialable. If its so it will determine its batch and assigned the quantity.
    If zero quantity is assigned or no quantity is assigned then I have to trigger the Make to Order scenario for rest of unconfirmed quantities in order.
    I have check it in USEREXIT_MOVE_FIELD_TO_VBAP but it was of no use. I even tried in USEREXIT_CHECK_VBAP but still no result. I am not sure what all the tables and structures i need to populate there.
    Regards,

  • In Purchase Order Line item Maintaining Serial Numbers for Material Codes

    Dear Gurus,
    We have a business process in legacy system for Purchase Order like in PO line item, Material code with description, Quantity, unit of Measurement, Serial Number Start and Serial Number End is maintained, for example for Material code when we enter the data AXMLN00001 in Serial Number Start column, if the Qty 500 is maintained, by default system will calculate AXMLN00500 in Serial Number End column. 
    We understand that in standard SAP we donu2019t have this option of maintaining Serial Number Start and End in Purchase order Line item. Please let us know how this can be mapped and is it advisable to create two Z fields in EKPO table or else can we make any development.
    Suppose if this is not possible in SAP for PO then in Banks if we want to place a order for Cheque books how we can maintain Start and End Serial Numbers to print in cheque books.
    Also client is not agreeing to maintain manually Serial numbers in item text.
    regards,
    Dhanu

    Aamir,
    When the PO Item was created say for example Material had Valuation category "Y" and latter you wanted to change the category to "Y". Now system would have check for all open PO's etc...based on this you must have set Deletion Indicator to this Line Item to allow valuation category change in material master. Now when this Item got created in the table level (EKPO), system updates the valuation category "Y". Currently this valuation category is not active so it would not allow you to perform removal of deletion indicator as program cannot automatically nor you have an option to manually update the valuation category to this Item.
    Regards,
    Prasobh

  • Cannot reject/delete sales order line item due to del.date in 2210

    Hi all,
    not sure if anyone else had this issue already....
    Situation :
    Sales order line item entered with delivery date in 2210.    We would like to correct this order but can't....
    every time SAP issues error :
    Error determining posting period (info
    S008, variant GL, RC 3)               
    I believe this is because we haven't maintained our calendars yet for 2210 :-D
    Question : without us having to load/define the calendar...is there a utility/oss program which we can use to delete the line item, or reject it...or even update the delivery date?
    Thanks for your help!

    If the system pop ups the error message M2012, then please refer note 10891 or 37532.  If the error message number is different, please update the forum.
    thanks
    G. Lakshmipathi

  • VA05 report exectution  Excel format few line items gets automatically skip

    Dear,
    SAP support Team & Other team Members On SDN.
    As we are generating report from VA05 screen for retail sales order list, the report shows full required data but when the report is executed in Excel format few line items gets automatically skipped & further tried generated in TXT format the whole report get properly dragged.
    This problem is only in PRD Server, when i am teting the same in DEV Server it is properly Generated in EXCEL with Proper LINE ITEMS.
    Please kindly provide me with some Solution regarding the same.
    Warm Regards,
    Mohammed Hassan Naveed
    Deputy SAP Basis Consultant

    Hi,
    Have you tried using VA05N?

  • Deleting Purchase Order Line items

    Is it possible when you delete a purchase order line item using ME22n to have the corresponding purchase requisition line item marked as closed or deleted? 
    Currently when we delete the PO line item we get the message that the "Requisition quantity XXXX open again" .  We have purchase requisitions converting to purchase orders via ME59N on a schedule batch job,  so the req gets converted to a PO again if it is not deleted quick enough.

    Hi Gary,
    In MRP related PR to PO or without MRP also, whenever you convert a PR to PO and then delete an item from PO, the corresponding PR gets opened automatically - and its standard. This is logical also, because sometimes the person creating PR is different from the person creating PO. And If a PO item has been created synchronous to PR item, then its deletion must also be sysnchronous.
    I hope this answers your querry.
    Regards,
    HKV...

  • No cost booking against sales order+line item once accontng release is done

    Dear all,
    I want to stop all cost bookings against a sales order + line item once the accounting release for that item has been done.
    By cost booking i mean, all such transactions that are done for a sales order + line item that involve cost booking. Like, MB1A should not allow any goods issue against that sales order + item once accounting release is done.
    Is it possible to that in sales order? Like by using any status at item level.
    Please guide.
    regards
    SAPshed

    Hi Ajay,
    We have not kept automatic cost estimate marking during saving of sales order as costing dept wants  to confirm whether costing for the SO is correct or not.
    Hence we have to use CK51N.
    Now the problem is for any change in any line item of a sales order is changing the costing status from "VO" to "KA" for all line items of the given sales order in table KEKO.
    This is causing measure problem as production people are facing problem while making any change in production order as already there is a check put in CO02 that if cost estimate does not exist for underlying sales order, then change in production order should not be allowed.
    Similarly production order creation (converting planned order to production order) is getting held up.
    Costing user has to repeated run CK51N for all line items of a single sales order if there is any change in any single line item of the sales order.
    Hence pl. help and suggest as to what is to be done now.
    Regards
    Ratna

  • Purchase order line item block

    Hi,
    Need to understand in what circumstance Purchase order line item gets blocked automatically. I have a situation in which net price is 0.01 and line item has got blocked automatically. This is through conversion objects(using BAPI_PO_CREATE). When manually created this works fine. Where can i see this standard behavior in customization. Any additional inputs will be helpfull.
    Regards,
    Kishan

    A BAPI is just a program that cannot do anything if it does not get filled with data.
    How does it get the data? What is made with the data in a framework program before the BAPI is called? This is were you or you ABAPer has to start analyzing. Of course the BAPI is not changed, but the data has to be read from a source and need to be transferred to a internal table which is then transferred to the BAPI. This all happens in a program that is developed by a programmer. Or do you call the BAPI via SE37 ?
    SAP does not set an item block by itself, SAP gives you an error message and stops you from saving, or gives a warning message and you confirm that you read it and can continue.

  • VA01 Sales order (line items) and different Cost center assignment

    Hello gurus,
    im searching for solutions how to assign different cost center to sales order line items, but only thing that i found is the substitution (Using Substitution (GGB1) to change Cost Center assigned in (OKB9))
    Trying to do this i was unable to create something that could work, since there was no Logistic.
    Could somebody explain me the Line item in SO assignment to Different cost centers?
    I know alot about OKB9, VKOA and other transactions, but still cant find anything suitable to solve this issue
    Best regards
    Laurynas

    What i mean is that, on the end of every month we are gathering information for Statistical Key Figures (from Controlling) entering as CO document and then distributing the costs using KSV5 TC on Internal Orders according those entered statistical key figures.
    i.e. we got INCOME 1000000 from 10 internal order, which we distribute on even percentage parts like 10 cost center, each getting 10% of the income.
    I tried to create the SO, but the Profit center field, after i entered a number, was changed automatically into another.
    And the posting didnt reach Controlling and the assigned Cost center. I think it is a lack of configuration.
    Regards
    Laurynas

  • Multiple Payors for One Order Line item. Is it possible?

    Hello SD Gurus
    I am trying to see if SAP allows inputting multiple payors for each sales order line item? We have a requirements, where the net value at the line item level will be split up in 1 to 4 payors and then we need to generate the invoices seperately for each of the payors based upon the dollar amount allocated.
    If you have come across such scenario please let me know to accomodate such requirements.
    Thanks much
    Jai

    Hi Aj
    Thanks for your quick response. I was think on the same lines and you have confirmed that we will have to split the line into several lines on sales order.
    I am trying to do that now in our ECC box i.e item 10 with payer 1 and item 2 with payer 2. But as soon as I try to change the payer on item 2, i get the following error message which relates to credit management being active.
    I am assuming once we decativate CM, we should be good to go. PLease confirm. Also once its time for billing, will SAP automatically split the billing into different invoices per sales order line item based upon number of payers on the line items?
    PLease confirm your thoughts.
    Regards
    Jai

  • Sales Order Line item category not getting Re detemining Correctly

    Dear all,
                I need  help regarding the Sales order item category redetermination.
                we are having two item categories YNAE and YNAG and it contains schedule  line categories CP and CB ( i.e for item         category  YNAE schedule line category is CP and for item category YNAG schedule line category is CB),
    for YNAG Purchase Requisition is automatically created becz of functional setting on save and it is working fine.
    For every line item in sales order line item level item category YNAE will be determined by default as per functional settings.
             Now my requirement is that, if sales order line item doesn't contain 100% confirmed quantity, than i needs to change the default line item category YNAE to YNAG which i am trying to do it in USEREXIT_PRICING_PREPARE_TKOMP becz in this exit i am getting the values in XVBAP and XVBEP and  it is working fine .
             But schedule line category is not getting redetermined automatically what i mean is, if i change the item category to YNAG from YNAE in user exit corresponding schedule line category CB of YNAG is getting determined automatically at the schedule line level and if ichange the schedule line categories in XVBEP in exit USEREXIT_PRICING_PREPARE_TKOMP, changes are reflecting at the schedule line level but Purchase requisation is not getting created for schedule line on SAVE and its delivary dates are also not getting determined properly. If i press the option ATP check at the schedule line level than very things will getting corrected.
       I feel that i am not doing this in proper way, do u have any idea about how to redetermine item category. please let me know if u have any idea .
    Regards,
    Vaddepally Manoj

    USEREXIT_PRICING_PREPARE_TKOMP is the wrong location - that exit is for pricing communication preparation only.  Your primary location for item category determination is USEREXIT_SOURCE_DETERMINATION (MV45AFZB).  In your simple scenario, you could consider making an availability check at this point with some assumptions and then assign the item category accordingly.  Otherwise, you can re-assign item category and schedule line category in USEREXIT_MOVE_FIELD_TO_VBEP.  The exit is called once before ATP (for ATP-relevant schedule line categories) and once afterwards.  The call is recursive if you re-assign another ATP-relevant category.

  • Material Variant configuration in sales order line item from Ztable

    Hello Experts,
    we have configurable material and and creating sales order. from sales order line item if we goto configuration we can maintain variant configurations. My requirement is that when i click on configuration after selecting a line item i need to check ztable where i have material no and and relable text. if an entry exists i have to populate this relable text in one of the configuration filed. Can any one help how can i read and update configuration in sales order level and where to do this coding so that when i click on configuration the value from ztable populated in a field.
    Many thanks in advance.

    Hi Senthil,
    It is simple.
    When you create a characteristic which should have the value maintained in the Z table, go to the tab values. Here you have a push button called "Other Value check". Here you click this button and select the function module option. Now, in the window, you will have a place where you can mention the name of teh function module.
    You create a function module with the help of your developer to find out the text maintained in the Z table using teh rules you have in your mind and update that logic in the characteristic. In the earlier screen, you just have to mention the name of the function module, thats all, your work is done.
    Now when you configure, for this characteristic, the value will be automatically determined using teh function module. You have to create such characteristics as "Not ready for input" ones in additional data for which you cannot enter values manually.
    Hope this helps.

  • Sales Order Line Items

    Hi All
    I am trying to load sales order line items into a cube using the datasource 2LIS_11_VAITM.
    The only cube that I coulkd find in Business Content that seemed remotely appropriate was 0SD_C03 so I copied it and used it as a template. However I am finding that its not a very good fit.
    It contains a number of characteristics that are not supplied by 2LIS_11_VAITM such as value_type, version etc. Also a number of the key figures dont look right. eg Quantity in Base UOM whereas the datasource supplies quantity in Sales units.
    My question is whether 0SD_C03 is the correct cube for sales order line items. If so should I be converting the key figures to those specified in the cube and also enhancing the extractor to supply the missing characteristics. Or is there a better cube to use as a template?
    Please dont say it depends on what the user wants because I dont think they know what they want and besides its Xmas and no one is here.
    Regards
    Asif

    KWMENG = order qty
    UMVKN = Denominator
    UMVKZ = Numeretor
    Qty in BuOM = ( UMVKZ / UMVKN ) * KWMENG
    You can also do keyfigure conversions "on the fly" in BEX. See this howto to configure this. Especially handy when your datasource does not contain numerator and denominator info.
    [http://wiki.sdn.sap.com/wiki/display/BI/Defineunitofmeasureconversionsin0MATERIALdefinition|http://wiki.sdn.sap.com/wiki/display/BI/Defineunitofmeasureconversionsin0MATERIALdefinition]
    note: read also the comments from the link above, because the step-by-step solution is not complete. I implemented it several times and it works like a charm.
    grz,
    Rutger

  • 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

  • Access control on Sales Orders - Line items

    Is it possible to control access to users from deleting line items in sales orders?
    (since Julius would reply saying a "YES" or a "NO" , i will complete my question )
    If it is feasible to control, could some one make a suggestion on how to do this and help me, please?

    Hi Manjula,
    Thanks for trying to help and for sending the link, but unfortunately, the link doesnt help me for my question.
    the discussion in the link you sent is more on the stock situations that is a mis-match in MD04, when a order line item is rejected then the stock of the line item should be refelcted in MD04 and since this doesnt happen the program was supposed to be eecuted for consistency ==> this was the issue in the link
    Now, coming to the problem on hand: If i create a sales order with 25 line items and make a delivery of 22 line items , do a PGI for the 22 and then , i check for the other 3 line items in the Order, realize that the schedule lines in the order are for a date that doesnt meet the date of goods issue of the other 22 items - i delete the 3 line items in the order <== this is what i want to restrict, users shouldnt be able to delete line items of a order that has a subsequent document.
    I know i can manage doing this via ABAP based on a few validations on the document flow, but i wanted to know if there is an alternate method of achieving this.
    I vaguely remember a situation where i had a user who couldnt enter line items in Purchase orders although he had all required transactions, org,values.......after much research and quite a few trial and error methods i got to a solution by adding/deleting (i dont remember corretly) a parameter value to the user and he could add line items. The curiosity i have is in knowing if there is some parameter value or an other Authorization object, that could help me achieve my objective
    Although it could be efficient, ABAP would be my last option
    Do keep posting, any help is good help

Maybe you are looking for

  • Error Installing with Package from CCP

    Hi, Apologies if there's a CCP board; I didn't see it in the menu. I used Creative Cloud Packager to make a package of apps for Mac. Installing the package using Apple Remote Desktop returns ".. could not be installed.  Error message: "Running packag

  • I have a new iphone, how can I move all apps, from old iphone to the new one?

    I change my iphone 4 for a iphone 5. How can move all the apps to the new cell?

  • How do I add vido to my flex application?

    I been trying to use VideoDisplay, but some how it only shows me black window and not playing after I am using the play() function.

  • How can I get help with this?

    Hi There I am posting this here as my fiancé is pulling her hair out over Verizon's customer service (or lack of it). I'm from the UK, my fiancé came to visit me from Florida. Originally for 3 weeks then decided to stay for 6 months. I advised her to

  • Problem with sub queries

    Hi I have 3 tables like, LIST (ID NUMBER, NAME) LIST_VERSION (ID NUMBER, VER NUMBER, STATE_CODE number) STATE_CODES (CODE NUMBER, DESC VARCHAR2) LIST to LIST_VERSION is one to many relation. I have a query like this, SELECT LV.* from LIST_VERSION WHE