BTE and BAdl

Hi All,
i am new to abap programming.. I work in SAP XI.. can any know provide documentation about BTE and BAdl..

Hi
for BTE
see the link
http://help.sap.com/saphelp_erp2004/helpdata/en/ee/e87988027a11d5a7d60000e83dda02/content.htm
BADI
DEFINING THE BADI
1) execute Tcode SE18.
2) Specify a definition Name : ZBADI_SPFLI
3) Press create
4) Choose the attribute tab. Specify short desc for badi.. and specify the type :
multiple use.
5) Choose the interface tab
6) Specify interface name: ZIF_EX_BADI_SPFLI and save.
7) Dbl clk on interface name to start class builder . specify a method name (name,
level, desc).
Method level desc
Linese;ection instance methos some desc
8) place the cursor on the method name desc its parameters to define the interface.
Parameter type refe field desc
I_carrid import spfli-carrid some
I_connid import spefi-connid some
9) save , check and activate…adapter class proposed by system is
ZCL_IM_IM_LINESEL is genereated.
IMPLEMENTATION OF BADI DEFINITION
1) EXECUTE tcode se18.choose menuitem create from the implementation menubar.
2) Specify aname for implementation ZIM_LINESEL
3) Specify short desc.
4) Choose interface tab. System proposes a name fo the implementation class.
ZCL_IM_IMLINESEL which is already generarted.
5) Specify short desc for method
6) Dbl clk on method to insert code..(check the code in “AAA”).
7) Save , check and activate the code.
Some useful URL
http://www.esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
http://www.esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
http://www.esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
http://www.esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
www.sapgenie.com/publications/saptips/022006%20-%20Zaidi%20BADI.pdf
http://www.sapdevelopment.co.uk/enhance/enhance_badi.htm
http://help.sap.com/saphelp_nw04/helpdata/en/04/f3683c05ea4464e10000000a114084/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/e6/d54d3c596f0b26e10000000a11402f/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/c2/eab541c5b63031e10000000a155106/frameset.htm
Now write a sample program to use this badi method..
Look for “BBB” sample program.
“AAA”
data : wa_flights type sflight,
it_flights type table of sflight.
format color col_heading.
write:/ 'Flight info of:', i_carrid, i_connid.
format color col_normal.
select * from sflight
into corresponding fields of table it_flights
where carrid = i_carrid
and connid = i_connid.
loop at it_flights into wa_flights.
write:/ wa_flights-fldate,
wa_flights-planetype,
wa_flights-price currency wa_flights-currency,
wa_flights-seatsmax,
wa_flights-seatsocc.
endloop.
“BBB”
*& Report ZBADI_TEST *
REPORT ZBADI_TEST .
tables: spfli.
data: wa_spfli type spfli,
it_spfli type table of spfli with key carrid connid.
*Initialise the object of the interface.
data: exit_ref type ref to ZCL_IM_IM_LINESEL,
exit_ref1 type ref to ZIF_EX_BADISPFLI1.
selection-screen begin of block b1.
select-options: s_carr for spfli-carrid.
selection-screen end of block b1.
start-of-selection.
select * from spfli into corresponding fields of table it_spfli
where carrid in s_carr.
end-of-selection.
loop at it_spfli into wa_spfli.
write:/ wa_spfli-carrid,
wa_spfli-connid,
wa_spfli-cityfrom,
wa_spfli-deptime,
wa_spfli-arrtime.
hide: wa_spfli-carrid, wa_spfli-connid.
endloop.
at line-selection.
check not wa_spfli-carrid is initial.
create object exit_ref.
exit_ref1 = exit_ref.
call method exit_ref1->lineselection
EXPORTING
i_carrid = wa_spfli-carrid
i_connid = wa_spfli-connid.
clear wa_spfli.
http://help.sap.com/saphelp_nw04/helpdata/en/eb/3e7cf7940e11d295df0000e82de14a/frameset.htm
and
http://help.sap.com/saphelp_nw04/helpdata/en/eb/3e7cf7940e11d295df0000e82de14a/frameset.htm
Reward points for useful Answers
Regards
Anji
Message was edited by:
        Anji Reddy Vangala

