BAPI question

Hi All,
I have a question about address change via BAPI_ISUPARTNER_CHANGE.
In my case, a business partner already has an email address. I would like to call this BAPI to delete it.
Here are my sample codes:
  move space to lt_address-e_mail.
  move '0000201872' to lt_address-addrnumber.
  append lt_address.
  move 'X' to lt_address_x-e_mail.
  move '0000201872' to lt_address_x-addrnumber.
  append lt_address_x.
  call function 'BAPI_ISUPARTNER_CHANGE'
    exporting
      partner      = lt_tcontractaccountdata-partner
      partnerdata  = ls_partnerdata
      partnerdatax = ls_partnerdatax
    importing
      return       = ls_return2
    tables
      taddress     = lt_address
      taddressx    = lt_address_x.
  call function 'BAPI_TRANSACTION_COMMIT'
    exporting
      wait   = 'X'
    importing
      return = ls_return2.
The BAPI does not take the space to update the email address. However if I change the space to 'a@b', then
it can successfully update the email address for that BP.
Any idea on how I can call BAPI to delete some field values?
Thanks,
Bin

Hi,
The name of the BAPI indicates it is for IS-Utilities... I do not know how far it is relevant but the OSS Note # 409881 might throw some light on your issue.
Regards,
Suresh Datti

