Customer BAPI's definition's , why?

Hello everyone,
i hope someone can explain to me, why we should create BADI's definition.
This is my point:
BADI's are enhancements, that are available in the Standard SAP, to offer the possibilty of changing/improving the standard code to respond correctly to a company/customer needs. Customer can implement these definitions.
So, even if we create a new BADI definition, this could'n be trigger/active by/in the standard code.
So, the possibility of creating "customer" BADIS definition, is for when you develop a customer program, and you want to create an enhancements in that development?
I associate the BADI's definition to enhancements made by SAP developers in SAP Standard, and badi's implementation to customer developers.
It's like an analogy with SMOD( SAP ) and CMOD (CUSTOMER).
Could somone explain to me, the benefits from creating BADI's definition's from customer point of view?
Thanks for your attention,
Pedro

Hi Pedro,
   You have already explained the things so wonderfully. SAP provides BADI's for their standard programs, so hence u don't have to do just the implementation and that's the scenario most of the time.
   If you want to enhance your own Z-programs then the definition has some meaning.
   Njoy SAP. Whatever explained will be changing with Netweaver 2005.
Regards,
Deva.

Similar Messages

  • Why do u need a custom structure for creating a custom bapi

    Hi ,
    why do u need a custom structure for creating a custom bapi.

    Hi,
        Once any Bapi realeased the structures it is using freezed to this bapi, the structure becomes specific to this Bapi, we can not make any changes over there. That is why we need custom structure for creating a custom bapi.

  • Creation of custom BAPI for FB02

    Hi Guys,
    I want to create custom BAPI to update FB02 and for my requirement i found there is no standard BAPI available since i need to update lot of other fields in FB02 that is the reason, i want to use CALL TRANSACTION inside the BAPI to update FB02 but i found its not working.
    Is it really possible to use BDC( Call Transaction ) inside the BAPI??? if it is possible any reason why its not working for me and if it dont work, how do u think i should update FB02 - plss dont mention standard BAPI's or FM.
    Note: I have seen some Standard BAPI's using CALL Transaction inside them but in my case its not working.
    Thanks & Regards,
    Pavan

    Your question is to create custom BAPI
    Follow these steps.
    1. Find the fields you are giving values on the screen and create a structure. you should only use structure and must not use that structure in other ways.If you use it in other objects BAPI will be frozen.
    2.After you create Structure you create function module and mention that structure in that.Later release the function module
    3.Later you go to SWO1 and add that method in that and realese that also
    4.Finally you can find your BAPI in BOR
    You can also find solution to your question in the following link
    http://www.****************/Tutorials/BAPI/CustomBAPICreation/page1.htm

  • Reimport a Model of a Custom Bapi Function

    Hi,
    I made a custom Bapi to be used in a WebDynpro project and it worked well. Then I added a new input parameter in my Bapi to use it as an input field in a view and so I reimported my bapi in my WebDynpro project. The problem is that if I bind the new bapi parameter to an input field in a view, I rebuild and deploy, the application doesn't work anymore. On the contrary, if I don't use the new bapi parameter, the application works as before.
    Why this behaviour? I need to add a new parameter to my bapi, but I don't want to make my project from the beginning.
    Thanks,
    Antonio

    Hi,
    Reimorting model lead to some inconsistency in the WAS. It has metadata stored in cache and this data should be reimported from backend. The only way I know to do this is to restart the J2EE server. It should help.
    Regards.
    Victor

  • Custom BAPI with BDC

    hi guys
    i have a custom BAPI with a BDC within it..however im getting an error on process screen saying input value is longer than screen field. i added the code below to go around that error but now again another error occurs
      DATA: BEGIN OF itab_amount OCCURS 0,
            turnover_local(29)   TYPE c,
            turnover_export(29)  TYPE c,
            interest(29)         TYPE c,
            other_income(29)     TYPE c,
            tax(29)              TYPE c,
            trading_acc_exp(29)  TYPE c,
            opening_v_assets(29) TYPE c,
            expenses(29)         TYPE c,
            closing_v_assets(29) TYPE c,
            capital_employed(29) TYPE c,
            non_ded_exp(29)      TYPE c,
            penalty(29)          TYPE c,
            cap_allowances(29)   TYPE c,
            withholding_tax(29)  TYPE c,
            non_taxable_inc(29)  TYPE c,
            directors_wh_tax(29) TYPE c,
            other_all_ded(29)    TYPE c,
            other_tax_paid1(29)  TYPE c,
            assessed_loss_bf(29) TYPE c,
            other_tax_paid2(29)  TYPE c,
            other_tax_paid3(29)  TYPE c,
            tax_on_taxable(29)   TYPE c,
            credits(29)          TYPE c,
            provisional_tax(29)  TYPE c,
            history(1),
      END OF itab_amount.
      MOVE-CORRESPONDING assessment_import TO itab_amount.
    the fields have he same definition data element which is a currency field of 21.2
    now i get the error that i shud enter values in the format __,___,___,___,___,___,___.__ since the output length is 29 for the domain of the data element.
    please can i have some ideas on how to go around this error??
    regards
    prince

    Hie gurus,
    i have made some progress regarding my issue however i am experiencing another error. the requirement for the data is that i moved data to an internal table with data type with equivalent length however wen i pass that value which is coming from data type C i get the error that values shud be in currecy format...how can i solve this????

  • How to transport a custom bapi (written by me) to another server

    Hello friends,
    We have a software that is integrated with SAP. To make our software work with SAP, we have some custom bapis created on SAP side. We would like to transfer them to another server that is on a different network. After reading many documents and forums here is the what I have done and the problem that I am facing. Your help will be highly appreciated.
    1.Started Transaction 'SE80'.
    2.Created a test package called 'ZTRANSPORTTEST'.
    3.Created a function group called 'ZTRANSPORTTESTFN' under that package.
    4.Created a function module under the group called 'ZTRANSFUNCTION'
      NOTE: Just saved and activated without adding any code since I won't be using this function
                 for anything other than to test the Transport Feature.
    5. Clicked on the button that said 'Transport Organizer' and saw the list of requests including the
        EC1K900083one that I just created.
    6. I tried to release it by 'RIGHT CLICKING'
       It waited for few seconds with the message....."code inspector checks running.".
       Then it failed with an error message as follows
       Error in pre-export methods for request EC1K900083
      NOTE: I have made sure that everything is activated properly, since I read on a forum that this
                 error may occur if something is not activated properly. So I have done this step over
                 and over again making sure that everything is activated properly.
    7. I then started Transaction 'SE09' and saw the request 'EC1K900083' under the released tree with a 'CHECK' Mark.
    However, when I sent to /usr/SAP/trans/data and /usr/SAP/trans/Cofiles, I didn't find the transport data there.
    Has anyone done this before and if so what am I doing wrong? Your suggestions or feedback will be highly appreciated.
    Thanks
    Ram

    Hello Friends,
    Thanks for all the responses. I got the following response from SAP TECH SUPPORT which is not very encouraging and so I am just closing this.
    Thanks
    Ram
    ===========================================================================
    30.04.2009 - 11:40:29 EST - Reply by SAP
    Dear Mr Ram,
    Thanks for explaining it once again.
    The package is just container for development objects that belong together, in that they share the same system, transport layer, and
    customer delivery status. Please check the below link http://help.sap.com/saphelp_nw70/helpdata/en/ea/c05da3f01011d3964000a0c94260a5/frameset.htm
    As I understand correctly you want to 'export' your development outside of your SAP system domain. For that either you can do it using 'Externalsystems'. 'External systems' are a special form of virtual systems. A real SAP System is used in their place to perform actions on the transport directory. They are different from virtual systems in that they have their own transport directory that you can freely choose, you can use external systems to:
    -Write transport requests to exchangeable data media
    -Read transport requests from exchangeable data media
    -Send transports to other transport domains using an intermediate directory
    -Send transports to other transport domains using an intermediate directory
    If you want to transport between systems in different domains, we recommend that you link domains with 'domain links'. There must be a
    permanent network connection between the systems in the two domains, similar to the connection between systems within the same domain.
    I would recommend to take a look in the documentation available in SAP Online help for further information on how to setup this
    complex transport landscape. I hope this information helps you to setup the transport system.
    Or you simply create a transport request of type 'transport of copy' and input target system and client (which you should know) system as
    target system include the objects (bapi) in the request. This ensure that requests will only be imported into that system. Other systems willnot be touched.
    'Transport of copies' type transports do not get automatically added to the next buffer after they have been imported into a system. When creating a 'Transport of copies' transport the target system must be specified as this type of transport does not respect the defined transport routes outlined in TMS.
    You can use this request type to transport objects to a specified SAP System using Transports of copies. The objects are transported with the version they have in the current SAP System. The original location of the objects remains unchanged. There is no delivery to another SAP System.
    But we at AGS we cannot suggest, as the nature of your request indicates this is a consulting issue rather than a software error.
    Customer Support's charter, under the SAP maintenance agreement, is to handle software or system defects in the standard delivered R/3 product. Please refer the note 1054121.
    So you have to seek assistance from SAP's Remote Consulting Service which is billable.
    I am sorry that I could not give you more positive reply in this case.
    With warm regards,
    Sajiv
    Active Global Support - Technology
    =========================================================================

  • Error while creating a Custom BAPI?

    Hi Guys,
                  I created Custom BAPI thru SWO1 tr code and API method also.AFter API methos creation i went to GOTO->ERRORLIST then i got these errors
    "Field SAPB -SAPFILES is too long to be included in the container
    Field BAPICONTEN -LINE is too large to be included in container"
    so what shall i do to overcome thiese errors
    Thanks,
    Gopi.

    Hi Gopi,
    Check this link
    [http://www.erpgenie.com/sap/abap/bapi/example.htm]

  • Issue in custom BAPi

    Hi,
    We had created a custom BAPI.
    This BAPI is having a method, which in turn calls a custom FM (RFC enabled).
    This was working fine but due to some requirement we had to change the structure of one of the parameter used in the interface of the FM. This parameter was in 'Tables'.
    Now we require to change this structure again and have to delete some of the fields, but when we try to do the same we get an error message :
    "BAPI-structure:  invalid change: position field <F1> should be deleted"
    here <F1> is the field that we deleted.
    Has anyone seen such an error and knows the Correction.
    Please help.
    Thanks,
    Ad.

    Hello,
    You can not change the structure of the BAPI parameters, once it is released..!
    So, try to create a new structure with your necessary fields, replace it in your existing structure and again release the BAPI.
    Regards,
    Naimesh
    Reward points, if it is helpful..!

  • Issue in Custom Blog site definition based on SharePoint 2010 blog site definition after migrating the sites to SharePoint 2013 and site collection upgrade

    I have created a custom blog site definition using SharePoint 2010 blog site definition with Configuration ID 31 in onet.xml (new value). This was working fine for SharePoint 2010.
    We created new SharePoint 2013 farm and deployed the all Custom solutions in
    14/15 folders. After migrating the sites to SharePoint 2013 using Content DB approach, site created previously using my custom definition are working fine.
    But after running site collection upgrade these sites stop working. When I post a comment then comments not getting listed on post detail page. However comments are getting added to Comments List but
    PostTitle column  of Comment is not getting populated.
    Also, when we create a new site in SharePoint 2013 using my custom blog template then that is also not getting provisioned.  default.aspx and look-up between post and comment list are not working.
    If any one has faced such issue then please share your findings and any solution to fix this.
    Thanks in Advance :)

    Hi ,
    According to your description, my understanding is that the blog based on custom blog site definition didn’t work correctly after migrating custom blog site definition to SharePoint 2013.
    If you customized the Onet.xml file in a previous version's site definition, you should modify some sections in the file to work in the current version, like  <BaseTypes> and  <ListTemplate>  etc. More information, please refer
    to the link below:
    http://msdn.microsoft.com/en-us/library/office/aa543837(v=office.14).aspx
    For that the PostTitle column  of Comment is not getting populated, please try to modify the view, then compare the result.
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • "Customer" BAPI in Distribution Model for Training and Events

    We have an HR box with Training and Events - When booking an attendee on a course, you can select the "contact person" tab. Our SD box is separate from HR, so all the contact persons are maintained there. Is it possible to use the "Customer" BAPI in a distribution model so that when we search in the HR box for a contact person, it actually fetches the data from the SD box?
    I remember reading up on this a while back but I can't find the documentation I had back then...
    I know that in BD64 I can create a distribution model, and if I remember correctly, i should be able to "Add BAPI" and use object type "Customer" - Then add all the methods that I need... (like Find, List, Search etc) In essence, once this model has been distributed to the other system, if I go to transaction XD03 in the HR box, I should be able to display customer master details that only exist on the SD box - Is that correct?
    Please help as I am not able to get this to work...

    Ok I figured it out...
    I have created a distribution model with the HR system as the source, and the SD system as the target.
    In change mode, click the "Add BAPI" button and choose object BusPartnerEmployee, method CheckExistence
    Do the same for the following:
    BusPartnerEmployee.Display
    BusPartnerEmployee.GetList
    Customer.CheckExistence
    Customer.Display
    Customer.ExistenceCheck
    Customer.Find
    Customer.GetContactList
    Customer.GetDetail2
    Customer.GetInternalNumber
    Customer.GetList
    Customer.GetSalesAreas
    Customer.Search1
    Ok so I know that this might be a little over-kill, especially all the Customer methods that I added, but it works

  • Customer BAPI can't be viewed from BAPI explorer

    I have tested my customer BAPI in SE80 and SWO1 to be implementable, but not released, can we see it in BAPI explorer?

    Hello Jolin,
    Check this wiki to know about required steps to make available the customer BAPI in BAPI explorer.
    A step by step guide for beginners on user defined BAPI creation - ABAP Development - SCN Wiki

  • Calling custom BAPI from VB/VBA

    Hello, all,
    I have written a custom business object and its associated function module.  I can single-test the business object inside native SAP, and it works successfully.  I can also establish a handle to the business object from VBA (using the .GetSAPObject method of the BAPI control object.)  I can't call the method of the custom BAPI, though--I get error message "UploadResults is not a BAPI method."  (UploadResults is the name of both my business object and the method of the business object.)  Here's my source code:
    Sub UploadChemToSAP()
    Dim gConnection As Object 'global connection object
    Dim oBAPICtrl As New SAPBAPIControl
    Dim oBAPIService As Object
    Dim boFunction As Object, boResults As Object, boReturn As Object
    'Set up connection object for SAP.  Note that the SAP BAPI ActiveX object must be available on the form or otherwise.
    Set gConnection = oBAPICtrl.Connection
    'Log in to SAP.  Seems like passwords must be in uppercase.  There are examples of people defaulting some (or all)
    'of the login values
    gConnection.logon
    Set boFunction = Nothing
    Set boResults = Nothing
    Set boReturn = Nothing
    Set oBAPIService = oBAPICtrl.GetSAPObject("UploadResults")
    Set boReturn = oBAPICtrl.DimAs(oBAPIService, "UploadResults", "Return")
    'Log out of SAP.
    gConnection.logoff
    End Sub
    To my knowledge, I have released both the business object and its associated method.  The function module has been released, too.  Any suggestions on where to go from here? 
    Thanks in advance,
    Eric

    Hey,
    Please check the "Processing Type" of the function module implementing the method. It should be a Remote-Enabled module.
    Kiran

  • Call Bundling for custom bapi for mass data processing

    Hi all,
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/4c/4c0e96725311d396a80004ac96334b/frameset.htm
    can i create a custom bapi where i can compress created update tasks. Not single inserts but a single sql insert with many records.
    Are there some SAP FM in order to do it? Documentation says, i must do "Operations in buffer" and "Update buffer data".
    Regards
    Paul

    Is ABAPFIELD an IMPORTING parameter?
    > Total Questions:  17 (15 unresolved) 
    Maybe you should consider cleaning up your old posts.
    Rob

  • Customized BAPI *Priority A*

    Hey,
    Need a Help with Writing Custom Bapi. We have checked with exsisting BAPIs but that not sufficient to do the JOB. So now we are exploring about our own custom Bapi.
    Requirement is to  Write 2 BAPI's.
    1) To post the data in the R/3.
    2) To reterive data from the R/3.
    Steps that are required:
    1) We had to create a CUSTOMTABLE <b>**to post transaction data **</b> client dependent  (ex: ZTABLE) with 4 fields. (Mandt, customer, employee Material). <b>This is done.</b>
    2) Do we need to define a structure  for usage in BAPI ? If yes does it necessarily need to have a primary key.
    3) Steps in rfc. Import and export parameters and <b>source code</b> this is the prob.
    4) Steps for creating BAPI >?
    Please don't post links. Weblogs relevant are welcomed. If any one can explain in detail that will be great.
    Thanks in advance.............................................
    *FULL POINTS FOR THE BINGOO SOLUTION**
    <b>
    Cheers,
    *RAJ*</b>

    Hey,
    Need a Help with Writing Custom Bapi. We have checked with exsisting BAPIs but that not sufficient to do the JOB. So now we are exploring about our own custom Bapi.
    Requirement is to  Write 2 BAPI's.
    1) To post the data in the R/3.
    2) To reterive data from the R/3.
    Steps that are required:
    1) We had to create a CUSTOMTABLE <b>**to post transaction data **</b> client dependent  (ex: ZTABLE) with 4 fields. (Mandt, customer, employee Material). <b>This is done.</b>
    2) Do we need to define a structure  for usage in BAPI ? If yes does it necessarily need to have a primary key.
    3) Steps in rfc. Import and export parameters and <b>source code</b> this is the prob.
    4) Steps for creating BAPI >?
    Please don't post links. Weblogs relevant are welcomed. If any one can explain in detail that will be great.
    Thanks in advance.............................................
    *FULL POINTS FOR THE BINGOO SOLUTION**
    <b>
    Cheers,
    *RAJ*</b>

  • Can we execute an SAP Standard ABAP Programme from a Custom BAPI?

    Hi,
    We have a requirement in our project where in we have to execute an SAP Standard ABAP report. We need to execute it from a Portal by click of a button.
    What we are thinking is that if we have a custom BAPI which triggers the execution of ABAP report, we can execute the BAPI from the Portal using Adaptive RFC Function call by developing a custom Web Dynpro Java application.
    So, my question is it possible to execute an ABAP report making sending required input parameters to the ABAP report from the BAPI. If so, how can we achieve this?
    Regards
    Ram

    Hi Brad,
    Thanks for your quick response. Actually, it is not exactly a report. We are trying to call an SAP Program related to SAP Business Workflow.
    When the user clicks on Approve or Reject buttons on the SAP GUI, this program will be called and exectured which inturn updates many Project System Tables.
    What we are trying to  do is that we had developed a custom Web Dynpro Java Application for achieving the SAP Workflow. Instead of reinventing the wheel, we just want to use already existing SAP Program which updates the Project Systems tables.
    So, from the Portal Workflow Inbox when the user clicks on the Approve or Reject buttons, we would like to call a custom BAPI which will execute this program.
    Could you please explain in detail how to achieve this? Thanks in advance.
    Regards
    Venkat

