Problem in changing characteristics of material while sales order creation

Hello,
My requirement is to change the characteristics of the material in a sales order before the sales order is saved.
I tried using 'BAPI_OBJCL_CHANGE' but it aint working. In the debugging mode it is found that the program is searching for entries in KSSK table which are not found. The object key passed to the BAPI is a combination of sales order number and the item number and the object table is VBPS.
Is there any other way by which I can change the characteristics before the sales order is saved?
Thanks in advance,
Anurag

Try to use CRM_STATUS_CHANGE_INTERN if it's system status
and CRM_STATUS_CHANGE_EXTERN if it is user status

Similar Messages

  • Problem after change item status procedure in sales orders.

    Hello experts,
    I have changed item status procedure for sales orders. But now all BDoc with queue name CSA_ORDER_xxxxx remain in state 'Written to qRFC Queue (intermediate state)' and needs to be reprocessed manually.
    No problem reprocessing.
    Have somebody any idea ?
    Best regards
    Juan Salom

    Hi,
       Is your inbound queue un-registered(type U)? Look at trx.
    SMQR
    and see if it is in un-registered. If yes, select the CSA_ORDER_*** queue and click on
    Registration
    button.
    If this does not help, re-generate your Bdoc services (for Bdoc BUS_TRANS_MSG) using
    SMOGGEN
    or
    using the generation workbench.
    Then try the delta once again and observe for queue and Bdoc status in the
    SMW01
    Hope it helps! Reward if helpful.
    Regards,
    Sudipta

  • Capture Characteristics with Material and Sales Order

    Dear All ,
    I have to capture the charecteristics alongwith the material, these characteristics also flow in the sales order, basically a class has been defined which holds a number of characteristics and this class is assigned to the material and I guess this is done using the variant configurator,
    1) How will be able to capture the same and display  
       those ?
    2) Does this characteristics flow in the standard
       extractors of the material and sales order or any
       other cube which can multicubed with those ?
    Plz do suggest me the an viable option.
    Thanks & Warm Regards,
    Fayak.

    Hi Anil,
    Thanks for your reply, I have checked up the material attributes it does not flow there and I was referrring to one note where you can enhance your datasource using CTBW to capture this characteritsics so I did enhance 0MATERIAL_ATTR, the other attributes are listed as an TEXT DataSource and If I check them using RSA3 data gets populated accordingly but the enhanced datasource 0MATERIAL_ATTR which become 1CL_MAT001 does not return any records shows zero records, I am looking for charcterictics which have been mapped using an Variant Configurator and as far as the note suggests it has to be done thru CTBW to capture this, I have done that but success still eludes me,
    Experts Plz help on this as I am on pressure to complete this.
    Thanks,
    Fayak.

  • Is it possible to avoid duplicate material in Sale order creation

    Dear SD gurus
    Is it possible to avoid material duplication in va01 sale order creation. For amendment purpose the marketing user making new line item with amended qty instead of quantity change. kindly advise me to solve the problem.
    Thanks & Regards
    R.Udayakumar

    HI,
    There's no alternative to user disciplibe . Business reqt are sometimes like this only
    what you can do is use exit mv45afzz in saels order and put coding logic . this will surely work.
    {Removed by Moderator}
    regards
    Edited by: Lakshmipathi on Aug 29, 2009 6:13 PM

  • Replacing Profit Center value while sales order creation process - VA01

    Hi,
    Profit Center replacement   in Tcode VA01 and VA02
    I want to replace the profit center value (COBL- PRCTR) in Account assignment TAB in sales order creation time VA01 and VA02 by using custom logic (Line item Material Group and Sales District VBKD-BZIRK).
    Can anyone tell me what exit or BADI I can use for this ( I tried some of them and not working properly).
    1.     In Exit I need to have the value of Sales District VBKD-BZIRK and Line item u2013 Material Value  - These 2 field values I need in the exit.
    Thanks in advance.
    Rajesh.

    What do you mean this is not correct user exit. That is an include and there are user exits within that include.
    Have you tried save document prepare?  If yes, what have you done?
    Don't just blindly say 'that is not correct' or don't expect someone code for you. You better try in different way and learn how to do it. I just got it worked in my system just in 5 minutes in debug.
    You are not going to change COBL-PRCTR but you should change XVBAP-PRCTR.
    put a break point in userexit_save_document_prepare in include MV45AFZZ
    Loop through XVBAP and change PRCTR as per your logic.... This changed PRCTR carried till end (billing document/accounting document). I can see the profit center document with changed profit center.
    Good luck... if that solves. Mark this thread appropriately.
    Most importantly, you better close your previous threads if they are answered. if you solved by yourself post the solution so that others can benefit from that. 
    @moderator, please check this guy posts
    Edited by: Sampath Kumar on Apr 28, 2011 1:16 PM

  • Characteristics Value screen suppress while Sales Order creation

    Hi Experts,
    In Super BOM of header item, we have around 50 materials as Configurable components. Now when user create Sales Order, system first shows Value Assignment Screen for all configurable components. So here user intervention is more.
    Requirement is initially system should not show value assignment screen. It should be called only on user's request.
    Thanks & Regards,
    Vishal Gupta

    Hi,
    If u have to display all 100 records in table as value help..
    n no input field is mandatory thn go for EVS...
    which u can excecute on WDinit();
    Regards
    Khushboo

  • User exit - VA01 - Adding new line items while Sales Order Creation

    Hi All ,
    I have a requirement where : in VA01 , i have to add new line items using USER EXIT or BADI.
    The scenario is : we maintain Characteristics for Material. When we select a particular characteristics, Factor and length will be displayed in a Popup. we can specify the Factor and lenght.
    Here , if i specify Factor as 10 and lenght as 1000. the Material has to be cut / split into 10 items of 1000 mts each. and the ITEMs table control should get 10 ITEMS .
    How to add new items using User exit or Badi in VA01 while creating a sales order.
    i have identified the user exit . What code should be used to add new line items.
    kindly help me in solvng this.
    Waiting for your replies.
    Thanks in advance.
    Suki.

    hi
    wich user exit do you take for that ???

  • How to update VBFA while sales order creation using BAPI

    Hi,
    I am trying to create sales orders for each schedule line items while inquiry creation.
    This I have done in the user exit in the VA11 program MV45AFF using BAPI "BAPI_SALESORDER_CREATEFROMDAT2".
    along with the Inquiry, Sales orders are also getting created. But I am facing 2 problems.
    1) BAPI is not returning the sales order number to the program but when checked from SE37 it is returning the sales order   
        number.
    2) It is not updating the VBFA (SD flow) table.
    Regards,
    Krishna.

    Hello,
    1) BAPI is not returning the sales order number to the program but when checked from SE37 it is returning the sales order
    number.
    - are you passing simulation parameter (TESTRUN) as 'X'
    2) It is not updating the VBFA (SD flow) table.
    - Please use BAPI_SALESDOCUMENT_COPY for copying and updating VBFA table
    Thanks
    Krish

  • Runtime Error in CRM_EVENT_PUBLISH_OW while Sales Order Creation

    Hi,
    I am getting run time error when I try to copy the sales order from Existing one and Save it. ( in WEB UI)
    I am getting this error in the Function Module : CRM_EVENT_PUBLISH_OW
    Code Extract :
    IF ( iv_obj_name IS INITIAL ) OR
        ( iv_guid_hi IS INITIAL ) OR
        ( iv_kind_hi IS INITIAL ) OR
        ( iv_event IS INITIAL ).
    -- Fehlerhafte oder unvollständige Parameterübergabe bei Aufruf &1 ---*
       MESSAGE x028(crm_ssc) WITH 'FU CRM_EVENT_PUBLISH_OW'.
    ENDIF.
    Please help me, how can I solve this runtime error.
    Thanks,
    Sandeep

    Hi,
        The Event Publish itself might not be responsible for the error. Whenever you make a change in the order, the change is "published" in order to check if the change is acceptable to other objects of the order. You will have to analyze what might be possibly affected when you made the change or have to do a lot of debugging....
    Regards,
    Arun Prakash

  • COPA error while Sales order creation

    Hi,
    We are trying to create Sales order and getting error as below;
    Inconsistency between a document field and the prof. segment number
    Message no. KE396
    Diagnosis
    A line item was assigned to a profitability segment (number 046xxxxxx) which has the value 0000005xxx for characteristic Customer. The original document (FI document, sales order, internal order, etc.), however, contains Txxxx in this field. It is therefore inconsistent with the profitability segment found.
    Can anybody please help me to resolve this?
    Thanks,
    Niki Shah.

    What is the release you are working on? If it were < 4.6A, and you are trying to create an order with refenrence, thenit could be a program error as fixed by note 171064.
    Also refer to this [thread|Error KE 396 in sales order;
    You may need to fix a program error or add some coding.

  • Error saying to enter : Incoterms while sales order creation

    Hi,
    I am trying to create a sales order. Once the header data is entered, I am getting error saying "Enter Incoterms".
    But, after entering the item data, there is no error. They are determined.
    But, incoterms should get determine, based on header data.
    Could you please let me know, is it a standar behaviour or any note needs to be applied?
    Thanks,
    Sandeep

    Incoterms are picked up from the sales area data of the sold to party. Please check your sold to master data if the incoterm is maintained. I hope this helps.
    Regards,
    Gaurav Gera

  • Change Scheduled Billing date while Bill Order creation

    Hi,
    I have requirement where I need to change the scheduled billing date while creating a Bill Order.
    I have tried to implement a BADI : ISU_INTERVAL_CHECK for same via transaction code EL01.
    There is an issue with the custom BADI created as the changing parameter of this BADI (txy_etrg) does not update the
    Scheduled billing date even after modification of scheduled billing date.
    Note : I have checked in debugger that changing parameter structure txy_etrg becomes an internal table outside BADI and does not contain the updated scheduled billing date.
    Kindly guide how this issue can resolved.
    It would be helpful if anyone can help with other BADIs or user exits which I can use to change the scheduled billing date.
    Thank you in advance!

    Hi,
    Sorry, I can't really help, but I'm genuinely puzzled, why anyone putting out such a requirement believes:
    1) something like that (orders deviating from schedule) should work in the first place, and
    2) anybody besides SAP's "IS-U  team" itself should be in a position to implement something like this without breaking something in the system.
    I may be wrong, but everything I know about IS-U tells me - the 'right' way would be to 'reschedule' billing date via portion/schedule record, prior to creation of orders.
    cheers
    Janis

  • Sales order creation, standard event trigger is taking long time .

    We have a requirement where we are sending data to CRM system using RFC function module. This data is sent while sales order creation or change. We have used standard event BUS2032.CREATED to trigger CRM FM in sales order creation mode. In sales order change mode, we are using custom event. In production system, our custom change event is getting triggered fine and data is sent to CRM system with small time lag of around 1 minute. But, while sales order creation, standard event trigger is taking long time ( sometimes about 20 minutes) in production system.
    We tried triggering same custom event at the time of sales order creation using FM u2018SWE_EVENT_CREATE_IN_UPD_TASKu2019 as well but, still we are not able to improve performance of the event trigger at sales order creation.
    Regards,
    Sushee Joshi

    HI,
    we have written SWE_EVENT_CREATE in update task
    I think instead of calling in update task simply call to function module CALL FUNCTION "SWE_EVENT_CREATE" might trigger the event immediately.. Did you try to check in this way..
    OR
    And I also suggest you to check the entry in SWE2 txn with respect to your workflow tempalte, may be you have enable the option ENABLE EVENT QUEUE, this could be one of the reasons.. If it is enabled please disable it (uncheck)
    Please check..
    Regards
    Pavan

  • How the availiblity check is carried out during the sales order creation

    Hi All,
    I have maintained planned delivery time, GRProcesing time and replenishment lead time in days in material master. I am not understand ing how the system is calculating the availability date of the material during sales order creation.
    Please do needful regarding this.
    Regards
    Phani

    Hi,
    Using the Scheduling data from Delivery & Transportation Scheduling, the system does the backward calculation from the Requested Delivery Date. This is used to arrive at Material Availability Date.
    On the Material Availability Date, system checks the Available Qty, as seen in CO09 in column ***. ATP Qty. If the Available Qty is > than Required Qty, Requested Delivery Date is confirmed. Otherwise,
    System moves into the future till it finds the required Available Qty. The new date is then the new Material Availability Date.
    On getting the confirmed Material Availability Date, system does the Forward Scheduling to arrive at a Confirmed Delivery date.
    Regards

  • Issue while changing Item Category during Sales Order Creation

    Hi,
    Requirement:
    Requirement is to change the item category of Sales Order item while creating the sales order.
    Rule is: If item category is IRAT then it should be changed to IRLN.
    For this, I am using the user exit "USEREXIT_SAVE_DOCUMENT_PREPARE" available in the include MV45AFZZ.
    Issue:
    Using the above mentioned exit, Item category is getting changed to the desired value in the created sales order BUT value of Billing Status (VBUP-FKSAA) which is supposed to get changed is blank.
    For example, Sales order is created from VA01 and item category is changed manually to the value mentioned above, then for the sales order created we have VBUP-FKSAA = 'A'. But when value of Item category is not changed manually and it is changed from the exit, then value of VBUP-FKSAA is blank.
    I have to find a solution which would change the value of Billing Status according to the change in the value of Item Category.
    Please suggest a relevant solution.
    Thanks a lot for responding.
    Abhinav.
    Edited by: Abhinav Jain on Apr 9, 2010 6:47 PM

    Hi Abhinav,
    I have a simmilar problem. In my case I am changing Reason of Rejection in the user-exit, but net value is not getting updated. Did you solve your problem? Any other way to change a field of a sales order item?
    Thanking you in advance,
    Nisha

Maybe you are looking for