Retrieve item level dates during service order creation before saving

I have a requirement where I need to retrieve item level date (First Response i.e. APPT_TYPE as SRV_RFIRST) and modify the date and put it back to the same screen field when ever a line item is entered.
To do this we found a BADI CRM_SERVICE_I_BADI which triggers when ever we enter line item. We tried many FM which retrieves item level dates from buffer CRM_DATES_READ_MULTIPLE_OB; CRM_DATES_READ_SINGLE_OB;
CRM_DATES_READ_SINGLE_OW;
Most of them are returning all the dates except first response. No configuration issues. Can anyone help me how to get the first response date during creation.
Thanks
Vamsee

Hi Vamsee,
Do you happen to know the solution? We have similar issue too as we can not retrieve the new entered dates and process it in BADI CRM_SERVICE_I_BADI.
I would appreciate your reply if you have a solution.
Thanks,
Bin

Similar Messages

  • User exit to change item level data in purchase order

    Hi,
    Can anyone let me know the user exit to change item level data in purchase order . there is a badi ME_PROCESS_PO_CUST for this but the issue is its method process_item gets triggered only when the item is changed. My requirment is
    For purchase order document types u201CZSOu201D and u201CZCOu201D, where the purchase order is a u201CLimits Orderu201D only i.e. no materials or services on the purchase order, the print price indicator field should be set to u201Cblanku201D (unchecked).   now i cant use ME_PROCESS_PO_CUST  because process_item wont get triggered if there is no change in itemlevel data.
    Regards,
    Rahul

    Hi Rahul,
    Probably EXIT_SAPLMEKO_002.
    hope it helps,
    Edgar

  • Help - User exit to change item level data in Purchase Order

    Hi,
    Can anyone let me know the user exit to change item level data in purchase order . there is a badi ME_PROCESS_PO_CUST for this but the issue is its method process_item gets triggered only when the item is changed. My requirement is For purchase order document types u201CZSOu201D and u201CZCOu201D, where the purchase order is a u201CLimits Orderu201D only i.e. no materials or services on the purchase order, the print price indicator field should be set to u201Cblanku201D (unchecked).   now i cant use ME_PROCESS_PO_CUST  because process_item wont get triggered if there is no change in item level data.
    Thanks,
    Rahul

    Hi Rahul,
    Probably EXIT_SAPLMEKO_002.
    hope it helps,
    Edgar

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

  • Item Category Determination during Sales Order Creation

    Dear All,
    This is Chee Wee, i'm new to SD, i would like to seek for an advice for the topic related to Item Category in Sales Order.
    We have a material "Mat005" define as "Stocked" Item category in MM03,
    *Stocked means our MM team will always keep stock for the material.
    The document Item category assigned to this "Stocked" are "NoPo" --> No Auto Po creation and "AuPO" --> AutoPo  creation.
    During the SO creation for Mat005 with Qty50 and warehouse stock availale for 60, i'm wondering when i select the itemCat "AuPO", the system automatic changed to "NoPO", but when i change the order qty to 70, then i'm able to changed the itemcat to "AuPo"!!
    Can any Guru advice me what is the actual setting or configuration behind to determine which are the correct Item Category that i can choose?
    Thank you very much,
    Regards,
    Chee Wee

    Dear Chee Wee,
    Basically tem category will determine based on these key combination
    Item category group(Material master)+Sales document type(We enter doc type in the creation initial screen)--->Item category
    For Example NORM+OR--->TAN.
    As per your explanation
    I hope In your case stock availability also one of the factor in the item category determination.This might have done some enhancement.
    There are two item categories in your process one is  "NoPo" --> No Auto Po creation and  second one is "AuPO" --> AutoPo creation.
    the system automatic changed to "NoPO", but when i change the order qty to 70, then i'm able to changed the itemcat to "AuPo"!!
    60 Qty Stock available, you have created sales order for 50 Qt here requirement is less than stock availability so system will not allow you to enter AuPo item category Because there no need of auto PO creation for stock.
    When you created sales order for 70 Qty, stock available only 60 so there is shortage of 10 Qty.now system needs to allow to create Auto PO to procure the shortage stock of 10 Qty, so system is allowing you to enter Yaupon item category.
    There might be some work around kind take help of ABAPer to get the more details about your item category determination.
    I hope this will help you,
    Regards,
    Murali.

  • Item category group during service order replication is incorrect

    Hi,
    We are trying to replicate Service order from CRM to R/3 and the service product that is used in CRM service order is got from r/3 named SRV_REPAIR.
    In CRM when we enter SRV_REPAIR in Service order the item category YSRP(copied from SRVP) should be determined.
    when i use the item category group LEIS(service w/0 delivery) in R/3 for service product then the item category is determined as YSRP correctly but the replication of service order fails with the message
    "It is not possible to upload from mixed documents with scen. A activated "
    please suggest which item category group should be used in a service product for replicating a service order from CRM to r/3.
    Regards
    Prathiba

    Hello,
    The problem might be that item category is assigned to object type BUS2000140.
    This object type is not relevent to upload so you get the error.
    Please check FM CRM_SALESDOCUMENT_FILTER.
    FM   CRM_SALESDOCUMENT_FILTER
        check for upload relevant item object types
          if ( lv_obj_type = gc_object_type_item-sales                  or
               ( lv_obj_type = gc_object_type_item-cust_contract   and
                 lv_sales_contract_active = true )                      or
               ( ( lv_obj_type = gc_object_type_item-credit_req or
                   lv_obj_type = gc_object_type_item-debit_req )   and
                 lv_trans = true )
             and
               <ls_orderadm_i>-product_kind <> gc_product_kind-iobject
          fill table with item guids which are relevant for the upload
            insert <ls_orderadm_i>-guid into table lt_item_guids.
          else.
            insert <ls_orderadm_i>-guid into table lt_item_guids_delete. <-!
          endif.
        endloop.
      endif.
    if scenario A is active no mixed documents are supported
      if <ls_orderadm_h>-scenario+3(1) = gc_scenario_r3chg-int_chg.
        if not lt_item_guids_delete[] is initial.                        <-
          perform fill_bapiret2
                  using 'W' 'CRM_ORDER_MISC' '036'
                        lv_msgv1 lv_msgv2 lv_msgv3 lv_msgv4
                        space 0 gc_object_name-sales 0 space.
          raise upload_not_relevant.
        endif.
      endif.
    Please see note 772267 to prohibit data transfer in this case. The error
    message is related to scenario A you are using.
    Scenario A is not working for
    service items as scenatio A allows changes of doc in both systems so
    CRM and ECC. As service items won't be replicated this can't work at
    all.
    In other words, if scenario A is used the sales order in ECC has to be
    identically to the sales order in CRM. This is not the case in service
    processing.
    So again you have to prohibit data transfer from service orders to ECC
    when using scenario A.
    Hopefully the information helps!
    Regards, Gerhard

  • Error during Service Order creation

    Hi,
    I configure the Maintanance order for the plant and tried to create the Service ordeer for that Plant.
    But system shows the Following Error Massage,
        Field 'Additional Device Data' must still be filled
    Can anybody guide me to proceed further on this
    Thank You,
    With Best Regards,
    M.Suresh

    Hi,
    Thanks for your info PETEA.
    Sorry Paul Meehan , I didn't see the field settings in OIAN properly last time.
    There is a setting exist for field 'Additional data' as Mandatory. I removed this setting and tried to release the order and I succeeded.
    Thanks Paul Meehan and PETEA for your Information.
    M.Suresh

  • Document level Data and Item level data

    Hi,
    Can anyone please explain the difference between Document level data and Item level data for sales order.
    Thanks
    shalini

    Item is the lowest level detail of the order. For ex it would be a particular material. Document would be the overall "top" level. Usually refered to as header level. It relates to everything in the document. 
    pts appreciated

  • Billing date at line item level in a sales order

    HI!
    Can anyone let me know the significance of billing date being present at the line item level in a sales order?
    And why does it get changed as per the Requested delivery date if the Prop. Pricing date in the maintanenece of sales doc type is set  as 'A'?
    Can it be different for different line items?

    Hello Asha,
    Can anyone let me know the significance of billing date being
    present at the line item level in a sales order ???
    The comprehensive information is available at SAP technical help(F1) for the "BILLING DATE" field at Sales Order line item level...Before raising these type of questions, i would urge to  conduct initiate analysis and then post at SDN forum if you are unable to find out answers...For your quick reference, i have extracted the same description for Billing date from SAP techincal help (F1) and pasted below.
    Billing date for billing index and printout
    +The date on which the billing is processed and booked for
    accounting purposes.+
    Use
    +You can use the billing date as one of the selection criteria
    when you process billing documents collectively.+
    Procedure
    +If invoice dates are defined for the customer, the system proposes
    the billing date from the invoice date calendar. If no invoice dates are
    agreed, then the actual goods issue date is formed on the basis of
    delivery related billing. In order related billing, the billing date of the
    order forms the basis of the billing date.+
    +If you are billing services, the system proposes the date of services
    rendered. You can change the date manually in the sales document.+
    +If you are using a billing plan to bill a project, the system can propose
    billing dates for the billing plan on the basis of planned or actual dates
    in the corresponding milestone.+
    +In a billing plan for a maintenance or rental contract, you can specify rules
    by which the system determines billing dates on the basis of other dates in the contract.+
    Regards,
    Sarthak

  • Difference between sales order schedule line and item level data

    Hi All,
    Could you please let me know what is the difference between sales order schedule line and item level data?
    Thanks,
    Ramya

    Hi Ramya,
    Sales order schedule line contains del date, order qty, rounded qty, confirmed qty, delivery qty, schedule line category, purchase requisition etc.,  ie It contains the full details of sales order data with respect to the scheduled line of delivery.  The total quantity of a sales order item can be subdivided into schedule lines that contain the various subsets with the corresponding delivering dates.
    Sales order Item level data contains details of the item in the sales order like material code, net price, net value, UoM, PO details, reason for rejection if any, material group,billing date, plant etc., ie this
    contains the full details of item irrespective of scheduled line.
    Regards,
    R. Senthil Mareeswaran.

  • ALV - Layout for header and item level data

    Experts,
    A program extracts complete sales order details (including item level data) in ALV format. Now, during display, if anyone changes the layout to have only header level fields, I would like the duplicate records created by item data to go away. Would you know how to accomplish this?
    Any help would be rewarded with points.
    UV

    Hello,
    You can do it instead of adding a button on the ALV, on the selection screen add a radiobutton asking what information is required.
    Header Information
    Detailed Information
    Or something like that
    Bye
    Gabriel P

  • KNA1 is a header level data or item level data ?

    How should we treat KNA1 ?
    As a header data table or
    Item Data table ?

    Hi,
    KNA1 is master data table stores information about customers.it will update thru XD01/XD02 tcodes or FD01/FD02..etc.
    Master data will be used to create transactional data.
    Once we created master data means,normally we dont change.like employees creation,vendor creation..etc
    When it comes transactional data we have concept of header and item level.
    suppose sales order is transactional data.conatins VBAK as header level, VBAP as item level data.
    Header data contains main information to all the items like shipto party sales order creation date ,who created sales order,sales order type..etc.
    Item level contains what material,order qty..etc.
    we can call Transactional data as frequently changing data.Like when ever customer needs some item from company means we create sales order for that item.so we call transactional data as daily basis change data.
    Please reward if useful.
    Thanks
    Sivaparvathi
    Message was edited by:
            Siva Parvathi

  • Automatic creation InternalOrder inECC after Service Order creation in CRM

    Hi,
    After Service Order creation in CRM,  the automatic creation of Internal Order in ECC not happening, needs to be do the related settings. Can anybody share the stepts for the same to do the settings.
    rgds,
    balu

    Hello balu,
    Have you released all items?
    Also,please make sure that against the item category "Assign BW/CO" is set to Service.
    Hope this helps!
    Thanks and Best Regards,
    Shanthala Kudva.

  • Service Order Creation through Sales Order...

    Hello,
    I got one requirement it is , we need to copy the account assignment (WBS element ) from sales order line item to service order line item . Morever same wbs element should be used to create automatic settlement rule in service order.
    This should also work even if user changes the WBS element later. i.e, updated WBS element should again update service order and settlement rule automatically.
    I tried to use Exit MV45AFZB and routine USEREXIT_MOVE_FIELD_TO_COBL, but still i am not able to see the data in service order Location tab, Object tab.
    I checked the table ILOA, its not getting updated when creating Service order via sales order.
    I am not able to see any fields value coming on Service order screen when creating through sales order.
    Regards,
    Sujeet Mishra

    Hi ARC,
    Here the issue is that, Sales Order is getting created but while sending the Order num. to Webpage through web service then rasing below Exception.
    Runtime Error UNCAUGHT_EXCEPTION
    Except. CX_SOAP_CORE
    Date and Time 07.05.2008 20:13:24
    ShrtText
    An exception that could not be caught occurred.
    What happened?
    The exception 'CX_SOAP_CORE' was raised but was not caught at any stage in the
    call hierarchy.
    Since exceptions represent error situations, and since the system could
    not react adequately to this error, the current program,
    'CL_SOAP_TRANSPORT_EXTENSN_ROOTCP', had to
    be terminated

  • Service order creation based on counter reading assigned to the Ibase.

    Hi All,
    I've created a service contract (ZXXX) with the item category (ZIT1) of service plan.
    In the item category (ZIT1) definition i've copied the standard item cat. of service plan (SPLA) and assigned the standard date profile SERVPLAN to the item category.
    Requirement - Service order has to be created automatically if the counter reading assigned to the Ibase is greater than counter reading that is maintained in the service plan template that is assigned to the service plan product(Item) in the service contract transaction.
    Master Data -
    Service Interval Template - Created service plan template for counter based interval and maintained the interval as 100HR.
    Assigned the template to service plan product(item) which is assigned in the service contract.
    Created a counter ID and assigned the counter to the Ibase.
    In the item date profile SERVPLAN , I've assigned the date rule (Planned time based on the counter reading) to 'Release date' date type.
    In the item action profile ., Action is defined as it should create a service order (ZSER) with the template defined in the item if the (Release date =< today's date) as start condition.
    I've maintained the complete master data.
    Now Release date should be picked based on the counter reading of the Ibase assigned to the service plan item in the service contract.
    If Ibase counter reading > counter reading maintained in the interval the release date = todays date.
    If Ibase counter reading < counter reading maintained in the interval the release date = future date.
    which is not happening now in my case. service order is getting created even the counter reading of Ibase is less than the interval.
    Please let me know if further more changes to be done to map the scenario.
    Thanks
    Syam

    Hello,
    I found the following:
    If you fill someting in the fields REFOBJ_IBASE, this value is being converted into a GUID internally
    This happens in function CRM_BSP_OIC_1O_SEARCH_FROM_RF
    So you have to make sure that the search field REFOBJ_IBASE points towards the field CRMD_SRV_REFOBJ~GUID_OBJECT ( via table CRMC_REPDY )
    And even then I have the impression it only works when you only fill the Ibase in the order. When you fill the component there is a different GUID.
    In my case I found out it is even more complex, so I will need to create my own search field (extend search structure )
    Regards,
    Erwin

Maybe you are looking for