Change item config

Hi,
I need to change a config for an item with crm_order_maintain.
Here is my code:
h_field_name-fieldname = 'CONFIG'.
        APPEND h_field_name TO ht_field_name.
        h_field-ref_guid = config_guid.
        h_field-ref_kind = 'D'.
        h_field-objectname = 'CONFIG'.
        h_field-field_names = ht_field_name.
        APPEND h_field TO ct_input_fields.
        CALL FUNCTION 'CRM_CONFIG_DETERMINE_KB_OW'
          EXPORTING
            iv_header_guid = iv_header_guid
            iv_item_guid   = config_guid
            iv_product     = config_prod_guid
          IMPORTING
            ev_handle      = ev_handle
            ev_kbname      = ev_kbname
            ev_kbversion   = ev_kbversion
            ev_kbprofile   = ev_kbprofile
          EXCEPTIONS
            no_kb_needed   = 1
            no_kb_found    = 2
            OTHERS         = 3.
        IF sy-subrc <> 0.
        ENDIF.
        h_cuins-config_id = '1'.
        MOVE ev_handle TO h_cuins-inst_id.
        h_cuins-obj_type = 'SERV'.
        h_cuins-class_type = '300'.
        h_cuins-obj_key = ls_item-id.
*        h_cuins-obj_txt = ls_item-id.
        h_cuins-quantity = '1.0'.
        h_cuins-author = '5'.
        h_cuins-complete = 'T'.
        h_cuins-consistent = 'T'.
        APPEND h_cuins TO ht_cuins.
        h_cucfg-config_id = '1'.
        MOVE ev_handle TO h_cucfg-root_id.
        h_cucfg-sce = '1'.
        h_cucfg-kbname = ev_kbname.       "***
        h_cucfg-kbversion = '0.0'.    "***
        h_cucfg-kbprofile = ev_kbprofile.     "***
        h_cucfg-complete = 'T'.
        h_cucfg-consistent = 'T'.
        h_cucfg-kblanguage = 'F'.
        h_cucfg-cfginfo = 'VCOND=VARIANT_CONDITION_KEY'.
        APPEND h_cucfg TO ht_cucfg.
       h_curef-config_id = '1'.
       MOVE ev_handle TO h_curef-inst_id.
       h_curef-object_guid = config_guid.    "***
        APPEND h_curef TO ht_curef.
        LOOP AT lt_config INTO ls_config WHERE client EQ ls_item-number.
        ENDLOOP.
        h_config-cuval = ls_config-cuval.
        h_config-cuins = ht_cuins.
        h_config-curef = ht_curef.
        h_config-cucfg = h_cucfg.
        h_config-ref_guid = config_guid.
        APPEND h_config TO ht_config.
        CALL FUNCTION 'CRM_ORDER_MAINTAIN'
         EXPORTING
            it_config                     = ht_config
         CHANGING
            ct_input_fields               = ct_input_fields
        EXCEPTIONS
            error_occurred
            document_locked
            no_change_allowed.
    REFRESH tab_guid.
    APPEND  iv_header_guid TO tab_guid .
    MOVE iv_header_guid TO ev_guid.
    CALL FUNCTION 'CRM_ORDER_SAVE'
      EXPORTING
        it_objects_to_save   = tab_guid
        iv_update_task_local = 'X'
      EXCEPTIONS
        document_not_saved   = 1
        OTHERS               = 2.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
*      EXPORTING
*        wait = iv_wait.
    CALL FUNCTION 'CRM_ORDER_DEQUEUE'
      EXPORTING
        iv_guid = iv_header_guid.
Table lt_config contain the new config.
I need help please.
Thank You
Fethi
Edited by: Fethi Ben Bagdad on Aug 10, 2010 2:14 PM
Edited by: Fethi Ben Bagdad on Aug 10, 2010 2:15 PM
Edited by: Fethi Ben Bagdad on Aug 10, 2010 2:16 PM

Thanks Krishna
But as u mentioned the way to make the non editable field into editable one. But that will applicable in case of manual chage. But can it be applicable for changing the Item category by using Object dependency??
Actually in our scenario, for some of the item category that field in the sales order line item remains editable. we have tested with that also. Once the item category is getting determined, object dependenct is not able to modify the item category in the sales order line item.
I have explores something, if I include PSTYV field in VCSD_UPDATE, will it work? VCSD_UPDATE is the table that contains field of sales order can be modified with the usage of object dependency.
Please let me know ASAP.
Regards
Som