Similar Messages

  • HR BAPI Question

    I am trying to call BAPI_PERSDATA_CREATE and apparently there needs to be an entry in PA0003 (InfoType 3) for the employee before this BAPI is called.
    Is there a remote enabled BAPI available that will create an IT 3 record?  (I can't use HR_INFOTYPE_OPERATION because it's not remote enaabled.  I'd prefer to not write a ZHR_INFOTYPE_OPERATION that is remote enabled that in turn calls HR_INFOTYPE_OPERATION.

    Try using FM - BAPI_HRMASTER_SAVE_REPL_MULT.
    Regards
    Ravikumar

  • BAPI for customer Block/Unblock through transaction code : XD05

    Hi Gurus,
    I want to block/unblock customer sales areas(Transaction code : XD05) through program. Could you please suggest any BAPI for the same. As writing BDC will not be a good choice.
    Please help.
    Thanks,
    Bhupender

    Hello Bhupender,
    the best and easies solution is the MASS maintenance transaction as proposed above.
    For the BAPI question, sorry but there is NO BAPI to maintain a customer master data.
    The function module provided by my predecessor, even if it has the perfect look like is definitively not the one to use.
    Despite the name, this FM is designed to support only the maintenance of CONSUMERs.
    Moreover it is not an RFC enabled function module.
    It might work in your case, as the data to maintain is quite simple and limited but you still may face several troubles like NO change documents and change pointers created and/or no synchronisation with TREX, CRM, ...
    There is also a BAPI with a nice name, but in fact it is designed to be used only with SAP Online Store and SAP Product Catalog.
    The only reliable path for investigation is described within [note 384462|https://service.sap.com/sap/support/notes/384462].
    A other path for investigation is the class CMD_EI_API which has been introduced with ECC 2005 (6.00).
    You could wrap method MAINTAIN_BAPI inside of a bapi function module you would have written.
    Otherwise, but still with limited functionality there are some eSOA webservices to find, read, maintain customer master data.
    Hope this helps.
    BR
    Alain

  • What todo with those who keep on answering basic questions - Your thoughts?

    Hi Experts,
    I have been active in ABAP Development Forum and usually hit the abuse button around 50 times a day.
    And most of the cases is for posting queries which are very basic and can be searched in SCN or in any Search engine.
    Example: The specified item was not found.
    Subject : BAPI
    Question :
    >
    muralireddy manyam wrote:
    > whats the  difference between normal function module and bapi function module?
    Although this is the mistake of the poster, i can see around 5 - 10 replies for such posts in a few seconds. Most of the replies are posted with Copy + paste content from SAP documentation/ other sites, some link farms etc.
    What i feel is this type of replies only encourages other people to post such basic questions again and again.
    So i think a little amendment need to be added to the Forum guidelines prompting members not to post replies/links to basic questions which can be easily searched.
    What you people think of it? Your thoughts are welcome and i hope some moderator would be in a better position to answer this.
    Regards
    Karthik D

    Hi Karthik,
    Your BAPI example took a whack together with all it's answers and the other questions by the same lazy bones fresher.
    There is no real answer to your question, because more usable expert forums and keeping the quality up to standard is a constant thing. Each new batch of freshers brings new challenges with them, and new types of points-gaming, etc. So it is the journey which counts
    At other times some tollerance is also appropriate - for example when the person has language problems and is using a translator.
    But for the lazy bones who don't even have common sense, there is no SDN medication available. No amount of waiving the rules at them helps. The only think which can be done is to delete it on sight and try to catch them as early as possible.
    For this the folks who use the Abuse Reports button are the true heros of the forums, as it is impossible for moderators to be everywhere all the time.
    Cheers and thank again!
    Julius

  • Questions on BAPI's

    plzzzz send me 10-15 interview questions on bapi (to create purchase order)  plzzzzz do not send any web links , <REMOVED BY MODERATOR>
         very very urgent
    Edited by: Alvaro Tejada Galindo on Apr 21, 2008 5:42 PM

    Hi Frd
    <REMOVED BY MODERATOR>
    By
    Pari
    Edited by: Alvaro Tejada Galindo on Apr 21, 2008 5:45 PM

  • List of Questions on BAPI and OOPs

    Hi All,
       I am new to the OOPs and BAPI's.can any one gives me complete idea on below questions by providing good examples.
    1) Importance of the class, Interface type, Object and Instance ?
    2) Why we need oops concepts since we are using normal process successfully, i mean with out oops also ?
    3) functionality of BAPI ?
    4) Difference between COMMIT WORK and BAPI_TRANSACTION_COMMIT ?
    5) Why COMMIT WORK wont useful for BAPI's ?
    6) If you give me good source code to understand the concepts of class, Interface type, Object and Instance?
    7) In real time situations, do we need to create classes or in SAP we will use only existed bapis?
    8) The process of creating customized BAPI's [entire scenario]
    Since i asked lot of questions in one thread, i decided to give rewards even if you provide me solution for any of the above.
    Thanks
    Jaya

    Hi Jaya,
    Answer 1. Class is a template for creating objects. Object can also be called as instance.
    Interfaces allow you to use different classes in a uniform way (polymorphism).
    Answer 2. Normal abap is a procedural programming where as by using abap objects we can achieve object oriented programing.
    Answer 6. Source code:
    In below code i have created a interface and a class which is implementing the interface. I have declared a reference variable of type interface and created a object. Then i have called a method.
    REPORT  ZABAPOBJECTS_INTERF.
          INTERFACE I1
    INTERFACE I1.
      METHODS METH1.
    ENDINTERFACE.                    "I1
          CLASS C1 DEFINITION
    CLASS C1 DEFINITION.
      PUBLIC SECTION.
        METHODS: METH2.
        INTERFACES: I1.
    ENDCLASS.                    "C1 DEFINITION
          CLASS C1 IMPLEMENTATION
    CLASS C1 IMPLEMENTATION.
      METHOD I1~METH1.
        WRITE: / 'This is a method one'.
      ENDMETHOD.                                                "I1~METH1
      METHOD METH2.
        WRITE: / 'This is a method two'.
      ENDMETHOD.                                                "METH2
    ENDCLASS.                    "C1 IMPLEMENTATION
    START-OF-SELECTION.
      DATA : REF1 TYPE REF TO I1.
      CREATE OBJECT REF1 TYPE C1.
      CALL METHOD REF1->METH1.
    Question 7: Yes we need to create a class but most probably we use the existing classes.
    Regarding BAPi's go through the below links,
    http://www.sapgenie.com/abap/bapi/example.htm
    http://www.sapdevelopment.co.uk/bapirfc/bapirfchome.htm
    Regards,
    Azaz Ali.

  • General questions on IDOCs and IDOCs for 2 Accounting Interface BAPIs

    This post involves several questions pertaining to the topic of IDOC creation. I downloaded a couple of PDFs and tried googling for material on that, but things are far from being clear in my mind.
    I tried to put my questions in some order, so we can follow a line of reasoning. Here we go, then:
    I have one code where I there are calls to 2 BAPIs:
    - BAPI_ACC_ACT_POSTINGS_REVERSE and
    - BAPI_ACC_GL_POSTING_REV_POST
    I am supposed to prepare/create an IDOC to perform the activities these BAPIs are responsible for, for the sole purpose of providing us much more details on the activities being executed in the system - this is one of the IDOC's features, if I got it right, its highly detailed logging of everything that is going on behind.
    Now, the 1st question arises:
    From the material I read, I understood that IDOCs are nothing more than data containers, whose sole purpose is to provide a means of communication between two different systems/parties - one of them would usually be SAP. If this is right, than what sort of IDOC would be this one I am supposed to build - if there's not going to be any inter-system communication ? Doesn't it sound strange that pure "data containers" can work as "logging functions" ? Please share some light here.
    The 2nd question - after I understand what an IDOC really is - is
    then connected to the job I have to do. I found 2 IDOCs which I think have the proper/correspondent basic types for the 2 aforementioned BAPIs. They are, respectively:
    - ACC_DOCUMENT_REVERSE01 and
    - ACC_GL_POSTING_REVERSE01
    Getting back to my understanding of IDOCs, I got that every IDOC is generally made of one control record, data record(s), and status record(s). 3rd question: Where do the segments fit in ? Are the segments definitions of the Data Records ? And why is it that some IDOC types have header segments only and others doesn't have one ? (header segments are not the same as control records, right ?)
    Finally, what is the general process flow for creating/preparing an IDOC ? I looked over a couple of forum posts about this but some of them differ one from another in the order of the steps, some don't mention this or that step, so I am still confused.
    4th and last question: what comes first ? The definition of a partner, the bonding of a message type with an IDOC basic type, definitions of the inbound/outbound interfaces ?
    Any help here would be highly appreciated.
    Thanks in advance,
    Avraham

    Hi Jaya,
    Answer 1. Class is a template for creating objects. Object can also be called as instance.
    Interfaces allow you to use different classes in a uniform way (polymorphism).
    Answer 2. Normal abap is a procedural programming where as by using abap objects we can achieve object oriented programing.
    Answer 6. Source code:
    In below code i have created a interface and a class which is implementing the interface. I have declared a reference variable of type interface and created a object. Then i have called a method.
    REPORT  ZABAPOBJECTS_INTERF.
          INTERFACE I1
    INTERFACE I1.
      METHODS METH1.
    ENDINTERFACE.                    "I1
          CLASS C1 DEFINITION
    CLASS C1 DEFINITION.
      PUBLIC SECTION.
        METHODS: METH2.
        INTERFACES: I1.
    ENDCLASS.                    "C1 DEFINITION
          CLASS C1 IMPLEMENTATION
    CLASS C1 IMPLEMENTATION.
      METHOD I1~METH1.
        WRITE: / 'This is a method one'.
      ENDMETHOD.                                                "I1~METH1
      METHOD METH2.
        WRITE: / 'This is a method two'.
      ENDMETHOD.                                                "METH2
    ENDCLASS.                    "C1 IMPLEMENTATION
    START-OF-SELECTION.
      DATA : REF1 TYPE REF TO I1.
      CREATE OBJECT REF1 TYPE C1.
      CALL METHOD REF1->METH1.
    Question 7: Yes we need to create a class but most probably we use the existing classes.
    Regarding BAPi's go through the below links,
    http://www.sapgenie.com/abap/bapi/example.htm
    http://www.sapdevelopment.co.uk/bapirfc/bapirfchome.htm
    Regards,
    Azaz Ali.

  • MII 12.1 Questions - BAPI Consumption

    The following is from SAP document - Upgrade Master Guide SAP MII 12.1:
    To implement the following SAP MII business
    scenarios, you must use SAP ECC 6.0 or
    higher:
    - Shop Floor Quality Integration
    - Content Versioning
    - Transactions for BAPI Consumption
    Clarification:
    We are looking into upgrading from MII 12.0 to 12.1 and have not upgraded to ECC 6.0. Concerning ECC 6.0 requirement for business scenerio "Transactions for BAPI Consumption", does this mean MII 12.1 does not support calling BAPIs via MII transactions unless you have ECC 6.0 or higher?
    Also, I assume JCO is no longer supported by 12.1, only JRA for ECC BAPI communication?
    Any clarifications would be appreciated!
    Thanks

    David,
    The install guides usually point to the latest release of ERP systems (i.e. ECC). However, many companies won't be upgrading their ERP systems just for MII MII 12.1 can connect to older versions with some limitations (depending how old your ERP is). Your use of BAPI's in JCo calls should be ok. I would always check the Netweaver CE area on the Service Marketplace for any new notes regarding JCo/JRA connectivity.
    As for your second question....JCo is still supported in 12.1. JRA is an extension of JCo so it is the future way of connecting to ECC systems. You can read more on it in the NW CE section of the online help.
    Regards,
    Kevin

  • JCo BAPI authorization question

    We are developing web applications using Jco connector.
    The default authentication approach is to use connection pooling where all different users access BAPI via default (generic) user name and password.
    My question is how to authenticate current (specific) user whether he has valid permission rights for some particular transaction, because for SAP-BAPI they are all the
    same user (they are establishing connection with the same user name and password.)
    Are there some BAPIs for checking user permission for some transaction?
    Example code are very welcome
    Thanks
    Marino

    I believe there are BAPIs under the category security/user that will provide you with details of the user and you can always of course build your own authentication scheme on the java side based on what's on the R/3 side, but to be honest I would suggest not using a generic user if you wish to keep the current authorization structure in R/3. The R/3 structure for authorization is a maze of objects and tables - virtually a skill in itself, there are people who make a living on it and it is a constant headache on every R/3 installation and enrvironment causing many issues.
    I would recommend to simply use the current logged on user details and log on to the backend. If your user is not authorized you will get an exception from JCo that you can handle in your application. Believe me, it would be a lot simpler than anything else you could implement to achieve your objective.
    Cheers,
    Dion

  • Questions on BPS BAPI calls and PDF forms

    I will need to create a button on a BPS form and that button is supposed to call a BAPI.  One of the buttons will create a PDF of the form (using the contents of the form) and print said form to a 'default' printer.  The issue is that not all cFolder users will have an ECC logon name.  What am I to do in this instance?  Will I need to pass some type of credentials to the ECC backend in order to run this BAPI?
    Also, how can I get the contents of the form(s) to the BAPI?  I assume that I will need to create the PDF in the code of the BAPI.  Please be patient with me as this is my first time to work with cFolders and/or BPS.
    Regards,
    Davis

    Hi Davis,
    Well, if you are able to log on the BPS application (thus, a Web Interface if I'm not mistaken) then it means that some user is logged on the ABAP-side. It is either a "personal" user or a technical (common) user, that is used for anonymous access.
    You will certainly be able to track down this user with the SM04 transaction.
    You should be able to add a button to the BPS page. One idea would be to call an URL with an ICF service behind that will be able to process the parameters contained in this URL.
    It will be this very ICF service that will call the BAPI.
    Try these links
    http://help.sap.com/saphelp_nw04s/helpdata/en/55/33a83e370cc414e10000000a114084/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ea8db790-0201-0010-af98-de15b6c1ee1a
    Hope this helps.
    Best regards,
    Guillaume

  • Question On BAPI

    The SAP's SD module have BAPI that allow me to create sale order or get those detail. But, i have to insert a lot of data that i'm not really need.
    How can i solve it??
    Can i create table ,RFC and expose it as BAPI. It is same as using the SAP existing SD module(it's BAPI).

    create RFC with required input parameters and within that RFC call the standard BAPI
    Regards
    Raja

  • Question on SRM bapi

    Hi friends
    1. In FM BBP_Partner_send(Partner id, Id of backend system) what is the signifinance of the parameters Partner id, Id of  backend system
    2. Can we send bapis via Xi
    Regards
    Ashwini

    that function module is used by the system to send Business partner data to another system.
    for example , in  the case of SUS , this function module is called in EBP system to replicate (send) the vendor data to SUS , here input data is the business partner number which is to be replicated and the backend system name.
    when this function module is executed system will generate new Business partner in the system where it is replicated . XI is compulsory in this case.

  • Question about BAPI Performance

    I am currently evaluating options to implement interface between legacy systems and SAP. We have a requirement to post goodsmovement from external application. As some of my team claim that the BAPI approach can cause performance problems. I would like to cross check whether the claim is true.
    And if it is, May I have your advice how can we prevent such problem about performance?
    Ho w can I get additional source of information?
    Kindly advise.
    The BAPI which we are going to use is BAPI_GOODSMVT_CREATE
    Thank you

    No performance problem is there.
    Infact BAPI is advisable against BDC. Also since BAPI is like FM there is no issue.
    I am using it in lot of the objects we have created.
    Cheers
    Regards
    Nishant

  • Question conserning a remote-enabled BAPI

    I have created a quick and 'easy' BAPI that will return a table of shipping document numbers.  The code is below:
    FUNCTION z_bapi_likp_get_list.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(ZBAPI_DELIVERY_DOC_IMPORT) TYPE  ZBAPI_DELIVERY_DOC_IMPORT
    *"  EXPORTING
    *"     VALUE(ZBAPI_DELIVERY_DOC_EXPORT) TYPE  ZBAPI_DELIVERY_DOC_EXPORT
    *"     VALUE(RETURN) TYPE  BAPIRETURN
      SELECT vbeln FROM likp INTO zbapi_delivery_doc_export
        WHERE lddat = zbapi_delivery_doc_import-lddat AND
              vstel = zbapi_delivery_doc_import-zzvstel.
      ENDSELECT.
    ENDFUNCTION .
    ZBAPI_DELIVERY_DOC_IMPORT is a structure that contains two fields: LDDAT and VSTEL
    ZBAPI_DELIVERY_DOC_EXPORT is a structure that contains one field: VBELN.  I tried to follow  and it seemed to work great but I have a slight 'problem'.
    I need to include the leading zeros on the document numbers.  I tried to loop through the structure (after the select) and append the zeros that way but it wasn't allowing me to loop through the structure.  Does anybody have any ideas/suggestions?<a href="http://www.erpgenie.com/abap/bapi/example.htm">this step-by-step example</a>

    Well first of all,  if  ZBAPI_DELIVERY_DOC_EXPORT is not a table type, then you are not getting an internal table back from the BAPI, it is a single line, or structure, which is why you can't loop at it.   If you want to return this as a table, then you need to either make ZBAPI_DELIVERY_DOC_EXPORT a table type, or use this in the TABLES parameter tab when defining the function module(BAPI) in SE37.  Right now it is defined as an EXPORTING paramter.
    As far as the leading zeros are concerned, you should be getting the leading zeros, but you may want to code your select like this.
      Select vbeln from likp into corresponding fields of table
                            zbapi_delivery_doc_export
                           WHERE lddat = zbapi_delivery_doc_import-lddat AND
                                         vstel = zbapi_delivery_doc_import-zzvstel.
    Of course this coding will only work after you have adjusted the ZBAPI_DELIVERY_DOC_EXPORT parameter.
    Regards,
    RIch Heilman

  • Question related to BAPI Call

    Hi All,
    I am using a BAPI Call to SAP in my BLS transaction. One of the action blocks in the transaction is a SQL Query which updates a Oracle table based on the SAP returned values from the previous action block. For the most part, it works fine except once in a blue moon, the values show up as 'null' when in fact I expect some values to be returned from SAP. Is there anyone out there who has faced a similar issue? What would be a quick and easy solution to this? Thanks.
    Regards,
    V M.

    Hi Venki,
    Possible response segments for CONF_CNT (in DETAIL_RETURN):
    1) That BAPI will return "000000" for counter if the confirmation was unable to be processed for some reason, but you were able to connect to SAP.  A fairly common reason is the record being locked if you run similar confirmations too close together.  It takes time for the confirmation record to be released by SAP.
    2) It will return a number "000001 or greater if the confirmation was successful (along with a confirmation number). 
    3) The circumstances where it will return an empty field are when it is unable to connect to SAP, but you should have a conditional to check for the success flag from the BAPI.  This is standard error handling when using a BAPI.  This will also leave all fields in the response segment blank. 
    4) And there is another set of circumstances which will leave the fields blank.  This is fairly unusual, but does happen when the error handling inside the BAPI runs into a situation which it can't handle.  So the BAPI crashes and never returns any information back to MII.
    You will need to decide which of these situations are causing your null data.  But put error handling in based on the Success flag for the BAPI for SAP unavailable and for a CONF_CNT = "000000" or blank.
    Good luck,
    Mike

