BADI for Service Order Validations on Timesheets .

Hi Experts,
I am working on the Timesheets - Record working times (CAT2 transaction).
The Client requirement is that certain validation should be put on the Service Orders / Rec. Orders before an employee can book his timesheet against that particular  Service Orders / Rec. Orders  .
Currently there are no validations on these Service Orders and the employee can book his timesheets against any service order from the search help .
Is there any BADI / User Exit through which this can be achieved.
Thanks

Solved by self.

Similar Messages

  • Badi For Service Order Search

    Hi Guys,
    I have one issue with service order search.
    I have implemented BADI :ES_CRM_RF_Q1O_SEARCH
    I have given filters as a Object name like BTQSRVORD.
    when i excute search ,the search BADI cannot be getting..what is problem exactly please let me know..
    thanks in advance..

    Hi,
       There is a possibility of it being case sensitive, try giving:  BTQSrvOrd
    Thanks,
    Rohit

  • Exit/badi for Material group validation on service POs

    Hi Gurus,
    The requirement is to put validation on 'MATERIAL GROUP' at item level as well as service sub line item level.I have used EXIT_SAPMM06E_017 for line level validation.
    For service sub line level 'MATERIAL GROUP' i tried using EXIT_SAPLMLSP_030 but validation is not working properly as
    EXIT_SAPLMLSP_030 is triggered before EXIT_SAPMM06E_017.
    Kindly suggest any alternatives.
    Thanks in advance
    Deepika

    Hi,
    I had finally used BADI ME_PROCESS_PO_CUST method CHECK and PROCESS_ITEM for enjoy transactions i.e ME21N ME22N ME23N and written code in EXIT EXIT_SAPLMLSP_030 for service item validations.
    IF sy-tcode = 'ME21N' OR sy-tcode = 'ME22N' OR sy-tcode = 'ME23N' OR sy-tcode = 'MASS' OR sy-tcode = 'ME29N'.
        DATA: wa_zmm_mat_grp TYPE zmm_mat_grp.
        EXPORT header_data-aedat FROM header_data-aedat TO MEMORY ID 'ZDAT24933'.
        EXPORT header_data-bsart FROM header_data-bsart TO MEMORY ID 'ZBRT24933'.
        IF header_data-aedat GE '20090810'.         " Material group mandatory appplicable date.
          IF ( header_data-bsart = 'SRV' OR header_data-bsart = 'SRVF' OR header_data-bsart = 'SRVI') AND ( header_data-bsart NE ' ')  AND
             ( re_data-loekz EQ 'S' OR re_data-loekz EQ ' ' ).
            SELECT SINGLE  *  FROM zmm_mat_grp INTO wa_zmm_mat_grp WHERE matkl = re_data-matkl AND
                                                                         bsart = header_data-bsart.
            IF sy-subrc NE 0.
              MESSAGE e005(ze1).
            ENDIF.
          ENDIF.
          IF header_data-bsart IS NOT INITIAL.
            IF ( header_data-bsart NE 'SRV') AND ( header_data-bsart NE 'SRVF') AND ( header_data-bsart NE 'SRVI') AND
               ( re_data-loekz EQ 'S' OR re_data-loekz EQ ' ' ).
              SELECT SINGLE  *  FROM zmm_mat_grp INTO wa_zmm_mat_grp WHERE matkl = re_data-matkl.
              IF sy-subrc EQ 0.
                MESSAGE e006(ze1).
              ENDIF.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
    For service subline item following code:
    DATA: wa_zmm_mat_grp TYPE zmm_mat_grp,
          v_bsart TYPE ekko-bsart,
          v_packno TYPE esll-packno,
          v_ebeln TYPE ekpo-ebeln,
          v_aedat TYPE ekko-aedat.
    IF sy-tcode = 'ME21N' OR sy-tcode = 'ME22N' OR sy-tcode = 'ME23N' OR sy-tcode = 'MASS' OR sy-tcode = 'ME29N'.
      IF srv_esll-matkl IS NOT INITIAL.
        IMPORT header_data-bsart TO v_bsart FROM MEMORY ID 'ZBRT24933'.
        IMPORT header_data-aedat TO v_aedat FROM MEMORY ID 'ZDAT24933'.
        IMPORT re_data-bsart TO v_bsart FROM MEMORY ID 'ZBRT24933'.
        IMPORT re_data-aedat TO v_aedat FROM MEMORY ID 'ZDAT24933'.
        IF v_bsart IS INITIAL OR v_aedat IS INITIAL.
          SELECT SINGLE packno FROM esll INTO v_packno WHERE sub_packno = srv_esll-packno.
          IF sy-subrc EQ 0.
            SELECT SINGLE ebeln FROM ekpo INTO v_ebeln WHERE packno = v_packno.
            IF sy-subrc EQ 0.
              SELECT SINGLE bsart aedat FROM ekko INTO (v_bsart, v_aedat) WHERE ebeln = v_ebeln.
            ENDIF.
          ENDIF.
        ENDIF.
        IF v_aedat GE '20090810'.         " Material group mandatory appplicable date.
          IF ( v_bsart EQ 'SRV' ) OR ( v_bsart EQ 'SRVI' ) OR ( v_bsart EQ 'SRVF' ) AND ( v_bsart NE ' ' )
          AND srv_esll-del = ' '.
            SELECT SINGLE  *  FROM zmm_mat_grp INTO wa_zmm_mat_grp WHERE matkl = srv_esll-matkl AND
                                                                         bsart = v_bsart.
            IF sy-subrc NE 0.
              MESSAGE e005(ze1).
            ENDIF.
          ENDIF.
          IF ( v_bsart NE 'SRV' ) AND ( v_bsart NE 'SRVI' ) AND ( v_bsart NE 'SRVF' ) AND ( v_bsart NE ' ' )
          AND ( srv_esll-del = ' ').
            SELECT SINGLE  *  FROM zmm_mat_grp INTO wa_zmm_mat_grp WHERE matkl = srv_esll-matkl .
            IF sy-subrc EQ 0.
              MESSAGE e006(ze1).
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
    ELSEIF sy-tcode = 'ME21' OR sy-tcode = 'ME22' OR sy-tcode = 'ME23'.
      IF srv_esll-matkl IS NOT INITIAL.
        IMPORT i_ekko-bsart TO v_bsart FROM MEMORY ID 'ZPOT24933'.
        IMPORT i_ekko-aedat TO v_aedat FROM MEMORY ID 'ZDTA24933'.
        IF v_bsart IS INITIAL OR v_aedat IS INITIAL.
          SELECT SINGLE packno FROM esll INTO v_packno WHERE sub_packno = srv_esll-packno.
          IF sy-subrc EQ 0.
            SELECT SINGLE ebeln FROM ekpo INTO v_ebeln WHERE packno = v_packno.
            IF sy-subrc EQ 0.
              SELECT SINGLE bsart aedat FROM ekko INTO (v_bsart, v_aedat) WHERE ebeln = v_ebeln.
            ENDIF.
          ENDIF.
        ENDIF.
        IF v_aedat GE '20090810'.         " Material group mandatory appplicable date.
          IF ( v_bsart EQ 'SRV' ) OR ( v_bsart EQ 'SRVI' ) OR ( v_bsart EQ 'SRVF' ) AND ( v_bsart NE ' ' )
          AND srv_esll-del = ' '.
            SELECT SINGLE  *  FROM zmm_mat_grp INTO wa_zmm_mat_grp WHERE matkl = srv_esll-matkl AND
                                                                         bsart = v_bsart.
            IF sy-subrc NE 0.
              MESSAGE e005(ze1).
            ENDIF.
          ENDIF.
          IF ( v_bsart NE 'SRV' ) AND ( v_bsart NE 'SRVI' ) AND ( v_bsart NE 'SRVF' ) AND ( v_bsart NE ' ' )
          AND ( srv_esll-del = ' ').
            SELECT SINGLE  *  FROM zmm_mat_grp INTO wa_zmm_mat_grp WHERE matkl = srv_esll-matkl .
            IF sy-subrc EQ 0.
              MESSAGE e006(ze1).
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDIF.
    hope this will help u.

  • WBS Settlement rule control for service orders

    Hello,
    We have an requirement to implement validation point for service order settlement rule. Currently there is no validation check of settlment rule for service order. So that the settlement is happend to incorrect receivers in service orders.
    For example :
    Service order created for company code - 400 and the settlement rule receiver should be WBS which is belongs to same company code but some case , user are maintained wrong WBS in settlement rule which belongs to some other company code.
    Can you please hlep us on this requirement and suggest any enhencement point avalible on the same.
    Thanks
    Risha

    Hi,
    Please go to okg2,
    Calculate wip or result analysis
    remove the tick for Order In Engineer to Order Production
    Now run result analysis and check whether settlement will not happen for cross company code.
    please check this and revert back.
    Thanking you
    Vengaiah Chowdary

  • BADI for Sales order

    Hi Gurus,
      I have to caculate the volume discount based on the goods ordered. So that i have to calculate the discount and update it into Net value in condition tab in va01. Please provide the what is the BADI for that suitable requirement so that it should be executed before saving the order. And also the discount should be displayed in the item level. Please provide me some suitable solution.
    <b>Its Very urgent.</b>
    Points will be awarded
    Regards
    Ravi

    Hi
    Use the Std Include MV45AFZZ for writing the user exits related Sales order
    which is a include in the std sales order program SAPMV45A
    Write the code in the appropriate FORM..ENDFORM.. and see
    see further the following Exits and BAdis for Sales order
    Enhancement
    V60F0001                                SD Billing plan (customer enhancement) diff. to billing pla
    V46H0001                                SD Customer functions for resource-related billing
    V45W0001                                SD Service Management: Forward Contract Data to Item
    V45S0004                                Effectivity type in sales order
    V45S0003                                MRP-relevance for incomplete configuration
    V45S0001                                Update sales document from configuration
    V45P0001                                SD customer function for cross-company code sales
    V45L0001                                SD component supplier processing (customer enhancements)
    V45E0002                                Data transfer in procurement elements (PRreq., assembly)
    V45E0001                                Update the purchase order from the sales order
    V45A0004                                Copy packing proposal
    V45A0003                                Collector for customer function modulpool MV45A
    V45A0002                                Predefine sold-to party in sales document
    V45A0001                                Determine alternative materials for product selection
    SDTRM001                                Reschedule schedule lines without a new ATP check
    SDAPO001                                Activating Sourcing Subitem Quantity Propagation
    Business Add-in
    BADI_SD_SCH_GETWAGFZ                    Scheduling Agreement: Read WAGFZ from S073
    BADI_SD_V46H0001                        SD Customer functions for resource-related billing
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Settlement Rule for service order created based on sales order

    Hello,
    I am creating a sales order and entering  WBS as an cost object.
    After creation of sales order the Service order is created.
    For service order type in the settlement profile  WBS is maintained.
    But the system is not copying the WBS in Service order which is maintained in sales order.
    Can any body have an idea on this?
    Regards
    Abhijit

    Hi,
    As far as my understanding when service order is created through sales order then settlement rule is SDI and its item number
    Not what you maintained in account assignment tab of sales order
    When you settle service order then cost will settle on sales document and its item and then latter you settle sales order then settlement receiver is WBS element which you maintained in account assignment tab
    Kapil

  • Pricing date for Service Order and Service Confirmation

    Hi,
    I cretated a Service Confirmation as followup for Service Order.
    Client is asking "Pricing Date" should be same Same in Service Order and Service Confirmation. But, I am not seeing any such field in the screen.
    I need to check T&C field and Zone field. But, I am not seeing these fields also.
    Can you please let me know, where can I find this fields. (In which assignment block).
    Thanks,
    Sandeep
    Edited by: Sandeep Reddy on May 31, 2010 7:21 PM

    Hi,
    I think by PRICING DATE they mean BILLING DATE.
    In date profile of SERVICE ORDER and SERVICE CONFIRMATION you assign the BILLING DATE date type (i think it is there in the standard itself- however just ensure it).
    Or customize a PRINCING DATE date type in the DATE PROFILE of SERVICE ORDER and CONFIRMATION and copy the date set in SERVICE ORDER to SERVICE CONFIRMATION.
    This is one strategy you can use.
    Regards
    Surendra More

  • BAPI for Service order creation

    Hi ,
    Please tell me if any Bapi for service order creation  , T-code : IW31
    regards,
    Prakash

    Hi Prakash,
    Have a look on the following BAPIs:
    BAPI_ISUSMORDER_CREATEMULTIPLE - Create Service Orders
    BAPI_ALM_CONF_CREATE - Create confirmation for maintenance/service order
    WTY04_CREATE_SERVICE_ORDER - Create Service order via function module.
    Hope this will help.
    Regards,
    Nitin.

  • FM for Service Order

    hi,
    require a FM for Service order Details IW73.
    cheers,
    Aditya.

    Did you try BAPI_ALM_ORDER_GET_DETAIL?
    Regards,
    Ravi
    Note : Please mark all the helpful answers

  • Plan Assessment and Allocation for Service Orders (CS)

    Hello,
    I'm trying to run plan assessment (KSUB) and plan allocation (KO9E) for a service order (created via IW31), but I'm not able to do it.
    I can do assessments (KSU5) and allocations (KO8G) with real values, but since I'm not able to do it in plan mode, I can't have comparative values between real and planned values (no value is flowing to allocation secondary cost elements).
    Can anyone let me know if this is some sort of limitation for Service Orders? Because I checked SPRO in transaction code KOAI and for this type of orders there is no Indicator for Integrated Planning, nor it's possible to assign a planning profile.
    Many thanks for any help you can provide!
    Regards,
    Cátia

    I created a SAP message and they confirmed that this is not possible.

  • Default settlement rule with settlement type as FUL for service orders

    Hi Folks,
    Could you please advise me on the below issue?
    Requirement: setting up of default settlement rule with default settlement receiver as u201CCOST CENTREu201D and settlement type as u201CFULu201D for the maintenance orders (Order category u2013 30).
    I was trying to configure the same in transaction KSR3_ORI to assign the strategy to the service order type by clicking u201CNew Entriesu201D system not showing the drop list for the status column which is a mandatory field.
    We have applied the below notes:
    Note 313454 - Info: Default value for settlement type
    Note 851975 - Settlement use automatic generation creates
    Could you please guide us to get the default settlement rule for service orders along with settlement type as u201CFULu201D

    I was also with this problem in 2013 january and only found some information about this, here.
    Our solution was change the Maximum number of distribution rules in Maintain Settlement Profiles to 1, because we wanted the FUL rule and it is always in the first line.
    Now, for curiosity, I was search for another solution and found the SAP note 2028108 that explain that is not possible to change the strategy for PM/CS orders.
    This note was released at 09.06.2014

  • BAPI for Service Orders Confirmation

    Can somebody please provide BAPIS for Service Orders Confirmation and other related BAPIS
    Thank you

    To create service confirm order use "BAPI_BUSPROCESSND_CREATEMULTI".
    Regards,
    Animesh

  • Freight for service order

    Hi
    Even though freight condition is maintained in the service order, while doing MIRO it is not picking.The service entry sheet is created & accepted.
    Regards,
    Kumar

    Hi,
    Why & how freight will come into picture of service procurement ieu2026.For service order.
    If you are procuring material, of course you will have freight charge as material need to be carried out physically from vendor place to your company premises but service charge is just like a slab (_service is an activity_, intangible material & as services cannot be stored, does not contain any inventory data) where it may involve of service tax with service base amount. You may need to be re-mapped your business process.
    More check link:
    Account determination for MIGO/MIRO
    Regards,
    Biju K

  • Stage wise payment for Service orders

    Hi techies,
    stage wise payment for Service orders. Following items are required in SAP while creating & releasing Service Entry. Matter has detailed by following example:
    Stage wise payments for an item for eg: Rate is Rs 100 per Rmt.
    Item shall be certified as 100% and released stage wise.
    Say 60% release on deployment of machinery
    Another 20% on execution of work
    Another 10% on submission of final bill
    Balance 10% as Retention Amount.
    Please provide me the solution for release of part rate as explained above.
    Thanks in advance,
    NB

    You,can use Invoice Plan....
    In order to work with an invoicing plan according to ur requirement you mentioned, you must maintain the following settings (among others) in
    Customizing:
    Desired invoicing plan type
    Date categories
    Date descriptions
    Date proposals
    You can also specify whether the invoicing dates are to be entered/maintained manually or whether the system is to suggest them.
    You can do settings here:
    SPRO ---> MM --> Purchasing --> PO --> Invoicing plan --> see here all the settings...
    Regards,
    eswarmanu...

  • How  to  generate  Billing   for   Service Order   ?

    how  to  generate  Billing   for   Service Order   ?

    Hello,
    You may do a resource related billing from the service order,  but you need to maintain Resource Related billing profile in Service order --> Control tab. Once it is set you may generate the billing document (debit memo) from service order through DP90, provided the config is right.
    Prase

Maybe you are looking for

  • Can not see the report under SAP Business one

    Hi, When I click on preview in SAP BO from CR, this message is appear : Value cannot be null Why ? Please help me

  • Bug or Feature with SharePoint Surveys?

    I was experimenting with different options to see if I could change how survey data got exported to Excel and something surprising happened that gave me exactly what I want.  My concern is that it might be a bug, rather than a feature; although I'm h

  • Before I order the photobook...

    Hi, Can anybody experienced in iPhoto books tell me which looks nicer in the finished product - a softcover or a hardcover? And would I be better off upgrading my iPhoto 6 to iPhoto 8 before ordering it? Are there any extra options that would make th

  • Import Photos from another Mac

    I would like to get photos from iPhoto, which have been edited (i.e. given a title) from my MacBook and have them on my iMac as well. How do I do that?

  • We need to reinstall the JAVA part alone in ABAP+JAVA

    Dear Sir/Madam, We have an SAP ECC 6.0 system with ABAP+JAVA components. Now there are some issue with our Java comp. and I'm unable to start the JAVA engine. As we have done little configuration on JAVA side we are planning to reinstall the JAVA par