Validation in service PO.

Hi All,
I need to validation for service PO for the transactions ME21N and ME22N
The validation is like this:
Need to raise a message if WBS element's actual finish date(IENDE) is less than PO document date.
The problem is that am not able to get header data of PO in process_account method
The BADI is IF_EX_ME_PROCESS_PO_CUST.
How can I get the header data in Process_account method.
Thanks & regards
Himayat.
Edited by: Himayatullah on Feb 22, 2010 5:24 PM

There have one Method - PROCESS_HEADER
it will trigger first then PROCESS_ACCOUNT.
So u can do one thing , when PROCESS_HEADER is trigger then u Export data of header into MEMORY area then u can import this data within the Method PROCESS_ACCOUNT using IMPORT from MEMORY .u will get all header data using this Import MEMORY .
After working with this Header data u must free the MEMORY Area within the method PROCESS_ACCOUNT .

Similar Messages

  • PA Error: The project has no assets with valid in service dates

    Hello all,
    I am facing issue while generate Capital Project (Projects: Capitalization > Capital Projects) I am getting below Exception Reason error.
    The project has no assets with valid in service dates
    Please Help me to clear this issue.
    Thanks and Regards,
    Muthu

    Hi,
    Thanks for your reply, Let me check and get back to you.
    Thanks and Regards,
    Muthu

  • PRC: Generate Asset Lines for a Single Project shows error(The project has no assets with valid in service dates.)

    Project Number             Project Name                    Exception Reason
    15                         Capital Project Jatyuapura      The project has no assets with valid in service dates.

    HarvirSinghSaini wrote:
    Project Number             Project Name                    Exception Reason
    15                         Capital Project Jatyuapura      The project has no assets with valid in service dates.
    PRC: Generate Asset Lines For A Range Of Projects Prints Exceptions (Doc ID 1519498.1)
    Integrating Oracle Inventory Transactions Into Oracle Projects To Generate Asset Lines & Interface Assets To Fixed Assets (Doc ID 1392743.1)
    Thanks,
    Hussein

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

  • Validations with Service Create Expense Report

    Dear experts.
    I have the following doubt:
    In the service "Create Expense Report" ESS the system call two component different:
    Application: FITE_EXPENSES
    Web Dynpro Component: FITV_FPM
    Window Information: FPM_WINDOW
    View Information: LAYOUT_VIEW
    Configuration ID: FITV_FPM_EXPENSES
    This component show two buttons Start and Cancel, as is displayed in the screen attach.
    And other component is
    Application: FITE_EXPENSES
    Web Dynpro Component: FITE_VC_PRESELECTION
    Window Information: VC_WINDOW
    View Information: PRESELECTION_VIEW
    Configuration ID: FITE_VC_PRESELECTION
    That show the information with "Available Travel Requests / Plans and a listbox with Schema Selection(National Trip and Foreign Trip). as is displayed in the screen attach.
    I need do two validations and I dont know Where Can I do this validations:
    1.When I select the schema National and press the button Start the system must validate that the enduser have selectioned a row of "Available Travel Requests / Plans",  if the enduser not select a row the system have that show a message saying "Please select a row". This message have that be type error.
    2. What is the name of the table and the method that use SAP for get the information that is displayed in the grid "Available Travel Requests / Plans"
    Thanks in advance
    Regards

    Hi Carmen,
    You can add custom code, just like the one for selected row validation. It can have logic such that if a particular trip number is selected, and it has cities of a particular country, the schema, say, 'Domestic' would be chosen. To 'auto-choose' schema, bind the attribute TRIP_SCHEMA of node TRIP_SCHEMA with the value 'Domestic'.
    ABAP Dynpro is a component based model. So, a typically a component is created in such a way that it can be reused at many places. The component FITE_VC_PRESELECTION is for listing already initiated trips, and is rendered in expense report. The same component might be used in other travel web dynpro applications, like FITE_REQUEST, FITE_EXPRESS_EXPENSES, etc. The component FITV_FPM uses many other components for rendering different features of travel. You can think of it as parent-child relationship.
    I am attaching an old book on WDA, which I guess, I downloaded from SDN itself.
    I hope I could clear you doubts.
    couldn't attach the book, as the file extension is not allowed. You can search for WDA resources at SDN, SAP help, or do a simple google search for PDF.

  • Validating Web Services

    Hi,
    I wanted to know what was the best mechanism to add validation to Web Service testing through ETest.
    For example, record and playback is quite easily done through ETest. But how can one determine if the response SOAP was the correct one. What type of test needs to be added to the script to make it check the response.
    Please suggest, as I need to make my script check Web Services in detail.
    Thanks
    Shankar

    Solved Error

  • Okay - what are valid FMS service user groups

    its asking for this info on installation... somebody should
    be able to answer this - you've all had to enter a valid user group
    for your FMS service user upon install

    hey if you go into your fms server admin console and check
    out the help file i think you will find what you are looking for
    .

  • BA Validation in Service Orders

    Dear Friends,
    For the Flat rate scenario where the Service order is triggered from the Sales Order I need to have the Buisness Area information to be defaulted in the Additional Data Tab of the order.
    Currently, even though the DIEN material in sales order is having the Business area, am not able to see the same in the Service order. Could you please help me out in resolving the same?
    Thanks & Regards
    Prasad Subramanya

    Prasad,
    The business area in the order Additional Data tab is defaulted from the technical object.
    If you want to transfer the business area from the sales order, then you will need to develop something
    PeteA

  • Validation of service entry date with respect to po date

    i want to validate the service entrysheet date with respect to Purchase order date.
    service entry sheet should not be before po date(doc date).
    SRVESSR- name of user exit for service entry sheet.
    but it is not triggering ,
    suggest me how to do .
    if sy-tcode = 'ML81N'.
      if i_ekpo-werks = '5000' or i_ekpo-werks = '4000' or i_ekpo-werks = '6000'.
        if C_ESSR-BUDAT  < I_EKKO-BEDAT.
          message 'Service Entry sheet Psting data should not be before PO Date' type 'E'.
        endif.
      endif.

    Hi shaiz.
    Try to under the concept of schduling During MRP run,
    Scheduling will be done  for FG with respect to  scheduling data maintained for FG material. It will not consider the planned delevery time of its child  materail.
    Requirement date is created for FG only, on this date FG should be deliverd to stock.
    u have to plan  raw material to meet requirement date.
    System will not  reschedule FG order automatically if raw delivery time is delayed it will give exception message only to reschedule. You have to reschedule FG order with respect to delivery date of ROH  manually by doing material avilablity check.
    I hope this should have  given some idea
    Regards
    Pradeep

  • Help with validation of service order creation

    Dear All,
    I am working with creation of service order under service professional and got a requirement where
    1) I need to validate the quantity from BOM table comm_il_momitm. and
    2) Same product (product id) should not be called more than once, that is if the user selects same product once again it must throw an error.
    Please find the screenshot below
    Regards,
    Naveenn

    Hi Benoit,
    I give you my exact requirement,
    i need to validate quantity field entry (in above table) based on compon_qty field in comm_il_bomitm table.
    I tried to implement it using eh_onsave method in component BT116H_SRVO but it is displaying error message even the quantity is equal the compon_qty whereas it should display error only when it exceeds compon_qty.
    Please help by providing sample code.
    Regards,
    Naveenn

  • VAT Validation web service from EU VIES

    Hello Experts,
    We are using external webservice from VIES for VAT validation.It was working fine for some time but from past few weeks we are not getting response from webservice.We are using WSDL http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl.Please let me know,if any one is aware of this issue.
    Thanks in Advance.
    Ankur

    Hi
    Is this working now ?
    I would like to use the VIES webservice but I am not able to set it up ...do you have the same issue ?
    How to set up the VIES webservice (consumption)?http://scn.sap.com/thread/3648197
    Cheers
    Stephane

  • Validation on 'MATERIAL GROUP' at item level as well as service sub line it

    Hi friends,
    my requirement is to put validation on 'MATERIAL GROUP' at item level as well as service sub line item level.
    Pls  help me with exit/badi.
    Ganesh Shete

    Hi Ganesh,
    For main line item you can use EXIT EXIT_SAPMM06E_017 or BADI ME_PROCESS_PO_CUST.For doing validation at service sub-line item level use EXIT EXIT_SAPLMLSP_030.
    Hope this helps.

  • Issue in Service tab and Sourc of supply tab validation in ME51N/ME52N

    Hello,
    I have requirement in ME51N/ME52N transaction for Validation of service number (under service tab) asigned Agreement number (under Source of Supply Tab)
    Requirement is like : get KONNR number(agreement number) from item level than get PACKNO fro EKPO table than get all the service number SRVNO from ESLL table.
    now get all the service number from Service Tab at item level.
    than validate service number in service tab should belongs to service number available only for selected KONNR number.
    I tried with BADI : ME_PROCESS_PR_REQ but there is not a single method is available which will return SRVNO details .
    and in user exits we also tried but not able to get correct exit or BADI which should return details of serviced numbers used in PR.
    please help to find out the correct way or other solution for this.
    thanks and regards,
    Tamseel Hashmi

    Hi,
    Make sure  item category D is selected in Purchase Req or Purchase Order.
    Thanks
    Silas

  • Problem in the contract - price of service master is notcpying to condition

    Dear Experts,
    I am facing a problem with the contract. I have created a contract for services. I have entered all the details like, validity period Service master numbers, Qty and price for each service master.
    When I am using this contract in the maintenance order the price is not getting copied. I have analyzed the same and found that there is pricing condition created for the service master line item by the system automatically and this helps copying the price from contract to maintenance order.
    This is happening to only one particular Pur. Org. For all other Pur. Org its not happening.
    Can some one tell me what could be the reason for not creating the pricing condition for the contracts created for only a particular Pur. Org? Is there any configuration setting missing?
    Please help me.
    Thanks and Regards,
    Praveen

    Hello experts,
    Can some one please through light on this please?
    Thanks and Regards,
    Praveen

  • Service Entry sheet to give message monthly amount exceed

    Hello friends,
    Here is the below query in service procurement.
    We have created a service PO with 1 year validity, in service details we have entered qty and rate for the services for a month. We get the net amount for a month. Now we need this services for 12 months so we need to multiply the qty entered in services by 12.
    So we need a check at the time of service entry sheet that services entered should not exceed monthly amount.
    Thanks
    Nitin Kishore
    Screen shots attached for better understanding.

    There is one more TAB called Limits.
    Give the Exact Amount which you are billing per month. And Try to do SES.
    Thanks,
    Shivaprasad

