User exit or BADI for FB60 while saving data.

Hi All,
I want apply check while saving the document in FB60 transaction.
I want to check for account number and quantity.
I check some BADI and exits but couldn;t stop while saving the document.
If anybody has worked on this or have any idea let me know.
Thanks in advance.
- Umesh

1. Try the BTE P/S events mentioend below. These should work for validation. Can be configured in transaction FIBF. You can create your own function module and add the validation.
<b>00001020</b> POST DOCUMENT:       Prior to Final Checks    
<b>00001025</b> POST DOCUMENT:       Final Checks Completed   
<b>00001030</b> POST DOCUMENT:       Posting of Standard Data
2. You can also used Validation of Accounting documents;
Transaction: <b>OB28</b>

Similar Messages

  • Need user exit or BADI for FB60

    Hi Guys!!,
    I am working on one object which   belongs to FB60 transaction. I have to give error message when user enter the ZTERM Value above 45 days for particular vendor group(MSMED).please help out.
    Richard.

    Hi,
    Foloowing are available user exits and BADIs for FB60.
    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)
    Please find the one suitable to your need.
    Hope it will help you.
    Regards
    Natasha Garg

  • User Exit or BADI for IW31 when Saving the Service Order

    Dear ABAPers,
            I would like to add one more line in Service order item when saving the Service order in (IW31) at runtime.Is there User Exit or BAdI.It is very Urgent Please help me.
    Thanks & Regards,
    Ashok.

    Hi
    U can go through the tansaction.
      System/ Status
      Double click on program name.
    For badis:
    Search for the Phrase:
      cl_exithandler=>get_instance.
    U will the badi definitions.
    For User exits:
      search for the phrase: CALL CUSTOMER-FUNCTION
      u will get the user exits.
    If it is helpful rewards points.
    Regards
    Pratap.M

  • User-Exit or Badi for dangerous goods - master data

    Is there any user-exit or BADI    we can use while changing or saving dangerous goods?
    We want to do a copy on other dangerous goods immediately after the change or creation of the dangerous goods master data.
    But I can't find an user-exit which can be used before the changes are saved.
    Can anybody help?
    Thanks!

    Hi,
    Please check SAP enhancement DG100001
    You can use this SAP enhancement to define a customer exit to write change documents for dangerous goods master data and packaging data.
    The customer exit is in the function group XD10. It is called from the function DG10_CHANGE_DOC_USER_EXIT.
    If the system does not find a customer exit, a standard document description is called. This is stored in the include LDG1NU03
    Hope this will solve your problem
    Regards,
    Keshav

  • User Exit or BADI For FB60

    hi alll
    I need to find an user exit / BADI  to get the company code on the display screen as soon as the Invoice is entered.
    When user uploads the file with invoice details, the program should find the company code based on the cost center of the first line of the invoice, and the respective company code should be populated in the header section of the transaction FB60 .
    Regards
    Sunanda

    Hi Sunanda,
    Try these one :
    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)          
    Hope this helps,
    Erwan

  • User Exit or BAdI for MM01/MM02

    Hi all,
    i need an user exit or badi for material master after data are saved.
    any suggestioon?
    thanks
    enzo

    Here are some exits
    MGA00001            Material Master (Industry): Checks and Enhancements 
    MGA00002            Material Master (Industry): Number Assignment       
    MGA00003            Material Master (Industry and Retail): Number Display
    Thanks

  • User Exit OR Badi for MK01 transaction (used for saving vendor amster data)

    Hi All,
    I have a requirement where I have to call my workflow, when we create the Vendor using my custom transaction (ZMK01, which is a copy of standard transaction MK01).
    For Workflow triggering I am using FM 'SAP_WAPI_CREATE_EVENT' in the user exit  'EXIT_SAPMF02K_001' but this is only for checking the data on saving Vendor Master.
    So I want to use FM 'SAP_WAPI_CREATE_EVENT' at right place. For that , I need User-Exit or BADI which is used for saving vendor master data.
    Could anyone please help me to find out the user exit or BADI for save event of vendor master data using transaction MK01.
    Looking forward to your advise and thanks in advance.
    Best Regards,
    Mamta

    Hi ,
    I forgot to activiate the project linked with User exit 'EXIT_SAPMF02K_001' .
    so problem is solved now
    Thanks,
    Mamta

  • User Exit or BADI for COR1/COR2

    Dear Experts,
    Can you please tell me if we have any user-exit or BADI for chaning the value of the technical completion date field
    i.e. AUFK-IDAT2 while saving the Process Order in COR1 or COR2?
    Thanks,
    Praveen

    Hi Praveen,
    Implement the customer exit EXIT_SAPLCOKO_006 in enhancement
    PPCO0020  Process order: Display/change order header data
    This is only importing one field I_AUFNR.
    but try the logic below.
    data: lv_fnam type char16 value '(SAPLCOKO)caufvd'.
    field-symbols : <fs_caufvd> type caufvd.
    your checks for changing the field IDAT2 (Technical completion date).
    Try to change <fs_caufvd>-IDAT2 field value.
    Regards,
    Dwarakanath.S

  • User Exit or Badi for MIRO

    Hi
    I need add some validations to data entry in MIRO for send their respective error messages and stop data saving.
    Does somebody knows some User Exit or Badi for make validations in MIRO ?
    Regards
    Frank

    Hi,
    you can use badi MRM_HEADER_CHECK. In order to put error message you can use function module
    PROT_FILL.
    * If there is any error do not allow posting
        DATA: gt_errtab    TYPE TABLE OF mrm_errprot,
              gs_errtab    TYPE mrm_errprot.
        CONSTANTS:     c_errprot(23)   TYPE c VALUE '(SAPLMRMF)TAB_ERRPROT[]'.
        FIELD-SYMBOLS: <fs_errprotj_dt> TYPE table.
        ASSIGN (c_errprot) TO <fs_errprotj_dt>.
        REFRESH gt_errtab[].
        gt_errtab[] = <fs_errprotj_dt>[].
        IF NOT gt_errtab[] IS INITIAL.
          READ TABLE gt_errtab INTO gs_errtab WITH KEY msgty = 'E'.
          IF sy-subrc = 0.
            DATA: c_okqx(17)   TYPE c VALUE '(SAPLMR1M)OK-CODE'.
            FIELD-SYMBOLS: <fs_okqx> TYPE ANY.
            ASSIGN (c_okqx) TO <fs_okqx>.
            CASE <fs_okqx>.
              WHEN 'BU'. "POST
    * This is optional: you can either search for a particular message or
    * do not allow any error message
    * Here search for the message triggered in badi INVOICE UPDATE
                READ TABLE gt_errtab INTO gs_errtab WITH KEY msgty = 'E'
                msgid = 'ZXX' msgno = '030'.
                IF sy-subrc = 0.
                  CLEAR <fs_okqx>.
                  MESSAGE s030(zxx). "While errors exist document will not be posted
                ENDIF.
            ENDCASE.
          ENDIF.
        ENDIF.
    This is used to give error message in case before posting the document.
    KR Jaideep,

  • User exit or badi for vl02n

    Dear ALL,
    Can any one tell me the user exit or badi for VL02N.
    I want it to trigger  while saving.
    How to write code in the form userexit_save_document.
    Please guide me.
    Regards,
    Vidhya.

    Hi,
    check the following BADI:
    BADI_IBDLV_DISPATCH_SE -BADI to dispatch Inbound Delivery for service enabled
    You can check the following BADI's also for vl02n transaction..
    LE_SHP_DELIVERY_PROC  ---     Enhancements in Delivery Proces
    LE_SHP_PRICING                 -
      Interface to Pricing in the Delivery
    LE_SHP_TAB_CUST_HEAD    ---  Header Detail Delivery
    LE_SHP_TAB_CUST_ITEM      -
      Item Detail Deliver
    LE_SHP_TAB_CUST_OVER   -
    Tab Page for Own Data - Item Overview Delivery
    LE_SHP_TAB_SCEM_HEAD
    LE_SHP_TAB_GLTR_HEAD
    BADI_SD_TO_FM                   -
    Commitments Management in SD for Funds Management
    Regards
    Kiran

  • User exit or BADI for recruitment

    Hi,
    I am new to HCM, can you give me user exit or badi for recruitment.
    Requirement - i have developed an infotype which i am updating through BSP, while the custom infotype is updated it should simultaneously update some of my Z tables. Hoping for positve replies earliest.
    Thanks in advance:-
    Santosh

    Hi,
    <b>Infotype</b>The data fields of HR master data, time management and recruitment are grouped logically into information types or infotypes for short.
    Examples of infotypes are "Family/Related Person", "Organizational Assignment, "Basic Pay".
    The following naming conventions apply to infotypes:
    Infotypes 0000 to 0999 are used for HR master data
    and sometimes for applicant data
    Infotypes 1000 - 1999 for organizational management
    Infotypes 2000 - 2999 for time data
    Infotypes 4000 - 4999 for applicant data
    Infotypes 9000 - 9999 for customers
    <b>Function character of step</b>
    This controls for which types of processing (create, change and/or delete a data record) a dynamic action should be carried out.
    The processing type is indicated by a two-digit numeric value. These values can be added up; in other words, you can enter several processing types for each infotype, subtype or field. A dynamic action can also be carried out independent of the current processing type.
    00 for Independent of the current function carried out
    02 for Change
    04 for Create
    06 for Change and create
    08 for Delete
    10 for Change and delete
    12 for Create and delete
    Examples
    If you enter 06, an action is carried out if the specified infotype was created or changed.
    If you enter 00, an action is carried out irrespective of whether the specified infotype was created, changed or deleted.
    <b>Variable function part</b>
    The variable function part, which depends on the indicator for step, can have the following meaning:
    <b>P - Plausibility checks</b>
    You can enter values for specific infotype fields. Field names must be entered in full. Literals and constants can serve as comparison values. These must be enclosed by inverted commas. Variables can also be used.
    The old value of a field can be used for comparison; the field name must be preceded by PSAVE-.
    If fields of other infotypes are used for comparison, these must be stored in the module pool of the current infotype.
    The following comparison operators are supported:
    = equal to,
    < less than,
    <= less than or equal to,
    > greater than
    >= greater than or equal to and
    <> not equal to.
    Consecutive checks must be linked by a logical AND. Logical OR links must also be indicated by a /X.
    Note:
    Note that all checks with OR links must have a /X.
    If the result of the comparison operation is not "true", then the following commands (I, F, W etc.) are skipped over until a field is reached or a new comparison operation takes place.
    Examples
    Infotype  Field ..... Ind.   Variable function part
    0007      STAT3       P      P0007-STAT3='0'
    0007      STAT3       P      PSAVE-STAT3='1'
    The step is taken if the value in the P0007-STAT3 field changes from 1 to 0.
    0007                     P      P0013-KLKZ1<>'0'/X
    0007                     P      P0013-ALVKZ<>'0'/X
    0007                     P      P0013-RVKZ1<>'0'/X
    0007                    P      P0013-RVNUM=SPACE
    The first three conditions are linked by an OR; at least one of these conditions must be met. Condition 4 must always be met.
    The step is taken if the following holds true:
    P0013-KVKZ1 not equal to 0 or P0013-ALVKZ not equal to 0 or P0013-RVKZ1 not equal to 0, and P0013-RVNUM empty.
    <b>I - Maintain infotype record</b>
    Enter the step, infotype, subtype, object ID, start and end dates of the record and an indicator which defines whether the step is to be run in the background. The possible actions are INS, COP, MOD, and DEL.
    Use commas to separate selection criteria just like the separator in the matchcode. If an entry is missing, the system inserts a comma.
    Separate the indicator for suppressing dialog from other entries by a slash D (/D).
    Constants, such as those for subtypes, are not enclosed in inverted commas.
    Variable entries are also permitted. Fields containing such values must be put in brackets.
    Examples:
    Infotype  Field ....  Ind.  Variable function part
          ....             I    INS,19,01/D
    Step: Create a Dates record, subtype 01, run in the background
          ....             I    DEL,14,M559
    Step: Delete Rec. Payments/Deds. record with subtype (wage type) M559.
    0007 ....                I    INS,8,,,(P0007-BEGDA),(P0007-ENDDA)
    Step: Create a Basic Pay record (0008) without subtype and object ID. The start and end dates are the same as those in the current Planned Working Time record (0007); specify these two fields only if they are filled because the dynamic action was triggered by this infotype.
    <b>W - Default values for new record</b>
    Literals or variables are used as default values.
    Set the defaults for the infotype, subtype, object ID, start and end dates using an I step and not a W step.
    Do not set defaults for Q fields of an infotype because the values for these fields are derived from the corresponding P fields.
    Examples
    Infotype  Subtype  ..... FC  Ind.  Variable function part
    0021       2              04  I     INS,0015,M430
    0021        2              04  W     P0015-BETRG='10000'
    When a Family/Related Person record (0021) record with subtype 2 (child) is created, an Additional Payments record (0015) with a default amount of 100.00 is created.
    <b>V - Cross-reference to another step</b>
    Here, you can combine fields to groups. The variable function part contains the value in the field which follows the "field" column. Steps which are specified only for the following field are also triggered for each of the other fields.
    Examples
    Infotype  Field  ..... FC  Ind.  Variable function part
    0016       PRBZH        06  V     PRBZT
    0016       PRBZT        06  I     DEL,0019,01/D
    Infotype 0019, subtype 01 is deleted in the background when the field PRBZT or PRBZH in infotype 0016 is changed or created (function code 06).
    The following entries are equivalent:
    0016       PRBZH        06  I     DEL,0019,01/D
    0016       PRBZT        06  I     DEL,0019,01/D
    <b>F - Call a routine</b>
    You can call internal (module pool) as well as external routines.
    If you call external routines, type the program name in brackets after the routine name. Do not specify 'using' parameters. When calling an external routine, all data must be declared in a common part. You can use the fields of structure RP50D to return values from the routine. These are not used in the standard system and can only be populated via the routine and then can be used for defaults (W-Commands).
    This allows customer-specific routines to be formulated with all the above steps.
    Example 1:
    Infotype  Field  .....  Ind.   Var.function part
    0016      PRBZT         F      PROBATION
    0016      PRBZT         I      INS,19,01
    0016      PRBZT         W      P0019-VTRMN=PRBEND
    Module pool MP001600 contains the PROBATION routine. This routine uses the entries in the fields P0016-PRBZT and P0016-PRBEH to determine the end of the probation period which it stores in the field PRBEND.
    The system creates a new 'Dates' record with the reminder date = PRBEND.
    Example 2:
    Infotyp ..... Ind. Var. function part
    0001           F      GET_DATE(ZPUDYN01)
    0001          I      INS,19,01
    0001           W      P0019-VTRMN=RP50D-DATE1
    The GET_DATE routine in program ZPUDYN01 calculates a date and enters this date in the RP50D-DATE1 field via "TABLES RP50D" in ZPUDYN01. This date can be user-defined in GET_DATE: if necessary, user-defined infotypes can be read afterwards.
    <b>M - Send a mail</b>
    Enter the name of the feature which defines the characteristics of the mail.
    Example
    Infotype  Field  .....  Ind.    Var.function part
    0001     SACHP         M       M0001
    A mail is sent when the field SACHP is changed. The characteristics of the mail are defined in feature M0001.
    In the standard system, feature M0001 is provided as a model. The documentation on feature M0001 explains how to define the characteristics of a mail.
    <b>ADDITIONAL HINTS</b>
    If you use a date as a constant, enter it as YYYYMMDD (YYYY=year, MM=month, DD=day).
    The table strings T001P, T503 and PSPAR are filled with the values which are valid on the record start date.
    The old values of the infotype are stored in the field string PSAVE. The structure of this string is the same as the Pnnnn structure (nnnn=infotype). The structure is filled with (valid) values only when the delete, change and create functions are used.
    Please read Create dynamic actions in the Implementation Guide.
    Regards
    Bernd

  • User Exits or BADI for RMWB

    Hello Experts,
                        I want to put a check on material code while forming the composition for recipe in transaction RMWB. I am entering the material uner the input and output tab. Can anyone please tell the available user exits or BADI for this. I checked few, however, the material no. is not getting captured.
    Thanks in advance.
    Regards,
    Sonal

    Hello Sonal,
    You can make use of field symbol to read the value of a variable in BADI.Press F1 on field and read the program name and screen field name of a variable and the use below things in the BADI code.
    Field-symbol <fs> type any.
    ASSIGN ('(program name)variable name') TO <fs>.
    IF sy-subrc EQ 0 AND <fs> IS ASSIGNED.
        ..you will get the variable value here in <fs>
    ENDIF.
    Thanks,
    Pawan

  • User Exit or BADi for FB02

    Hi
    Does somebody knows some user exit or BADI for add validations to FB02 when user changes some position data.
    I need to validate some header BKPF (Company, Currency) and detail BSEG (Posting Key, Account Bank)  data when change the position.
    Does somebody knows one user exit or Badi wich i can use to do it  ?
    Thanks
    Frank

    Thanks for your answers.
    I need to make validations for send error messages and i can not use FI Validations and Sustitutions because i send several differents messages  and wuold need N steps (one step for each message).
    The enhancement points called in CHANGE_TO_MODIFY are executed when ok-code is 'CHAE' that is when the user calls FB03 and then change to modify mode for make changes like if he goes to FB02 , but these enhancements are no executed any more when the data changes are made and user press save.
    I already found some enhancement executed just before data saving (it's in FORM belegsummen_pruefen) so i make the validation and send the error message , but when error message appears the screen get protected so the user can not change any screen field for make the data corrections.
    Best Regards
    Frank

  • User Exit or BADI for ml81n - Service Entry Sheet

    Hi all,
    I would like to find a user exit or BADI or enhancement upon saving.
    The requirement is posting to specific GL A/C from the Service No. given.
    Please don't provide me a list of unnecessary user exit or BADI.
    Urgently need for solution, Thanks.

    Hi,
    Check out the various exits for ml81n
    INTERFAC            Interface for data transfer
    SRVDET              User screen on tab strip of service detail screen
    SRVEDIT             Service list control (maintenance/display)
    SRVENTRY            Unplanned part of entry sheet (obsolete since Rel. 3.1G)
    SRVESI              Data conversion entry sheet interface
    SRVESKN             Set account assignment in service line
    SRVESLL             Service line checks
    SRVESSR             Set entry sheet header data
    SRVEUSCR            User screen on entry sheet tabstrip
    SRVKNTTP            Setting the account assgnmt category when reading in, if
    SRVLIMIT            Limit check
    SRVMAIL1            Processing of mail before generation of sheet
    SRVMSTLV            Conversion of data during importing of standard service c
    SRVPOWEB            Purchase order for service entry in Web
    SRVQUOT             Service export/import for inquiry/quotations
    SRVREL              Changes to comm. structure for release of entry sheet
    SRVSEL              Service selection from non-SAP systems
    SRV_FRM             SRV: Formula calculation (obsolete since 4.0A!)

  • User exit or BADI for MB31

    hi,
           In  Mb31 tcode,if we enter quantity more than the existing stock quantity for a particular batch and if we try to save it,then an error message should appear without saving.Is there any user exit or BADI for this functionality?.
    Thanks
    Sri

    Hi experts,
    If some one got the solution for this issue, kindly post the exact badi or user exit for this, her I'm struck with same problem.
    Regards
    Vimal Rsj

Maybe you are looking for

  • Install XP on 1 TB HD

    I have  1 TB hard Drive (Toshiba DT01ACA100), which replaces a failed HD.  I was able to install/restore my back-up of Win 7 to this HD, it runs fine.   Problem: The Win 7 installation was an upgrade from Vista on the old hard drive.  I'm running a H

  • Windows Domain in log files

    When doing a show transaction-log on a CE 560 running Application and Content Networking Software Release 4.1.3 the following line shows up: "Windows domain is not logged with the authenticated username" How do i turn this option on? Thanks.

  • Can't rip CDs reliably in iTunes 10.5

    I have been experiencing problems ripping CDs on my iMac. Many CDs appear OK, but some have just absolutely dreadful distortion. I have tried using different Macs, and even switching to Windows. Once I've identified a CD which won't rip, the terrible

  • If my ipad is stolen.  Where do i retrieve my photos From icloud

    If my ipad is stolen. Where do i retrieve my photos from icloud

  • Mini and Adobe CS3 vs G4 tower and CS2

    Graphic artist is using tower G4 Dual 1GHz 2mb L3 cache per processor 1.5 gb RAM with Creative Suite 2 I am suggesting we move on to a MacMini 1.66GHZ with 1 gig Ram using CS3... Any opinions on relative speeds - I have CS2 on a Mini and it is slower