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..!

Similar Messages

  • 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
    =========================================================================

  • Non English characters conversion issue in LSMW BAPI Inbound IDOCs

    Hi Experts,
    We have some fields in customer master LSMW data load program which can
    contain non-English characters. We are facing issues in LSMW BAPI
    method with non-English characters Conversion. LMSW steps read and
    conversion are showing the non-English characters properly with out any
    issue. While creating inbound IDOCs most of the non-English characters
    replaced with '#' and its causing issues in creating customer master data in
    system. In our scenario customer data with non-English characters in
    the first name, last name and address details. Any specific setting
    needs to be done from our side? Please suggest me to resolve this issue.
    Thanks
    Rajesh Yadla

    If your language is a unicode tehn you need to change the options  like IN SAP you need to change it to unicode  in the initial screen Customize local layout(ALT F12) options 118  --> Encoding ....

  • 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????

  • Custome BAPI - declare ITAB and define the Function Module and Subroutine

    Hello Experts
    I want to create a Custom BAPI and it has the following scenario:
    1) a Function Module which collects some records into it internal table, say ITAB
    2) a Subroutine which moved the records from ITAB to BAPI table
    Now, I want to declare ITAB and define the Function Module and Subroutine.
    Where and How can I do this?
    Plz suggest.
    Regards
    BD

    Hi,
      1) Got to SE37 and create an RFC .
      2) Declare the ITAB directly in the TABLES tab of the FM.
      3) Inside the FM source Code tab, collect all the data using SELECT query and directly or by using logic, put the data into the
          ITAB.
      4) Since the data collected is directly put into the itab you dont need a subroutine to be written.
      5) If subroutine is a necessity, then just write PERFORM SUB ROUTINE NAME.
           AND DEFINE THE FORM ENDFORM OF THE SUBROUTINE AFTER THE ENDFUNCTION OF THE FM
       Let me know if any issues....
    Regards,
    Vimal.

  • 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]

  • 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

  • Goods issue to customer without sales order or Outbound delivery

    Dear all gurus,
    I have a case like that: Supposing we don't have neither Sales Order nor Outbound Delivery (because not implement SD, for eg).
    Then, we stil want goods issue to customer. So can u advise me how to do: which Tcode, which movement type,...
    Thanks,

    Hi,
    Create a cost center for customer and issue the goods with respect to this cost center in MB1A transaction using movement type 201.
    Then all the issues will be tracked based on this cost center.
    Regards,
    Bharat

  • Goods Issue to Customer not done

    Dear All,
    We have customize service module. We can select Return, Goods Issue to Customer, Inventory Transfer activity from activity tab on Service call itself.
    Problem is..first i have return material from Customer , then i have transfer inventory from branch whs to repair center whs and now i like to issue material to customer after repairing.
    When i am doing Goods issue to customer, it is giving error i.e. Inventory falls below minimum level.
    Can any body guide me for this.
    Warm Regards,
    Chintesh Soni

    HI Chintesh,
    Check out whether in the item master  you have selected " Manage Inventory By Warehouse" and whether you have maintained  the stock figure in the Required (Purchase UoM) field,the Minimum and the Maximum field in the items rows. In the Required (Purchase UoM) field the system displays the quantity needed to keep the stock at the minimum level.
    The system:
    1.   Issues alerts when the quantity goes below the minimum (Release Stock Below Minimum Level in Document Settings must be selected)
    2.    Does not let you enter stock documents when stock reaches maximum quantity
    Nagesh

  • "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 transfer photos from iphoto on my ipad back to my imac.

    I accidentally formatted my external drive that contained my iphoto library ( I meant to format a usb flash drive).  I just bought a new imac and I haven't used the iPhoto on it, so there is no library on the iMac HD. All my pics were on the external

  • How can I import to my mac from my backup disk?

    My Windows computer bit the dust.  My itunes files were backed up on an external harddrive but I don't know how to import my files into my new mac computer.  Probably should find a teenager to help with this but I'm worried about losing my files, bot

  • Module Development for XI3.0 Adapters

    Hello, we are currently trying to develop a xi 3.0 adapter module. Modules are a way to expand the functionalities of a xi adapter, in our cas the file adapter. Our module should be used to perform a more complex transformation from flat file to xml.

  • MacBook pro morse code?!

    I am in boot camp Windows 7 Enterprise, so I don't know if this is windows 7, but here's the story ========== I came in my room, after I turned the display off by turning the brightness off, and the screen was flashing. I didn't think to much of it,

  • AIR app communnicating with External App

    I would like to make my AIR app communicate with another application that's running on the desktop. What are the best ways to do this? Ideally I'm looking to call functions inside the AIR app from a separate program, and vice versa. This is in fact p