Trying to update the business partner using BAPI_BUPA_CENTRAL_CHANGE
Hi all ,
i am tryibg to create a function module which updates the first name, last name, email id of the business partner that i already created. the return table shows zero entries and i dont find any udate being done for the business partner if i go and check in the respective table. can some one tell me what is the problem.
Import paramters for my function module are business partner number, first name, last name, email -d.
FUNCTION Z_CHANGE_BP2.
""Local Interface:
*" IMPORTING
*" VALUE(CUST_NO) TYPE BU_PARTNER
*" VALUE(FIRST_NAME) TYPE BU_NAMEP_F
*" VALUE(LAST_NAME) TYPE BU_NAMEP_L
*" VALUE(EMAIL_ID) TYPE AD_SMTPADR
*" TABLES
*" IT_RETURN2 STRUCTURE ZRETURN1 OPTIONAL
*" IT_RETURN4 STRUCTURE ZRETURN1 OPTIONAL
Defining the internal tables used in BAPI BAPI_BUPA_CENTRAL_CHANGE.
DATA: it_CENTRALDATA TYPE STANDARD TABLE OF BAPIBUS1006_CENTRAL WITH HEADER LINE.
DATA: it_CENTRALDATAPERSON TYPE STANDARD TABLE OF BAPIBUS1006_CENTRAL_PERSON WITH HEADER LINE.
DATA: it_E_MAILDATANONADDRESS TYPE STANDARD TABLE OF BAPIADSMTP WITH HEADER LINE.
DATA: it_RETURN1 TYPE STANDARD TABLE OF BAPIRET2 WITH HEADER LINE.
DATA: it_RETURN3 TYPE STANDARD TABLE OF BAPIRET2 WITH HEADER LINE.
****Values for seacrh term1, search term2 of it_CENTRALDATA
it_CENTRALDATA-SEARCHTERM1 = FIRST_NAME.
it_CENTRALDATA-SEARCHTERM2 = LAST_NAME.
APPEND it_CENTRALDATA TO it_CENTRALDATA.
first name, last name of it_CENTRALDATAPERSON
it_CENTRALDATAPERSON-FIRSTNAME = FIRST_NAME.
it_CENTRALDATAPERSON-LASTNAME = LAST_NAME.
APPEND it_CENTRALDATAPERSON TO it_CENTRALDATAPERSON.
Value for E_MAIL of it_TELEFONDATANONADDRES-
it_E_MAILDATANONADDRESS-E_MAIL = EMAIL_ID.
APPEND it_E_MAILDATANONADDRESS TO it_E_MAILDATANONADDRESS.
Call the BAPI BAPI_BUPA_CENTRAL_CHANGE
CALL FUNCTION 'BAPI_BUPA_CENTRAL_CHANGE'
EXPORTING
BUSINESSPARTNER = CUST_NO
CENTRALDATA = it_CENTRALDATA
CENTRALDATAPERSON = it_CENTRALDATAPERSON
TABLES
E_MAILDATANONADDRESS = it_E_MAILDATANONADDRESS
RETURN = it_RETURN1.
Call Commit work
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN = it_RETURN3.
ENDFUNCTION.
Hi,
Pass values to the Parameter CENTRALDATA_X in your FM 'BAPI_BUPA_CENTRAL_CHANGE'
Something Like:
CALL FUNCTION 'BAPI_BUPA_CENTRAL_CHANGE'
EXPORTING
businesspartner = bpartner
centraldata = centraldatadetail
centraldataperson = centraldataperson
CENTRALDATAORGANIZATION =
CENTRALDATAGROUP =
centraldata_x = centraldata_x
centraldataperson_x = centraldataperson_x
CENTRALDATAORGANIZATION_X =
CENTRALDATAGROUP_X =
TABLES
return = return.
Refer to:
problem with 'BAPI_BUPA_CENTRAL_CHANGE'
http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bapi-bupa_central_change-need-help-549117
Similar Messages
-
How to update the business partner title using the function module
Hi ,
I have to update the business partner title to Mr or Ms based on the gender.
If BP is male title should be updated as Mr else Ms.
Please provide some inputs on which function module to use to do it in mass update.I have to search the BP's whose title is not created and i have to change those titles to Mr or Ms.Hello,
Try with BBP_USER_CHANGE_FIELDS :
- set CHANGE_FORM_OF_ADDRESS,
- put corresponding key you want (see TSAD3 table) in FORM_OF_ADDRESS_KEY.
Regards.
Laurent. -
Getting error message when i am trying to update the excel file using script task in ssis package
Hi Guys,
I am getting error message when I am trying to update the excel. Please find the error messages as below
Error at Update File [Update File]: Failed to compiled scripts contained in the package. Open the package in SSIS Designer and resolve the compilation errors.
Error at Update File [Update File]: BC30002 - Type 'Microsoft.Office.Interop.Excel.Application' is not defined., ScriptMain.vb, 32, 32
Error at Update File [Update File]: BC30002 - Type 'Microsoft.Office.Interop.Excel.Workbook' is not defined., ScriptMain.vb, 33, 25
Error at Update File [Update File]: The binary code for the script is not found. Please open the script in the designer by clicking Edit Script button and make sure it builds successfully.
Warning at Update File [Update File]: Found SQL Server Integration Services 2008 Script Task "ST_050fcae972904039b4f0fe59b7528ece" that requires migration!
and the code that I am using is
Dell - Internal Use - Confidential
' Microsoft SQL Server Integration Services Script Task
' Write scripts using Microsoft Visual Basic
' The ScriptMain class is the entry point of the Script Task.
Imports System
Imports System.Data
Imports System.Math
Imports Microsoft.SqlServer.Dts.Runtime
Imports Microsoft.Office.Interop.Excel
<System.AddIn.AddIn("ScriptMain", Version:="1.0", Publisher:="",
Description:="")> _
<System.CLSCompliantAttribute(False)> _
Partial
Public Class ScriptMain
Inherits Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
Enum ScriptResults
Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success
Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
End Enum
Public Sub Main()
Dts.TaskResult = ScriptResults.Success
'Dim proc As System.Diagnostics.Process
'kill all instances of excel
'For Each proc In System.Diagnostics.Process.GetProcessesByName("EXCEL")
' proc.Kill()
'Next
Dim excelnacomm As
New Microsoft.Office.Interop.Excel.Application
Dim wbnacomm As Microsoft.Office.Interop.Excel.Workbook
wbnacomm = excelnacomm.Workbooks.Open("http://test.xlsx")(renamed
the excel)
wbnacomm.RefreshAll()
wbnacomm.Save()
wbnacomm.Close()
excelnacomm.Quit()
Runtime.InteropServices.Marshal.ReleaseComObject(excelnacomm)
End Sub
End
Class
Please let me know what could be the reason
Smash126Download:
Microsoft Office 2010: Primary Interop Assemblies Redistributable
How to: Add or Remove References By Using the Add Reference Dialog Box / How to:
Add and Remove References in Visual Studio (C#)
Olaf Helper
[ Blog] [ Xing] [ MVP] -
Error while trying to update the XML template using XML Publisher Administrator
Hello Folks,
We are on R12.1.3
I changed a condition in a report and trying to upload the new XML template using XML Publisher Administrator.
when i click the Apply button, it is throwing an error 'Bad Request'
Navigation : XML Publisher Administrator > Data Definitions > query the report
Click on the name of the report > click 'Update file' besides Data Template > Choose file > Click Apply
I am getting the below error
Bad Request
Your browser sent a request that this server could not understand.
Now, i could not upload a new XML template.
Am I doing anything wrong.
regards,
Krisuser10163762 wrote:
Thank you Eugen and Hussein.
The problem is not with the template.
It seems to be a problem in that particular instance.
Uploaded it in a different instance.
However once i run the program, i cannot view the output as the browser window flashes and disappears.
My colleague says , it is to do with the trusted site to download something from the browser.
Can you please guide me on how to fix this ?
http://bit.ly/1k8e2vi
Thanks,
Hussein -
Dear friends!!!
I am working on a problem in which i am supposed to merge the similar bp... I have the target bp in one internal table and source in another internal table i have programatically merge the data from source internal table to target internal table... now i am supposed to update the database table respect to target bp. here to update bp i can use.. bus_ei_extern structure and FM bupa_inbound_main_save... or i am supposed to lock the db tables and update them directly... would you like to tell me what will be more convinient to me.. as I have target bp in internal table and it is not type bus_ei_extern, so please tell me if i update all the db tables directly without using bus_ei_extern structure will it be give me any trouble,,,,,.... please reply me any suggestion, code, article will be greate help of mine
thanking you,,,,
regards
NaimYou should never update standard SAP table directly. Please avoid it as long as possible. If anything goes wrong in your system, SAP will not support it.
Table update is always the easiest option. But that should not be used, especially on critical master data information like BP.
Regards,
Kaushal -
Bank and account error when adding a business partner using DTW
I need your help please. I am trying to add a business partner using DTW but the load fails with a message "Bank and account do not exist in the company Application-defined or object-defined error65171".
The related fields that I am using in the business partner file (csv) are:
AccountNo
BankCode
Branch
Country
I am sure that the bank and account exist because previously I manually added a customer with the same bank and data that I am using in the dtw interface.
SAP-BO 2005A SP01 PL27
Best Regards
Jorge ManzoHi,
You may run a query first to find out what are the current data in OCRD:
SELECT
CardCode,
AccountNo,
BankCode,
Branch,
Country
FROM OCRD
Thanks,
Gordon -
Error in creating Business Partner using FLBPD1
Dear All,
While creating the Business partner using tcode FLBPD1, I get the following error.
Also I need help to understand how to start Post Processing Office.
No business partner could be created for customer CFM0031
Message no. CVIC_UI018
Diagnosis
No business partner could be created from the customer selected.
System Response
An error occurred when creating a business partner from the customer selected. This error prevents data from being transferred and saved. This could be due to the following:
Fields have been left blank in the customer that are set as required entry fields for the business partner.
Settings for assigning Customizing values for the customer to the business partner are incorrect.
Procedure
Start the Post Processing Office and check the error message. Make the necessary corrections.
Regards
ArpitaHello Arpita,
I faced exactly the same issue and we had to check the entire customer/vendor master data synchronization configurations. We found that many of them were missing when we upgraded to ECC 6.0.
I would suggest you go through the following SAP notes and check whether all configs are in place or not. Then try again.
Note 954816, 956054 and then also 1077616.
Hope the first two notes will be able to help you cope with the issue.
Regards,
Suvarghya -
Urgently, how to use the EEWB to ad new field in the business partner page
Hello All
I am working on CRM 5.0 EEWB
I am trying to add new field in the business partner page I followed the steps for creating the project and the extension but I faced some problems
1-I chose the package BBP_BUPA_MAIN BBP Business Partner General
I created two transport requests for the workbench and the customizing
2- I created an extension with EEW Bus. Object: BUPA and extension type: ADD_NEW_FIELDS
3- I got an error that <b>"Object DOMA ZBU_009XN27S is in the name range reserved for customers. The object cannot be assigned to package BBP_BUPA_MAIN, since it belongs to a different name range or namespace"</b>
I tried to change the package but the same problem occurs and if I choose a custom made business package I get a similar error but, before the wizard starts
I want to know the exact steps to create new field using the EEWB
Regards
Jacopo FrancoisHi,
Error info: "Object DOMA ZBU_009XN27S is in the name range reserved for customers. The object cannot be assigned to package BBP_BUPA_MAIN, since it belongs to a different name range or namespace"
Clearly states that you need to assign some different name to the package which is not reserved by SAP as Z### is already reserved by SAP and thus you will not be able to create the enhancement in the same.
Best Regards,
Pratik Patel
<b>Reward with Points</b>! -
I am using iPhone 3GS. It is currently updated to IOS4.3. I am trying to update the OS to IOS5 on iTunes. It downloads the software, but it gives an error - network timed out. I have tried this multiple times. But, the end result is same.
Please help & advise as how I can upgrade the iPhone to IOS5.Temporarily turn off or disable your firewall and anti-virus software and try the download again.
Stedman -
I got this iphone from a guy and everytime i tried to update the applications stored in this phone it keeps asking me the password that the guy used to use, even thou i created a new apple ID of my own and updated the account of icloud and everything in this iphone with the new apple ID, it still asks me the password of the account that the guy used to use whenever i tried to update the applications, and i cant find the guy who gave me this iphone...wt should i do???
Apps are permanently tied to the AppleID that downloaded them and cannot be transferred to another. Best thing to do is delete the apps and download those you want or need under your AppleID.
-
I tried to update the App that I purchased but the message told me that my Apple account is not valid for use outside of US and I must switch back to US store to able to do it. How can I switch the account from foreign countries back to US?
On your phone (from http://support.apple.com/kb/ht1311):
Change your iTunes Store country
Sign in to the account for the iTunes Store region you'd like to use. Tap Settings > iTunes & App Stores > Apple ID: > View Apple ID > Country/Region.
Follow the onscreen process to change your region, agree to the terms and conditions for the region if necessary, and then change your billing information. -
What is the use of the business partner cockpit ?
Hello All
What is the use of the business partner cockpit ?
Regards
Jacopo FrancoisHi,
BP cockpit is also called as BP factsheet. It gives the 360 degree view of the BP transations. Its a BSP application on GUI. To enable the factsheet you will have to activate the relevent BSP services in sicf.
For more informatio refer
http://help.sap.com/saphelp_crm50/helpdata/en/8d/b65a42a0836255e10000000a155106/content.htm
Reward points if helpful.
Shridhar -
HI,
I am trying to update the Subcontracting type of PO using 'BAPI_PO_CHANGE'. However i am able to update this field .
Can someone advice me how to do.
My code sample is :
wl_poitem-po_item = l_ebelp.
wl_poitemx-po_item = wl_poitem-po_item.
wl_poitemx-po_itemx = c_x.
*C--material procurement indicator need to update
* the type of procurement
wl_materialind-po_item = wl_poitem-po_item.
wl_materialindx-po_item = wl_poitem-po_item.
wl_materialindx-po_itemx = c_x.
wl_materialind-item_no = wl_poitem-po_item.
wl_materialindx-item_no = wl_poitem-po_item.
wl_materialindx-item_nox = c_x.
wl_materialind-mat_provision = 'S'.
wl_materialindx-mat_provision = c_x.
wl_materialind-sched_line = '0001'.
wl_materialindx-sched_line = '0001'.
wl_materialindx-sched_linex = c_x.
wl_materialind-entry_quantity = wl_poitem-quantity.
wl_materialindx-entry_quantity = c_x.
wl_materialind-plant = wl_poitem-plant.
wl_materialindx-plant = c_x.
wl_materialind-material = wl_poitem-material.
wl_materialindx-material = c_x.
wl_materialind-item_cat = 'L'.
wl_materialindx-item_cat = c_x.
wl_extensionin-structure = 'BAPI_TE_MEPOITEM'.
wl_extensioninx-structure = 'BAPI_TE_MEPOITEMX' .
wl_extensionin-valuepart1+222(1) = '1'.
wl_extensioninx-valuepart1+24(1) = c_x.
APPEND wl_poitem TO tl_poitem.
CLEAR wl_poitem.
APPEND wl_poitemx TO tl_poitemx.
CLEAR wl_poitemx.
APPEND wl_materialind TO tl_materialind.
CLEAR wl_materialind.
APPEND wl_materialindx TO tl_materialindx.
CLEAR wl_materialindx.
APPEND wl_extensionin TO tl_extensionin.
CLEAR wl_extensionin.
APPEND wl_extensioninx TO tl_extensioninx.
CLEAR wl_extensioninx.
CALL FUNCTION 'BAPI_PO_CHANGE'
EXPORTING
purchaseorder = l_ebeln
versions = wa_version
TABLES
return = tl_return
* poitem = tl_poitem
* poitemx = tl_poitemx
pocomponents = tl_materialind
pocomponentsx = tl_materialindx
extensionin = tl_extensionin
extensionout = tl_extensioninx.
READ TABLE tl_return WITH KEY type = 'E' TRANSPORTING NO FIELDS.
IF sy-subrc NE 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' .
ENDIF.In the above question i mean- I am UNABLE to update
-
i'am using iphone 5, i tried to update the ios 8.0.2 using the shift key in itunes update @ windows 8 i have the file which i downloaded, but it says that firmware version is not compatible. what can i do for it . help me friends
Hello vinoth1986,
After reviewing your post, I have located an article that can help in this situation. It contains a number of troubleshooting steps and helpful advice concerning update issues:
If you can't update or restore your iPhone, iPad, or iPod touch
Thank you for contributing to Apple Support Communities.
Cheers,
BobbyD -
I had deleted my Apps Icon from the phone as I was trying to update the new version iOS4.3.
However, after deleteing the Icon, I am not able to install the Apps Messenger again because I am not able to use the IOS.4.3 diagnostic password sent via email.
Installation was rejected because I need the iOS.4.3
Thanks for your help
MichaelThat situation went from inconvenient to complicated quickly. Wait for any pending orders to drop off, wait for things to clear up, wait till your upgrade comes up and then upgrade when your contract is fulfilled. I would have suggested a replacement phone, I know, with only a month left why couldn't you just upgrade early, but these situations where people try to upgrade early always end horribly and once a phone order starts, it almost cannot finish until something winds up shipped received and returned. Sorry this happened the way it did. Definitely not efficient.
Maybe you are looking for
-
Spry Collapsible panel - open and closed default question...
I am using a Spry Collapsible panel in a vertical nav menu (DW CS4) and it's in a template for my site. I want it to be closed as default on the Home page, but when a visitor clicks to open it and selects their option, I would like it to remain open
-
Data links Questions on Reports Builder
We are currently using Reports Builder 10.1.2.3.0. We are trying to create a topology report. So, we have about 5 queries in the data models which are linked using a query links with Child Destination column in the child query. So, here is the exampl
-
hi guys...im quite new to java swing..i have this problem and hope u can help me with this.. i now creating an Help frame....i want to have it using the hard coding way...now i want to modify the buttons(or clickable thingy) of the Jframe.. These are
-
Init: dependency based daemon starting?
note: I saw http://bbs.archlinux.org/viewtopic.php?id=69086, but i have no idea how the implementation is done (I don't understand Italian ) the current daemon backgrounding feature in rc.conf is pretty cool to save time, but: 1) you have no feedback
-
Hello Community Network, I want to transmit data of a separate table to the CRM B2B shopping basket header. I only found functionalities to add fields to existing structures of the shopping basket header, but not to add complete new tables. Do you ha