Maybe you are looking for

  • E-Mailed PO Notifications from the Notification Mailer rejected by Vendor

    Greetings All! We have an issue where some of our vendors have spam filters that are rejecting the E-Mailed POs coming from the PO approval WF process. We are currently on R12 and wondering if anyone else has had this issue and what was done to get a

  • Ldap_search_ext_s() produces CORE dump when ATTRS is used

    Hello, we are using DS5.2 on Solaris 10 platform. Core dump are produced by the 'C' funcion ldap_search_ext_s() when we are looking for operational attrs. There is a BUG listed in SUNSOLVE ( Document ID: 4768676 ) but there are not suggested solution

  • Wrongly Closed Posting Period

    Dear Respective SAP Guru's By mistake I have wrongly closed the furture period instead of current period in MMPV transaction ( Close period of material master records). I read SAP notes also for re-open closed period, but i think i am doing something

  • [Solved] - Files in /modprobe.d/ seem to be ignored

    Hi, excuse my english. My problem is that the configuration files in /etc/modprobe.d seem to be ignored by the system. I want that -The module "ums_realtek" is blacklisted or loaded with the parameter "ss_en=0" -The module "snd_hda_intel" is loaded w

  • Problem with airprintin​g between HP 7510e and ipad2

    Have just installed HP7510e printer. I am unable to print directly from ipad to printer. Ipad recognises that printer is available on network and says "contacting printer", then nothing except silence. I can send emails from ipad to printer using HP