Get Classification status of item in Sales Order for variant configuration

Hi Experts,
I want to get the classification status against the variant configuration of item in sales order.
When i enter the sales order in VA03 , at the item level, I select the item and click on item configuration icon below.
Here I can see the variant configuration. Now if I do not maintain the configuraiton correctly, then the classification status shows either locked or incomplete. When it is properly maintained  it shows released. ( When it is locked, the classificaiotn status shows a red signal at the left bottom corner).
My requirement is to capture this classification status at the item level of each Sales Order.
How can I get this.

Hi!
try this code:
* Initialization
  CALL FUNCTION 'CUDB_INIT'.
  CALL FUNCTION 'CE_C_INIT'.
* read configuration from database
  CALL FUNCTION 'CUCB_GET_CONFIGURATION'
       EXPORTING
            instance                     = vbap-cuobj
       IMPORTING
            configuration                = gt_configuration
       EXCEPTIONS
            invalid_instance             = 1
            instance_is_a_classification = 2
            OTHERS                       = 3.
  IF sy-subrc <> 0.
    WRITE: /'   No configuration data found!'.
    EXIT.
  ENDIF.
* only sinlgle-level configuration possible
  READ TABLE gt_configuration ASSIGNING <gs_instance> INDEX 1.
* get and show status
  SELECT SINGLE * FROM tclc WHERE
       klart EQ <gs_instance>-conf-klart
       AND statu EQ <gs_instance>-conf-cstatus.
  FORMAT COLOR COL_NORMAL.
  IF tclc-frei = 'X'.
    WRITE: /'Status:', icon_green_light AS ICON.
  ENDIF.
  IF tclc-gesperrt = 'X'.
    WRITE: /'Status:', icon_red_light AS ICON.
  ENDIF.
  IF tclc-unvollstm = 'X' OR tclc-unvollsts = 'X'.
    WRITE: /'Status:', icon_yellow_light AS ICON.
  ENDIF.
  FORMAT COLOR OFF.

