Use of BAPIs in user exit macros

Is it ppssible to use BAPIs in user exit macros in the APO MacroBuilder?
Thanks for any advice on this...

Hi,
Not sure what function you want to acheive, but basicly you can use any code in the user-exit macro's customizing code, but at last you must fill in the spcified return value to make the user-exit macro work.
Best Regards,
Ada

Similar Messages

  • How to use user exit macros in demand planning?

    Hi all,
    I am have created an user exit macros? but then can anyone guide me how to use the abp code there in the User exit macros in demand planning.
    Thanks
    Pooja

    Hi Pooja,
    The ABAP code can be written inside the functional module assigned to user exit macro.
    Start Transaction SMOD.Enter APODM005 in the 'Enhancement' field. Select 'Display'.
    Then choose 'Components' or Shift+F11 and double-click the name of the function module.
    Double-click the include contained in the function module to enter the source code.
    For step by step details you can refer to SAP note 418801.
    Let me know if it helps.
    Regards
    Gaurav

  • Identify Orders created manually in the planning book (user exit macro?)

    Hello All,
    I am trying to capture the orders created manually in planning book using a user exit macro!!.
    Does anyone have any Idea of how to acheive this. Main aim is to identinfy orders created manually.
    Thanks in advance,
    Regards,
    -Srini

    Hi,
              There are no change pointers like R/3 in APO due to the live cache technology. You can how ever findout if an order is created by system or manually created. Check this [thread|Re: How to identify an order generated by heuristics run or entered manuall]
    Check if you can use the BAPIs to read orders and see if they have "output-firmed".

  • Bapi or user-exit to create warning in invoice

    Hi,
    I was askes to create a warning whenever someone pushes delete within an invoice (mir7). The problem is that our users are not aware, that they are really going to delete not only the marked position within the invoice but the whole invoice.
    I´ve tried to find a bapi or user-exit to place my coding but so far was unsuccessful, can anyone tell me if there is a badi or user-exit?

    Hi Ute!
    Try BADI INVOICE_UPDATE (hope this is defined in your release).
    It's help says:
    "You can use the business add-in (INVOICE_UPDATE) to further process the following functions or, if necessary, forbid them:
    Creating invoices (invoices, credit memos, subsequent debits, subsequent credits) in Logistics Invoice Verification
    Parking documents in Logistics Invoice Verification, and making changes to these documents, for example, deleting them"
    -> Exactly what you are looking for.
    Regards,
    Christian

  • BAPI or USER EXIT for MIRO: Change PO reference amount (on-line)

    Hi, I need to find a BAPI or USER EXIT for TX MIRO to change/modify the PO reference amount for the selected positions (using the given checkbox) just after selecting them (when pressing ENTER). Any ideas? Thanks.

    Hello Suman,
    Please follow this steps to get the list of Userexits for the TCODE MIRO read there short description to get the appropriate EXIT.
    Steps.
    1. Goto the Tcode
    2. System-> Status.
    3. Copy the program name, find the package for the program.
    4. Go to SMOD (tccode)  press F4 -> Click on "Information System" Push Button->
       Enter the Package name-> and press the enter button.
    5. Now you get the list of Userexits. Need to select one by looking into its short    description.
    Hope this solves your issue,
    Cheers,
    Suvendu

  • BAPI , BADI , USER EXIT , FUNCTION MODULE

    Hi Experts
    Can any body pls explain me abt BAPI , BADI , USER EXIT , FUNCTION MODULE  and its uses in details .
    Thanks
    Devashish

    Dear Deba,
    Functional Module:Procedure that can only be defined in function groups and outside of classes. Can be called from all
    programs. Begins with FUNCTION and ends with ENDFUNCTION. Is maintained using the Function Builder of the ABAP
    Workbench.
    Functional Module can be checked using T Code SE37 for a package ,say in standard SAP CS15 will be used for checking
    the where used list for a material and here it can be checked only for one material,in case if we want to check for a list of
    materials a small report can be developed using the fucntional modules like
    CSEP_MAT_BOM_SELECT_WHERE_USED   API Bills of Material: Select BOM(s) (or)
    CS_WHERE_USED_MAT                Bills of material; where-used list
    User Exit:A point in an SAP program where a customer's own program can be called.
    In contrast to customer exits, user exits allow developers to access and modify program components and data objects in the
    standard SAP System. On upgrade, each user exit must be checked to ensure that it conforms to the standard system.
    There are the following types of user exit:
    User exits that use INCLUDEs - These are customer enhancements that are called directly in the program.
    User exits that use tables - these are used and managed using Customizing.
    User Exits can be viewed or checked using the T Code SMOD and using CMOD an user exit will be activated.
    BAdi:
    A template for BAdI objects.
    Business Add-Ins (BAdIs) are the basis for enhancements where BAdI methods in object plug-ins can be called from ABAP
    programs. The calling program controls which BAdI implementations are used by specifying filter values. A BAdI consists of a
    BAdI interface, a set of filters and some settings.
    From Release 7.0, BAdIs are edited in the Enhancement Builder and reside in the global class namepsace. You can switch on
    their implementations via the Switch Framework.
    There are also classic BAdIs, which are edited in the BAdI-Builder and superseded function module exits in Release 4.6.
    Related T Code SE18.
    Regards
    Mangalraj.S

  • DP User Exit Macro

    Hi,
    We are using User Exit Macro to carry out complex calculation in DP planning book. My observation is that, the Macro do not store the calculated values in Planning book. Based on events, User exit macro gets executed and the Value are displayed in the planning book.
    Is there a way where in I can execute the User Exit Macro once (background job) and store the value in Planning Book. This will save the execution of Macro each time when book is loaded, and loading will be much faster. Also, being a complex calculation I need to use User Exit calculation.
    Any ideas........on how to store the calculated values in Planning books.
    Thanks & Regards,
    SP

    Hi,
    Thanks for reply.
    Basically I am looking for "Saving the Calculated Values in planning book through User Exit Macro".
    I am using a User Exit Macro to carry out complex calculation. Each time it calculate "on fly" i.e. based on event (Start event). To avoid calculation and time taken for loading book, I want to save the result of an User Exit Macro in Planning Book Key Figure.
    Thanks & Regards,
    SP

  • User exit macros in APO DP macrobuilder

    I am using APO DP V5.
    Can anyone give me an example of how 'user exit' macros are built - I cannot find any good documentation on this point.
    Thanks,
    Bob Austin, Atos Origin

    Mark,
    Thanks for your reply.
    In the APO DP macrobuilder, I specifically want to have a macro which runs some bespoke code.
    I'm not clear how to do this.
    Am I missing something in Note 380352?
    Regards,
    Bob.

  • Hi Can body send links & Material For  Bapi, Badi,User-exits

    Hi Abapers,
                       Can body send links & Material For  Bapi, Badi,User-exits, This is my mail id [email protected]
    With Regards
    Bhaskar rao.M

    Hi Bhaskar,
    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.planetsap.com/userexit_main_page.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    USER EXITS
    https://forums.sdn.sap.com/click.jspa?searchID=672084&messageID=312792
    https://forums.sdn.sap.com/click.jspa?searchID=672084&messageID=1320078
    https://forums.sdn.sap.com/click.jspa?searchID=672084&messageID=2669896
    BADI(Business Add-In) is the object oriented method of user exits...
    Each BAdI has a definition and more than one implementation. The definition means the methods(in class concept) that are used for performing various functions. The BAdI definition can be viewed in SE18 transaction(for standard ones) and user-defined BAdIs can be created in the same transaction as well.
    When you create a BAdI definition, an class interface will be automatically created and you can define your methods in the interface. The implementation of the methods can be done in SE19 transaction
    Check these links for info about badi..
    BADI's
    BADI's
    http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm
    http://support.sas.com/rnd/papers/sugi30/SAP.ppt
    BADI's
    BADI's
    BADI's
    http://help.sap.com/saphelp_erp2005/helpdata/en/73/7e7941601b1d09e10000000a155106/frameset.htm
    http://support.sas.com/rnd/papers/sugi30/SAP.ppt
    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
    http://members.aol.com/_ht_a/skarkada/sap/
    http://www.ct-software.com/reportpool_frame.htm
    http://www.saphelp.com/SAP_Technical.htm
    http://www.kabai.com/abaps/q.htm
    http://www.guidancetech.com/people/holland/sap/abap/
    http://www.planetsap.com/download_abap_programs.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/content.htm
    /people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series
    /people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework
    http://www.esnips.com/web/BAdI
    http://www.allsaplinks.com/badi.html
    New to Badi
    Intro.....
    http://help.sap.com/saphelp_nw04/helpdata/en/e6/d54d3c596f0b26e10000000a11402f/content.htm
    diff betweem badi n customer exits........
    http://www.sap-img.com/abap/difference-between-badi-and-user-exits.htm
    BAPI
    BAPI
    http://help.sap.com/saphelp_46c/helpdata/en/9b/417f07ee2211d1ad14080009b0fb56/frameset.htm
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
    Checkout !!
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
    http://techrepublic.com.com/5100-6329-1051160.html#
    http://www.sap-img.com/bapi.htm
    http://www.sap-img.com/abap/bapi-conventions.htm
    http://www.sappoint.com/abap/bapiintro.pdf
    http://www.sapgenie.com/abap/bapi/example.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE8/BCFESDE8.pdf
    List of all BAPIs
    http://www.planetsap.com/LIST_ALL_BAPIs.htm
    http://www.sappoint.com/abap/bapiintro.pdf
    http://www.sappoint.com/abap/bapiprg.pdf
    http://www.sappoint.com/abap/bapiactx.pdf
    http://www.sappoint.com/abap/bapilst.pdf
    http://www.sappoint.com/abap/bapiexer.pdf
    http://service.sap.com/ale
    http://service.sap.com/bapi
    http://www.planetsap.com/Bapi_main_page.htm
    http://www.topxml.com/sap/sap_idoc_xml.asp
    http://www.sapdevelopment.co.uk/
    http://www.sapdevelopment.co.uk/java/jco/bapi_jco.pdf
    Regards,
    Priyanka.

  • User exit macro - Program name

    Hi,
    In the APO macro builder, we have a USER EXIT MACRO defined and i just see the description of the macro there. Where do we see which User exit (Program) it is executing if i run the macro?
    Thanks,
    Shankar.

    Hi,
    Refer to the note 418801 which explains in detail about user exit macro.
    Regards,
    Sunitha

  • Can it be used commit statement in user-exits?

    Can it be used commit statement in user-exits?
    How to badi is different from other enhancement?
    What are the two default components systems automatically creates when we create a new badi?
    What is the business object for purchase order?

    Hi,
       1) commit statement in userexit:
    You should not do that.
    After the user exits code is triggered, the transaction's own commits statements will commit the database anyway
    2)You could say: BAdI = enhancement using interfaces
    It is just the most up-to-date version of SAP's enhancement concept.
    go thru this.
    http://www.esnips.com/web/BAdI
    http://www.allsaplinks.com/badi.html
    New to Badi
    Regards
    Kiran Sure

  • Steps to create user exit Macro

    Hello,
    Can any share the step by Step procedure to create user exit macro for APO DP planning book.
    Regards,
    Manish

    Hi Manish,
    Please see OSS note 418801.
    Regards,
    Alexander

  • When bapi perform, user exit perform or not

    Hi,
    TCODE VA01,
    i am going to use BAPI(SD_SALESDOCUMENT_CREATE) in order to create or change sales order .
    but  there is user exit on VA01, so i want to know if user-exit execute or not  when i use BAPI on abap code.
    thanks
    venjamin.

    Hi,
    As far as i remember bapi will execute the user exit as once i tried to call the bapi in the user exit and in turn the bapi called back the user exit again. at that i used the same said bapi "SD_SALES_DOCUMENT_CREATE". and hence i changed my code accordingly
    Regards
    Satya

  • Using HR_INFOTYPE_OPERATION dont call user exit

    Hi ,
    I need to write BAPI that create entry in infotype .
    I am using FM "HR_INFOTYPE_OPERATION" ...
    This FM don't call the user exit EXIT_SAPFP50M_002 ....
    Am i using the FM correctly ?
    How can i use the FM with the user-exit .
    Thanks .

    Hi,
    Why do you want to call user-exit. What it your requirement?
    Regards,
    Atish

  • BAPI/FM/User exit for F-27

    Hi All,
    I am looking for a either a BAPI/FM or a user exit which is similar to tcode F-27. The reason being is i want to run this tcode in background.
    I have been looking around in SDN but did not find any helpful posts for F-27. Anyone out there has any idea or workaround that would really be helpful. Or is it possible for me to create a custom function module to achieve the same?
    Thanks in advance,
    Karuna.

    Hi,
    Thank you very much. I am trying to use it. this is how i am using:
    DATA:   ZFISCAL_PERIOD TYPE BAPI0002_4-FISCAL_PERIOD.
    data:     obj_type like bapiache02-obj_type,
               obj_key like bapiache02-obj_key,
            obj_sys like bapiache02-obj_sys,
            documentheader like bapiache09,
            accountgl like bapiacgl09 occurs 0 with header line,
            currencyamount like bapiaccr09 occurs 0 with header line,
            return like bapiret2 occurs 0 with header line,
            extension1 like bapiextc occurs 0 with header line.
            documentheader-username = sy-uname.
            documentheader-header_txt = 'Test using BAPI'.
            documentheader-comp_code = '0010'.
            documentheader-doc_date = sy-datum.
            documentheader-pstng_date = sy-datum.
            documentheader-doc_type = 'DG'.
            documentheader-ref_doc_no = 'Test using BAPI'.
            documentheader-BUS_ACT = 'RFBU'.
            documentheader-FISC_YEAR = '2009'.
            documentheader-FIS_PERIOD = ZFISCAL_PERIOD.
            currencyamount-itemno_acc = '1'.
            currencyamount-currency = 'USD'.
            currencyamount-amt_doccur = '101.00'.
            append currencyamount.
            currencyamount-itemno_acc = '2'.
            currencyamount-currency = 'USD'.
            currencyamount-amt_doccur = '-101.00'.
            append currencyamount.
            CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
              EXPORTING
                DOCUMENTHEADER          = documentheader
              CUSTOMERCPD             =
              CONTRACTHEADER          =
            IMPORTING
              OBJ_TYPE                =
              OBJ_KEY                 =
              OBJ_SYS                 =
              TABLES
              ACCOUNTGL               =  accountgl
              ACCOUNTRECEIVABLE       =
              ACCOUNTPAYABLE          =
              ACCOUNTTAX              =
                CURRENCYAMOUNT  = currencyamount
              CRITERIA                   =
              VALUEFIELD              =
              EXTENSION1              =
                RETURN                     = return
              PAYMENTCARD         =
              CONTRACTITEM         =
              EXTENSION2              =
              REALESTATE             =
              ACCOUNTWT              =
              if sy-subrc = 0.
                  WRITE 'SUCESS'.
              else.
                 write 'NOT SUCCESS'.
              endif.
    When i am executing this i am getting 2 errors in RETURN:
    1. Error in document: BKPFF $ ESRCLNT200
    2. FI/CO interface: Inconsistent FI/CO document header data for updating
    Can you please help me, if i am missing anything?
    Thanks,
    Karuna.

Maybe you are looking for

  • Input and output on same device, producer/consumer structure

    Hello interested people, I have a question about using the same device for both digital inputs and outputs.  I have written a simple program of one while loop that continuously polls the device, processes, and requests.  I have addressed the device u

  • I can't hear the person talking.!

    I've had my N96 for just over a year and there haven't been any problems with the audio; but a few days ago when I answered a call, I wasn't able to hear the person I was calling. However, i can hear them on loudspeaker/headphones perfectly fine. I'v

  • Very slow response, stopping for seconds in the middle of typing an email

    I'm having very slow response time with Firefox, so much so that I've switched to IE (gasp!). It'll stop suddenly for several seconds in the middle of typing an email and I have to wait to start typing again. Websites are timing out or just taking a

  • Cannot import *some* mp4

    I am trying to import an mp4 video, but am receiving an error message "The importer reported a generic error". I can import this videos into other software (e.g. VLC) and I can import other .mp4s into Adobe, so it seems to be a specific video + Adobe

  • Camera model and lens model

    Just a bit confused about this in the metadata. Every time I reopen Ap 3. the camera and lens info on the metadata has gone. I then need to select all the photos I want the data for and in metadata click " update from master ". When I close that proj