Copying Variant Configuration across sales order items

Hi,
We are working with SAP 4.7.
I have a requirement to default the variant configuration values entered within line 1 of the sales order entry process on to subsequent lines. i.e. defaulting initial values for the configuration.
Our users have to enter many variant line items on a sales order and within an individual order the variant characteristics will be very similar, therefore by defaulting these values to be the same as the previously entered line would be a considerable overhead saving.
However I am having difficulty accessing the variant values which have been entered in the first line item. I have looked at userexit_move_workarea_to_sdwa and userexit_get_field_from_sdcom, however I don't know if I am heading in the right direction. Any advice appreciated.
Thanks for your time.

We are doing this with main-positions and subpositions. The sales clerk enters the main Position with all the characteristics, switches to the tab "Fast data entry" types in the main position, he wants to copy from and the material. There is a dependency which calls a function module which does the real work.
This works with 4.6B in 4.7 there is a psotion type global position which acts similiar.
Ok, now the code:
Dependency
pfunction Z_SD_WERTE_CHARACTERICS                    
  (SD_VBAP_UEPOS         = SD_VBAP_UEPOS,   
   STAERKE           = $self.STAERKE,
   BREITE              = $self.BREITE)
/code
CALL FUNCTION 'Z_SD_INHERITANCE'
     EXPORTING
          GLOBALS        = globals
     TABLES
          QUERY          = query
          MATCH          = match
     EXCEPTIONS
          FAIL           = 1
          INTERNAL_ERROR = 2
          OTHERS         = 3
/code
Z_SD_INHERITANCE
DATA: h_uepos LIKE vbap-uepos.
  DATA: x_values TYPE ibco2_value_rec OCCURS 0 WITH HEADER LINE.
  FIELD-SYMBOLS:
  -values.
    ENDLOOP.
  ENDIF.
*-- Ausgabeverarbeitung
  LOOP AT match WHERE atcio = 'O'.
*-- Konvertierung ATINN auf ATNAM
    SELECT SINGLE * FROM cabn WHERE atnam = match-varnam.
    CHECK sy-subrc EQ '0'.
    READ TABLE x_values WITH KEY atinn = cabn-atinn.
    IF     sy-subrc IS INITIAL AND
       NOT x_values-atwrt IS INITIAL.
      match-atwrt = x_values-atwrt.
    ELSEIF sy-subrc IS INITIAL AND
       NOT x_values-atflv IS INITIAL.
      match-atflv = x_values-atflv.
    ENDIF.
    match-atfor = cabn-atfor.
    MODIFY match.
  ENDLOOP.
ENDFUNCTION.
/code
Kind regards
Matthias Kabel

