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

Similar Messages

  • Help needed in customer exit code to exclude a value

    Hi Gurus,
    I need to use a Customer Exit Variable to read the values for a characteristic. Based on one indicator I have to include or exclude a value. I am trying to use the code as below. But, it is saying "AError for variable  in customer enhancement ...".
    Code
    the variable is a multiple single values customer exit variable
             zl_s_range-low = z_placc.
             CLEAR zl_s_range-high.
             if z_pl_ind = '1'.
               zl_s_range-sign = 'I'.
             elseif z_pl_ind = '2'.
               zl_s_range-sign = 'E'.
             endif.
              zl_s_range-opt = 'EQ'.
             APPEND zl_s_range TO e_t_range.
    Please help me to solve the issue,
    Thanks in advance,
    Regards,
    aarthi

    Hi Uday,
    Thanks for your response.
    Below is the complete code.
    WHEN 'ZV_CSS11'.
    IF I_STEP = 1.      "Before Pop-up
       select * into table i_tp_tab_pl from /BIC/QZ_TP_PLAC
        where /BIC/Z_TP_PLAC = '11' and
            DATEFROM <= sy-datum and DATETO >= sy-datum.
    if sy-subrc = 0.
         LOOP AT i_tp_tab_pl.
             clear zl_s_range.
             z_placc = i_tp_tab_pl-/BIC/Z_PLACC.
             z_pl_ind = i_tp_tab_pl-/BIC/Z_PGLA_IND.
             zl_s_range-low = z_placc.
             if z_pl_ind = '1'.
               zl_s_range-sign = 'I'.
             else.
               zl_s_range-sign = 'E'.
             endif.
              zl_s_range-opt = 'EQ'.
             APPEND zl_s_range TO e_t_range.
             clear z_placc.
             clear z_pl_ind.
          ENDLOOP.
    endif.
    endif.
    Thanks in advance,
    Regards,
    aarthi

  • Help needed in Customer exit variable

    Hi Experts,
    We have a scenario as below.
    User enters fiscal year period.Based on the fiscal year period,entire year will be selected.
    Row would contains
    0fiscper3(Fiscal months from Jan to Dec)
    Column contains Amount(Actual or Forecast)--There is a restricted keyfigure on amount.If value type=60 then forecast
    and value type=10 then actual amount
    If the user enters 002.2010 then it should give Actual values ie value type=10 for 001.2010 and 002.2010.For all values greater than 002.2010, it should give forecast values(value type=60)
    Report Format.
    Jan----
    Actual Value(value type=10 in the column for amount)
    Feb----
    Actual Value(value type=10 in the column for amount)
    Mar----
    Forecast Value(value type=60 in the column for amount)
    Apr----
    Forecast Value(value type=60 in the column for amount)
    May----
    Forecast Value(value type=60 in the column for amount)
    Jun----
    Forecast Value(value type=60 in the column for amount)
    Jul----
    Forecast Value(value type=60 in the column for amount)
    Aug----
    Forecast Value(value type=60 in the column for amount)
    Sep----
    Forecast Value(value type=60 in the column for amount)
    Oct----
    Forecast Value(value type=60 in the column for amount)
    Nov----
    Forecast Value(value type=60 in the column for amount)
    Dec----
    Forecast Value(value type=60 in the column for amount)
    I know that i have to create a customer exit variable for value type
    But in this scenario.the value for value type may change in each row based on fisper3(month).
    How can i obtain such a scenario in the customer exit
    Your help will be appreciated.
    Thanks,
    Senoy
    Edited by: senoy laxman on Feb 15, 2010 6:42 AM

    Hi Senoy,
    you have to create two customer exit variables for fiscal year period(0fiscper) as given below.
    1. for actual values (value type=10), coding in cmod such that showing values less than and equal to user input values.
    2. for forecasting values(value type=60,)coding such that showing values greating than user input values.
    use the first varible in the first selction and the second varible in the second selection in the given below structure(use the structure in rows)
    use the fiscal period user input varible in the third selection in the given structure below.
    structure
    selection - (Actual)-restrict with value 20 and first customer exit variable .
    selection -(Forecast)-restrict with value type 60 and second customer exit variable.
    Selection - 0fiscper
    Add the key figure 0Amount in the columns or in rows(in the selection of second structure) as per your requirment.
    hope this helps you.

  • Help needed in Validation

    On my page I have two items
    Item 1 is Duration which is an Select List ; containing Month/Quarter as values.
    Item 2 is Val , i need to put value based on Duration ,
    if the duration is Month, put 100 in this field
    if the duration is Quarter, put 500 in this field
    plz help me how to do this ?

    Then create a computation process which will then do it for you:
    BEGIN
    IF :p1_duration = 'Month'
    THEN
    :p1_val := 100;
    ELSIF :p1_duration = 'Quarter'
    THEN
    :p1_val := 500;
    END IF;
    END;
    Denes Kubicek

  • Urgent help need for user exit

    Hi all,
    i have just did one user exit but in RSA3 field is not coming. in step 1 i modified the extract structure. in step 2 in added field in include program ,saved and activated it. but field is not coming in RSA3. can anyone plese help me what should i do now or what has went wrong.
    in RSA3 update mode is 'F'
    thanks in advance

    hi,
      Have you created a project in CMOD and included your User exit component(RSAP0001) and activated it?.
    check that. otherwise give some more details reg. your problem.
    rgrds,
    v.sen.
    Message was edited by:
            Senthilkumar Viswanathan

  • Help need on Validations in inline-popup task flow

    Hi,
    I create a adf application, which refer ready only table and in toolbar, there are some button, which used to insert and edit records. For insert and edit i used a edit.jspx page which come as a inline poup in taskflow. In inline popup i used a button called submit, which used for two purposes.
    1) To validate two fields(ex:- effectiveto should be greather than effectivefrom)
    2) To close inline popup.
    i have done the validaitons using a managedbean and facesconfig.xml validators. My problem is can i do this both requirements by pressing only submitt button, i mean if validation are passed then automatically close the popup.
    Really appreciate if anyone can help me on this issue.
    Yaham.

    Hi,
    use the button "action" or "action listener" property to close the popup. Validation is processed after the apply request phase in the JSF lifecycle and thus comes before actions to be executed, which will be in invoke application phase.
    Frank

  • Help needed about user exits

    Hi frnds.
    For long time i have been searching for user exits for following txns. If any body have some idea i will appreciate it a lot.
    1.ME01(MAINTAIN SOURCE LIST)
    2.ME11(CREATE INFO RECORD)
    3.MB01(GR for PO)
    4.ME31(CREATE ONLINE AGREEMENT)
    5.ME51(CREATE PURCHASE REQUISITION)
    Waiting for your replies.
    Regards,
    Arpit

    Hi Arpit,
    You can use following code to find user-exits in any SAP standard transactions...
    Finding the user-exits of a SAP transaction code
    Enter the transaction code in which you are looking for the user-exit
    and it will list you the list of user-exits in the transaction code.
    Also a drill down is possible which will help you to branch to SMOD.
    Written by : SAP Basis, ABAP Programming and Other IMG Stuff
                 http://www.sap-img.com
    report zuserexit no standard page heading.
    tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
             tables : tstct.
    data : jtab like tadir occurs 0 with header line.
    data : field1(30).
    data : v_devclass like tadir-devclass.
    parameters : p_tcode like tstc-tcode obligatory.
    select single * from tstc where tcode eq p_tcode.
    if sy-subrc eq 0.
       select single * from tadir where pgmid = 'R3TR'
                        and object = 'PROG'
                        and obj_name = tstc-pgmna.
       move : tadir-devclass to v_devclass.
          if sy-subrc ne 0.
             select single * from trdir where name = tstc-pgmna.
             if trdir-subc eq 'F'.
                select single * from tfdir where pname = tstc-pgmna.
                select single * from enlfdir where funcname =
                tfdir-funcname.
                select single * from tadir where pgmid = 'R3TR'
                                   and object = 'FUGR'
                                   and obj_name eq enlfdir-area.
                move : tadir-devclass to v_devclass.
              endif.
           endif.
           select * from tadir into table jtab
                         where pgmid = 'R3TR'
                           and object = 'SMOD'
                           and devclass = v_devclass.
            select single * from tstct where sprsl eq sy-langu and
                                             tcode eq p_tcode.
            format color col_positive intensified off.
            write:/(19) 'Transaction Code - ',
                 20(20) p_tcode,
                 45(50) tstct-ttext.
                        skip.
            if not jtab[] is initial.
               write:/(95) sy-uline.
               format color col_heading intensified on.
               write:/1 sy-vline,
                      2 'Exit Name',
                     21 sy-vline ,
                     22 'Description',
                     95 sy-vline.
               write:/(95) sy-uline.
               loop at jtab.
                  select single * from modsapt
                         where sprsl = sy-langu and
                                name = jtab-obj_name.
                       format color col_normal intensified off.
                       write:/1 sy-vline,
                              2 jtab-obj_name hotspot on,
                             21 sy-vline ,
                             22 modsapt-modtext,
                             95 sy-vline.
               endloop.
               write:/(95) sy-uline.
               describe table jtab.
               skip.
               format color col_total intensified on.
               write:/ 'No of Exits:' , sy-tfill.
            else.
               format color col_negative intensified on.
               write:/(95) 'No User Exit exists'.
            endif.
          else.
              format color col_negative intensified on.
              write:/(95) 'Transaction Code Does Not Exist'.
          endif.
    at line-selection.
       get cursor field field1.
       check field1(4) eq 'JTAB'.
       set parameter id 'MON' field sy-lisel+1(10).
       call transaction 'SMOD' and skip first   screen.
    *---End of Program
    Regards,
    Sriram

  • HELP NEEDED IN SCREEN EXIT

    hi,
    i'm trying to add custom fields in XD01.. we have 6 tabs in the second screen in XD01.. it should come as 7th tab..
    for this in the PREPARE MODIFICATION-FREE ENHANCEMENT OF CUSTOMER MASTER RECORD in SPRO, i have created one screen group 'Z1' and inside that screen group i have passed parameters NUMBER : 7, and FCODE : ZNEW
    and i have implemented the method 'CHECK_ADD_ON_ACTIVE' in the badi 'CUSTOMER_ADD_DATA' writing the following code :
    IF I_SCREEN_GROUP = 'Z1'.
    E_ADD_ON_ACTIVE = 'X'.
    ENDIF.
    but in the second screen in XD01, i found that tab is not getting displayed.. wht could be the problem..
    thanks

    HI,
    IF I_SCREEN_GROUP = 'Z1'. i think it should be Z1 without codes.
    E_ADD_ON_ACTIVE = 'X'.
    ENDIF.
    HERE remove the codes for Z1
    hpoe it will help you.
    regads,

  • Help needed for Validating and Redireting website form

    Hello
    I know that this is probably a beginners question, but I
    can't seem to figure it out. Yes I am rookie.
    I want my form to validate itselves and if it was successful
    to redirect to a website that was selected by the client from a
    drop-down menu in the form.
    I have tried to use a jumpmenu but the problem is that it
    redirects the webbsite the moment the client makes a selection.
    e.g.
    Client select between three options
    Yahoo
    Google
    Vista
    Client enters details
    Name
    E-Mail
    Then submit form. If above entered detailed was validated
    simply as e.g. for containing an e-mail address the form should
    then redirect to user choice.
    I prefer to use a Javascript is possible.
    Thank you
    David

    I would probably advise server side code to accomplish this
    .. in whatever
    server model you use.
    Nancy Gill
    Adobe Community Expert
    Author: Dreamweaver 8 e-book for the DMX Zone
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
    2003)
    Technical Editor: Dreamweaver CS3: The Missing Manual,
    DMX 2004: The Complete Reference, DMX 2004: A Beginner's
    Guide
    Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
    Web Development
    "DavidLeRoux" <[email protected]> wrote in
    message
    news:fsj53v$55d$[email protected]..
    > Hello
    >
    > I know that this is probably a beginners question, but I
    can't seem to
    > figure
    > it out. Yes I am rookie.
    >
    > I want my form to validate itselves and if it was
    successful to redirect
    > to a
    > website that was selected by the client from a drop-down
    menu in the form.
    >
    > I have tried to use a jumpmenu but the problem is that
    it redirects the
    > webbsite the moment the client makes a selection.
    >
    > e.g.
    >
    > Client select between three options
    > Yahoo
    > Google
    > Vista
    >
    > Client enters details
    > Name
    > E-Mail
    >
    > Then submit form. If above entered detailed was
    validated simply as e.g.
    > for
    > containing an e-mail address the form should then
    redirect to user choice.
    > I prefer to use a Javascript is possible.
    >
    > Thank you
    >
    > David
    >

  • Hi help needed in user-exit

    Hi can any one send me the code for sample user-exit and with business requirement.
    Thanks in advance
    Regards
    Uday

    The code that you put in the user exit really depends on what you want to do.
    Regards,
    Rich Heilman

  • Help neede for customer exit

    Hi,
    Please let me know as to how can i derive the 1st day and last day of the fiscal week. I have the fiscal week data eg: 201004 in the cube
    Also how can i derive the  1st day and last day of the fiscal year quarter. I have the fiscal quarter data eg: 20101 in the cube
    any function module to get the 1st day and the last day of this week and the quarter?
    regards,
    Mahesh

    Hi Mahesh,
    Use Function Module WEEK_GET_FIRST_DAY to get the first day of the given week.
    You can get the last day of the week by Adding 6 to it OR y using Same function module for next week and get first day of the next week. and Make it  - 1.
    Regards,
    Pratap Sone

  • Validation and Substitutions - Urgent Help needed

    Hello everyone,
    I need your help about this. This is the first time i am going to create a validation for document no. line items.
    The scenario is this:
    1. I need to check if the FI document that is to be posted contains line items where BSEG-LOKKT falls within the range of “0099990000-0099999999”. For each matching line item, I need to check if the credit line items balances with the debit line items. If TRUE then the validation will EXIT succesfully.
    2. If an FI document contains line items where BSEG-LOKKT falls within the range of “0099990000-0099999999”, but the sum of the debit line items and the credit line items is not equal to zero, validation will prevent thre user from posting the document. Error message will be raised.
    3. If FI document document does not contain line items with BSEG-LOKKT ranging from “0099990000-0099999999”, validation will exit successfully because there are no appropriate alternative accts to be verified.
    This validation will only apply to one company code.
    Please provide me with the step-by-step creation of the validation.
    Points will be rewarded for helpful answers.
    Thanks in advance.
    Bay

    look tcode ob28, validation exit and <a href="http://help.sap.com/saphelp_47x200/helpdata/en/5b/d231e143c611d182b30000e829fbfe/frameset.htm">here</a>
    A.

  • Need help in date Validation Urgent

    Hi ,
    We need help in Date Validation.
    we have 2 Date fields on the form Start Date, End Date
    The requirement is: End Date (May not be greater than 30 years from the start date).
    I have written following script on End Date Exit event. But the problem is its calculating 30 years from the Current Date not from the Start Date
    var tDate = util.scand("mm/dd/yyyy", new Date());
    var M = tDate.getMonth();
    var D = tDate.getDate();
    var Y = tDate.getFullYear();
    var SRes = util.printd("yyyy-mm-dd", new Date((Y+30), M,D) );
    //app.alert(SRes)if (SRes <= this.rawValue){
    app.alert("May not be greater than 30 years from the start date")
    xfa.host.setFocus(
    this);}
    can someone please help me
    Regards,
    Jay

    Hi,
    You'll need to get javascript date from LCD field, and calculate & compare with the future date in javascript date.
    try following script;
    var sDate = StartDate.rawValue;
    var wkStartDate = util.scand("yyyy-mm-dd", sDate);
    var nYear = wkStartDate.getFullYear();
    var nMonth = wkStartDate.getMonth();
    var nDay = wkStartDate.getDate();
    var wkFutureDate = new Date(nYear  + 30 , nMonth, nDay);
    sDate = EndDate.rawValue;
    var wkEndDate = util.scand("yyyy-mm-dd", sDate);
    if (wkEndDate.getTime() > wkFutureDate.getTime()){
      xfa.host.messageBox("May not be greater than 30 years from the start date");
      xfa.host.setFocus(this);

  • User Exit for Material Group...Urgent help needed

    Does anybody have an idea of which user exit can be used to capture the changes made to material group in MM02(Material)..... Urgent help needed...

    See  the below user exit and this will trigger under MM01,MM02 and MM17 Transaction
    Enhancement name : MGA00001
    Function module :EXIT_SAPLMGMU_001
    Include : ZXMG0U02
    Reward Points if it is helpful.
    Thanks
    Seshu

  • HT2731 i hav iphone and i restart it and delete all the files inside how can i start again my iphoe it say i need a valid sim with no pin lock to activate it again pls help

    i hav iphone and i restart it and delete all the files inside how can i start it again it say i need a valid sim with no pin lock to activate iphone again

    ICCID unknown is a critical failure, usually caused by hacking or jailbreaking the phone. It can not be fixed. The phone will need to be replaced.

Maybe you are looking for