BADI / User Exit related to FB02/FB03 Transactions

Hi All,
I have a requirement to make the field Reference Key 2 of FB02 transaction editable , right now the field is not editable .
To reach this field
1 .Goto transaction FB02 , enter the doc number, comp code and fiscal year press enter .
2. In the next screen double click on any one of the line Item .
3. Now in this screen click on the More data button on the application tool bar . You can see the Reference Key 2 (BSEG-XREF2) .
Please let me know how to proceed with this .
Regard's
Sudheer V

Transaction Code - FB02                     Change Document
Exit Name           Description
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)
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
No of Exits:         14
Transaction Code - FB03                     Display Document
Exit Name           Description
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)
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
No of Exits:         14
USER EXIT
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sapgenie.com/abap/code/abap26.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
http://www.easymarketplace.de/userexit.php
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sappoint.com/abap/userexit.pdfUser-Exit
http://www.sap-img.com/ab038.htm
http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
Rewards if useful.........
Minal

Similar Messages

  • BADI/USER-EXIT related to product hierarchy

    Hi All,
    I am a technical consultant and i got this requirement.
    -When creating sales org views for a material the field MVKE-PRODH has to be initialized with the value of MARA-PRDHA field.
    -When updating MARA-PRDHA, all MVKE-PRODH must be updated by the system. (for all Sales Organization / Distribution Channel which exists for the material)
    And my client is using sap retail version. I am not able to find any relevant user-exit but i found one BADI named 'BADI_MATERIAL_REF' it is working fine for at the time of creation of material but it is not working for material updating.
    So please let me know either user-exit or badi or any other technology which solves my problem.
    Thanks in advance.
    Thanks & Regards
    Naveen Koppolu

    Hi Christian,
    I checked in MABW table my test material does not exist in thas table. And regarding MVKE-PRODH in T130F these are the following entries:
    Client             800
    Field name         MVKE-PRODH
    Field sel.group    090
    CCode              004
    Maint. status      V
    Propose            X
    SpecFieldSelGrp
    Classification
    Checkbox
    Field group        GR_V
    Restr.matl cat.    1
    Copy               X
    Incl.init.vals
    Lock-relevant
    Actually for my requirement i found one badi 'BADI_MATERIAL_REF' , but the problem is it is working only at the time of creation only its not working at the time of change material. If the above BADI works at the time of change material also my purpose will be solve. So please let me know is there any customization requires for that problem ( If BADI will call at the time of change of material also ).
    Or any another BADI or User-Exit solves my problem.
    I am once agian pasting my problem below:
    - When creating sales org views for a material the field MVKE-PRODH has to be initialized with the value of MARA-PRDHA field.
    - When updating MARA-PRDHA, all MVKE-PRODH must be updated by the system. (for all Sales Organization / Distribution Channel which exists for the material)
    Regards
    Naveen Koppolu
    Regards
    Naveen

  • BADI/User Exit for KE51 and KE52

    Hi Experts,
    I am searchinf for a BADI/User exit In profit center master transactions KE51 and KE52 which should trigger  when we activate the Profit center and after the data base committed as i need to send the changed profit center data to other system. 
    any ideas will be highly appreciated.
    Thanks,
    Rajinikanth

    Try
    PCA00003  Derive Partner Profit Center for External Deliveries
    EXIT_SAPLPC45_002
    EC-PCA: Activate Derivation of Partner Profit Center

  • ME41 badi/user exit

    Hi
    Do you know an BADI/user exit which is called in transaction ME41?
    My requirement is to insert some custom text into item texts.
    For Purchase Order I've done it with ME_PROCESS_PO_CUST and method PROCESS_ITEM but I can tfind simmilar functionality for RFQ.

    Hi Tomas,
    I think you have to create an enhancement spot. I once developed an enhancement spot to manipulate the item text in ME41.
    Here are the steps.
    - Open MM06EFTE_POSITIONSTEXT_UEBER0H include.
    - Create an implicit enhancement (usually right before endform line)
    - You can write your code to do the item text manipulation inside the enhancement block (the text is stored in tlinetab table)
    FYI, for RFQ:
    tdobject = 'EKPO'
    tdname = 'RFQ number + line item'  (ex: 460000001700010)
    tdid = 'A01' (standard for item text)
    I hope this is useful for you

  • BADI/ User Exit for transaction FTR_EDIT/FTR_CREATE initial screen

    Hi All,
    I want a BADI/User Exit for FTR_EDIT/FTR_CREATE transactions to validate company code and partner fields.
    please provide your suggestions.

    Hi,
    here is a coding example that I implemented in the BAdI FTR_TR_GENERIC. This coding is executed when the user press the check button. The method is EVT_TRANSACTION_CHECK. This example is checking the payment date dfaell if it is equal to the system date. If not then a message is sent to the message handler. Here is the code:
      DATA: faelligkeit TYPE d,
            faelligkeit_text type c length 10,
            meldungstext TYPE c LENGTH 100.
      FIELD-SYMBOLS: <it_source> LIKE LINE OF pi_proxy_transaction->a_tab_conditions.
      IF sy-uname = 'XYZ'.
    *    BREAK-POINT.
        READ TABLE pi_proxy_transaction->a_tab_conditions INDEX 1
          ASSIGNING <it_source>.
        faelligkeit = <it_source>-dfaell.
        CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
           EXPORTING
             DATE_INTERNAL                  = faelligkeit
           IMPORTING
             DATE_EXTERNAL                  = faelligkeit_text
           EXCEPTIONS
             DATE_INTERNAL_IS_INVALID       = 1
             OTHERS                         = 2
        IF sy-subrc <> 0.
           MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        IF faelligkeit <> sy-datum.
          CONCATENATE 'Fälligkeit' faelligkeit_text 'incorrect' INTO meldungstext separated by space.
          CALL METHOD pi_proxy_messages->set_message
            EXPORTING
              pi_message_id       = 'T0'
              pi_message_number   = '101'
              pi_message_severity = 'E'
              pi_message_var1     = meldungstext
            EXCEPTIONS
              OTHERS              = 4.
        ENDIF.
      ENDIF.
    It is not a really nice coding but it shows in a simple way how to use the BAdI.
    Regards
    Robert

  • BADI/ User Exit for transaction FTR_EDIT/FTR_CREATE

    Hi All,
    I want a BADI/User Exit for FTR_EDIT/FTR_CREATE transactions to validate company code and partner fields.

    Hi,
    here is a coding example that I implemented in the BAdI FTR_TR_GENERIC. This coding is executed when the user press the check button. The method is EVT_TRANSACTION_CHECK. This example is checking the payment date dfaell if it is equal to the system date. If not then a message is sent to the message handler. Here is the code:
      DATA: faelligkeit TYPE d,
            faelligkeit_text type c length 10,
            meldungstext TYPE c LENGTH 100.
      FIELD-SYMBOLS: <it_source> LIKE LINE OF pi_proxy_transaction->a_tab_conditions.
      IF sy-uname = 'XYZ'.
    *    BREAK-POINT.
        READ TABLE pi_proxy_transaction->a_tab_conditions INDEX 1
          ASSIGNING <it_source>.
        faelligkeit = <it_source>-dfaell.
        CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
           EXPORTING
             DATE_INTERNAL                  = faelligkeit
           IMPORTING
             DATE_EXTERNAL                  = faelligkeit_text
           EXCEPTIONS
             DATE_INTERNAL_IS_INVALID       = 1
             OTHERS                         = 2
        IF sy-subrc <> 0.
           MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        IF faelligkeit <> sy-datum.
          CONCATENATE 'Fälligkeit' faelligkeit_text 'incorrect' INTO meldungstext separated by space.
          CALL METHOD pi_proxy_messages->set_message
            EXPORTING
              pi_message_id       = 'T0'
              pi_message_number   = '101'
              pi_message_severity = 'E'
              pi_message_var1     = meldungstext
            EXCEPTIONS
              OTHERS              = 4.
        ENDIF.
      ENDIF.
    It is not a really nice coding but it shows in a simple way how to use the BAdI.
    Regards
    Robert

  • BADI/User exits for FV50/FB50/FB02

    Hi all,
    Is there any badi/user exit which is triggered when document is changed from display mode to change mode.
    My requirement is when document is parked using FV50 the workflow is triggered, as long as document in workflow document should be locked from edit.
    Thanks,
    Venu

    Hi,
    Please refer if this thread helps : how to trigger workflow FV50
    Regards,

  • BADI / User Exit after Saving of Business Partner

    Hi Experts,
    Is there a BADI / user exit that is triggered after saving / updating of Business Partner using transaction code "BP"?
    We want to send a XML file thru ALE after creation/modification of BP. We are using CRM WinClient 4.0.
    Thanks.

    Hi Mikhail Khorpyakov,
    Thank you very much for your reply. It was a helpful answer.
    BUPA_GENERAL_EXPORT is triggered before database update of table BUT000 and other related tables.
    Is there a BADI that is called after saving which contains general data of business partner?
    Thanks in advance..

  • BADI/user exit for transcation code "BP" in CRM

    Hi Experts,
    Is there a BADI / user exit that is triggered after successful saving/updating of Business Partner using transaction code "BP"?
    We want to send general infos such as partner number, Name, Birth date, etc. about the business partner being created/updated using IDoc.
    We are using CRM WinClient 4.0.
    If you know  the steps on how this requirement will be done, kindly post them.
    Thank you very much.

    I don't have any CRM system at hand, but I'm sure there are some BAdI's for this. Look in SE18 for BP or BUS, and i'm sure  you will find something.
    One suggestion though: Before going for the BadI, try and see if CRM also uses change pointers for sending Idoc's . This case you wont need any user exits / badis, an probably no programming at all.
    Transaction
    BD50: Activate Change Ptrs for Mess. Type
    BD61: Activate Change Pointers - Generally
    and use report RBDMIDOC for triggering IDoc.

  • BADI, User Exit before FI document is posted during GR posting in MIGO

    Hi Gurus,
    In transaction MIGO, whenever a goods receipt is posted, a corresponding FI document is then created. I am in need of a BADI, User Exit, or other forms of enhancements that is triggered before this FI document gets posted because I have to edit data in the header (BKPF) and detail (BSEG) part, specifically the fields BKPF-XREF1_HD (Reference key 1) and (BSEG-ZUONR) (Assignment).
    The field XREF1_HD is to be populated with the vendor number from MIGO (GOHEAD-LIFNR)
    The field ZUONR is to be populated with the PO Number from MIGO (GOITEM-EBELN)
    Regards to all,
    Joseph

    Hi,
    I am on 4.6C.
    We are using EXIT_SAPLF048_001 of enhancement F180A001 for the same.
    Please note that control comes here for no of SAP transactions, hence you need to take care of it by executing your logic only for a particular SAP transaction.
    I hope this helps,
    Regards
    Raju Chitale

  • BADI / user exit for Tcode IW32?

    Hi
    Are there any BADIs  / user exits for changing component data in Transaction IW32 for a maintainance order?
    regards
    cs

    Enhancement                                                                               
    IWO10012                                Maintenance order: Priority handling on central header                                                                               
    Business Add-in                                                                               
    IWO_UI_USEFLEX                          BAdI for Calling Up an Alternative UI                  
    I hope it helps.
    Best Regards,
    Vibha
    Please mark all the helpful answers

  • BADI / user-exit for MD02 while creating Schedule Lines

    Hi experts,
    I have a problem with implementation that I'm designing.
    Current situation:
    While MRP run (MD02 or background) new Schedule Lines are being created in reference to MM Scheduling Agreement.
    Example:
    04.08.2014
    SchLne
    5500000415/00010
    200
    04.08.2014
    IndReq
    VSFB
    200-
    05.08.2014
    SchLne
    5500000415/00010
    300
    05.08.2014
    IndReq
    VSFB
    300-
    2 Schedule Lines where created - for wuantity 200 and 300.
    Target:
    There is a need to create more than one Schedule Line per day during MRP run. According to example there should be for example 2 Schedule Lines in 04/08 and 3 Schedule Lines in 05/08 all for quantity = 100. There is possibility to change Schedule Lines in ME38, but there is a need to make a change during creatin while MRP run.
    04.08.2014
    IndReq
    VSFB
    200-
    04.08.2014
    SchLne
    5500000415/00010 *
    100
    04.08.2014
    SchLne
    5500000415/00010 *
    100
    05.08.2014
    IndReq
    VSFB
    300-
    06.08.2014
    SchLne
    5500000415/00010 *
    100
    06.08.2014
    SchLne
    5500000415/00010 *
    100
    06.08.2014
    SchLne
    5500000415/00010 *
    100
    So instead of creating only 2 Schedule Lines, MRP should create 5.
    I'm looking for a BADI/user-exit to edit Schedule Lines which are to be created by MRP and change it tn reference to the needs.
    I found only one BADI:
    BADI:    MD_CHANGE_MRP_DATA
    method: CHANGE_MDPSX_MDBS
    The priblem is that this method is only being executed when there are Schedule Lines which already exist.
    Maybe some of you have done some extension similar to mine? Please give me advice where I should put extension.
    Thanks in advance!

    Dear Saravaran,
    Thanks for the reply.
    This will not suits to us. The provided BADI will works upto Posting the material document in transaction MIGO and it will not considered for the FI level entries.
    Hope you could have understand mine requirement.
    The requirement of mine is:
    While doing the GR with ref to PO the material documnet will be posted and subsequently FI documnet  will be  generated in Background. While generating the FI document i need to manipulate the values for the G/L. So that the manipulated values will be flow into BKPF and BSEG tables.
    Thanks.
    Regards
    Swamy

  • BADI/User exit for MIGO fi postings

    Hello Experts,
    I have one requirement regarding at the time of MIGO accounting entry is generating based on the OBYC settings,now the client want along with this entry, want to create one more FI document through background,In the background we will give the debit g/l and credit g/l.That means at the time of MIGO two FI documents has to generate one is with OBYC setting gl's and second FI entry is from programe hard coded gl's.
    For this requirement has any BADI/USER Exit.I appriciate your valuable inputs.
    Regards,
    Nivas.

    Hi,
      May I know why you need two accounting documents?
      You may refer the similar thread: BADI / Exit required for MIGO for posting FI document
      And about the number ranges - I would suggest a custom number range object and a different number range for these additional documents.
      Also refer the doc: Methods to find Customer/User Exit's & BADi's for a Transaction Code!
    Regards,
    AKPT

  • BADI/User-Exit for MD14

    Hi,
    Our client wants to update certain data in PR while the PRs are created from Planned orders or after a PR is created from a Planned order.
    I've implemented BADI MD_PURREQ_CHANGE but while testing, the debugger is not taking to the break point.
    Thus it appears that this BADI is not applicable for MD14.
    I need a BADI/User exit where I can change the material description in PR.
    Please help.Helpful answers shall be rewarded.

    Hi abhijit,
    Check this program.You will get all exits for a transaction.
    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.

  • BADI/User Exit for KO02

    Dear Experts,
    When I'm setting the BUDGETED status manually to Internal Order (With out distributing the Budget to Order in IM52) and after if I m setting RELEASE status the system is accepting. So, I want to stop this without giving the budget in IO, it should not accept to release IO.
    This is not possible with User Status, coz' User may go and set manually "REL" Status.
    can anyone suggest me the BAdi/User Exit for KO02(Internal Order Change) tcode.
    Thanks,
    Sanju.

    When you set a User status , you can assign an Authorization Object on who can change the status .
    Follow the path in SPRO--> Controlling --> Internal orders --> Order Master Data > Status Management> Define authorization Keys for Status Management
    Define Authorization Keys for Status Management
    In this step you define authorization keys which you can use to set up authorization checks when you manually set or delete a user status. When the system sets a user status as a reaction to business transaction, it does not perform an authorization check.
    When you set or delete a user status, the system checks whether the user is authorized for this action. In addition to the status profile and the object type, the system also checks the authorization key assigned to the user status in question.
    Example
    You want to define that certain user statuses can be changed only by a specified employee group.
    To do this, create an authorization key and assign it to the relevant user statuses.
    In the general authorization maintenance you can then assign authorizations for this key via the authorization object B_USERSTAT.
    Activities
    1. Check whether you want to define authorizations for your user statuses.
    2. If necessary, create authorization keys as follows:
    a) Choose "New entries".
    b) Enter a key and an explanatory text in the appropriate fields and choose "Save".
    You have now created the authorization key.
    3. Assign the authorization key to one or more user statuses in your status profile.
    4. Define corresponding authorizations and include them in the relevant authorization profiles.

Maybe you are looking for

  • Where can I find a case for MBP early 2008 model

    I know the new MBP has nice cases to keep from scratching. I've searched everywhere and can't find a rubber case for the MBP duo 2 core, early 2008 model. Any suggestions. I checked Amazon and Ebay

  • I want to sync my old notes to my mac

    I have notes on my Mac with Mountain Lion. I have notes on my iphone 4s. I accidentally hit the "Cancel" button when it prompted me to setup a @me.com email address when I was configuring mountain lion for the first time. Now I have all of these note

  • I want to make a simple image editor by as

    I do not have any concept about how to scale the image in the editor. For example, when the user clicked one of the image in the editor then he/she can scale the selected image by mouse just like the scale function in MS Paint.. thank so much~

  • Best Office Application

    I'm looking for a good Office application for iOS. Something that is advanced, much like this:https://itunes.apple.com/us/app/word-docs-microsoft-office/id645778970?mt=8 If you notice, I'm talking about the screenshots and its tools the app includes.

  • Live view tethering

    Is there a way to use live view while tethering with a Canon EOS 1100D ? The Canon Free EOS Utility does have this functionality. Appstore's Smart Shooter does have it too! Why can't find this in Aperture?