Similar Messages

  • Regd : Error during saving the  sales order for Variant configuration

    Hi -
    When the item( config material) is saved in the sales order , system scheduled the production order and getting an error as " Posting Rule for Assembly order for item 000010 could not be generated".
    Any solutions regarding the error.

    Hi,
    This is the process of Assembly to order with variant configuration. In material master, you can maintain gen item category 0002 (configurable material) in basic data view, sales 2 view item category grp 0002 and strategy group 82 in MRP 3 view. After creating of material master, BOM & Routing, You can create sales order in VA01 transaction.
    In this VA01, When you create sales order, system will check material availability, capacity checking and system will show variants for each items. And also when you will save the sales order, system will create production order no immdiately.
    So you can maintain the above settings compulsory.
    please let me know any clarification.
    Regards,
    Mohan

  • BAPI for Creating Sales Order For Variant Configuration Materials

    Dear Gurus,
    Before posting this thread, we have referred many SDN threads, OSS notes and other sites for any sort of help..but no success..All threads and other referrals are not much of help as they are kind of incomplete( Perhaps, we are unable to understand them..no offense).
    Few checked threads on this subjects are:
    http://scn.sap.com/thread/34590
    http://scn.sap.com/thread/851070
    http://scn.sap.com/community/abap/blog/2014/04/23/update-vc-variant-configuration-data-using-standard-bapi-in-sales-order
    http://scn.sap.com/community/abap/blog/2014/07/15/creating-orders-with-variant-configured-items-using-bapisalesordercreatefromdat2
    http://scn.sap.com/community/abap/blog/2014/04/23/update-vc-variant-configuration-data-using-standard-bapi-in-sales-order
    http://scn.sap.com/thread/120144
    OSS: 549563
    Well, we're using the BAPI (BAPI_SALESORDER_CREATEFROMDAT2) which creates the sales order successfully but without the characteristic values in line items.
    We're passing data to the following parameters - ORDER_CFGS_REF, ORDER_CFGS_INST, ORDER_CFGS_VALUE to create the variant config but not able to see it getting created.
    Pls find attached BAPI coding document for your reference.
    If you could throw any light on this issue will be of great help for us.
    Thank You in Advance!!!
    Reg,
    Jagan-SD.

    Jagan nath
    Try below.
    you would need miimum of 3 segments to pass variant config data using this bapi
    ORDER_CFGS_REF for each configurable item
    POSEX = ITEM #
    CONFIG_id , root_id - Start with 1 and increment it for each configurable line item
    ORDER_CFGS_INST
    CONFIG_ID - from above
    INST_ID - Start with 1 and increment it for each configurable line item
    OBJ_TYPE = "MARA'
    CLASS_TYPE = '300'
    OBJ_KEY = material #
    ORDER_CFGS_VALUE
    CONFIG_ID for the item, INST_ID for the item
    charc for characteristic value
    VALUE for characteristic value
    Reference thread
    How to Fill Configuration Data in BAPI BAPI_SALESORDER_CREATEFROMDAT2
    Hope it will solve your issue.
    Thanks
    Ritesh

  • How to create service items and sales order for service contracts.

    Hi,
    I have created item using Purchased Item template and one more item(service item) using service /warranty program template. Then I have used these items to create sales order with service item in it and closed that order , but Iam not getting this order in service contracts. Is this right way to create sales order for service items. I
    item name:- personal_computer
    copied from purchased order template. service is enabled and install base is checked and enable service coverage is enabled.
    item name:- service_item
    copied from service /warranty program template
    service is selected to inactive,
    service type: service
    duration: 1 year
    template: Gold
    and saved the item.
    Then I have used these two items in sales order for service contracts. But that sales order is not hitting in service contracts. Is there any error with item creation.
    Thanks,
    Bharat G.

    Following SAP Notes to be referred for Service Tax:
    1.     778976 u2013 Service Tax and Ecess on Service Tax
    2.     1032265 - SEcess on Service Tax
    Regards
    AK

  • Sales order for a configurable material

    Hi all,
    While creating a sales order for a configurable material i'm encountering an incompletion log saying enter gross weight & net weight. Even after i enter some value in the respective fields, i'm still thrown with the same incompletion & i'm unable to complete the order. In the material i find that the gross weight, netweight, volume are maintained as "zero". How do i resolve the problem??should the material master be changed??
    Thanks and regards,
    Deepak Prasanna S

    hi,
    If ur not having access to change teh master data in client system, Then u have to feed data manually in the sale order
    VA02/VA01->go to item details->in shipping view u can feed the details.
    1.But in ur earlier posting u told even after filling the details, the system pops up the message.Revert waht is error r u getting.
    2. But is advisable to  change in material master since each time while creating sale order u can't feed the input
    regards,
    Arun prasad

  • Sales Order with Variant Configuration

    I´m trying to create a Sales Order with Variant Configuration.
    First, I tried to create the order with the BAPI SD_SALESDOCUMENT_CREATE but It would not let me update characteristics.
    Then I separated into two BAPI's:
    SD_SALESDOCUMENT_CREATE to create Sales Order and  BAPI_SALESORDER_CHANGE to modify the characteristics.
    I run the two SAP BAPI's from SAP and create the Sales Order and make the characteristics correctly, but when I try to invoke from The Middleware the message  V1 555 The sales document is not yeat complete  is displayed and does not update the characteristics.
    Both functions are such as Remote-enabled Module.
    The remote user profile is SAP ALL
    Reviewing where the message is used, I see that the message is in the include MV45AF0B_BELEG_BEARBEITEN_ENDE
    IF DA_LINES> 0 AND
    SY-NE SPACE AND BINPT
    CTU_AMODUS BI_INFO-NA 'A' AND
    CATTAKTIV IS INITIAL.
    MESSAGE I555.
    ENDIF.
    Do you have any idea why since Middleware is not working?.
    Best Regards.
    Blanca Segovia.

    Hi Diwakar
    I changed the creation of Sales Order using only SD_SALESDOCUMENT_CREATE and using Commit Work and it is the same, running the function from se37 create the Sales Order and make the characteristics correctly, but when I try to invoke from The Middleware the message V1 555 The sales document is not yeat complete is displayed and does not update the characteristics.
    I Open that Sales order in VA02 and check 'Incompletion Log'  the screen show 1 Configuration, I Open the tab of the characteristics without changing the characteristics and only save, then the status changes to Complete document.
    You give me another idea that could be happening?
    Thank you very much.
    Blanca Segovia.

  • BAPI/FM in ECC to create a sales order with variant configurable material

    Hi all,
    I need to create a function module that creates a sales order in ECC with a variant configurable material.
    can some one tell me if there is a in built function module or BAPI that i can make use of to create a sales order with variant configurable material in ECC.
    Regards,
    Jessica Sam

    Thanks MxG,
    I dont know how to use this BAPI. .Can you suggest me a sample code.
    My reqmnt is, i have
    Sold to party, ship to party, bill to party , VC config material and all char values that should be populated while creating a sales order.
    please help me with what values should i populate in i/p paramters and and how to use this BAPI with some sample code if posible.
    Regards,
    Jessica.

  • Sales order for variant material using BAPI "BAPI_SALESORDER_CREATEFROMDAT2

    Hi,
    I am using BAPI "BAPI_SALESORDER_CREATEFROMDAT2" for creating salesorder for variant configuration material. I am able to create a salesorder when have only one variant material, However when i have more than one variant material getting errors. Can some one tell me how to fill the material data in the config tables provided in the BAPI.
    Thanks.

    Hai Vinit
    Check the following Code & also Check the following Standard Programs
    L2032U12
    LCRMAU01
    LCRMAU11
    LZOC1U01
    MWWMJF32
    RBUS2032
    Structures for order header
    DATA: l_order_header_in    LIKE bapisdhd1,
          l_order_header_inx   LIKE bapisdhd1x,
    Tables for order items
          li_order_items_in    TYPE STANDARD TABLE OF bapisditm,
          li_order_items_inx   TYPE STANDARD TABLE OF bapisditmx,
    Order partners
          li_order_partners    TYPE STANDARD TABLE OF bapiparnr,
    *Schedule lines
          li_ORDER_SCHEDULES_IN  TYPE STANDARD TABLE OF BAPISCHDL,
          li_ORDER_SCHEDULES_INX  TYPE STANDARD TABLE OF BAPISCHDLX,
    *-condition type
          li_ORDER_CONDITIONS_IN   TYPE  STANDARD TABLE OF BAPICOND,
          li_ORDER_CONDITIONS_INX   TYPE  STANDARD TABLE OF BAPICONDX,
    Return table from bapi call
          li_return TYPE STANDARD TABLE OF bapiret2,
    Sales document number
          l_vbeln LIKE bapivbeln-vbeln,
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
    EXPORTING
    order_header_in  = l_order_header_in
    order_header_inx = l_order_header_inx
               testrun          = 'X'
    IMPORTING
    salesdocument    = l_vbeln
    TABLES
    return           = li_return
    order_items_in   = li_order_items_in
    order_items_inx  = li_order_items_inx
    order_partners   = li_order_partners
    ORDER_SCHEDULES_IN = li_ORDER_SCHEDULES_IN
    ORDER_SCHEDULES_INX = li_ORDER_SCHEDULES_INX
    ORDER_CONDITIONS_IN = li_ORDER_CONDITIONS_IN
    ORDER_CONDITIONS_INX = li_ORDER_CONDITIONS_INX.
    Thanks & Regards
    Sreenivasulu P

  • Error while Creating a Sales Order for a Configurable Material

    Dear Members,
                            When I am creating a Sales Order for a Material. After Entering the Sold to Party and Material(Variant Configuration) I am getting an error in popup that Derivatiion Rule not defined for the Country IN. Please can you help me out regarding the settings for this.
    Thanks,
    Farhan.

    It seems your issue relates to some non assignment in COPA settings.  Hence,  check this help link and I hope this will be helpful to you
    [Source and Target Fields |http://help.sap.com/saphelp_erp2004/helpdata/en/59/65a2b8dd1711d2a6110060087a7a87/frameset.htm]
    thanks
    G. Lakshmipathi

  • BOM explosion in sales order  in variant configuration?

    Hi All,
    After searching all threads iam posting this .
    My requirement is
       In sales order the material(ZDESKTOP) which has been created in KMAT with item caragery gruop 0002(Configuration) has compenents like PROCESSESOR,DRIVE,KEYBOARD,STORAGE,MEMORY,etc where again each components have 3 varieties(values).while creating sales order the components and picking of values is running well.THE GREEN LIGHT IS ON IN VARIANT CONDITIONS.pricing is picking for variant conditins(values)
    These values are stockable items which i created as semifinished.
    item catagery TAC is determined.
    Now my problem is the values(sub-items) which are attracted pricing should reflect as sub items of ZDESKTOP.
    I have created a BOM also for ZDESKTOP.
    I HAVE GET ONLY THE PRICED VALUES AS SUB-ITEMS.
    HOW TO DO THIS SCENARIO?
    Need Help.
    Regards,
    Reddyy
    Edited by: REDDYY SD on Feb 4, 2009 12:51 PM

    Hi
    check your Item category group in material master , sales org view, if it is 0002 Configuration this material use for varient configuration, but your case it may be LUMF  (Structure/mat. below) it used for sub item price.
    It is , one of the reason.
    Regards
    Paulraj.S

  • Creation of sales order with Variant configuration info

    Hi friends,
       I am creating sales order along with Variant configuration data. We have 3 level BOM structure.
    I am using BAPI_SALESORDER_CREATEFROMDAT2 and filling in ORDER_CFGS_REF, ORDER_CFGS_INST, ORDER_CFGS_PART_OF ORDER_CFGS_VALUE, ORDER_CFGS_REFINST
    tables exactly the same way BAPISDORDER_GETDETAILEDLIST FM returns.
    Sales order is being created with no variant configuration information.(Not in the header level atleast)
      Can any one help me on this.
    Thanks
    Seshagiri

    Updating Variant Configuration data for SO item became little tricky for us in an ongoing implementation. After spending some hours investigating the correct combination of data to pass, we were able to post the document correctly. As no detailed documentation is available online for this scenario, I hope this post will help community for similar requirements. J
    For updating Variant configuration (VC) data for Sales order item, we need to populate below tables of standard FM or BAPI (e.g. SD_SALESDOCUMENT_CREATE).
    Normally the standard FM or BAPI does not return any error messages in case configuration data is not updated successfully.
    ·         SALES_SCHEDULES_IN: The required date field should be populated with appropriate value (REQ_DATE).
    ·         SALES_ITEMS_IN: Field PO_ITM_NO should be populated with appropriate value.
    ·         SALES_CFGS_REF Table:
    1.       This table should have 1 record per item.
    2.       Combination of CONFIG_ID and ROOT_ID should be unique across line items.
    POSEX
    000010
    CONFIG_ID
    000001
    ROOT_ID
    00000001
    SCE
    1
    COMPLETE
    T
    CONSISTENT
    T
    CBASE_ID_TYPE
    G
    ·         SALES_CFGS_INST:
    1.       This table should have 1 record per item.
    2.       Combination of CONFIG_ID and INST_ID should be unique across line items.
    CONFIG_ID
    000001
    INST_ID
    00000001
    OBJ_TYPE
    MARA
    CLASS_TYPE
    300
    OBJ_KEY
    MATNR value
    QUANTITY
    Quantity value
    QUANTITY_UNIT
    Quantity Unit
    COMPLETE
    T
    CONSISTENT
    T
    OBJECT_GUID
    MATNR value
    PERSIST_ID_TYPE
    G
    ·         SALES_CFGS_VALUE:
    1.       Combination of CONFIG_ID and INST_ID should be unique across line items.
    2.       We can have multiple characteristics for a material. In that case appropriate records should be inserted in this table. Note that CONFIG_ID and INST_ID should be same for all the rows you insert in this table for multiple characteristics for a material.
    3.       The characteristic value should be in SAP internal format.
    CONFIG_ID
    000001
    INST_ID
    00000001
    CHARC
    Material characteristics
    VALUE
    Material characteristics value
    ·         SALES_CFGS_VK:
    1.       Combination of CONFIG_ID and INST_ID should be unique across line items.
    2.       We can have multiple characteristics for a material. In that case appropriate records should be inserted in this table. Note that CONFIG_ID and INST_ID should be same for all the rows you insert in this table for multiple characteristics for a material.
    CONFIG_ID
    000001
    INST_ID
    00000001
    VKEY
    Material characteristics

  • User Exit - VA01 / VA02 Sales Order, using Variant Configuration Fields

    Hi,
    I'm doing a user exit for creating / changing a sales order (VA01/VA02), and in my program I'm trying to use the characteristic values in variant configuration: Extras -> Configuration.
    I know there's a whole bunch of data in SAPMV45A, but I can't seem to find what I need. Structure RV45A is the closest I can find, but the characteristic name / value fields appear empty during the execution of the user exit.
    Any help would be greatly appreciated.
    Thanks!

    R u creating your own user exit or using the ones which are available for VA01/VA02?
    If you can use existing ones, to get the more details abt them, please have a look at below link.
    http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm
    I hope it helps.
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • Automatic 2nd line item in sales order

    Hi All,
    We are using variant configuration.
    I have one requirement where if i input the first line item in sales order for a material, system should automatic input 2nd line itme of another material based on configuration mainatined.
    Please let me if it is possibel.
    Regard,
    Satyajit

    Dear Satyajit?
    Material based on configuration mainatined.
    What do you mean by the above statement? Whether you are looking for such a configuration
    or
    that you have maintained such combination somewhere in the system?
    Have you checked the possibilities of using a BOM?
    You can also check the possiblity of material listing.
    Thanks & Regards,
    Hegal K Charles

  • BAPI/ FM in CRM to create a sales order with variant configurble material

    Hi All,
    I need to create a sales order using variant configurable material in CRM not manually through GUI. I need to develop a function module that will create sales order using variant configurable material in CRM .
    Can some one tell me if there is an in-built BAPI/Function Module availabe in CRM to create sales order using variant configurable material in CRM .
    When i researched i found that there is a BAPI 
    BAPI_BUSPROCESSND_CREATEMULTI which can create a sales order in CRM.
    I dont know if this can create a sales order with varinat configurable material in CRM
    can some one guide be how i can build a function module in CRM which generates a sales order with variant configurable material.
    Regards,
    Jessica Sam

    Jessica
    I am not a CRM expert and am still learning. But you can try the BAPI CRMXIF_ORDER_SAVE and see if that helps.
    Good Luck
    Ram

  • How to get Characteristic Values assigned to the line item of Sales Order?

    Hi,
    I want to get the Characteristic Values( Variant Configuration )assigned to First Line Item of Sales Order.
    I was using the Fn. Mod.: VC_I_GET_CONFIGURATION_IBASE,
    this fn. mod. giving all the Characters but not the assigned characteristic values.
    Is there any other way to find characteristic values of sales order.
    Thanks,
    vinayak.
    Message was edited by: vinayaga sundaram

    For example, please see this example program.
    It lists the characteristic names, the values, and the description of the values which are tied to a sales document.
    report zrich_0001.
    * Internal Table for Characteristic Data
    data: begin of i_char occurs 0.
            include structure comw.
    data: end of i_char.
    data: xcabn type cabn.
    data: begin of xcawn,
          atwtb type cawnt-atwtb,
          end of xcawn.
    data: xvbap type vbap.
    parameters: p_vbeln type vbap-vbeln,
                p_posnr type vbap-posnr.
    start-of-selection.
      select single * from vbap into xvbap
                 where vbeln = p_vbeln
                   and posnr = p_posnr.
      clear i_char.  refresh i_char.
    * Retrieve Characteristics.
      call function 'CUD0_GET_VAL_FROM_INSTANCE'
           exporting
                instance           = xvbap-cuobj
           tables
                attributes         = i_char
           exceptions
                instance_not_found = 1.
      loop at i_char.
        clear xcabn.
        select single * from cabn into xcabn
                 where atinn = i_char-atinn.
        clear xcawn.
        select single cawnt~atwtb into xcawn
                   from cawn
                     inner join cawnt
                       on cawn~atinn = cawnt~atinn
                      and cawn~atzhl = cawnt~atzhl
                          where cawn~atinn = i_char-atinn
                            and cawn~atwrt = i_char-atwrt.
        write:/ xcabn-atnam, i_char-atwrt, xcawn-atwtb.
      endloop.
    Regards,
    RIch Heilman

Maybe you are looking for

  • Opening a file with a .WPS Ext.

    Does anyone know how to open a file with the Extension of .WPS? The file was created on a PC but i can't get it to open on my MAC. Maybe i don't have the right program. What program creates this Extension? Sorry if this is not the right place for thi

  • Trying to link my email with a iPhone 5c

    I'm trying to link my Tiscali email account with my mail app on my iPhone 5c. I input all the correct details and as i press save it pops up saying 'Cannot connect using SSL' 'Do you want to try setting up the account without SSL?' If i press No then

  • Why will mail only print the address not the body of the e-mail?

    Why does mail only print the address feilds of an e-mail rather than the content of the e-mail?

  • 13" Macbook Air, or 13"rMBP

    So i am in the possition that I need to get a new computer, cant really wait.  If I could wait I would wait for new haswell based rMBP.  I am looking at the macbook air, battery a huge plus, and it seems like the gpu would be better for any games I m

  • Mac Mini & Viewsonic VG150

    I was given an original Mac Mini, 256 MB RAM, no wireless, combo drive, along with a Viewsonic VG150 LCD monitor. However, when I start it up I get the beginning of the boot process and then the monitor goes black. Turning the monitor off and onn res