Maybe you are looking for

  • How do I share pictures, videos, and songs between 2 iPhones on 1 iMac?

    How do I share pictures, videos, and songs between 2 iPhones on 1 iMac? My wife and I shoot pictures and video at the same event and want to share them in 1 iPhoto event. We have music that we want to share and load onto our respective iPhones. And w

  • Application Not Posted in Inbound

    Hi All, I'm getting an Application Not Posted Error in Inbound Process. Can Some one Please tell me how to get the material which i sent.I mean the steps in Inbound Process. Regards, Ravi S.

  • Settings

    Recently I got an UNLOCKED Blackberry Curve 9300 and it recognises my Tesco rolling contract sim, But I am still unable to make/recieve calls/texts. Apparently I may need "APN" settings and the Tesco website itself says "The Tesco Mobile phone settin

  • Without sound, and doesn't aloud me to turn it on

    Hello sorry for my english, I'm from Argentina. Recently I´ve installed mountain lion and today I realised that my notebook doesn't have sounds, the icon apears in grey, and in sistem preferences apear off, but I can't turn on like in the picture. Pl

  • Asks for a package name

    Hi, Everytime I am creating something the system is asking for a package name with default value of $TMP. Is it okay to use them as local objects? This is a new BI7 system and Standard transport connection is switched on. Please let me know if you ha