Similar Messages

  • 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

  • How to set "Configuration Variant" for a sales order item using function

    Hello All,
    I use function module 'SD_SALES_DOCU_MAINTAIN'  to create Customer Indep. Requirements but how to set "Configuration Variant" for a sales order item.
    Is their any idea or sample code?

    Hi Zhijun zhang,
    <u>http://help.sap.com/saphelp_nw2004s/helpdata/en/c0/98038ce58611d194cc00a0c94260a5/content.htm</u>
    <u>http://help.sap.com/saphelp_nw04/helpdata/en/c0/980374e58611d194cc00a0c94260a5/content.htm</u>
    A variant is simply an SAP report where the parameters for running the report have been set by the user and then saved with unique name. This allows future retrieval and execution of the report faster without reentering the parameters. As a convention the variant name should start with with the digits 50 so searchs for LHU variants is easier and quicker.
    The first link will guide you by screen shot wise.
    Award points if it adds information.
    Thanks
    Mohan

  • 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.

  • Variant Configuration on Sales order

    Hi guys,
    Our users should be able to create sales orders from a webdypro screen using standard "variable configuration".
    I am looking for ideas on how to integrate/transfer the beck-end "variable configuration" to the dynpro screen?  
    Please advice,
    Thanks!

    You are talking about Variant Configurator - as in configuration of the product at Sales Order entry time - and not some Web Dynpro specific personalization/configuration - right?  If so, for questions about what application specific APIs you should call, you really need to ask those in other forums.  Perhaps the ERP or ABAP general forum you would reach a wider audience because that question really isn't WDA specific.  Have you checked the Enterprise Service for Sales Orders?
    I know that the WDA version of Sales Order Entry (L_ORD_MAINTAIN) doesn't yet support Variant Configuration of products.  Therefore there may not be good APIs yet.  I know that Variant Configuration is rather complex because you are basically building meta data that controls the screen generation for the configuration options.
    >How do we controll the "flow" logic
    What do you mean by this?

  • Variant configuration with Sales order?

    Dear SAPIENTS,
    I require variant configuration scenario in case of sales order, batch mangement, MRP, production order.
    Regards,
    Kaushal Rai
    Edited by: Kaushal Rai on Feb 27, 2009 2:06 PM

    Dear,
    Follow these steps.
    1. Create the Characteristics in CT04.
    2. Create the Class in CL02. (Class type 300)
    3. Assign the characteristics to the above created class.
    4. Create the material (Product) in MM01 with material type KMAT.
    5. Assign the Class created in Step 2 to Classification view of Material.
    6. Create the configuration Profile in CU41. to the necessary setting to in it.
    7. Write the dependencies (Precondition, sele, procedure) in CU01.and Create Dependency net in CU21.
    8. Assign sele, procedure, Dependency net in Configuration Profile.
    9. Assign Preconditons to Chracteristics or Char values in Class.
    10. Check the model in CU50. whether your depencies or working file or not.
    11. Create the Supr BOM and Super Routing and attach the dependences in the respective and check whether your bom components and required operations are picking or not in CU50.
    12. VK11 - Enter VA00 (Condition) For Std RVA001 Pricing Procedure.
    Please refer this thread,
    variant configuration
    http://www.sap-img.com/sap-sd/steps-for-sd-variant-configuration.htm
    Regards,
    R.Brahmankar

  • Settings in sales order item -Profit center

    HI,
      When i create a credit note price with reference to billing docment.At the item level the profit center field is unchangable or grayed out ONLY for the first item and its open for other items.
    Can you please explain me the behaviour of the system why its grayed out for the first and open for the rest?
    where can i see the configuration for sales order item?
    Thanks in advance

    Hi ,
    Please se below docuemnt on thos
    http://help.sap.com/erp2005_ehp_05/helpdata/en/39/afe8e13f1d42c8a34d625f677bee66/frameset.htm
    Many Thanks

  • Which progrom is used to calculate price of variant config in sales order

    Hi Guys,
    Normally VA01 calls function module "PRICING" to calculate the pricing, i can set breakpoint to track it step by step.
    But when i test variant configuration in sales order, even though i set breakpoint in function module "PRICING", it doesn't stop at the point. it seems that VA01 calls another function module. Does anyone know it?

    Maybe there is unknow problem in our system to make the break-point unavailable. Today i re-check it. It's OK.
    In FM PRICING, There is a form named 'xkomv_aufbauen_aus_komt1' to add the variant condition by looping the variant attribute table XVCKEY into table XKOMV.

  • 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

  • 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

  • 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.

  • 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 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

  • 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 level Configuration data

    I need sales order item level configuration data. I use following function modules to get, But my issue some of configuration DON"T have value only description available. I needs configuration with values or without values ( menas all)
    But function modules not giving complete results.
    CE_I_GET_CONFIGURATION
    VC_I_GET_CONFIGURATION_IBASE
    VC_I_GET_CONFIGURATION
    CUD0_GET_VAL_FROM_INSTANCE
    Any info ?

    Tried could not find why the function moudle not considering entries don't have values
    But in sales order config  screen if i press page (list) its showing values that don't have values

Maybe you are looking for

  • Error: Path to object does not exist at Request

    Hi experts, i have a scenario asynchronous/syncrhonous: file to rfc and get back response rfc to other file. I have 3 communication channel: 1 sender file, 1 receiver file, 1 receiver RFC. The communication channel sender file show the follow error:

  • Need help matching CS5.5 users to serial numbers

    I have 4 CS5.5 users and a list of 4 serial numbers.  I want to upgrade two of them to Creative Cloud but I don't know which Serial was used for each user.  Is there a way to find this out?

  • Illustrator for PC will not download. All other apps, no problem

    Illustrator for PC will not download. All other apps, no problem

  • Unable to start OracleDBConsole SID Service

    Hi All, When i try to start the service dbconsole<SID> from Start->Control Panel-->Administrative Tools-->Services it is giving "Windows could not start OracleDBConsole on local computer. For more information Review the System Event Log.If this is a

  • Where do i find my photos

    I've recently upgraded my OS to Mountain Lion OSX (version 10.6.8). Since, I cannot find my photos and when I open iPhoto on my Macbook, it seems to require a file name? Help!?