Validation EXIT in GGB0

How to write an exit for WBS data Under Project Systems in GGB0

If you are working on ECC6.0, you can enhance the transaction GGB0 using enhancement framework. Implicit enhancements are provided by SAP at specific places like Begin/End of Subroutine; End of Report or Include; Begin/End of Methods, End of Structures etc.
Go through the below link.
http://help.sap.com/saphelp_nw2004s/helpdata/EN/94/9cdc40132a8531e10000000a1550b0/frameset.htm

Similar Messages

  • Help needed on Validation exit GGB0

    Hi Guys,
    Pls suggest how can i go about using exit validation for callup point 3(complete document level).
    i am trying to call form U101, but its not getting called.
    below is the code for this form.
          FORM U101                                                      *
          Example of an exit using the complete data from one            *
          multi-line rule.                                               *
          This exit is intended for use from callup point 3, in FI.      *
          If account 400000 is used, then account 399999 must be posted  *
          to in another posting line.                                    *
    -->  BOOL_DATA   The complete posting data.                         *
    <--  B_RESULT    T = True  F = False                                *
    FORM u101 USING    bool_data TYPE gb002_015
              CHANGING b_result.
      DATA: b_acc_400000_used LIKE d_bool VALUE 'F'.
    Has account 400000 has been used?
    LOOP AT BOOL_DATA-BSEG INTO BSEG
                    WHERE HKONT  = '0000400000'.
        B_ACC_400000_USED = B_TRUE.
        EXIT.
    ENDLOOP.
    Check that account 400000 has been used.
    CHECK B_ACC_400000_USED = B_TRUE.
    B_RESULT = B_FALSE.
    LOOP AT BOOL_DATA-BSEG INTO BSEG
                    WHERE HKONT  = '0000399999'.
        B_RESULT = B_TRUE.
        EXIT.
    ENDLOOP.
    lemi knw the process to call validation exit at complete document level (callup point 3).
    actually i am not able to pass parameter bool_data. plz suggest wht do v do for tht.
    Rgrds,
    Prash
    Edited by: Prashant Malik on Sep 11, 2008 12:00 PM

    Hi Prash,
    in ZGGBR000 (copy of RGGBR000) you have to add your exit to internal table exits e.g.
    Einfügen von U535 NB20081022
      exits-name  = 'U535'.                                     "NB20081022
      exits-param = c_exit_param_class.                         "NB20081022
      exits-title = text-535.                                   "NB20081022
      APPEND exits.                                             "NB20081022
    The value c_exit_param_class for exits-param will provide you after creating the step in validation (transaction GGB=) below coding for the call of the exit in my exmaple in include GBTASFIF. With the vlaue c_exit_param_none it doesn't work. I did the same error.
    FORM VALCHCK_2FI_BELG003
             USING
               BOOL_DATA
             CHANGING
               RES000.
      DATA:  RES001 LIKE D_BOOL.
          Exit-Evaluation :RES000                                       *
      RES000     = B_TRUE.
      PERFORM U535(ZGGBR000)
                    IF FOUND
                  USING
                    BOOL_DATA
                  CHANGING
                    RES000.
    ENDFORM.                               " VALCHCK_2FI_BELG003
    Hope that solved your problem.
    Regards
    Norbert

  • FI Validation Exit: how to disable system standard message "Correct the..."

    Hi,
        I had setup a FI validation exit. In the source code of this validation, I raise an error message, if any. For example:
        LOOP AT t_messages_return.
          MESSAGE ID t_messages_return-id TYPE  t_messages_return-type
                     NUMBER t_messages_return-number
                     WITH t_messages_return-message_v1
                             t_messages_return-message_v2
                             t_messages_return-message_v3
                             t_messages_return-message_v4.
        ENDLOOP.
       The validation is working fine, and it's not allowing user to continue document posts while error exists. The problem is that between my custom message error display and system come back to input screen, there's a popup raised by standard code:
      "Correct the error reported before on the next screen".
       User doesn't want this message being displayed, since it's an Information Message (like i000). Is there any way to disable this message ? It's raised by standard code just after my custom message code...
    Thanks
    Rodrigo

    Is the user exit used in defining validation step in Tx:GGB0?
    It's not good practice to issue error message in validation user exits, because document postig transactions are used in BDC sessions by SAP standard FI programs.
    Instead of raising error in user exit, set B_RESULT = B_FALSE and issue generic message in message part of validation.
    Check the validation definition in GGB0, message you are gettinin might be defined in the validation, removing it might not show the message.
    Regards
    Sridhar

  • Update Bool_data during validation exit

    Hello Experts,
    Is it possible to update the Bool_data fields during validation Exit ? I tried Update and Modify but not working.
    Example,
    Lv_text = 'TEST01'.
    Bool_data-bseg-sgtxt = Lv_text.
    so after posting, we will find the FI document line item text = TEST01.
    I do not want to use substitution, so please avoid that
    Thank you

    Hello Krishna,
    You can not during a Validation Exit update the Bool_data fields.
    To do so, SAP have created substitutions.

  • My exit in validation exit dont execute for fb02

    Hi guys,
    Validation in field BSEG-ZLPRS for FB02 transaction.
    1.- i add new form in se38 -> ZGGBR000
    FORM u105 CHANGING b_result.
      BREAK-POINT.
      DATA: znolib  LIKE zliber-znolib.
      SELECT SINGLE znolib
        INTO znolib
        FROM zliber
        WHERE bukrs = bseg-bukrs AND
              username = sy-uname.
      IF sy-subrc <> 0.
        b_result = b_false.
        MESSAGE i031(z001) WITH sy-uname.
      ELSE.
        IF znolib = 'N'.
          b_result = b_false.
          MESSAGE i031(z001) WITH sy-uname.
        ELSE.
          b_result = b_true.
        ENDIF.
      ENDIF.
    ENDFORM.
    2.- After activated i use RGUGBR00 for rebuilding validation structures
    3.- The condition is SYST-TCODE = 'FB02', cause there is no specific condition, we need to check thhis field for all circunstances
    I have all ok in ggb0
    Best regards
    Jua

    Not solved yet...
    in table GB01 i have:
    BOOLCLASS = 9
    CLASSTYPE = B
    BLCTAB = BSEG
    BCLFIELD = *
    BEXCLUDE = ' '
    Since i am not sustituying the field only validating its not necessary to change....
    But my exit still not working
    Best regards
    Juan

  • Validation exit at F-43/FB60 Payment method

    Hi
    I have requirement where at the time of Vendor invoice(F-43/FB60) if user enters a payment method other than what is there on the Vendor master data the system should throw up a warning message.
    Has someone worked around this area?
    Can this be achieved through validation or do I have to go for an Exit? Can you give me the relevant exit ?
    Thanks in advance.
    Dasaradh

    Hi,
    Good morning and greetings,
    You can try using the following function modules
    BPP1                          
    BPAR_P_FI_PAYMENT_METHOD      
    F028                          
    PAYMENT_METHOD_CHECK          
    TB26                          
    TB_PAYMENT_METHODS_CHECK      
    You can copy one of these function module to a bespoke FM and then activate it using FIBF (P&S Method) to do the check at the time of doing FB60 or F-43.
    Please reward points if found useful.
    Thanking you,
    With kindest regards
    Ramesh Padmanabhan

  • Validation Exit Issue

    Dear All ,
    1. I am using a user exit  program (ZRGGBS000 copied from RGGBS000)
    2. I created a validation in which
    prerequisite------> true 
    check----
    >U100 (in the exit I im returning the value of B_RESULT as F)
    After all these steps my exit is not getting called during the validation.
    Can anyone please help me with the same?

    solved by self

  • FI Validation Issue - OB28, GGB0

    Can any body help me in the following validation -
    Requirement - I'm trying to create a validation so that only specific document types can post to specific GL accounts.
    I'm implementing this requirement by line item validation.
    I started with the simple validation as below -
    Prerequisite -  BKPF-BLART = 'S1'
    Check         -  BSEG-HKONT <> '0000343433' (ABAP not equal to since can not be displayed between BSEG-HKONT and the account number)
    Message     -  Error Message
    It is not working. I have also tried the below -
    Prerequisite -  BSEG-HKONT NOT IN ZTEST
    Check         -  BKPF-BLART = 'S1'
    Message     -  Error Message
    where ZTEST is a set of GL accounts. It is not working either.
    I have even generated everything by program RGUGBR00. I tried it by setting breaking point also; it satisfies the condition but message does not show up.
    Also system is not allowing me to put something like this -
    Prerequisite -  BKPF-BLART = 'S1'
    Check         -  BSEG-HKONT NOT IN ZTEST
    Message     -  Error Message
    Please help.
    MV
    Edited by: mv reddy on Feb 11, 2008 11:37 PM

    BKPF-BLART = 'S1'
    BSEG-HKONT IN ZTEST

  • GGB0 Asset Master Validation of fields on different tabs, on SAVE button

    Hi, Experts.
    For the the validation step in GGB0,  I need to trigger the validation step when the SAVE button clicked in AS01.
    The point is, you have to trigger the validation step with ANY tab-screen in AS01 is ACTIVE ( General , Time-dependent, Allocations ...)
    Requirement:
    When following 2 conditions are satisfied, show error message and let the user to change the Capitalization date.
    Cond.1:  the Capitalization date ( ANLA-AKTIV ) on 'General' tab  is one specific value, YYYYMMDD , not Blank.
    Cond 2 : the City(ANLA-GDLGRP) on 'Allocations' tab includes one special value XXXXX, not Blank.
    I implemented the check and activated with OACV,
    with FGT  = 'A' and logical field group is 002 ( Posting information ) .
    The prerequsite on GB00 is as follows.
    [ (ANLA-GDLGRP <> 'XXXXX' ) AND ( ANLA-GDLGRP <> '' ) ]
    The check  is as follows.
    [ ANLA-AKITIV  <> 'YYYYMMDD' ]
    The current behavior on AS01 is as follows:
    The check works well only when  you click SAVE with 'General' tab active.
    However, it  does NOT work on different tabs ( Allocations, Time-dependent, and so on... )  are active.
    Normally, the users hop around different tabs in AS01, and finally SAVE.
    So  I can not expect which tab is active when the 'SAVE' was clicked....
    Need help & thank you lot in advance

    The link mentioned by you ToonS is not acessible.
    Here is the link:
    http://msdn.microsoft.com/en-us/library/office/gg615466(v=office.14).aspx
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • GGB0 Validation Rule for Transaction CO88

    Scenario: In transaction CO88 if user do not specify the posting date SAP default it to last date of period. We want posting date to be system date. Since posting date entry come under the menu Extra and is not mandatory user sometimes executes the transaction without specifying posting date which then result in posting date as last day of period.
    To avoid this I was trying to create validation rule in GGB0 under 'Cost Accounting'->'Document header' and 'Financial Accounting'->'Document Header', but it seems non of above is working.
    Validation are
    Prerequisite : SYST-TCODE = 'CO88'
    Check : BKPF-BUDAT <> SYST-DATUM
    Message : Error message
    After creating the validation I am executing CO88 in test mode, but no error message.
    Am I creating validation under right node in GGB0 or missing anything.

    Message executes when Prerequisite is met and Check fails.
    Check should be BKPF-BUDAT = SYST-DATUM

  • Transport validation in GGB0

    Dear Experts,
    How to transport validation changed through GGB0? since the menu 'validation-transport is not display'. I have try /nsu53 but no authorization failed there.
    pls advice.
    thanks

    solved.
    IMG-FA-special purpose ledger-tools-transport-transport validation

  • FB60 validation help

    Hi Friends,
    I am using the copy standard program 'rggbr000' to Z for my validation rule for Tcode FB60.
    My requirement is when the user enter Part.Bank field(invfo-BVTYP) in Payment tab then my validation exit should done some check. The problem is, it's not going to my debug point (as it is functioning only for Basic data fields). I have tried giving break-point in various areas of exit but it's not functioning for payment tab fields while saving or performing next action.
    Is this a correct validation program? or is there any other solution available?
    Please advise.
    PS: GGB0 decalration are done perfectly.
    Thanks & Regards
    Sankar.

    >
    Vinod Kumar wrote:
    > Check whether the field mentioned by you is availiable for validation.  For this check the entries in table GB01 (Field - BEXCLUDE).
    > Alternatively, test the validation by simulating it from ob28.
    1. You can view the fields which can be validated in GGB0.
    2. I don't think any simulation can be done via OB28. It is a simple parameter trxn of SM30 for maintaining view 'V_T001D'. Correct me if i am wrong.
    BR,
    Suhas

  • Regarding Validation and Substitution.

    Hi all,
    I need to write a new substitution and validation and these has to be triggered when MIRO/FB60/FB65 are saved.
    Now the problem is that i have append my exit and the Form has been written and program had also customized.
    But when I save the transactions mentioned my exit form is not triggering. Can any one suggest why this is not triggering ASAP.
    Thanks
    SAGAR.

    Hi,
    you can create ur validation enchancement using GGB0 transcation and activate it using OB28 transcation code
    it will works.

  • Validation for bseg-zlprs

    Hi,
    We need to validate against ztable if an user is authorized or not to change the value of bseg-zlprs in fb02 transaction. All i know is i can use transaction ggb0 to create it but a cant figure wich will be my prerequisite, check and message.
    Please any advices, links or the solution?
    Best regards
    Juan

    Hello Juan,
    Prerequisite:
    If you have any restriction like doc. type, company code etc. Depends on, as Rob said, based on what ocnditions you need to perform this validation.
    Check:
    You need to check the user's auth. to change the value in the field against some custom table. For this you have to code in some validation exit. You have to copy the program RGGBR000 to ZRGGBR000 & code your exit here.
    For the configuration required to achieve this please search in SDN. This has been discussed many times in the forum.
    Message:
    What is the message you want to give when the validation falis / succeeds. In your case it is the message you want to throw when the validation against the Z-table fails.
    Hope this helps.
    BR,
    Suhas

  • Validation for KP06

    Hi all!
    I need to make a validation for transaction KP06 (Change cost element input planning), so that given a version number (VERSN) and a cost element (KSTAR), the system will check in a Z table if the change is allowed or not.
    I have tried the following things:
       - field-exits: according to a SAP note, don't work in this transaction
       - user-exits: Enhancements 'COOMKPT4' and 'COOMKPLV'. Apparently doesn't go through them.
       - standard CO validation: in transaction GGB0. Have tried the three possible points (line item, internal CO posting, document header). Doesn't go through them either.
    Does anybody have any other ideas?
    Thanx

    Prakash: Already tried that; didn´t work, but thanx anyway
      Matt:  I have a small report that told me those two enhancements were for that transaction, but it was a bit strange kp06 didn't stop at the break-points. I'll search again.
             As for the other idea, i'm looking at the 'USER-EXIT' strings. You were right: there's one in the pbo that looks promising. Thank you.

Maybe you are looking for

  • How to add a specific view to a folder in Finder?

    Hello Everyone, I was wondering if there is a possibillity to add a specific view to a specific folder in Finder. I know this sounds abstract, let me explain: In OS 10.5 there are now 4 views for the Finder: - Icons - List - Columns - Cover Flow Usua

  • I keep getting error message when i try to download quick time player

    cant seem to download quick time player it gets all the way to the end then saya error

  • I don't have "Photo Stream" option in iPhoto Preferences

    I am trying to get photo stream on my iPhoto on my Mac so I can see pictures from my iPhone 4S.  However, when I look up instructions to do so they always mention the Photo Stream tab in the iPhoto Preferences.  Mine doesn't have that.  This is what

  • Create a PDF Form and Email the entire form w/ responses

    I created a form in PDF and I want to e-mail the form with the responses in the fields... like a file-->send to-->mail reciepents as attachment... I want to e-mail the form with responses not just email the data file of the form...any suggestions..pl

  • GT70 won't turn on anymore

    After suddenly turning itself off last night while running a benchmark, my notebook won't turn on amymore. At the time it was running on mains power without battery in. Ive tried disconnecting everything and then  running on battery and was unsuccess