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

Similar Messages

  • Copy Fields Into Sales order Item Text

    Hi All,
    I got a requirement where i need to copy the populated custom fields including the appropriate field labels into item text in sales order creation and i am provided with Text Procedure: Z1 and Text ID: 00002. kindly help me.
    Thanks,
    Preethi

    hi,
    I have tried with save_text. but its not copied to the item text tab.
    (goto->item->texts)
    here is my code:
    DATA :  gt_text       TYPE TABLE OF tline WITH HEADER LINE,
                gt_textname   LIKE thead-tdname,
                gt_textobject TYPE TABLE OF thead WITH HEADER LINE.
    CONSTANTS : c_0002    TYPE thead-tdid     VALUE '0002',
                          c_vbbp    TYPE thead-tdobject VALUE 'VBBP'.
    CONCATENATE xvbap-zzrelid xvbap-zzsorg2
                  xvbap-zzsorg3 xvbap-zzsorg4
                  xvbap-zzsorg5 xvbap-zzsorg6
                  xvbap-zzsorg7 xvbap-zzsorg8
                  xvbap-zzsorg9 xvbap-zzsorg10
                  xvbap-zzcusttrdgrp INTO  gt_textname. 
    gt_textobject-tdid  = c_0002.
    gt_textobject-tdname     = gt_textname.
    gt_textobject-tdobject   = c_vbbp.
    gt_textobject-tdspras    = sy-langu.
    APPEND gt_textobject.
      CONCATENATE 'relationship Owner:' vbap-zzrelid INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 2 :' vbap-zzsorg2 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 3 :' vbap-zzsorg3 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 4 :' vbap-zzsorg4 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 5 :' vbap-zzsorg5 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 6 :' vbap-zzsorg6 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 7 :' vbap-zzsorg7 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 8 :' vbap-zzsorg8 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 9 :' vbap-zzsorg9 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
      CONCATENATE 'sales org 10 :' vbap-zzsorg10 INTO gt_text-tdline
      SEPARATED BY space.
      APPEND gt_text.
    CALL FUNCTION 'SAVE_TEXT'
          EXPORTING
            header          = gt_textobject
            savemode_direct = 'X'
          TABLES
            lines    = gt_text
          EXCEPTIONS
            id       = 1
            language = 2
            name     = 3
            object   = 4
            OTHERS   = 5.
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    kindly resolve y it is not copied to the item text tab and also in which user exit i need to place my code.
    Thanks,
    Preethi.

  • Copy controls between sales order/contract and consignment fill up

    Hi all
    My client has received service contract from single party for 100 different locations..For this he needs to install equipment at each location and  installed equipment will be taken back once the service contract is over.
    For installation equipment  transfer he is following consignment agent system
    (kb-ka).
    But he want to track his order in SAP for how many locations he has processed KB order.whether total order has been completed or not.
    For this purpose he want to maintain quantity contract and subsequently he want  to release KB with reference to contract.
    How I have to maintain copycontrols between CQ and KB in system (Thereis no copycontrols availble for consignment agency in sap standerd)
    Please suggest the way . Most urgent
    Thanks  & regards,
    Ratna

    Dear Ratna
    Since you said that your client is using KB order type, instead of going for quantity contract, why dont you assign the different locations as ship to party in KB order itself so that whenever quantity is delivered, you can keep track of the same through movement type.
    Thanks
    G. Lakshmipathi

  • How to copy sales order item text in to purchase requisition

    Hi Experts,
    We enter text for the sales order items in the sales order item details.
    we have done settings for the purchase requision to copy text from sales order into purchase requisition and this works for purchase requisitions automatically created from sales order.
    we need to get text from sales order to be copied in purchase requisitions which are created by converting the planned order.
    we have tried SPRO settings SPRO->Materials Management>purchasing--->text for purchase requisition.
    but this settings does not works for Pur Req. created by converting the planned order.
    is this because planned order does not have segment for text like sales order and purchase requisition?
    Please let me know if it is possible through standard SAP or with the lease development, any help will be appreciated.
    Thanks
    Anand

    Hi Rajesha,
    Thanks for your reply, some of the items in sales order are procured externally by us and our customer maintains text related to price and specification in the item details of the sales order, MRP creates planned order for these materials and these planned orders are always converted in pur requisition, we want that text from the sales order item details should be copied in to the purchase requisitions converted from planned orders.
    is there any user exit which can be called at the time of saving a purchase req or user exit for converting planned order in to pur req.?
    if there is any such exit available, then I think I can read the pegged requirement of the planned order where sales order item will be found then read the text in the item then copy this text in pur req then save pur req may work.
    but this will be a bulky development, please let me know if we can shorten the development.
    Thanks again
    Anand

  • How to configure Sales order item text copy to Purchase requisition item

    Hi,
    How to configure sales order item text copy to Purchase requisition text then copy to PO item text.
    Regards
    Jack

    Hi Rajesha,
    Thanks for your reply, some of the items in sales order are procured externally by us and our customer maintains text related to price and specification in the item details of the sales order, MRP creates planned order for these materials and these planned orders are always converted in pur requisition, we want that text from the sales order item details should be copied in to the purchase requisitions converted from planned orders.
    is there any user exit which can be called at the time of saving a purchase req or user exit for converting planned order in to pur req.?
    if there is any such exit available, then I think I can read the pegged requirement of the planned order where sales order item will be found then read the text in the item then copy this text in pur req then save pur req may work.
    but this will be a bulky development, please let me know if we can shorten the development.
    Thanks again
    Anand

  • New pricing on sales order item after partial delivered and billed

    Hi
    I want to change price of sales order item that already delivered partially and
    billed, but I can't search standard function.
    Can any one help me out  in changing the price of sales order item (VA02).....
    Thanks,
    Wizard.

    Hi DongWoo,
    Under what scenario would you want to re-price after billing?  If you change the price how will your customer know?  You will need to contact your customer and let them know not to pay the last invoice, then delete that billing document in SAP and re-issue it.  When you create the billing document in SAP from a delivery or order you can specify how to re-price in copy control.  Whether or not you want to reprice all conditions, taxes or whatever is in the re-pricing type.
    You need to make sure what we send the customer matches what is in SAP, which is why we generally can't re-price after billing.  Make sense?
    If you want to change the price on the still open items you can reject what is open and enter a new line item.  That will pick up whatever new pricing conditions exist, but you may lose your ATP position & allocation status.

  • Sales order Item condition currency

    HI
    i have following requirement
    In sales order item conditions Currency should change automatically From USD to INR, it means USD is sales document currency.
    But in PO currecny is INR, so i want to populate INR in Sale order items condition type PR00, there is BAPI which trasfer PR00 price from PO header, but now i want transfer the same currency type in to Sales order.
    regards
    satsih

    Hi thanks for your input, Using routine is effect to other sales document types, i want for ZDR (debit memo request) only not for all documents. any other solution
    regards
    satish

  • 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

  • Create additional field in sales order item and copy to purchase order item

    Dear SAP Gurus,
    I am hoping that someone could help me by providing me with how to implement the following 2 requirements in the SD order and in the purchase order.
    1. I am wanting to add a custom field to the SD sales order item copying a value from the vendor customer master.
    2. I then want to add a custom field to the purchase order item and copy the value from my custom field in 1. to this new custom field..
    Can you please advise how I would go about implementing the above requirements?  I am assuming that there are exits to allow me to implement these 2 requirements.
    Many thanks
    Henry

    Hi,
    For the first requirement you can use the USEREXIT_MOVE_FIELD_TO_VBAP in report MV45AFZZ.
    For the second, as I think that you will create a RFQ you can try to use the enhancement MEREQ001.
    Regards,
    Eduardo

  • Sales order item assignemnt block ,if we click edit extra blank line on items level i want remove that line how to do it?

    Hi Team,
    Sales order item assignemnt block ,if we click edit ,Item assignment block extra blank line on items level is showing , i want remove that line how to do it?
    Thanks&regards
    Kalpana

    Hi Ravi,
    With the help of Dharmakasi Thotakura...
    As suggested to do changes in DO_INITCONTEXT and GET_I_T_TABLE methods ....i have implemented these two methods...Now problem only one column ITEM_NO will be disabled  remaining cloumns not disabled...i want to disable entire column including ACTION column also..Action Column contains INSERT and DELETE buttons.how to do it?
    METHOD
    do_init_context.
    CALL METHOD SUPER->DO_INIT_CONTEXT.
    DATA : lr_ent TYPE REF TO cl_crm_bol_entity,
    lr_btadminh TYPE REF TO cl_crm_bol_entity,
    lv_object_id TYPE string,
    lo_context TYPE REF TO /RCRM/15IT__ITEMS_CN00.
    * gv_flag TYPE crmt_boolean.
    lr_ent ?= me->typed_context->btitems->collection_wrapper->get_current( ).
    lr_btadminh ?= lr_ent->get_parent( ).
    lv_object_id = lr_btadminh->get_property_as_string( iv_attr_name = 'OBJECT_ID' ).
    lo_context ?= me->typed_context->btadmini.
    clear lo_context->gv_flag.
    IF lv_object_id IS NOT initial.
    lo_context->gv_flag = abap_true.
    ELSE.
    CLEAR lo_context->gv_flag.
    ENDIF.
    ENDMETHod
    METHOD
    get_i_t_table.
    CALL METHOD super->get_i_t_table
    EXPORTING
    index = index
    component = component
    RECEIVING
    rv_disabled = rv_disabled.
    DATA: lv_component TYPE name_komp,
    lo_entity TYPE REF TO cl_crm_bol_entity,
    lo_property TYPE REF TO cl_crm_bol_entity,
    lv_string TYPE string.
    IF rv_disabled = 'FALSE'.
    lv_component = component.
    lo_property ?= collection_wrapper->find( iv_index = index ).
    lo_entity ?= lo_property.
    lv_string = lo_entity->get_property_as_string( iv_attr_name = lv_component ).
    IF lv_string IS INITIAL or lv_string = '0000000000'.
    IF gv_flag IS NOT INITIAL.
    rv_disabled = 'TRUE'.
    ENDIF.
    ENDIF.
    ENDIF.
    ENDMETHOD.
    Thanks
    Kalpana

  • EK01 and EK02 not copied to sales order item

    Dear colleagues,
    Is it possible to have EK01/EK02 transferred to the sales order item for assembly type = "0 no assembly order processing"
    (specified in requirement class definition)? I would like to have planned production costs in EK02/EK01.
    I don't specify costing method, variant and sheet in requirement class definition (transaction ovzg)
    The steps are following:
    1. create sales order
    2. set manually proper item category (which refers to assembly type = "0 no assembly order processing")
    3. MD04 - convert generated planned order (lower-level for HALB) into production order
    4. MD04 - release HALB production order
    5. MD04 - convert generated planned order (higher-level for FERT) into production order
    6. MD04 - release FERT production order
    7. ????? we could expect EK02/EK01 in sales order item coming from production orders ?????
    I have found SAP note 857299 nevertheless it is not stated precisely there.
    Please let me know your observations in this area.
    Regards,
    Wojtek

    Hi..
    Hi
    Small change in the program will copy the PO number from Contract to sales order.In case need take help of ABAPer
    Data which is not copied
    LOCAL: VBKD-FKDAT.
    LOCAL: VBKD-FPLNR.
    LOCAL: VBKD-WKWAE.
    LOCAL: VBKD-WKKUR.
    LOCAL: VBKD-DELCO.
    LOCAL: VBKD-BSTKD.
    LOCAL: VBKD-ABSSC.
    LOCAL: VBKD-BSTDK.
    In your data declaration, you have
    LOCAL: VBKD-BSTDK
    Regds
    MM

  • Copy variant characteristics from Sales Order/Item to Production Order

    Dear All,
    I have a requirement wherein I have to copy variant characteristics fromSales Order/Item to Production Order. In this regard I was looking at Enhancement "CLFM0002". Is it possible to copy the variant characteristics automatically from the Sales Order/Item to Production Order?
    Thanks,
    Pravat.

    Pravant,
    If you are implementing Variant Configuration, or using configurable material in that case you will have to maintain
    Characteristics in CT04
    Classes in CL02
    Configuration Profile CU41
    The material that you are mentioning must have class and charcteristics activated or mentioned in material master. undre classification view. In production you maintain Configurable material BOM  we will be using the same material
    Regards
    Sathya

  • Urgent: How to copy multiple sales order items into a return sales order?

    Dear developers,
    I have a requirement to copy multiple sales order items into a single return sales order. For example, generated return sales order have 2 items, item 10 is created with reference to sales item 2610/10 and item 20 is created with reference to sales item 2611/20. What's more, when it happens, copy control should be taken care of. I know it is possible to create this kind of order by transaction. But how to do it in coding?
    In current SAP release, there is only BAPI for creating with reference on 1:1 relationship which means copy one document to another but what I need is N:1 copy.
    Any suggestion is high appreciated!!
    BR,
    Tony.

    Hi ,
    If you are creating sales order by using bapi then after calling bapi you can check import parameter <i><b>SALESDOCUMENT</b></i> in the bapi function module .If this parameter is not initial then sales order is created in this case you can create return order. If this import parameter is initial then sales order is not created and you cannot use return bapi function module.
    Bapi is simple method than BDC.
    In above case it is required to call BAPI_TRANSACTION_COMMIT after every successful sales order creation.
    One more important point is you have to clear import parameter <i><b>SALESDOCUMENT</b></i>  before calling sales order creation function module.
    Thanks,
    shyla

  • Text determination - sale order item text to be copied to delivery item tex

    hi,
    I have defined a text type and assigned to the text determination procedure and assigned those to the relevant item categories in the sales order item
    How cn i configure the system so that the delivery item text should copy the same text from the sales order item to the delivery item.
    Appreciate your help on this.
    Thanks
    keshini

    Dear keshini,
    To copy the sales order item text to the delivery document item text
    -->You do the text determination for the sales order item and delivery item also through VOTXN transaction,
    -->Define and maintain same TextId's in the sales order item text procedure and delivery item text procedure ,
    -->Maintain the access sequence ,in the delivery item text procedure access sequence you put the Text Object as VBBK for that delivery itemText ID.
    -->Assign the access sequence to the item text ID.
    I hope this will help you,
    Regards,
    Murali.

  • Copy function for sales order

    I want to create a sales return, and use copy with reference to do that. But if the sales order items cate is TAB, then those items cannot be copied, I check the config dosen't find the TAB item for order type, even in the standard, RE to OR, I question that whehter is not make sense to copy TAB items. Anyone try add TAB item to copy function? Thanks!

    Use T-Code - VTAF (IMG - Sales and Distribution - Sales - Maintain Copy Control for Sales Documents - Copying Control: Billing Document to Sales Document
    Here select your Invoice Type & Sales Returns Documents type & double click in Item on left hand side. You will list of available items & you can also add new Items here.
    Hope this helps...
    Thanks,
    Jignesh Mehta

Maybe you are looking for

  • Firefox opens but completely unresponsive even after reinstall

    I'd been having problems with Firefox hanging. It didn't appear to have anything to do with any of my addones, as I continued having problems even after disabling them--first one at a time, then all of them. Now after updating to the new version, (th

  • Windows vista and 10g2

    hi everyone! i have oracle 10g 2 and i would like to install it in windows vista. however i take an error. is anything i can do in order to install this version in windows vista? Thank you!

  • Report Painter, GL Set does not have description

    Hi Expert, I want to create Columnar Financial Statement (Profit and Loss Account, and Balance Sheet). My problem is that my GL under the lead column does not have any GL description shown. I tried some of the settings for lead column under formattin

  • Save A Copy

    What is the keyboard shortcut for Save a Copy in Acrobat 9.0? The menu says it's "y" but "y" is the shortcut for Modify PDF Portfolio. It's also not Shift+Ctrl+S; that's the shortcut for Save As...

  • Parse XML in par structure.

    Hi, I want to parse an XML file which I want to store in my par project structure. Should I just store it in PORTAL-INF like portalapp.xml? I tried doing this: IResource xmlResource = request.getResource(IResource.XML,"PORTAL-INF/test.xml"); String u