User Exit Validation for CAT2 using CATS0003

Hi all,
I am using the user exit CATS0003 to validate the receiver cost center, receiver fund, receiver order and the receiver functional area.That is if any one of this fields are initial it will give an error message.
But when I try to change an existing record and try to change the order number (say if its blank  - some records are with with blank internal order nos since we just implemented this validation , and I try to input a value in the time sheet ) and when I do check for errors it is still giving out the error message which it is supposed to give when all the fields are initial.When I debug I dont see my order number value which I gave on the time sheet
entry.the filed is just blank/initial so its giving my error message.
I am wondering is there any other user exit should we use to get the changed value to the user exit? If so please let me know.
Please help and thanks in advance.Following is my code
CHECK fields-workdate >= '20060701'.
Regular time
IF ( fields-awart = '1000' OR
     fields-awart = '1030' OR
     fields-awart = '1035' OR
     fields-awart = '1180' OR
     fields-awart = '1250' OR
     fields-awart = '2000' OR
     fields-awart = '2005' OR
     fields-awart = '2010' OR
     fields-awart = '2015' OR
     fields-awart = '2020' OR
     fields-awart = '2025' OR
     fields-awart = '2030' OR
     fields-awart = '2035' OR
     fields-awart = '2045' OR
     fields-awart = '2055' OR
     fields-awart = '2060' OR
     fields-awart = '2065' OR
     fields-awart = '2070' OR
     fields-awart = '2080' OR
     fields-awart = '2085' OR
     fields-awart = '3000' OR
     fields-awart = '3005' OR
     fields-awart = '3010' OR
     fields-awart = '3015' OR
     fields-awart = '3020' ).
no additional account assignments are allowed.
  IF ( fields-rkostl <> 0 OR
       fields-raufnr <> 0 OR
       fields-fund   <> 0 OR
       fields-func_area <> 0 ).
    MESSAGE e027(zmps).
  ENDIF.
Extended hours
ELSEIF ( fields-awart = '1020' OR
         fields-awart = '1040' OR
         fields-awart = '1050' OR
         fields-awart = '1060' OR
         fields-awart = '1070' OR
         fields-awart = '1080' OR
         fields-awart = '1090' OR
         fields-awart = '1100' OR
         fields-awart = '1110' OR
         fields-awart = '1120' OR
         fields-awart = '1130' OR
         fields-awart = '1140' OR
         fields-awart = '1150' OR
         fields-awart = '1170' OR
         fields-awart = '1190' OR
         fields-awart = '1200' OR
         fields-awart = '1210' OR
         fields-awart = '1220' OR
         fields-awart = '1230' OR
         fields-awart = '1240'). " OR
Give error message when ( Cost center or Fund or Function area ) or
( Cost center or Fund or Function area or Internal order ) is initial.
  IF fields-workdate >= '20080705'.
    IF ( fields-rkostl IS INITIAL OR fields-fund IS INITIAL OR
         fields-func_area IS INITIAL OR fields-raufnr IS INITIAL ).
      MESSAGE e030(zmps).
    ENDIF.
  ELSE.
    IF ( fields-rkostl IS INITIAL OR fields-fund IS INITIAL OR
         fields-func_area IS INITIAL )." OR fields-raufnr IS INITIAL ).
      MESSAGE e028(zmps).
    ENDIF.
  ENDIF.
ENDIF.

Looks like the error checks are being made before the values are transferred from screen to internal table and work area.
If you get the blank value for the field, also try to use function module  DYNP_VALUES_READ to read values from screen field inside the user exit.  If it comes back with value, validate against that value.
Edited by: Sharad Agrawal on Aug 7, 2008 2:41 PM

