Customer-Bapi

Hello Gurus,
Whats the BAPI we can use to update the customer master
tax Classification field.
Regards

Customer master data should only be changed either with ALE or with      
Batch Input. SAP do not support any BAPI's to change customer master      
data. The BAPI's were developed from different applications and were     
designed for their special needs. Please have a look at the SAP     
notes 390045 and 384462 which should explain the proceeding. If you      
want to use Batch Input, please also have a look at note 306275.                                                                               
Another possibility is to use Trx XD99, object KNA1.

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

  • 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

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

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

  • Rollback doesn't work in custom BAPI

    Hi all,
    i have a custom bapi that modify a custom dictionary table; modify goes well, but after that, if i get any problems and i would make rollback, it doesn't work and code in table remains modified !!!!
    Custom bapi is called as follows:
                do.
                  call function 'ZCA_BPXIFDELTA'
                    starting new task gs_file-partnerexternal
                    destination in group p_rfcgr
                    performing return_rfc on end of task
                    exporting
                      data               = gt_data
                      category           = gs_file-partn_cat
                      rec_file           = gs_file_edwh
                      flusso             = flusso
                      g_text             = g_text
                      g_open_log         = g_open_log
                      p_log_l            = p_log_l
                      file_seq           = file_seq
                    exceptions
                      resource_failure      = 4
                      communication_failure = 8
                      system_failure        = 16.
                  case sy-subrc.
                    when 0 .
                      exit .
                    when 4 .    
                    wait until ireturnedtask > istartedtask .
                    when others.
                      exit.
                  endcase.
                enddo.
    may U help me ?
    Please, it's urgent !!!!!
    Kind regards,
    Francesco

    Hi Maksim,
    Based on your description, my understanding is that you want to use custom styles in multiple lines of text field.
    I recommend to check if the column is allowed to use rich text in the custom list.
    Go to List settings > click the column under Columns > check if the Enhanced rich text (Rich text with pictures, tables, and hyperlinks) is selected.
    By the way, you can refer the link below to add custom styles to the ribbon in SharePoint:
    http://rules.ssw.com.au/SoftwareDevelopment/RulesToBetterSharePoint/Pages/CustomStylesForRichHtmlEditor.aspx
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Combine of 3 BAPIs into one Custom BAPI

    Hi All,
    I have a requirement to combine 3 standard BAPI into a Custom BAPI.
    What is the procedure or the steps that has to be followed to do this.
    Help and Suggestions will be much Appreciated.
    Thanks.
    Ram.

    Hi,
       Please check the source code of a function module I have created where I have called a BAPI, please check the parameters I have I have passed in the commented format on the top.
    FUNCTION zvmat_avilability_check.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(SALESDOCUMENT) TYPE  BAPIVBELN-VBELN
    *"  EXPORTING
    *"     VALUE(ENDLEADTME) TYPE  BAPICM61M-WZTER
    *"     VALUE(AV_QTY_PLT) TYPE  BAPICM61V-WKBST
    *"     VALUE(DIALOGFLAG) TYPE  BAPICM61V-DIAFL
    *"  TABLES
    *"      WMDVSX STRUCTURE  BAPIWMDVS
    *"      WMDVEX STRUCTURE  BAPIWMDVE
      DATA : p_ans TYPE c,
             v_txt1 TYPE char35,
             v_txt2 TYPE char10,
             v_txt TYPE char50,
             v_txt3 TYPE char35,
             v_txt4 TYPE char10,
             v_txt5 TYPE char50.
    parameters LIKE spar OCCURS 0 WITH HEADER LINE.
      DATA: v_usrlines TYPE i,
            v_begrow TYPE sy-curow VALUE 1,
            v_ans LIKE sy-tabix.
      TYPES: BEGIN OF ty_wf,
             plant TYPE werks_d,
             material TYPE matnr,
             unit TYPE meinh,
             lgort TYPE lgort_d,
             KWMENG TYPE KWMENG,
             END OF ty_wf.
      TYPES: BEGIN OF ty_final,
             material TYPE matnr,
             plant TYPE werks_d,
             unit TYPE meinh,
             KWMENG TYPE KWMENG,
             av_qty_plt TYPE bapicm61v-wkbst,
             END OF ty_final.
      DATA: wa_wf TYPE ty_wf,
            wa_final TYPE ty_final.
      DATA: it_wf TYPE STANDARD TABLE OF ty_wf,
            it_final TYPE STANDARD TABLE OF ty_final.
      CLEAR wa_wf.
      SELECT  werks
              matnr
              meins
              lgort
              KWMENG
              FROM vbap
              INTO TABLE it_wf
              WHERE vbeln EQ salesdocument.
      IF sy-subrc EQ 0.
        LOOP AT it_wf INTO wa_wf.
          CALL FUNCTION 'BAPI_MATERIAL_AVAILABILITY'
            EXPORTING
              plant                    = wa_wf-plant
              material                 = wa_wf-material
              unit                     = wa_wf-unit
      CHECK_RULE               =
              stge_loc                 = wa_wf-lgort
      BATCH                    =
      CUSTOMER                 =
      DOC_NUMBER               =
      ITM_NUMBER               =
      WBS_ELEM                 =
      STOCK_IND                =
      DEC_FOR_ROUNDING         =
      DEC_FOR_ROUNDING_X       =
      READ_ATP_LOCK            =
      READ_ATP_LOCK_X          =
      MATERIAL_EVG             =
           IMPORTING
             endleadtme               = endleadtme
             av_qty_plt               = av_qty_plt
             dialogflag               = dialogflag
      RETURN                   =
            TABLES
              wmdvsx                   = wmdvsx
              wmdvex                   = wmdvex .
          wa_final-plant  = wa_wf-plant.
          wa_final-material  = wa_wf-material.
          wa_final-unit  = wa_wf-unit.
          wa_final-av_qty_plt  = av_qty_plt.
          wa_final-KWMENG = wa_wf-KWMENG.
          APPEND wa_final TO it_final.
        ENDLOOP.
        DESCRIBE TABLE it_final LINES v_usrlines.
        v_usrlines = v_begrow + v_usrlines.
        CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
          EXPORTING
            endpos_col   = 60
            endpos_row   = v_usrlines
            startpos_col = 1
            startpos_row = v_begrow
            titletext    = 'USER DISPLAY'
          IMPORTING
            choise       = v_ans
          TABLES
            valuetab     = it_final
          EXCEPTIONS
            break_off    = 1
            OTHERS       = 2.
        IF sy-subrc EQ 0.
          READ TABLE it_final INTO wa_final INDEX v_ans.
          v_txt1 = 'MATERIAL QUANTITY AVAILABLE IS'.
          v_txt2 = wa_final-av_qty_plt.
           v_txt3 = 'MATERIAL QUANTITY ORDERED'.
          v_txt4 = wa_final-KWMENG.
          CONCATENATE v_txt1 v_txt2 INTO v_txt.
          CONCATENATE v_txt3 v_txt4 INTO v_txt5.
          CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'
            EXPORTING
             titel              = 'MATERIAL AVAILABILTY STATUS'
              textline1          = v_txt5
              TEXTLINE2          = v_txt
             start_column       = 25
             start_row          = 6.
        ENDIF.
      ELSE.
        MESSAGE i001(zd) WITH 'No material ordered for for the current sales order'.
      ENDIF.
    ENDFUNCTION.
    With best wishes,
    Murthy.

  • Custom Bapi

    hi folks,
    can anyone explain as how to create custom BAPI from scratch? In HR there are a lot of standard BAPIs available - Is there any scenario of creating custom BAPI from scratch in HR module.
    If any info on this.. it would really help.
    Thanks
    Vinu

    hi, you should create a ZBAPI_XXX in se37.
    And also pay attention to some restriction on BAPI function rule. You should follow them if you want to create a FM as BAPI. E.G. as a BAPI , it should be a RFC enable.
    And after that, create a BO in SWO1  (O, not zero).
    hang the BAPI you create formerly under this BO.
    Only after you realse it, you BO and BAPI will appear in BAPI explorer.
    You can find the details in tcode BAPI, in 'Project' tab, it has a guide on how to create customize BAPI.
    thanks

  • 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

  • Null Pointer Exception while pointing to a custom BAPI.

    Hello ,
    I am on EP7.0 ERP05 NW04s and trying to modify the ESS Address application by pointing to a custom Function Module rather than the standard one , and getting a message like "Attempt to send a message to a non-object value".
    and it was working fine for the standard one.
    Is it because the custom BAPI is returning a null structure value .....?
    Any help would be highly appreciated.

    Hi ,
    Did ur problem got resolved . I am also facing the same problem.
    Please do help also.

Maybe you are looking for

  • ITunes will not open on my iMac

         There were updates installed for iTunes and now I cannot open up my iTunes......I'm not sure what has happened. I am able to go to "Finder" and click on it but that's about the extent of it. I cannot open it from any other file either, i.g. "App

  • Get the Picture object location path from crystal report using CRAXDRT.DLL

    Post Author: hpatel_it CA Forum: Crystal Reports Hi All,I am working on one project - Crystal report to SQL Report conversion and I am using CRAXDRT.DLL to open and read crystal report.I have done conversation of all controls but I am not able to get

  • Too much time

    This trial offer is a long one.

  • Printer said he had to re-create entire file

    Hi, Made a file for a friend in illustrator. Saved as EPS, two color. First time they sent the file to the printer they said they needed the font's outlined. Did that and re-sent it. Next time around they said they had to re-create the entire file, s

  • Image border property

    Hi I just upgraded to Dreamweaver 12.2 and want to know what happened to the tag panel where I could add an image border? Has it be "depreciated", moved or integrated with a different dialog panel? Thanks Rose