User Exit CATS0002 Validation

Hi Gurus,
I need to validate a field in cat2 transaction for a field . if the user enters a value other 1 then i need to validate that field providing an warning message "Number of days should not exceed 1 for a given date".
and then user should input the proper value (i.e, 1).
I incorporated this validation in User Exit CATS0002  CATS: Supplement recorded data.
in which i need did the validation for enrich_table-catsquantity as mentioned below.
IF enrich_table-catsquantity > 1.
      MESSAGE w667(lr) WITH 'No.of days'
                            'should not'
                            'exceed 1 for'
                            'a given date'.
       ENDIF.
1. If this condition becomes true the message will be triggred. then after executing this message staement will it alow the user to enter proper value ?
2. any other method of validating ?
Please help regarding this.
Thanks
ramu

Hi Kiran,
This sounds very interesting to me and I would like to learn more about the use case.
But first I need more information about your system landscape.
Do you run the use case on NW 70 EhP 1 or 2?
I strongly recommend NW 7.0 EhP 2 and I am convinced you get it done easily with BRFplus.
Calling BRFplus rules can be achieved by RFC or WebService call or locally in ABAP. Maybe take a look at a package called SFDT_DEMO_OBJECTS.
BR,
Carsten

Similar Messages

  • BADI/User Exit for validation in WAK1

    Hi,
    I need to put validations in transaction WAK1.
    for the Site Groups under the site groups TAB.
    Please suggest if any BADI or User Exit is available to do this.
    I checked there are BADI's "WAKT_BADI_001" to "WAKT_BADI_008" but they are for SAP Internal Use only.
    Regards
    Ankur

    Hi
    Below are some of BADIs available for WAK1. Please check.
    Exit 
    WCOUP001  User exit for coupon processing in POS inbound
    BADIs
    RDM_BAPI_PROMO_CREATE - Enhancement Spot (RDM_OPT_PROMO_IN)
    RDM_PROMO_POST - Enhancement Spot
    RDM_PROMOTION_WAK1 - Enhancement Spot
    WAKT_BADI_001  -
    ~~~Ganesh Kumar K.

  • FBCJ BADI/User Exit or Validation Rule Implementation

    Inspite of my maintaining validation as under, i am not able to achieve what i desire, i.e., System is still posting Cash transactions thru FBCJ t code for amount exceeding INR 50,000
    1. Created a validation name
    2. Assigned it to Application Area - FI
    3. Callup Point - 2 Line item
    4. In validation step 0001, created pre-requisite as
    Transaction code = 'FBCJ' AND Account Type = 'D' AND
    Posting key = '15'
    5. Under check, Amount <= '50000.00'
    6. Entered E in message type with corresponding message class ZKM_MSG_CLASS for message number 018
    7. Assigned the above validation in OB28 t code for activation level 1 (i.e., Active)
    System display a message; but also post it as well, despite of 'E' error message type.
    How to tackle with the above problem.
    Is there any other badi/user exit for FBCJ. I have only find CJ_DOCUMENT, but it's not working for me.
    Thanks and Regards,
    Sohail

    Hi
    Below are some of BADIs available for WAK1. Please check.
    Exit 
    WCOUP001  User exit for coupon processing in POS inbound
    BADIs
    RDM_BAPI_PROMO_CREATE - Enhancement Spot (RDM_OPT_PROMO_IN)
    RDM_PROMO_POST - Enhancement Spot
    RDM_PROMOTION_WAK1 - Enhancement Spot
    WAKT_BADI_001  -
    ~~~Ganesh Kumar K.

  • USER EXIT for Validation

    Dear All,
    We have two user group for creating the Sales Order.They are
    1. Sales order creation (Real ) and 2. Sales Order creation (Virtual ).
    Our requirement is that a user(s) belonging to Real must be able to create Virtual SALES ORDER   and vice versa.
    We have identified the table and the field as mentioned below.
    Table is VBAK  ( Transaction Code : VA01 & VA02),  & Field is ZZSO_SORT.
    As we are planning to write a Validation in FI  as per the below logic.
    Validation 1.
    IF T.CODE ; VA01 or VA02 and User id isXXXXX ( REAL group),then check  ZZSO_SORT = REAL (hard code value)
    Validation 2.
    IF T.CODE ; VA01 or VA02 and User id isXXXXX ( VIRTUAL group),then check  ZZSO_SORT = VIRTUAL (hard code value)
    But we don't have the table VBAK( and also the feild ZZSO_SORT) in FI validation (OB28),so we have to write an user exit.
    As we have fever knowledge about writing a code for user exit( as per above logic) and assigning the same to the respective Validation,it will great,if some one can assist us to achieve our target.
    Thanks for your time and patience.
    Regards,

    Hi
    I don't know where the information for that field is from
    Validation 1.
    IF T.CODE ; VA01 or VA02 and User id isXXXXX ( REAL group),then check ZZSO_SORT = REAL (hard code value)
    Validation 2.
    IF T.CODE ; VA01 or VA02 and User id isXXXXX ( VIRTUAL group),then check ZZSO_SORT = VIRTUAL (hard code value)
    The field VBAK-ZZSO_SORT can be filled programatically by the user-exit USEREXIT_MOVE_FIELD_TO_VBAK (include MV45AFZZ):
    FORM USEREXIT_MOVE_FIELD_TO_VBAK.
      IF T180-AKTYP = 'H' OR                                    "---->VA01
         T180-AKTYP = 'V'.                                      "---->VA02
        IF SY-UNAME = <......>.
          VBAK-ZZSO_SORT = 'REAL'.
        ENDIF.
        IF SY-UNAME = <......>.
          VBAK-ZZSO_SORT = 'VIRTUAL'.
        ENDIF.   
      ENDIF.
    ENDFORM.                    "USEREXIT_MOVE_FIELD_TO_VBAK
    Otherwise it needs to know who/what inserts the value of  VBAK-ZZSO_SORT in order to decide where the control has to be placed.
    Max

  • User exit or validation to check plant in FI entry

    Dear Experts,
    I have one business requirement  that at the time of vendor invoice verification throgh FB60 or credit memo system should check that the vendor is existing for the particular plant or not from LFM2 table.
    So please help me if there is any validation or user exit  is there which we can use for the same.
    Thanks & Regards,
    Hansa Chechani

    Dear expert
       please go through below link it may help you
    Copy Credit Memo request from Invoice
    Regards
       Ajeesh

  • How does the user exit of validation rules get triggered?

    SPRO
    FinancialAccounting> GL Accounting > Business Transaction > GL posting > Carry out doc settings > Validation in accounting docs
    Here you can specify rules and call user exits also.
    To add code into the user exit, we have to copy the standard program that contains this user exit and then create a z version?
    If so, where do you tell to branch into the custom z program and not the standard program?

    Go to transation GGB0(Change Validation), Go to Application Area/Time -> Financial Accounting -> Line Item. Create a validation what ever you want and add the steps/rules for that. You have a provision to give Rules/Exits(User Exit).

  • User Exit for Validity Date for VA41 Tcode

    Hi,
    I am giving order type in VA41 Tcode and then Clicking on 'Create with Reference' .Then  a Pop Up is getting generated. In this i am giving Contract created with validity date lessthan today's date(in Contract Tab).For Example i created a Contract xxxxxx with 'valid to'  9.12.2008. When I am giving this contract and clicking on 'Copy' button a Warning message is getting generated 'The sales document is only valid until 09.12.2008'. Now i have to change this into Error message instead of Warning Message.
    i used User Exits  mv45afzz,MV45AFZA,MV45AFZB. But the debugger is getting started only after Warning message got generated.Is there any User Exit for which debugger gets started  when i give the Contract and then Click on 'Copy' button. Please Suggest.
    Thanks and Regards
    K Srinivas

    Hi,
    One idea. Go to VTAA (copy between sales docs) and create a new VOFM where you manage the copy control. Set a warning/error message in the new VOFM (in your range number), and try it.
    Regards,
    Eduardo
    Edited by: Eduardo Hinojosa on Dec 10, 2008 3:58 PM

  • User exit for validation of field NEWKO in f-48 tcode in finance

    hi,
           Previously we  validated the Field XBLNR (Reference) in the document header from the table EKKO, for the PO Number. now we want to validate the vendor number(LIFNR)  in the field NEWKO from the table EKKO with reference to the PO number entered in the field XBLNR.
    we want to find out the correct user exits or any enhancement for the above validation.
    pls help me in this regard ,matter most urgent.
    Thanks & regards
    veera

    hi,
    for f-48 you could use FI-validation with tcode OB28
    use an exit (UK...) for your check in Program ZGGBR000
    A.

  • User Exit for validating overall limit field and expected limit field-ME2xN

    Dear Gurus,
    Can you please suggest me any user exit or BAdi to validate the overall limit field and expected limit field in transaction ME2xN.
    Or any other way to to achieve this functionality in ME2xN.
    Our Requirement is while raising a service PO in the Limits tab the 'Overall limit' should be same as 'Expected Value', at present the user can enter overall limit greater than 'Expected Value'.
    Regards,
    Priyank Joshi

    this will not work. you cannot add another structure (AUFK) on top of CEBAN. all characteristics have to be of one structure and since you want to release a PR it has to be CEBAN. before attempting to program something around that why do you not go to tx. OLME -> PR -> Release Strategy -> With Classfication -> Release Strategie and run it in a simulation mode. you will then see how it reacts.
    there's a white-paper on service.sap.com explaning in detail release-strategies. it's a good one and a good read too!

  • Validation \ User-exit \ BADI \ BTE for F-43 for missing exchange rate

    Hi,
    I maintain the exchange rate on a daily basis in TCURR exchange rate table.
    But, let's say that, by accident, in one day I fail to input the exchange rate.
    In this case, when I input a invoice in F-43, I'd like for the system to issue a warning (blocking) message saying that there is no exchange rate for that specific posting (translation) date.
    I tryed to create a validation for F-43. But the conditions available in validation are just too simple and I couldn't achieve my goal.
    However, I saw I can attach an user exit to the validation or an user exit directly in F-43.
    I found in SMOD the following user-exits for F-43 (in package FBAS), but I don't know how to use them:
    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
    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)
    Can you help me to attach an user-exit to a validation or an user exit directly in F-43 to do the specified validation?
    Or maybe this can be done with a BADI \ BTE?

    Thanks for the reply.
    I succeded creating the validation with an user-exit. I made the following steps:
    1) I created the validation in GGB0 (for document header), issuing a standard message (420 "Exchange rate not found") from message class (ZRSAU) - which is a copy of RSAU message class (in the beggining I put no pre-requisites, checks or rules, just the message).
    2) In OB28 I attached the validation (with call point document header) and I made it active (without batch input).
    3) I copied the RGGBR000 program (which is standard program with an example of validation) into ZRGGBR00 (it should be maximum 8 characters).
    Then I changed the ZRGGBR00 program (form U100) comparing the translation date (from BKPF) with the date from table TCURR (and exchange rate type M, and documents currency other than local currency).
    If the program doesn't find any exchange rate in TCURR in that date, it issues the error message (assigned in GGB0).
    4) In GGB0, I put the U100 user exit as a check and rule
    5)  In GCX2, I attached the ZRGGBR00 program to the GBLR application area (which is for user exits for validations / rules).
    Now it's working fine!

  • User exit in VF01 for plant validation while taking the output smartform

    Hi Gurus,
    I am in a typical situation..
    We ahve a scenario where for one specific plant we need to trigger a different output type(smartform) where the billing type is being common for all plants...
    example: billing type : A00 ( same for all plants)
                  outout type (billing) : B00 ( one smartform)
                                                 C00 (another smartform)
    For all the plants, Boo triggers as the layout is same for all Except for One specific plant where it should trigger C00 i.e., different smartform i.e., layout...
    Any user exit for validating Plant at the time of saving the billing document to trigger a different outout type as above for the same billing type ???
    Please help me..
    regards
    Ravikumar

    Dear Ravikumar,
              You can do like this with out using User exit.
    -->Take field Plant in to the output condition table
    -->Put that condition table in to access sequence
    -->Define two condition type as you mentioned B00 and C00
    -->Assign access sequence to that condition types.
    -->Put those output condition types in the output determination procedure.
    -->Assign that output determination procedure to the billing type.
    -->Main the condition records for that conditon types with one of the key combination PLANT
    I hope it will help you
    Regards,
    Murali.

  • User Exit/BTE for F-26  for sequencing clearing open items

    Hi All,
    Is there a BTE/User exit to identify the items selected for clearing in F-26? ( On line item double click)
    Based on the open items displayed we need to enforce a check that they are selected in a proper sequence.
    Thanks in advance,
    Puneet

    Thanks for the reply.
    I succeded creating the validation with an user-exit. I made the following steps:
    1) I created the validation in GGB0 (for document header), issuing a standard message (420 "Exchange rate not found") from message class (ZRSAU) - which is a copy of RSAU message class (in the beggining I put no pre-requisites, checks or rules, just the message).
    2) In OB28 I attached the validation (with call point document header) and I made it active (without batch input).
    3) I copied the RGGBR000 program (which is standard program with an example of validation) into ZRGGBR00 (it should be maximum 8 characters).
    Then I changed the ZRGGBR00 program (form U100) comparing the translation date (from BKPF) with the date from table TCURR (and exchange rate type M, and documents currency other than local currency).
    If the program doesn't find any exchange rate in TCURR in that date, it issues the error message (assigned in GGB0).
    4) In GGB0, I put the U100 user exit as a check and rule
    5)  In GCX2, I attached the ZRGGBR00 program to the GBLR application area (which is for user exits for validations / rules).
    Now it's working fine!

  • User Exit or BADI for the Bank validation in BP transaction

    Hi All,
        My requirement goes like this, my customer wants to validate the bank keys whether the deletion flag is marked or not and if marked then throw the error message, in BP transaction. But when i was searching for the user exit or a BADI during "save" in BP transaction i was not able to get the appropriate user exit or a badi to do the validation. So can anyone help me finding the user exit or a BADI in the BP transaction
    Thanks and Regards,
    Praveenkumar T

    Hi Praveen,
    I don't think there is any Standard FM to validate the bank keys.
    You need to make a custom FM for the above requirement and call the FM during the save event of the BP.
    Go to Transaction Code-BUS7 and look for event-DSAVC
    Under the event DSAVC, assign the custom FM and place the X flag for calling the same.
    Hope it clarifies.
    Thanks,
    Amlan

  • Validation in F110 or User exit

    Gurus,
    Is Validation called in F110 (Automatic Payment Run) Transaction ?
    If yes then how can i implement the following Validation ?
    In F110 during Payment Proposal or Payment run time ,We have to allow specific user to process the Payment for the company code 1806 or 1809 and Payment method = 'Z'.
    If Validation doesn't work in F110 then is there any user exit which i can use it for this purpose.
    Thanks,
    Siva

    Hi,
    please use  <a href="http://help.sap.com/saphelp_47x200/helpdata/en/e7/653749d2d211d29e430000e839cd96/frameset.htm">open FI</a> (transaction FIBF and process 1860)
    regards Andreas

  • 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

Maybe you are looking for

  • Planning is not getting displayed under shared services

    I have installed essbase,Bi Plus and Planning.Esbase and Bi Plus were configured and were successful.I have completed the configuration of planning also the product instance and Data source step. When i log on to shared services i am not seeing the p

  • ARD 3 Announced - anyone find upgrade pricing

    [ Edited by Apple Discussions Moderator; Please start a new topic about your technical issue. ] It appears there is no discount for current owners. Anyone see any different information?

  • Problem with currency format setting

    hello experts, i have one currency filed FDES-WRSHB = 25706515.32. i want this field to be converted into currency format which user have selected. for ex if user setting for currency in SU01 is 1,23,456.89 then this currency should be converted to 2

  • I wanted to know how do you calculate the number of days between two dates

    i wanted to know how do you calculate the number of days between two dates in java ? i get both the dates from the database. i guess there are many issues like leap year and Febuary having diff no of months ..etc.

  • CORBA and other computers

    Hi, We have developed the following for an action system written entirely in Java: - SQL Server database - CORBA server (connects to db using JDBC/ODBC) - Applet client connecting to server using CORBA technology. When we access the applet from the l