Similar Messages

  • Change item category Display mode  in sales order (Third Party )

    Hi all,
    I am creating sales order with reference to sales contract but at the time of sales order we don't have enoff stock to deliver to customer , so we have deiced to Third party sales process
    But the problem is while creating a sales order with reference to Sales contract the line item of the sales order in grad Mode ( Not changeable mode )
    Can any one guide me how sales order line item should be in active mode  so i can change the Item category as a TAS third party item category
    Help me regards this
    Thanks
    Rajesh

    Hi all.
    Thanks for response
    I maintain all configuration, But the problem is while creating Sales Order with reference to Contract
    the Sales Order line item in grad Mode i am unable to change item category as TAS
    i mean TAN is on Display Mode
    and we are using Varient config  for that material
    Please guide me where i need to Configure so system should allow me change item category in sales order please guide me
    Thanks
    Rajesh
    Edited by: RAJESH KUMAR on Jun 16, 2009 10:23 PM

  • Best Practice: Dynamically changing Item-Level permissions?

    Hi all,
    Can you share your opinion on the best practice for Dynamically changing item permissions?
    For example, given this scenario:
    Item Creator can create an initial item.
    After item creator creates, the item becomes read-only for him. Other users can create, but they can only see their own entries (Created by).
    At any point in time, other users can be given Read access (or any other access) by an Administrator to a specific item.
    The item is then given edit permission to a Reviewer and Approver. Reviewers can only edit, and Approvers can only approve.
    After the item has been reviewed, the item becomes read-only to everyone.
    I read that there is only a specific number of unique permissions for a List / Library before performance issues start to set in. Given the requirements above, it looks like item-level permission is unavoidable.
    Do you have certain ideas how best to go with this?
    Thank you!

    Hi,
    According to your post, my understanding is that you wanted to change item level permission.
    There is no out of the box way to accomplish this with SharePoint.               
    You can create a custom permission level using Visual Studio to allow users to add & view items, but not edit permission.   
    Then create a group with the custom permission level. The users in this group would have the permission of create & add permission, but they could no edit the item.
    In the CodePlex, there is a custom workflow activities, but by default it only have four permission level:
    Full Control , Design ,Contribute and Read.
    You should also customize some permission levels for your scenario. 
    What’s more, when use the SharePoint 2013 designer, you should only use the 2010 platform to create the workflow using this activities,
    https://spdactivities.codeplex.com/wikipage?title=Grant%20Permission%20on%20Item
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • PO issue :What should we do to close the PO or change item quantity?

    Hi Everyone,
    I am new to MM.I got an issue saying that there is some mismatch with quantity in the particular PO. User wants to cancel/close the PO system but it is not allowing to do so. To change the quantity is also  good, but while trying to change item quantity system is giving the following error message.
    Quantity 1000 is smaller than quantity issued 2000.
    To close the PO or change item quantity what should I need to do?
    A help will be highly appreciated
    Regards,
    sharon.

    Hi,
    It is of the standard functionality of SAP to verify the GR and IR against PO quantity when you try to close your related PO line item.  It ensures data consistency for your PO and PO history.  What you should do is very much subject to the status of your PO history (i.e. how many you have already GRed and/or IRed).  Check it again in your PO history tab of the PO item details level prior to making any further action on how your PO line item quantity shall be adjusted.  A particular example is if GR was done for the quantity of 2,000, you can't simply adjust your PO quantity into 1,000 as it goes against the logic whereby the GR quantity (and/or IR quantity) must be no larger than PO quantity.
    Cheers,
    HT

  • I bought this MAC from a family member. Did everything need to change items to my apple id. Today I did the update for IOS Yosemite now the app store is auto filling with someone else id?? But they seem to be my apps??

    I bought this MAC from a family member. Did everything need to change items to my apple id. Today I did the update for IOS Yosemite now the app store is auto filling with someone else id?? But they seem to be my apps??

    If you didn’t erase the drive and install using you AppleID, then the OS and the purchased apps are still registered to the other AppleID. You cannot change that by logging into iCloud. Apps are forever tied to the AppleID used to purchase/download them.
    You have to erase the drive and download/install the Apps using your AppleID.

  • Change item categories purchasing

    Hello,
    I found thread 1582236 via google. It nicely explains how to get the "invoice receipt" flag out of the purchase order by default (text below). I tried to change the customizing like described via IMG path:
    Materials Management>Purchasing>Define External Representation of item catagories>0/Standard
    But for me this customizing for "Define External Representation of Item Categories" is all in grey. I am not able to add new items categories or to change the existing ones.
    So can it be, that it is not possible to change item cats attributes ("Define External Representation of Item Categories") for purchase orders, or can someone confirm that it is changeable?
    Thanks
    Hi Ashish,
    Basically when you talk about procurement, it is always chargeable (that means purchasing of materials or services mostly purchased at a certain price. That means when it is chargeable, defnetly there must be invoice (accounts payable to vendor) for that perticular item (that can be for material or a service) in the purchase order.
    In above, case the Invoice Receipt Indicator is set (indicator set automatically) in the Invoice Tab of the Item details in the PO. And that specifies whether an invoice receipt is linked to the purchase order item.
    Note: If the Invoice indicator is not set, the means goods are to be delivered free of charge.
    And the above is based on the default configuration that is available in the system, but it can be customized as per your specifications, is as follows:
    Steps for that configuration setup:
    --> Display IMG (SPRO)
    --> Materials Management
    --> Purchasing
    --> Define External Representation of item catagories (click it)
    --> Here you can set the IR indicator depending on the type of procurement for the Item catageory (lie, std, thridparty,etc)
    --> click it, by choosing the required combination of item cat(internal) : item cat(external)
    and, in the control: invoice receipt
    set the Invoice Receipt (this is only an indicator and it specifies that the PO item is chargeable and is to be invoiced. But it can be changeable (remove or set the flag) by user (when the item is delivered free of cost), it is just a link for PO item.
    And there is one more indicator IR indicator firm.
    there are TWO options:
    --> firm in PO (if you set this indicator, user can not change while creating or changing the PO)
    --> changeable in PO (if this indicator is set, it can be changeable if requires at the time of creation or change of PO through ME21N /ME22N)
    And also
    --> Display IMG (SPRO)
    --> Materials Management
    --> Purchasing
    --> Maintain account assignment categories (click it)
    And here, also you can set the same by choosing your required /specific account assignment categories combination.
    Note: If you set the Invoice Receipt indicator in the CONFIGURATION (that is in Display IMG) and this will effect to the entire process for all users. So, please goahead by keeping all these things in your mind and in concern with the team.
    Hope it clarifies you,
    Regards,
    Srin

    yes I can confirm what JouLes wrote. But you can only change what I told you before.
    if you can do customizing on anything else, then you should be able to do it here too, there is no authorization object for a specific IMG area or knot. either you have authorization for customizing or not.
    Are you in a developement client? In production client it is not possible to do this customizing.

  • Change item category in delivery order

    Hi everyone
    Issue: Can not change item category in delivery order.
    Phenomenon:
    1:Create purchase order and receive item based on it. complete invoice verification.
    2:Use MIGO to create return delivery based on material document that is created during above process.
    3:Based on system settings, (Sales org, ship-to party etc), outbound delivery is automatically created in background.
    4:Try to change item category which is already determined during delivery order creation, but it is grayed out.
    Can we change item category in this situation?
    I have checked thread "Number of attempts to change Item Category
    This looks same issue but I still do not know how to control item category in delivery order.
    In material type, is there any place I can configure to allow user to change item category
    in delivery order?
    Please advise.
    Satoru

    Hi,
    Check whether this link would help you,
    [Change item category in delivery|Change item category in delivery]
    It looks you need to use user exit: MV50AFZ1 to acheive your requirement.
    Regards,

  • Unable to Change Item Category in Sales order

    Hi all,
    I am creating sales order with reference to sales contract but at the time of sales order we don't have en off stock to deliver to customer , so we have deiced to Third party sales process
    But the problem is while creating a sales order with reference to Sales contract the line item of the sales order in grad Mode ( Not changeable mode )
    Can any one guide me how sales order line item should be in active mode so i can change the Item category as a TAS third party item category
    Help me regards this
    Thanks
    Rajesh

    hi,
    You can  the item category field (VBAP-PSTYV)  editable , if item is configurable (item category TAC), then change item category to TAS.
    by using include  MV45AFZZ -  FORM USEREXIT_FIELD_MODIFICATION.
    when screen 4001 or 4003.
       IF VBAP-PSTYV = 'TAC'.
               SCREEN-INPUT = 0.
              MODIFY SCREEN.
            ENDIF.

  • Changing item category in sales order

    Hi,
    For some of the materials in the sales order, the item category is grayed out and I cannot change it.
    I can access the drop down menu and see the various item categories assigned to the item category group.
    How can I change the item category for these materials in the sales order?
    Sincerely,
    Ketan

    hi.
    Ketan
    As u r saying that you can take drop down of the assign item catagory there then only one possibility is left that u have deliver some of the qty from the order. So system is not allowing u to change item catagory.
    Please check have u made any delivery from that sales order.
    if yes then u can not change item catagory.
    Hope this will help you.
    Thx.

  • Change Item Category in Sales Order for KMAT materials

    Hi,
    How can I change item category in sales order/quote for KMAT materials?
    Currently in the sales order/quote, the item category field is grayed out for KMAT/configurable materials and I can change the item category.
    Please help me.
    Sincerely.
    Ketan

    Dear Ketan,
    I hav exactly the same problem.
    Did you finally succeed?
    Thanks.
    Ben.

  • Dont allow to change item level data in sales order.

    Hi all,
    I have a requirement in which, users should not be allowed to change  item level data or not allowed to add any new items in sales order on a certain condition. But they should be allowed to change the header level data.
    How can i achieve this.
    Can anyone help me?

    Hi,
    Check below exit.
    MV45AFZZ and in form USEREXIT_MOVE_FIELD_TO_VBAP.
    Here check for ur validation, If passes then CHECK variable SVBAP-TABIX. If it is 0 then item is created. If it is GT 0 then item is changed. Other way could be...
    select data from VBAP for each sales document and item in xvbpa internal table.
    If for any item u don't have data in VBAP table that means u r adding that item. So issue error message.
    *       FORM USEREXIT_MOVE_FIELD_TO_VBAP                              *
    *       This userexit can be used to move some fields into the sales  *
    *       dokument item workaerea VBAP                                  *
    *       SVBAP-TABIX = 0:  Create item                                 *
    *       SVBAP-TABIX > 0:  Change item                                 *
    *       This form is called at the end of form VBAP_FUELLEN.          *
    Thanks,
    Vinod.

  • Just bought a new mac mini, wireless keyboard, and track pad. My track pad will not synch. All advise I have been given is to change items in the setting menu, but I cant because I still have to get through the setup!!

    Just bought a new mac mini, wireless keyboard, and track pad. My track pad will not synch. All advise I have been given is to change items in the setting menu, but I cant because I still have to get through the setup!!

    The power button for the Trackpad is on the right hand end of the battery case. Press that button to initiate the pairing process. On the top of the Trackpad just above the power button is a tiny green light (you probably cannot see it unless it is lighted). That light will indicate ehther or not the Trackpad is discoverable. If the Trackpad has discoverable the green light will blink on and off. If it does not pair within 3 minutes you will have to press the power button again to re-initiate the pairing process. Once your Trackpad has paired, you can just leave it on and it will pair automatically when you reboot your Mac.
    If you are having problems pairing, try turning off any other Bluetooth devices within 30 or so feet of your Mac mini. That includes other Computers, iPhones, iPads, etc. that may be in the area. Once your Trackpad has pairedwith your mini, you don't have to be concerned about other Bluetooth devices.
    One other hint, I find that although the Wireless Trackpad does not eat batteries as fast as the Magic Mouse it still uses more than the Wireless Keyboard. It is a good idea to keep a supply of AA batteries around. I have used Apple's Rechargable batteries, but found they did not last that long before needing to be recharged. I have had the best battery life from Duracell Quantum batteries.

  • Changing ITEM catergory using BAPI_SALESORDER_CHANGE

    Hi
    i am working on changing ITEM catergory for line items of sales order.
    If the owner(ZZORD_OWNER) is 'AM' then i hv to populate PSTYV in VBAP as 'ZTAC' else 'ZDEL'.
    the field ZZORD_OWNER is custom field added in header level(value is populated using BAPI, cannot be entered from screen).Kindly let me know how can i attain this activity.

    hi
    i have to change entries in table for corresponding items when ZZORD_OWNER is populated or changed.
    i want to know where should i write the code for this.

  • Change item category of BOM component

    Hi,
    Our user wanted to change the item category for BOM components through transaction IB12 using LSMW.Wanted to confirm whether it is possible to change item categoryof BOM component from "N" to "L" through LSMW.What exactly will be effected because of this change?And the steps to change the item category from "N" to "L" for the list of BOM component using LSMW.
    Request your valuable thoughts.
    Thank you in advance,
    Regards,
    Rubina Rahman

    Hi Rubina,
    N is non stock item
    L is stock item
    You have to make sure why the business warants to chnage the item category.
    To answer the question:
    It is possible to chnage the item category from "N" to "L" through LSMW (Provided depends on the number of components used in a BOM. If the number of items exceeds to multiple screen, then you have to think of developing BDC)
    The effect will be: with item category "N" if the material is used in the order, based on the configuration the system shall automatically trigger the purchase requisition. With item category "L" it is assumed as stock is available and taken care by MRP program.
    Suppose if it is material BOM:
              A. Use T.code: CS02 in LSMW recording
              B.  Provide information like Material number, Plant, BOM usage
              C. In the item level change the item category from N to L
              D. Save the recording
              E. I hope you know the remaining LSMW process steps
    Cheers,
    Raj

  • How we can change items in TO be Approved status to Appproved status in CCM

    Hi,
    Is there any method to change items in "To be approved status" to "Approved" in procurement catalog in CCM1.0?
    Thanks

    Hi Prithwiraj
    The simple answer is you approve them! You should assign yourself as an approver in the catalog (Under tab 'Schema' -> Manage Approvers), your user should also then have the role /ccm/catalog_approver, once they do, the link will appear on the catalog home page to approve catalog entries, you should then go in to the relevent catalog and select Find -> Items for approval -> Select all -> Approve
    Hope this helps.
    Jason

Maybe you are looking for