Maybe you are looking for

  • Is there any way to receive SMS on a Skype number?

    I just purchased a Skype number today and will be using Skype via the Skype app on my iPhone.  I've set up voicemail and have already testing calling out to a regular number from my Skype app/number and having someone call in to my Skype number.  It

  • 'erase free space' not secure - it doesn't seem to work?

    Just wanted to point out that the erase free space option in Mountain Lion does not seem to work, at all. A week ago I ran erase free space on my primary data drive then later, out of curiosity, I ran an inexpensive third party recovery program on th

  • For a specific PO type, trigger the workflow

    Hi Gurus, I have a requirement, for a specific PO type WF should be triggered. In my case, I am using BUS2012 for PO type. In basic data->start evenets, I add BOR Object as BUS2012 and even as CREATED. Now, when I click on conditions, I do not see BS

  • Report to MS Power Point

    Hi Experts! We have a requirement where we need to generate a report output in MS Power Point. Can somebody please provide your inputs and suggestions on this? Are there any test programs to check on the same? Your help is highly appreciable. Thanks

  • How do I change audio mapping for a clip being batched in from a sequence?

    My client has cut a shorter version a feature film for his client. The client's source is a Hi-Def tape with four channels of audio. Ch.1&2 Stereo Mix and Ch.3&4 Music & Effects. He was given a DV tape with Ch.1 Mono Mix and Ch.2 Music & Effects. Whe