Similar Messages

  • Problem with BTE and FI-parking- no data from memory ID to ABAP

    Hi Experts,
    I have a scenario in Business Workflow where I want to catch the data(BKPF & BSEG) after SAP transaction processing - event is to change parked FI-document with FBV2. I´m trying to use BTE to receive the data after processing transaction.
    All BTE steps seems to be activated - because I can debug my functions when processing FBV2 - but I cannot reach any data into my coding after processing.
    I have created my project in BF24:
    ZXXX Testing: WF-memory ID
    I have also linked few FI-events to my BTE interface funtion in BF34:
    00001130 ZXXX ZXXX_FIPP_CHANGE_BTE
    00002213 ZXXX ZXXX_FIPP_CHANGE_BTE
    00002217 ZXXX ZXXX_FIPP_CHANGE_BTE
    My BTE function ZXXX_FIPP_CHANGE_BTE is as following:
    DATA: memid(15) VALUE 'ZXXX_2217'.
    *Initialize
    CLEAR: t_vbkpf,
    t_vbsegs.
    FREE MEMORY ID 'ZXXX_2217'.
    *Backtracking of BTE
    EXPORT t_vbkpf
    t_vbsegs
    TO MEMORY ID memid.
    ENDFUNCTION.
    I have also created funtion to call FBV2:
    data: memid(15) value 'ZXXX_2217'.
    CALL TRANSACTION 'FBV2'.
    *Import memory of BTE
    IMPORT t_vbkpf
    t_vbsegs
    FROM MEMORY ID memid.
    *Free memory id
    FREE MEMORY ID memid.  
    When I set a breakpoint to both of the functions and I execute FBV2 I reach the breakpoints. Problem is that the data is not passed from memid 'ZXXX_2217' into function after FBV2(this syntax: IMPORT t_vbkpf t_vbsegs FROM MEMORY ID memid.)
    What could be missing. So both functions are called but NO DATA is passed from memory ID to my internal tables? This seems to be a problem with memory ID´s. Also in my BTE function ZXXX_FIPP_CHANGE_BTE I receive a sy-subrc value 4 when executing syntax "FREE MEMORY ID 'ZXXX_2217'. ".
    All hints appreciated,
    Jani

    Hi Ramki,
    I must be frustrating You with these stupid questions... You have already supported me hugely to get more famailiar with BTE. For example not to commit in BTE etc. Big thanks for that!
    In all cases when I have tested my project in BF24 has been always active; and yes I have changed the pre. posted document always to trigger the BTE.
    I still have a problem. I copied all customizing and coding into other system - with same dissapointing results. Let me describe this once more:
    <b>My entry in BF24:</b>
    <i>Product:                 ZBE
    Text:                       Jani testing
    RFC destination:
    Active:   </i>               X
    <b>My entry in BF34:</b>
    <i>Event:                   00002214
    Product:                    ZBE
    Ctr:
    Appl:
    Function module:            ZBE_BTE</i>
    <b>My BTE function:</b>
    <i>  DATA: memid(15) VALUE 'ZBE_BTE2214'.
      DATA: t_vbkpf LIKE fvbkpf OCCURS 0 WITH HEADER LINE.
      FREE MEMORY ID memid.
      EXPORT t_vbkpf TO MEMORY ID memid.</i>
    <b>And the function ZBE_BTE_EXECUTE where I call FBV2:</b>
    <i>  DATA: memid(15) VALUE 'ZBE_BTE2214'.
      DATA: t_vbkpf LIKE fvbkpf OCCURS 0 WITH HEADER LINE.
      CALL TRANSACTION 'FBV2'.
      IMPORT t_vbkpf FROM MEMORY ID memid.
      FREE MEMORY ID memid.</i>
    When I process my function ZBE_BTE_EXECUTE - and I have added a breakpoint into ZBE_BTE - for FBV2 call <b>it does not reach the breakpoint</b> in ZBE_BTE at all! This occurs when using event linkage 00002214! And I do execute a real change to parked document.
    But if I change the entry in BF34 to be linked for event 00002217 or 00002218 process reaches my breakpoint in BTE function ZBE_BTE! But in these cases also, it does not import the data after transaction call in function ZBE_BTE_EXECUTE. When I continue debugging the coding in BTE function ZBE_BTE further into SAP-coding, I can see that my internal table t_vbkpf is filled. But when I leave SAP-coding when FBV2 is completed and return to ZBE_BTE_EXECUTE - where t_vbkpf should be filled from memory id - t_vbkpf is empty!
    Again as a conclusion in this system:
    For BTE event 00002214 this locig does not work at all. For events 00002217 and 00002218 it does get activated, but does not bring any data from memory ID into my abap. Strangest this is that I use absolutely same kind of coding that You.
    Can You see if I have to fill those empty fields( Ctr. & Appl.) in my BF34 customizing? Or is some other customizing action missing?
    Br,
    Jani

  • BTEs and Transaction codes

    Hello Finance experts,
    What are Business Transaction Events(BTEs)?
    What is the purpose of them and how they are related to BTEs?
    How to find a BTEs related to a Transaction code?
    Any ideas.......

    A Business Transaction Event are publish/subscribe interfaces used for GL/AP/AR type of transactions in SAP.
    Go to: IMG -> FI -> Fin A/c Global Settings -> BTE to view BT events.
    You'll need to do the following things in order to incorporate a BTE:
    1. Activate BTE
    2. Identify the BTE by using above path
    3. Create a custom function module, activate the function module and assign it to an event.

  • BTE AND Generic Datasource

    I have a standard table REGLRO i want to find the BTE so that i can create the delta for this generic datasource, can u tell me how can i create the BTE or where to find what is the BTE that captures the changes to the Table needed.
    I do not have last change date in my table so no straight delta technique applicable. help me if you any other way to make the delta at datasource level.
    Thanks
    Regards
    Soniya

    Hi,
    Were U able to solve this issue?
    If yes please let me know ..
    thanx and regards,,
    Mustafa

  • No change document  and no user exit is found   for CK11N tcode

    Dear All,
        After execution of the transaction CK11N  in CDHDR table i dint find any entry for change document.
    But there is a business object for this transaction :BUS2044 which has no event .
    As there is no event in the business object and there is no change  document also so how i will trigger this business object for CK11 transaction.
    I serached for user exits also but i dint find any.
    So can any body pls tell me how to trigger the business object for the transaction CK11.
    Thanks
    sharmistha
    Message was edited by:
            sarmistha das

    If there is no event it is difficult to trigger an event. So in any case you have to create your own subtype of BUS2044 and define the event you want to create.
    If there are no user exits (I assume you have also looked for user-exits of type BTE and BAdI, even substitutions) you are perhaps out of luck? Being out of luck in this context means you will have to resort to a modification.

  • FI - BTE events for transaction F110

    Hi all,
    I'm quite new to the FI module and have a question regarding Business Transaction Events. I tried by searching the forum but haven't found exactly what I was looking for, so if someone could help me out I'll be forever thankful!
    The problem is the following: when I create a new customer invoice I fill in various fields, and 2 of them are: Assignment number and Document header text (ZUONR and BKTXT respectively). After saving, if I go to FB03 and view the doc number I just created, I can see these two fields (and they also appear in their respective tables). However, the issue I have is that when I execute transaction F110 for the customer I created and run the payment, I get a new document number (which is basically a copy of the first) that doesn’t have these fields informed with the original values. Therefore, my aim is to code in some type of user exit / BTE and transfer the values to the new doc. Does anyone know what event I could use or how this could be approached?
    Any help would be of use, thanks in advance!
    Adi

    Use event for F110 is 00002040. Use T-Code BERP - to activate this FIBF, you need put in Vendor Master Data communication type SMTP, when run F110 the program dispach PDF attached to email.
    Step 1 - T-Code BERP to find 00002040 – This is a Function called SAMPLE_PROCESS_00002040, copy with another name i.e. ZZZ_PROCESS_00002040
    Step 2 – T-Code FIBF -> Option -> Product -> ….a Customer, Write product name at your choice (for example ZMAIL), make sure the put this active.
    Step 3 – T-Code FIBIF -> Option ->Process Function (or Module) -> …. A Customer.
    Process = 00002040
    Module Function = ZZZ_PROCESS_00002040
    Product = ZMAIL (name of product define by you in stpe 4)
    hope this will help

  • BTE IN FB60

    Hi,
    I have implemented a BTE in  TX FB60 . BTE is actived when I decide to save the invoice , my problem is  :  I have a error message in BTE but when the program try to read the message finish the BTE and Show other message .
    I would like to know if it's possible to show my message in a BTE
    Thanks for all.

    Hi,
    put your message as type I (Information).
    In this way, the transaction will stop until you press the green arrow and only then will show the other messages.
    This is just a suggestion, but hope it helps
    Bye
    Andrea

  • Raising Error in Process BTE 1120? is it safe?

    Dear all Experts,
    Iam using Process BTE - 00001120, to validate many things. It gets triggered in almost every FI document just beofre saving the document.  My Question is, is it safe to raise Error Message in this BTE as it gets triggered just before saving? If you can guide me to any FAQ's on BTE, it will be helpful.
    Note : Please answer the question if you have worked on the said BTE and if you have knowledge on it.
    Thanks & Regards,
    Faheem.

    Hi Nabeehatmadan,
    Thanks for the quick reply.Firstly I have not worked extensively on FI VALIDATIONS & SUBSTITUTIONS.As far as my knowledge and understanding , FI Validations & Substitutions are provided by SAP & we dont need to register Access Key for the same. But please check the Page 2 of the note 842318, which states :
    If you create a substitution, for example "Financial accounting - document
    line item", only certain fields are authorized for the substitution. This
    is because it may lead to problems with the documents or inconsistencies
    between different applications.
    It is possible to release more fields for substitution. However, this can
    be critical, as serious problems can occur as a result.
    This is why you should regard the following change as a modification (Note
    170183).
    And as I said that I have to raise error messages based on my checks and I have to use User Exits for the same to get my checks done as my checks includes conversions of WBS/Project compared with assignment etc etc , which cannot be done directly. Now check Page no 4 of the same note which states we cannot issue Messages :
    3. What must I take into account when implementing the user exit?
    No dialog boxes, warning messages, information or error messages must be
    issued in an exit, and a "COMMIT WORK" must not be rejected. This would,
    for example, interrupt the batch processing or cause problems with the
    documents to be posted. If you find a serious error in the field contents
    in the exit, send a termination message (A or X), which will ensure that
    the transaction is terminated.
    Please guide me if iam wrong ?
    Please let me know if we can issue error messages in BTE 1120?
    Thanks & Regards,
    Faheem.

  • BTE for posting Customer Invoices & Credit Memos in FI

    HI,
    Iam in process of activating BTE for customer invoices & credit memo's for Portugal's requirement for  digital signature .Anyone have an idea for BTE and procedure for digital signature's to be printed on FI - Customer invoices,credit memo and debit memo.
    Thanks

    Hi,
    Can you please go through the below link:-
    [http://www.consolut.com/en/s/sap-ides-access/d/s/doc/YY-SIPT_NUMBR_FI_V]
    I have implemented for Maxico and for maxico I have used below link of SAP OSS notes:-
    [http://www.sap.com/mexico/services/factura_electronica_en.epx]
    Regards,
    Gaurav

  • BTE/Enhancement in F110

    Hi,
    I am looking for the way to send mails to the vendors whose checks are prepared by the system after payment run. After running F110 proposal will get created and after editing that we will process payment. Once checks are prepared we want to send to mail to Vendors with details of checks and amount. I am looking for BTE. Can anybody help me to understand BTE and how to evaluate BTE for this purpose in t.code F110. Or is there any user exit?
    Thanks &  Regards
    Dhananjay

    Hi,
    For this you need to activate the BTE 2040 in FIBF. Ask your Abaper to copy the FM SAMPLE_PROCESS_00002040 in Z and code as per your requirement.
    There are many thread in ERP Financials on this topic. Search by BTE 2040 and you will get a lot of responses on this topic.
    Regards,
    SAPFICO

  • BTE 1650 LINE ITEM DISPLAY: Add to data per line - possible solution

    Hello,
    I would like to populate field payment order (Pymt.order) in custom transaction FBL5N
    I have read that it should be doable using BTE 1650 LINE ITEM DISPLAY: Add to data per line but I am not sure if 1650 is correct one and if its proper solution for this purpose.
    Could you please advice?
    Thank you in advance!
    Michal

    i have the same problem , i used BTE and the fields appear but without data . which table or code i will use to in FM to display data in transaction.
    thanks all for help

  • Track changes in customer material info (VD52) and create custom IDocs

    Dear experts,
    we want to track changes, which are made in VD52 (Customer matertial info record) and create custom IDocs (Z-format) based on these changes. What is the best way to do this?
    Best regards,
    David

    Hi,
    There are a dedicated BTEs (Business Tranaction Event) for this purpose (transaction FIBF).
    - created customer material infos OUTBOUND_CALL_00504001_E
    - changed customer material infos OUTBOUND_CALL_00504002_E
    - deleted customer material infos OUTBOUND_CALL_00504003_E
    You can assign your own FM to the BTE and send custom IDoc whenever there is a new/updated/deletd customer-material info record.
    Regards,
    Marcin

  • SD SLS BTE Delta Queue

    Hi,
    I need to export to BW the billing plan from SD (VA41, VA42, VA43).
    I wrote an extractor based on a function modul, the extractor works fines (delta init is ok), uising the how to.
    Now I want to have this extractor in delta mode using BTE (I don't have time stamp in FLPA, FLPT).
    So a search for a Publish & Subscribe SD BTE and picked up:
    00501003     Sales document - save sales document contract data
    I created the ZSD_BTE_DELTA_00501003 function modul from copy of SAMPLE_INTERFACE_00501003.
    This Z* FM does contain just a break-point.
    I created a Z Product into BF24.
    And then in BF34 set the BTE point with product and FM.
    00501003     ZBWDELTA                  ZSD_BTE_DELTA_00501003
    When I create or change a sales document nothing appends. My ZSD_BTE_DELTA_00501003 is not called.
    What did I do wrong?
    (I also tried with differents BTE, the all 005010** familly).
    Thanks.
    Matthieu

    Here is the solution:
    SD BTE testing

  • Difference in objects in SAP 4.6C and ECC 6.0

    Hi Experts,
    Could anyone please let me know, whether following objects are supported in ECC 6.0?? And if not, then what alternative has been provided there?
    1> SAPscripts
    2>Smartforms
    3>Business objects
    4>User-exit/Exit programs
    5> Class-builders (is there any improvement in this?)
    6> Search helps
    I need to move my above objects from 4.6 C version to ECC 6.0. If, the objects are not supported there I need to re-implemented.
    Awaiting ur response.
    Regards,
    Anshumita.

    Hi,
    All these below mentioned will have in ECC 6
    1> SAPscripts
    2>Smartforms
    3>Business objects
    4>User-exit/Exit programs
    5> Class-builders
    6> Search helps
    But in ECC 6 they made some modification or enhancements to the above.
    Regarding userexit in FI they have added some new BTE and generally SAP prefers for BADI instead of userexit.
    But regarding OSS support for SAPSCRIPT i am not sure.
    Make sure while migrating all above mentioned compatiable for unicode.
    Any other info please refer release notes.
    aRs

  • BTE 1120 for posting to controlling

    Hello,
    I have been working on activating BTE 1120 to modify the WBS element before the document is posted. I have been able to successfully modify the value on field PROJK and it is shown in FB03, once the document is posted. However, it looks like the integration with Controlling is not catching my change. The line item posting to the WBS I forced using the BTE is not displayed in the controlling document or visible in report CJI3.
    Has anybody had the experience of using this BTE to modify CO objects like cost centers, WBS, etc..? Have your changes been successfully reflected in the CO document?
    I have read several discussions related to the use of this BTE, but no one has really discussed its integration with CO.
    Thanks!
    César.

    Yes and No, often true for BSEG fields, but for other applications like CO or new G/L (cf. OSS notes on this BTE and new general ledger)  there are some codes in include LFACIF48 to modify other internal tables. the problems may arise when field names are different in different application. (the MOVE-CORRESPONDING does not perform well...)
    Here no match between XBSEG-PROJK and T_ACCIT-PS_PSP_PNR, so you will be require to modify code in standard include LFACIF48 -> Read 1905020 - Substitution for 'Transaction Type' in New G/L View with Open-FI 00001120 for point of insertion (NB: This is a modification)
    Regards,
    Raymond

Maybe you are looking for

  • Why no sound on YouTube?

    Why am I unable to get sound when viewing YouTube and demo Videos sent in e-mails? I'm also experiencing no sound with iTranslate app

  • Itunes store does not open - no error using windows vista

    does anyone have any solutions that will allow me to access itunes store. no error comes up. using vista and have downloaded current itunes 10.4 thanks

  • HELP - AA7 upgrade to 7.1.0

    I've an annoying problem... with AA7, that is! Every time I restart my laptop (Vista HP) I get the windows installer pop-up for the Acrobat 7.1.0 upgrade which will not run - it just stops with an error (can't remember exactly which one, at present -

  • Problem in Physical inventory cycle count

    Hi Guys, I m facing problem with the transaction MICN, report is RM07ICN1 This report works absolutely fine for "C" type indicators.(time interval is 2 years) But when we try to run thw report for "B" type indicators(time interval is 1 year), I get i

  • Server Error in '/' Application.....What's Up With This?

    When I attempt to log in to a game account I get an error message. The developer says that he has no problem logging to my account at his end. He's in Australia. Note that I get the error message regardless of the browser that I use. This is the erro