Similar Messages

  • User Exit/Validation for posting limit

    Hi Gurus,
    Client need check for specific cost elements for specific users for a particular amount.
    e.g.
    user: ABC can not post more than Rs. 25000/- for conveyance allowance.
    Please help.
    Regards,
    Vikas Malhotra

    Hello,
    If you are using  ECC 5.0 or above, and trying to restrict cash postings, you can put a limit for cash accounts at the following:
    IMG => Financial Accounting => Bank Accounting => Business Transactions => Cash Journal => Amount Limit.
    If you want to restrict the amounts for any other accounts, then you can write a validation in GGB0 (line item level) and assign this validation at OB28.
    Validation: If GL account = A or GL Account = B,
    and Amount = >25,000
    Throw Error.
    Regards,
    Ravi

  • User exit / Badi for fiedl validation in CJ20N

    Hi experts,
    While user saves a project in CJ20N, i want to do certain field value validation in project definition level and in WBS level. Please share which user exit / Badi i can use....
    - RK

    Used  BADI PROJECTDEF_UPDATE for project definition validation
    and write your code in below two method
    AT_SAVE
    BEFORE_UPDATE
    Used BADI WORKBREAKDOWN_UPDATE for WBS element validation
    and write your code in below two method
    AT_SAVE
    BEFORE_UPDATE
    Please let me know if you facing any issue related to validation

  • User exit / BADI for batch classification validation

    Dear Gurus,
    I would like to know what is the user exit / BADI that can use to validate chracterisitcs value entered under batch classification?
    Thanks & regards,
    LOI

    Try to use EXIT_SAPLCLFM_002.
    Best Regards, Dirk

  • BAPI,BADI ,BDC,ALE ,IDOC,USER EXIT,VALIDATION AND SMART FORMS.

    Dear Experts,
    I am pretty new in BAPI,BADI ,BDC,ALE ,IDOC,USER EXIT,VALIDATION AND SMART FORMS.
    Pls let me know for these topics shall i put the question in this community or should i put in any other form. Pl suggest me .
    Regards
    Shivas

    Plz SEARCH in SCN before posting ,you will get lot of posts .
    Don't use all caps in the subject line

  • User Exit/BADI for PR (Purchase Requisition )

    Hello,
    I need to do some validations while saving PR (ME51N, ME52N). Which User Exit / BADI I can use for this purpose? I am using SAP 4.6C
    I have to do the validation for the field FIPOS
    Regards,
    Lijo

    MEREQ001            Customers' Own Data in Purchase Requisition

  • User exit IPRM0002 for preventive maintenance

    user exit IPRM0002 for preventive maintenance
    has anyone used this user exit? or BADI: BAdI: IPRM_MCP_SCHE_CHANGE  ?
    I seem to have some difficulty in knowing how to use these....
    I need to basically be able to influence a calling date for next PMorder to be opened but documentation is not explanatory and, even if I do know what these exit/badi are used for, i do not understand how to use the parameters provided.
    can anyone help?

    Hi,
      I dont think you would be able to test the exit if you dont implement them for the user exits simply passing the parameters wont help,actually there is a process of implementing a USER-EXIT i suppose u would already be familiar to it, I order to activate the exit you have to create a project in CMOD transaction and assign the enhancement to that and then also create the include that is avaliable inside the FM and there you would be able to put your code.
      For the BAPIs ,yes the control should go inside the BADI once you put a breakd point inside the right method but there to you need to implement the BADI and then you can put your code in the method for the effects to take place and you can test.
    The detail process of implementation are already avaliable on SCN, It seems that you dont have developer authorizations so i would suggest to take help from some one who has, Best of Luck:).
    Regards,
    Himanshu

  • Request for info. on USER EXIT/BADI for FB60

    Hi,
    This is with reference to FB60 user exit/badi for with holding tax.I want to use the customized table for withholding tax.
    ]Please guide some alternative solution rather than user exit and badi.
    I dont think the following user exit and badi are used for withholding tax.
    I done some analysies.I didnt find any user exit/badi related to withholding tax.I found the following
    F050S001 FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment
    F050S002 FIDCC1: Change IDoc/do not send
    F050S003 FIDCC2: Change IDoc/do not send
    F050S004 FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send
    F050S005 FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document
    F050S006 FI Outgoing IDoc: Reset Clearing in FI Document
    F050S007 FIDCCH Outbound: Influence on IDoc for Document Change
    F180A001 Balance Sheet Adjustment
    FARC0002 Additional Checks for Archiving MM Vendor Master Data
    FEDI0001 Function Exits for EDI in FI
    RFAVIS01 Customer Exit for Changing Payment Advice Segment Text
    RFEPOS00 Line item display: Checking of selection conditions
    RFKORIEX Automatic correspondence
    SAPLF051 Workflow for FI (pre-capture, release for payment)
    Badi
    FQST_CALC_COUNTRY,FQST_CIN_WITHITEM are related with withholding tax and they are for country specific such as India.
    Every expert answer will be rewarded.
    Thanks in advance
    Cra

    Try Business Transaction Events. Transaction code BERP.
    Regards,
    Zoltá

  • BADI-User exit required for updating Purchase order header field -IHREZ

    Hello All,
    We have requirement in our business to update the purchase order header field "our reference" EKKO-IHREZ with some text field. We need a BADI/user exit that can be used for updating this field . We have checked the BADI ME_PROCESS_PO_CUST and unfortunately we are not able to use this BADI as it getting triggered in enjoy SAP transactions ME21N , ME22N etc. We are not creating the purchase order manually and we are using ME59N for creating Purchase order . Hence we are looking for some user exit/BADI that can be used in ME59N for updating the purchase order header field IHREZ.
    Thanks in advance for your immediate response .
    With regards,
    Joseph Anand B

    TRY using the exist u2022     EXIT_SAPLME59_001
    You can also later on add this field by BAPI_PO_CHANGE

  • Can anyone give me user exit name for create/update purchase order partners

    Hello guys
      Can anyone gives me user exit name for create/update purchase order partners?
      Requirement is to insert/update partner when SC flag is checked while creating/updating purchase order (ME22N / ME21N)  by using user exit.

    hi,
    check these exits.
    Transaction Code - ME21N                    Create Purchase Order
    Enhancement/ Business Add-in            Description
    Enhancement
    MEQUERY1                                Enhancement to Document Overview ME21N/ME51N
    MEVME001                                WE default quantity calc. and over/ underdelivery tolerance
    MM06E001                                User exits for EDI inbound and outbound purchasing documents
    MM06E003                                Number range and document number
    MM06E004                                Control import data screens in purchase order
    MM06E005                                Customer fields in purchasing document
    MM06E007                                Change document for requisitions upon conversion into PO
    MM06E008                                Monitoring of contr. target value in case of release orders
    MM06E009                                Relevant texts for "Texts exist" indicator
    MM06E010                                Field selection for vendor address
    MMAL0001                                ALE source list distribution: Outbound processing
    MMAL0002                                ALE source list distribution: Inbound processing
    MMAL0003                                ALE purcasing info record distribution: Outbound processing
    MMAL0004                                ALE purchasing info record distribution: Inbound processing
    MMDA0001                                Default delivery addresses
    MMFAB001                                User exit for generation of release order
    MRFLB001                                Control Items for Contract Release Order
    MELAB001                                Gen. forecast delivery schedules: Transfer schedule implem.
    AMPL0001                                User subscreen for additional data on AMPL
    LMEDR001                                Enhancements to print program
    LMELA002                                Adopt batch no. from shipping notification when posting a GR
    LMELA010                                Inbound shipping notification: Transfer item data from IDOC
    LMEQR001                                User exit for source determination
    LMEXF001                                Conditions in Purchasing Documents Without Invoice Receipt
    LWSUS001                                Customer-Specific Source Determination in Retail
    M06B0001                                Role determination for purchase requisition release
    M06B0002                                Changes to comm. structure for purchase requisition release
    MEFLD004                                Determine earliest delivery date f. check w. GR (only PO)
    MEETA001                                Define schedule line type (backlog, immed. req., preview)
    ME590001                                Grouping of requsitions for PO split in ME59
    M06E0005                                Role determination for release of purchasing documents
    M06E0004                                Changes to communication structure for release purch. doc.
    M06B0005                                Changes to comm. structure for overall release of requisn.
    M06B0004                                Number range and document number
    M06B0003                                Number range and document number

  • User exit/BADI for Deleting the Empty Handling unit

    Hi All,
    Can anyone give me the suitable User exit/BADI for the below scenario.
    While creating the TO (Transfer order) for a delivery using the transaction code LT12, the system will automatically generate HU (Handling unit) number. If the materials are not found in the storage bin for the selected HU, we have to delete the Handling Unit from the delivery document.
    Thanks in advance.
    Thanks
    Ramesh.

    Find below couple of  User Exits for Transfer Order.
    MWMTO001 - EXIT_SAPLL03T_001 (Enhancements for end of transfer order generation)
    MWMTO002 - EXIT_SAPLL03T_002 (User Exit at End of TO Confirmation (in Update Task))
    The Exits gives you access to LTAK and LTAP.....
    Hope this is helpful to you.
    Vinodh Balakrishnan

  • BADI or User Exit validation of operations tab and displaying an error mess

    Hello,
    Could you please let me know the BADI or User Exit validation of operations tab and displaying an error message in iw32
    Thanks,
    Suresh Mgl

    Hi ..
    I tried that user-exit...but i need to block the changes for purchase requisition which is in released stutus..
    .i hope i need to do implicite enchancement spot.....could you please help me to do that..
    Thanks,
    Suresh Mgl

  • MEREQ001 User Exit Problem for ALV Columns.

    Hello,
    I am using this user exit to make changes to the Purchase requisition enjoy transaction. There is an ALV used for item details and if you use the customer CI_EBANDB include in EBAN table you can see those fields available in the alv and you can add them up using change layout.
    To make these fields editable as they remain in display always inspite of the fact that you use ME51n or ME52n.
    MM --> Purchasing --> Purchase Req -->Define Scree Layout at document level.
    is the configuration required as per a previous mail thread in the forum. However when i go to spro i am not able to see those new fields which i have added for KEY FIELD selection. Am i missing something or has anybody before done this... Could anybody guide me with the step by step process.
    Regards,
    Shekhar Kulkarni

    Hello,
    In 46C, I checked and found no user exits / BADIs for your requirement. If you are very keen of this feature, may be that you have to modify the SAP standard. Not a good option.
    Regards, Murugesh AS

  • I'm getting this error message: "User not registered for online use" when i'm trying to download music/ track names from a CD into ITunes on my Windows 8 PC.  I'm registered and my itunes account/ appleID are all correct and working.

    I'm getting this error message: "User not registered for online use" when i'm trying to download music/ track names from a CD into ITunes on my Windows 8 PC.  I'm registered and my itunes account/ appleID are all correct and working.

    The ""not recognized for on-line use". error is associated with the Gracenote service that iTunes uses to look up and retrieve metadata for CDs.  Some users have reported that this error occurs when trying to import from CD, subsequent to upgrading to version 12.  A number of slightly different solutions have been reported (though all of a similar nature).
    Try walking through the following steps - before starting you may have to enable hidden files and folders to be viewed - in Windows 7 / Windows Explorer select Organize > Folder and search options, then on the View tab make sure that Show hidden files, folders and drives is selected.  Without this you won't see the AppData folder in C:\Users\username\
    Exit iTunes
    In Windows Explorer, go to the folder C:\Users\username\AppData\Roaming\Apple Computer\iTunes
    Delete the following files:
    CD Info.cidb
    com.apple.iTunes.Gracenote.plist
    Restart iTunes
    Insert a CD and see if details are now correctly retrieved from Gracenote
    If this doesn't work:
    In iTunes, select Edit > Preferences and make a note (or take a screenshot) of your preferences settings in all relevant tabs
    Exit iTunes
    In Windows Explorer, go to the folder C:\Users\username\AppData\Roaming\Apple Computer\iTunes
    Delete the following file:iTunesPrefs.xml
    Restart iTunes
    Insert a CD and see if details are now correctly retrieved from Gracenote
    If this second procedure does work, you'll need to restore other iTunes preferences settings to those that you noted in step 1.
    If this one didn't work:
    Exit iTunes
    Check the following folders:
    C:\Users\username\AppData\Local\Apple Computer\iTunes
    C:\Users\username\AppData\LocalLow\Apple Computer\iTunes
    Delete any copies of the following files:
    CD Info.cidb
    com.apple.iTunes.Gracenote.plist
    iTunesPrefs.xml
    Restart iTunes
    Insert a CD and see if details are now correctly retrieved from Gracenote
    Again, if this procedure does work, you'll need to restore other iTunes preferences settings to those that you noted in step 1 of the second procedure. If you're still not able to retrieve CD info:
    Exit iTunes
    In Windows, select Start > Control Panel > Programs and Features.  Find the entry for iTunes, right-click and select Repair.
    When this process has finished, restart iTunes
    Insert a CD and see if details are now correctly retrieved from Gracenote
    If none of these have worked (and almost everything I've seen suggests you should be OK by this point), you may have an issue with the installation and configuration of iTunes itself.  If you have got this far, see turingtest2's notes on Troubleshooting issues with iTunes for Windows updates for advice on how to remove and replace of all components of iTunes.

  • User exit screen for LM51---   urgt.

    Hi gurus ,
      I am trying to define new User exit screen for LM51. I have developed new screen assigned as,
    logical == 9151   variant=9    actual screen = 2151
      assighned in lrfmd with variant  = 9
    Even In Lm51 its not calling the subscreen 9151.i am not getting reson,
    kindly help me

    It is difficult to understand your requirement,but I suggest you please refer document on mobile data entry screen. Also to develop screen you have to use standard RF screen. Please consult with technical person who has worked on development of RFscreen.
    Regards,
    PRashant

Maybe you are looking for

  • IPhone 4 error while updating to iOS 5 - An error occurred while restoring this iPhone (-35).

    After taking over an hour to backup and restore my iPhone to iOS 5 iTunes gave me that error: An error occurred while restoring this iPhone (-35). Anyone know what this is? None of my apps have been restored, or settings.

  • Payment Advice Form F110_US_AVIS asking for FAX # ???

    Hello, When run the SAP standard program RFFOUS_T in one client, which invokes the form F110_US_AVIS, it is trying to send a Fax !!! When the same program (RFFOUS_T) runs in another client , it works the way suppose to be, send the form to the printe

  • Stock On Hand vs Stock Allocated Report

    I know that both of these can be found in one report for a single item with MD04. Can this be done for multple materials in one report so that we can plan replenishment over a whoel range? I have asked my superiors but they say it can't be done. Colm

  • Deployed mobile application not appearing in Mobile component

    Hi Experts I have downloaded the standard MAM (MAMLAPTOP3006_0-20001490.ZIP              SAP MOBILE ASSET MANAGEMENT 3.0 SR 06 (Laptop)      patch level - 0) From this I have a standard .war file which I am deploying in NWT server (10.191.97.208) I a

  • Problem with AS3

    Hello, I'm still learning Flash and Action Script 3, however i decided to try and create a game for a class. I have run into a problem, which I'm not sure how to fix. When I navigate to the second frame of the movie and use the buttons I recieve "Typ