Adding lines to the currently active sales order

I need to add lines to the order currenlty being entered by the user based upon various rules that i have created in an addon. I can call the addon and calculate the values I require but I cannot see how to poke a number of libes and quantities back into the calling sales order.
Can anyone advise please?
Gordon Wood

Gordon,
If you search this forum on something like "add lines", you will find many posts that will assist you with your question such as this post ...
Re: Add order lines to Existing order
HTH,
Eddy

Similar Messages

  • The status of sales order is being in processed

    Dear All,
    The delivery quantity is fully delivered and it is order related billing, this is a Sales Bom, the header is delivered and the line items are billed, the status of sales order is being in processed after the completion of the subsequent documents,
    In the document flow the system is showing that the order is being processed, we have checked the copy control and the relevant assignments. As we are facing the problem while creating sales order system giving an error message that there are open items for the customer. Please tell me if there is any customization is there or is there any other way to achieve.
    The other requirement is, if the customer credit limit get exceeds then the system should not save the sales order, if the credit lies within the limit and if the stock is not available in that particular plant, it is a dynamic credit limit.
    Thanking you in advance for your valuable time and efforts,
    Thanks & Regards,
    Mani

    HI ,
    1. For your first issue u201Cstatus of sales order is being in processedu201D
    Please check the below settings:
    Copy control From Sales order (OR) to Delivery (LF) u2013 T.code: VTLA.
    In Item level (TAN)  whether u201CUpdate document flowu201D is activated or not.
    You should also check in the Item category (VOV7):
    Completion Rule: Which one did you maintain?
    2. Error message: Open items:
    This is related with Credit management. Check whether you maintain any open item days or percentage, please check in OVA8. If you maintain you should get the payment from your customer . This is related with FI ( T.code : F-28 )
    Dynamic credit check :
    The setting is available in OVA8. Choose your credit control area, Risk category and Credit groups ( Should be Sales order group ). Then select the indicator u201C Dynamic u201C In Reaction you should give B ( Error ). Then the system will not allow to save the sales order if credit limit is exceeded .
    3. If the stock is not available in that particular plant, it is a dynamic credit limit.
    I think it is not possible . You may use the User exit in OVA8.
    Hope this can help you .
    Regards
    M. Lakshmi Narasimhan

  • Need of User-Exit  in the creation of Sales Order(VA01)

    Hi,
    In the creation of Sales Order, I need to Compare the Ordered Quantity and Confirmed Quantity. If the CQ is less than OQ I need to create one more line item with the same material for the rest of the quantity and send the request to Production order for the remaining quantity. For this I am unable to get the exact exit. Please help me in this regard ASAP.
    Thank you.

    the following program are the user exit for billing.
    we often use RV60AFZC and RV60AFZZ.
    RV60AFZA
    RV60AFZB
    RV60AFZC
    RV60AFZD
    RV60AFZZ
    RV60BFZA
    For Sales order
    Pricing, item addtion deletion
    MV45AFZZ
    First, I did not find documentation for the BADI either. But at the first glance the process of implementing it looks quite straightforward. I assume you run R/3 Enterprise (4.7). So, you should implement BADI 'BADI_SD_SALES' - this must be done in transaction SE19. In particular for the purpose of adding some additional items into sales document I would implement method SAVE_DOCUMENT_PREPARE. This method has changing table parameter FXVBAP of type VA_VBAPVB_T - it holds all the sales document items. Just add items of yours to it. Certainly, you have to fill all the appropriate fields carefully.
    Hope this helps somehow.
    In that case you should use USEREXIT_DOCUMENT_SAVE_PREPARE subroutine (form). As far as I remember it has no parameters. To add items to the sales document you should modify internal table XVBAP.
    regards
    vinod

  • I want to pick up Schedule line Delivery date based on Sales Order of Mater

    Hi Experts,
    I have one scenario like,
    I want to pick up Schedule line Delivery date based on Sales Order of Material.
    For example :
    Go to va03
    Give the order no
    Press the enter
    Double click on material.
    Go to Schedule line Tab
    Then we can find out the Delivery date .
    I want to pick up the that Delivery date. Could you please help on that.
    Thanks,
    Amjad.

    Hi,
    schedule line dates are available in VBEP.
    VBEP-VBELN = sales order number.
    VBEP-EDATU = schedule line date.
    REgards,
    Raghavendra

  • Error while executing the RA of Sale order

    Hi,
    While executing the RA of sale order, we are getting the error-Cost element 50XXXXX (line ID CPR) already used for line ID RPC. As per our configuration Cost element-50XXXXX is assigned to the Line ID CPR only and there is no where assignment to line item-RPC. In the change log of OKG4 and OKG5, there is no assignment of CE-50XXXX to line id-RPC.
    Could you suggest where could be problem for this issue.
    Thanks & Regards,
    Ranjan

    You must have assigned cost element  in OKG5. You also need to assign in OKG4 same line ID to secondary cost element.OR else remove the cost element assignment in OKG5.
    Regards,
    Mahendra

  • Changes Allowed on the 3rd Party Sales Order when PO is created

    Hello,
    We have a requirement to change the Sales Order even if the PO is already created for teh 3rd party order. I am not sure which fields and what changes can we do if the PO is already created for the 3rd Party sales order.
    Can you please guide me in pointing to the configuration or any user exit that we can control the field changes on the 3rd party sales order when teh PO is already created.
    Thank you!
    Chandrakant

    Venu,
    FIRST ANSWER THE BELOW TWO QUESTIONS.
    1. Did you understand what Shiva has mentioned?
    He has clearly mentioned that  you can change the PO qty and in standard it self the same PO changed  qty will be reflected in Sales order schduline lines qty, and he also mentioned that if this is not happening then advised to refer the Note 1361281.
    2. Did you read the note?
    It says that It will occur if the sales order line item is part of the delivery group or if you have set the complete delivery indicator for the sales order. And it also advised to apply the program code to over come the issue.
    Please note: before commenting others just check once in system then talk, don't just blindly through the ball, it will not have good results.
    Before also mentioned the same, but you still repeating the same.
    Sorry Moderators that i have mentioned some lines in the Note here.
    thanks,
    Srinu.

  • Suggestions to find the current active fields in debugging mode

    Hi All,
    I need to validate a particular entry in the screen in a particular subroutine(inside a user exit). I know the field gets populated but do not know which field is that, is there a way to know the current active fields in the debugging mode.
    Regards,
    Karthik

    Hi,
      You can create dynamic types and data for those types are run time.
      lets assume that you have structure of some type and you have work area of that type.
    DATA: lv_data type SPFLI.
    DATA: lr_rtti_struc TYPE REF TO cl_abap_structdescr.
    DATA: lt_comp       TYPE cl_abap_structdescr=>component_table.
    DATA: ls_comp       LIKE LINE OF lt_comp.
    DATA: lr_data       TYPE REF TO data.
    FIELD-SYMBOLS: <fs_data> TYPE ANY.
        lr_rtti_struc ?= cl_abap_structdescr=>describe_by_data( lv_data ).
        lt_comp = lr_rtti_struc->get_components( ).
    "Now  lets remove two fileds from the table as follows.
    LOOP AT lt_comp into ls_comp.
    DELETE lt_comp INDEX sy-tabix.
    IF sy-tabix = 2.
    EXIT. " Delete two components of the structure now lt_comp as two components less from SPFLI
    ENDIF.
    ENDLOOP.
        CALL METHOD cl_abap_structdescr=>create
          EXPORTING
            p_components = lt_comp
            p_strict     = abap_false
          RECEIVING
            p_result     = lr_rtti_struc.
    CREATE DATA lr_data TYPE HANDLE lr_rtti_struc. "Now you have data of the new type
        ASSIGN lr_data->* TO <fs_data>.
        CREATE DATA lr_table LIKE STANDARD TABLE OF <fs_data>.
        ASSIGN lr_table->* TO <fs_table>.
    Regards,
    Sesh

  • How can I pick in bulk in one LPN and drop on the staging by sales order

    How can I pick in bulk in one LPN and drop on the staging by sales order
    I have 25 sales orders
    I need to pick these orders in bulk in one batch (Batch means load all the sales order without existing the scree)
    during drop I need to drop by sales order
    do you have a solution or similar solution for that

    How can I pick in bulk in one LPN and drop on the staging by sales order
    I have 25 sales orders
    I need to pick these orders in bulk in one batch (Batch means load all the sales order without existing the scree)
    to pick all bulk and independent tasks tog ether
    during drop I need to drop by sales order (I mean to collect all the line of the sale order)
    do you have a solution or similar solution for that

  • Restart current song while iTunes is not the current active app

    In prior iTunes 11 / Mtn. Lion when using an Apple keyboard the F7 key when pressed would re-start a song that was playing with one press, and go to the previous with 2. This functionality has changed so that now it will go to the previous track with one press.
    Is there a way to change the functionaly back or, add a separate key command that allows me to restart the current song when iTunes is not the currently active app?
    Thanks!

    I have a SteelSeries Shift keyboard, and experienced the same problem after updating to 10.4.
    Found this little piece of software to fix the problem for me:
    http://code.google.com/p/hktunes/
    It's not ideal, as it has to run in the system tray in order to work, but it's way better than being without the functionality of the hotkeys, untill the problem is fixed.
    Hope this works for you guys as well!

  • Billing date at line item level in a sales order

    HI!
    Can anyone let me know the significance of billing date being present at the line item level in a sales order?
    And why does it get changed as per the Requested delivery date if the Prop. Pricing date in the maintanenece of sales doc type is set  as 'A'?
    Can it be different for different line items?

    Hello Asha,
    Can anyone let me know the significance of billing date being
    present at the line item level in a sales order ???
    The comprehensive information is available at SAP technical help(F1) for the "BILLING DATE" field at Sales Order line item level...Before raising these type of questions, i would urge to  conduct initiate analysis and then post at SDN forum if you are unable to find out answers...For your quick reference, i have extracted the same description for Billing date from SAP techincal help (F1) and pasted below.
    Billing date for billing index and printout
    +The date on which the billing is processed and booked for
    accounting purposes.+
    Use
    +You can use the billing date as one of the selection criteria
    when you process billing documents collectively.+
    Procedure
    +If invoice dates are defined for the customer, the system proposes
    the billing date from the invoice date calendar. If no invoice dates are
    agreed, then the actual goods issue date is formed on the basis of
    delivery related billing. In order related billing, the billing date of the
    order forms the basis of the billing date.+
    +If you are billing services, the system proposes the date of services
    rendered. You can change the date manually in the sales document.+
    +If you are using a billing plan to bill a project, the system can propose
    billing dates for the billing plan on the basis of planned or actual dates
    in the corresponding milestone.+
    +In a billing plan for a maintenance or rental contract, you can specify rules
    by which the system determines billing dates on the basis of other dates in the contract.+
    Regards,
    Sarthak

  • How to mark up the price for sales order entry?

    Hi Gurus,
    How to Mark up the price for sales order entry?
    Example: Item Price: $10, Adding 20% Margin
    Selliing price of the item is $12
    we are giving many typs discounts like festival Discount, customerwise, Order value wise etc..
    After giving above discounts, if discount falls below $10 system should not allow to book the order, Trigger should go to respective person or sales person saying that item price falling below cost, system should not allow to book the sales order.
    How to configure this scenarios in Order management Module, appreciate your inputs, advise.
    Regards
    AK

    Thanks for your response,
    can you please guide me step to achieve this requirement.
    Regards
    AK

  • Script to find the currently active sql

    hey,
    Can somebody post me a script to find the currently active sql in the database ???

    Hi,
    You can try these below:
    select s.username
           c1,t.sql_text
    from v$session s, v$sqltext t
    where
    s.sql_address = t.address and
    s.sql_hash_value = t.hash_value and
    s.username is not null
    order by s.username,s.prev_sql_addr,s.prev_hash_value,t.piece;
    or
    select sesion.sid,
           sesion.serial#,
           sesion.username,
           sesion.sql_id,
           sesion.sql_child_number,
           optimizer_mode,
           hash_value,
           address,
           sql_text
      from v$sqlarea sqlarea, v$session sesion
    where sesion.sql_hash_value = sqlarea.hash_value
       and sesion.sql_address    = sqlarea.address
       and sesion.username is not nullCheers

  • Update the cost in sale order

    dear sir
    i check with abaper ,he says the value is updated from sale order
    they get the consumption of sales using customized transaction
    actual cost is zero
    user create the material master withot pricing
    we ask to update the material master and they do the costing run
    in material master standard costing estimate found
    after they  run the consumption report ,once again actual cost is zero
    i chech\ked in  costing status using CK11N ,std cost estimate found
    is it  possible to update the cost in sales order
    (redetermine or recalculate the pricng in sale order)
    so that my consumpotion report will update
    thanks

    Hi,
    Check the following link
    http://help.sap.com/saphelp_46c/helpdata/en/90/ba6da4446711d189420000e829fbbd/content.htm
    Regards,
    Saju.S

  • IN which table stores the Value of sales orders Net Value

    IN which table stores the Value of sales orders Net Value

    Hi Lakshmi,
    Check Following Tables:
    CRMD_PRICING_I
    CRMM_PR_SALESA
    CNCCRMPRSAP00090
    Reward Points if Helpful.
    Srini.

  • To Get the list of sales orders for a Business partner in CRM.

    Hi all
    Is there any Function module or BAPI to get the Sales orders for a Business partner in CRM. I know there is a BAPI to get the list of sales orders for a customer in ECC, but I donu2019t know how to get the list of sales orders for a Business Partner in CRM.
    Can anybody tell me if there is an inbuilt function module or BAPI available?
    If not how can I pick the sales orders of a business partner in CRM? Between which tables should I apply a join and write SELECT statement to get list of sales orders for a business partner in CRM.

    Hi Jessica,
    Try CRM function module CRM_BUPA_READ_ORDER_OBJECTS.
    You'll get a table with the documents associated to that partner, where you can work on.
    Kind regards.

Maybe you are looking for

  • Problem in keyboard reading....

    i was creating a program which using the keyboard to control the movement of a character,(picture). but when i run the program in jvm 1.4.1 , the program doesn't read anything from the keyboard. previously i was running it in jvm 1.3.1 ..... any solu

  • HRMS user defined functions

    Hello, I have a function I've defined (From the Define Function window). It uses context and normal parameter values. My question is, after defining a function, should I always bounce the server because from what I'm seeing, I'm getting an error each

  • How to display which exception Is Raised?

    Hi Experts. I am trying to connect my webDynpro with oracle. I had already included Jar at both places. now I want to display in exception that which error is coming? I had already written <b> ex.printStackTrace();  </b> but it is not working. Code I

  • Combining clips in Events

    Hi, I´ve captured several VHS tapes onto iMovie´09, and now have long Events of nearly 180 minutes. As I take out bad parts in the evens (I use "Reject selection") I end up having many, many clips in my Events. Then when I want to crop them I all I h

  • I am unable to run Adobe Flash 11.3 on a iMac OS X 10.7.4  Help!

    I've installed and uninstalled several times and continue to get "blocked plug-ins" message.  Any help out there?