Prpblem with 'BAPI_BUPA_CENTRAL_CHANGE'
Dear friends
I am updating a field using the bapi_bupa_central_change bapi. I m updating but000 tables xdele archive flag indicator to yes (x). My problem is i am failed to update the table. would you like to tell me where i am making mistakes..
any correstion or suggetion will be great help of mine... thanking you,,,
regards naim
i am giving you the code.
data: wa_bpartner type BAPIBUS1006_HEAD,
wa_arch_flag type BAPIBUS1006_CENTRAL.
loop at i_merge_p into wa_i_merge.
read table i_merge_p into wa_i_merge with key idnumber = wa_i_casep-idnumber.
if sy-subrc = 0.
wa_bpartner-bpartner = wa_i_merge-partner.
wa_arch_flag-CENTRALARCHIVINGFLAG = 'X'.
endif.
data : cdata like BAPIBUS1006_CENTRAL .
cdata = wa_arch_flag-CENTRALARCHIVINGFLAG.
CALL FUNCTION 'BAPI_BUPA_CENTRAL_CHANGE'
EXPORTING
BUSINESSPARTNER = wa_bpartner-bpartner
CENTRALDATA = cdata.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = ''
IMPORTING
RETURN = Return_L.
endloop.
Hi Naim,
Refer the following piece of code and match it with yours. Here whatever fields of central data you need to update, pass the flag 'X' for those fields in centraldata_x.
*& Form f4116_change_central_data
* Change the Central Data
FORM f4116_change_central_data.
DATA : wa_centraldataorg_x TYPE bapibus1006_central_organ_x,
wa_centraldata_x TYPE bapibus1006_central_x.
CLEAR : wa_return_bp.
REFRESH : git_return_bp.
wa_centraldataorg_x-legalorg = gc_x.
wa_centraldataorg_x-legalform = gc_x.
wa_centraldataorg_x-name1 = gc_x.
wa_centraldata_x-partnertype = gc_x.
wa_centraldata_x-title_key = gc_x.
wa_centraldata_x-partnerexternal = gc_x.
* Update the Central Information for the Business Partner
CALL FUNCTION 'BAPI_BUPA_CENTRAL_CHANGE'
EXPORTING
businesspartner = gv_customer
centraldata = wa_central_data
centraldataorganization = wa_centraldataorganization
centraldata_x = wa_centraldata_x
centraldataorganization_x = wa_centraldataorg_x
TABLES
return = git_return_bp.
READ TABLE git_return_bp INTO wa_return_bp
WITH KEY type = gc_error.
IF sy-subrc EQ 0.
* Set IDOC in error(Business Partner Change Failed)
PERFORM fill_err_log USING gc_x gc_space
gc_i gc_146
gv_flag = gc_x.
ENDIF.
ENDFORM. " f4116_change_central_data
<b>Reward points if it helps.</b>
Message was edited by: Amit Mishra
Similar Messages
-
New Prpblem with Repairing disk
When one of my apps ( from an external HD ) wouldn't open, I ran Disc Utilty on this HD and got the following message:
*Repairing disk failed with error Could not unmount disk*
Can someone explain what this means, and suggest a course of action to remedy this ? Yesterday, I installed a new part to this programme, though I ran Disc Utilty afterwards and everything was OK, and i had the programme up and running without any problems.
Thanks, SeaDreamYou were booted from the HD and repairing the external? Usually, when I get that message, I just try again and it unmounts. DU can't do repairs without the disc being unmounted. That's why the Repair button on the drive you're booted from will be dimmed and unavailable. Very crude medical analogy: like disconnecting your heart and trying to work on it without having another heart in its place to keep you alive.
-
I have an apple 1 and an apple tv. the connection is a problem. sometimes I get connection and sometimes not. and there is no logic in the system.
my son was here was his I-phone, and he had no prpblems with the connection with my apple tv.
so what is the problem? and what can I do about it.?You cannot enable mirroring from within an app. You must double tap home button, swipe left to right to bring up airplay, then select Apple TV and toggle ON mirroring
-
BAPI_BUPA_CENTRAL_CHANGE: Business partner does not exist
Hello,
I'm trying to change a business partner, which I created with BAPI_BUPA_CREATE_FROM_DATA.
But I get the error message "Business partner does not exist"
I do following:
1. create the BP with the BAPI_BUPA_CREATE_FROM_DATA
get the BUSINESSPATNER- number
2. fire BAPI_TRANSACTION_COMMIT.
In the SAP-GUI transaction BUP3 I can see my BP, ok
3. I try to change this BP with BAPI_BUPA_CENTRAL_CHANGE
and I get an error "Business partner does not exist"
Why?
I'm using JCO, I used to set BUSINESSPARTNER with and without leading zero - it doesn't work.
Can some one give me an advice?
Thanks,
Sergej BergHi,
The "VALID_DATE" should be set to the date of execution (at least this is what I'm doing in my system).
If you execute it via SE37 you can give it in the format of DDMMYYYY, but if you are testing an IDOC via WE19 you have to give it in the format of YYYYMMDD.
Enjoy,
Ayal. -
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 -
Business Partner update problem
We are using the BAPI FM BAPI_ISUPARTNER_CHANGE to update the Email address of the BP.
On call to the BAPI the followign parameters are passed:
PARTNER = bp value
PARTNERDATA = mandatory stucture with blank values
PARTNERDATAX = mandatory stucture with blank values
E_MAILDATANONADDRESS-E_MAIL = new email id
E_MAILDATANONADDRESSX-E_MAIL = X.
A BAPI_TRANSACTION_COMMIT is called after the above call.
But the BP email is not getting updated. Appreciate ur ideas.I think that you should also provide the BP ID for structure PARTNERDATA as it contains the information for the BP that you want to change.
Alternatively, you can try to use FM "BUPA_CENTRAL_CHANGE" to update the email address for the BP. Check also following links for explanations about how to use this FM:
problem with 'BAPI_BUPA_CENTRAL_CHANGE'
http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bapi-bupa_central_change-need-help-549117
Hope it helps. -
P.S.
I feel as though I am forced into repairing the iphone before I can backup the information (photos, videos, contacts). If the apple ID on the device is the same as the one on my iMac I do not understand why I have to unlock the iphone by typing in the 4 digit passcode. This is a little ******** as having the screen break seems to be the usual prpblem with the iphone, I want to be able to backup my files when I feel the obvious need to do so (eg. when it breaks)! I also believe I shouldn't have to use other apps for backing it up (which I obviously have to pay for).. I am rather angry with this issue.Okay folkes, you were right and I was wrong.. I admit it. But I was pretty mad though when I tryed to backup the last few contacts I needed for work and couldn't do so. Worst things are when something gets broken (by me or whatever) when there is an emergency. I needed the contacts off of that phone real fast and couldn't do it, thats what got me real mad. And btw I am a Russian living in Moscow and instead of having an official Apple store we have shopes called ReStore who resell apple devices with ridiculous prices, same thing with the repairs. It is cheaper to sometimes buy a new iphone then repair an old one.. So there.. but I repaired it and now happy again with my apple device.. Also I know the itunes and icloud are free and I do back it up, this time however I couldn't use them and had to try the iphone extractor app, which is not free. There.. Thanks for the attention every1
-
System Preference icons corrupted after 10.4.7?
Following installation of 10.4.7, there's prpblems with the graphic card: some icons, particularly in System Preferences, disappear or appear completely garbled.
Has anyone the same issue and found a fix?
Thank you!Repairing Permissions and/or Resetting the Power Management Unit (PMU) may resolve certain issues. It can’t hurt so perhaps it’s worth a shot.
PERMISSIONS
Go to: Applications/Utilities/Disk Utility
Select: your Hard Drive
Select: the First Aid tab
Select: Repair Permissions
PMU
Resetting the Power Management Unit (PMU) is known to resolve certain anomalies and may well help with your symptom.
If the computer is on, turn it off.
Disconnect the AC Adapter and remove the computer's battery.
Press and hold down the power button for 5 seconds and then release the button.
Reconnect the battery and AC Adapter.
Press the Power button to restart the computer.
Ref: http://docs.info.apple.com/article.html?artnum=303319
User's Guide: page-95
Regards,
MBP-15" / 2.16 / W8612... Mac OS X (10.4.6) G4 Tower (OS 9/10), Dell 620 WorkStation (XP Pro), Gateway P4 (XP Home) -
Httpservice url property problem
hello everyone
I need to include non latin characters in my httpservice url property. It points to a file. (http://www.myurl.com/nonLatinCharactersInFilename.xml)And its giving me errors.
When I check the error, the url appears like so: http://www.myurl.com/??????????????????.xml
Im using these character set everywhere in the code and there are no problems except when im sending the httpservice call.
I also have same characters in the result event. and theres no prpblem with that.
Any ideas how I can include these file names in the url property? or is there another way?
In my app the user clicks a list (of file names with non latin characters) and an http service is sent to load the corresponding file to a richEditableText component.
every thing except the non latin character part works fine
any help in the right direction will be appreciated.
thanxHello,
I am not shure, but I think you have to use a webserver, with
a folder directing to your desktop. Then you can use something like
that:
http://localhost/Desktop.
Otherwise you can try file:///C://Documents and
Settings/[username]/Desktop/flex/...xml
I hope this will help -
Can't connect or create a log file
hi there
I can connect to my esxi 5.1 no issue with the onxy app - but connecting with the vsphere client on 1545 fails with "the request failed because of a connection failure" screenshot attached. If I try to enable logging to see whats going on the file doesnt get created, in any directory I choose. looks like a simple connection issue but credentials/ip are good. I noticed that when i make the initial connection with the onyx app it doesnt prompt for credentials to the esxi which i thought a bit odd, just goes straight to "connected..." is this by design?
Thanks!
DB.Hi,
If you had a prpblem with BT Yahoo Mail after your upgrade to 6.1.3, then please see me post I put in yesterday:
Kingy123
Re: Email Crashes Since iPhone Upgrade to 6.1.3
Mar 26, 2013 7:28 AM (in response to James Ward4)
I could not use my BT Yahoo after upgrade, and even after deleting the account from iPhone I could not add the Account correctly either.
It took several attempts and tried various Ports etc until it worked.
See my solution and if you still need help drop me a note.
Hopefully that will help. -
Apple TV Router 104bits encryption connection issues with laptop
Hi, we have set up a wep-104 encrypted office Wifi (AppleTV with TimeCapsule router) N-band network, WPA2-PSK (AES encryption). Although I set it up as WPA2-PSK, on a wifi sniffer I ran its identified as wep-104 for some reason (104bits, that is).
This wifi has a problem with one of our computers, which uses an external USB wifi adapter, TP-Link TL-WN7200ND USB adapter, and driver version TL-WN7200ND_WHQL_100730 (I also tried TL-WN7200ND_100513). This computer connects to all other wifis I can throw at it, 64 bit and 128 bit with no prpblems, so I know the adapter is not the issue. After inserting the password, the adapter just "thinks" for a while and then just goes back to showing "X" on its icon (the computer is using XP but that is irrelevat I think). The adapter has the latest firmware and drivers. Is it possible to switch AppleTV to a more often used 128bit security (it could be this adapter just can't work with 104bit).
ThanksUpdate: if I choose an 8 character password for WEP Transitional security network instead of a 13 character one for WEP/WPA2 Personal, it works. Why is that? thanks
-
TimeCapsule router104bits encryption connection issues with laptop
Hi, we have set up a wep-104 encrypted office Wifi ( TimeCapsule router) N-band network, WPA2-PSK (AES encryption). Although I set it up as WPA2-PSK, on a wifi sniffer I ran its identified as wep-104 for some reason (104bits, that is).
This wifi has a problem with one of our computers, which uses an external USB wifi adapter, TP-Link TL-WN7200ND USB adapter, and driver version TL-WN7200ND_WHQL_100730 (I also tried TL-WN7200ND_100513). This computer connects to all other wifis I can throw at it, 64 bit and 128 bit with no prpblems, so I know the adapter is not the issue. After inserting the password, the adapter just "thinks" for a while and then just goes back to showing "X" on its icon (the computer is using XP but that is irrelevat I think). The adapter has the latest firmware and drivers. Is it possible to switch AppleTV to a more often used 128bit security (it could be this adapter just can't work with 104bit).
ThanksUpdate: if I choose an 8 character password for WEP Transitional security network instead of a 13 character one for WEP/WPA2 Personal, it works. Why is that? thanks
-
BAPI_BUPA_CENTRAL_CHANGE update in FM
Hi all,
I am entering an BP no in FM BAPI_BUPA_CENTRAL_CHANGE . The FM is Running but not showing any result in Return table and the data is not getting changed too.Why is it so? any ideas guys?.
Please reply soon.DATA: LT_RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'BUPA_ACT_ANALYZE_FOR_BAPI'
EXPORTING
IV_BP_NUMBER = BUSINESSPARTNER
IV_ACTIVITY = 'CHAN'
TABLES
CT_RESULTS = LT_RETURN.
LOOP AT LT_RETURN WHERE TYPE CA 'AE'.
EXIT.
ENDLOOP.
IF LT_RETURN IS INITIAL.
IF NOT ADDRESSDUPLICATES IS REQUESTED.
DUPLICATE_MESSAGE_TYPE = '-'.
endif.
CALL FUNCTION 'BUPA_CENTRAL_CHANGE'
EXPORTING
IV_PARTNER = BUSINESSPARTNER
IS_DATA = CENTRALDATA
IS_DATA_PERSON = CENTRALDATAPERSON
IS_DATA_ORGAN = CENTRALDATAORGANIZATION
IS_DATA_GROUP = CENTRALDATAGROUP
IS_DATA_X = CENTRALDATA_X
IS_DATA_PERSON_X = CENTRALDATAPERSON_X
IS_DATA_ORGAN_X = CENTRALDATAORGANIZATION_X
IS_DATA_GROUP_X = CENTRALDATAGROUP_X
IV_VALID_DATE = VALID_DATE
IV_DUPLICATE_MESSAGE_TYPE = DUPLICATE_MESSAGE_TYPE
TABLES
IT_ADTEL_ADDR_IND = TELEFONDATANONADDRESS
IT_ADFAX_ADDR_IND = FAXDATANONADDRESS
IT_ADTTX_ADDR_IND = TELETEXDATANONADDRESS
IT_ADTLX_ADDR_IND = TELEXDATANONADDRESS
IT_ADSMTP_ADDR_IND = E_MAILDATANONADDRESS
IT_ADRML_ADDR_IND = RMLADDRESSDATANONADDRESS
IT_ADX400_ADDR_IND = X400ADDRESSDATANONADDRESS
IT_ADRFC_ADDR_IND = RFCADDRESSDATANONADDRESS
IT_ADPRT_ADDR_IND = PRTADDRESSDATANONADDRESS
IT_ADSSF_ADDR_IND = SSFADDRESSDATANONADDRESS
IT_ADURI_ADDR_IND = URIADDRESSDATANONADDRESS
IT_ADPAG_ADDR_IND = PAGADDRESSDATANONADDRESS
IT_ADCOMREM_ADDR_IND = COMMUNICATIONNOTESNONADDRESS
IT_ADCOMUSE_ADDR_IND = COMMUNICATIONUSAGENONADDRESS
IT_ADTEL_ADDR_IND_X = TELEFONDATANONADDRESSX
IT_ADFAX_ADDR_IND_X = FAXDATANONADDRESSX
IT_ADTTX_ADDR_IND_X = TELETEXDATANONADDRESSX
IT_ADTLX_ADDR_IND_X = TELEXDATANONADDRESSX
IT_ADSMTP_ADDR_IND_X = E_MAILDATANONADDRESSX
IT_ADRML_ADDR_IND_X = RMLADDRESSDATANONADDRESSX
IT_ADX400_ADDR_IND_X = X400ADDRESSDATANONADDRESSX
IT_ADRFC_ADDR_IND_X = RFCADDRESSDATANONADDRESSX
IT_ADPRT_ADDR_IND_X = PRTADDRESSDATANONADDRESSX
IT_ADSSF_ADDR_IND_X = SSFADDRESSDATANONADDRESSX
IT_ADURI_ADDR_IND_X = URIADDRESSDATANONADDRESSX
IT_ADPAG_ADDR_IND_X = PAGADDRESSDATANONADDRESSX
IT_ADCOMREM_ADDR_IND_X = COMMUNICATIONNOTESNONADDRESSX
IT_ADCOMUSE_ADDR_IND_X = COMMUNICATIONUSAGENONADDRESSX
ET_ADDR_DUPLICATES = ADDRESSDUPLICATES
ET_RETURN = RETURN.
ENDIF.
LOOP AT LT_RETURN.
COLLECT LT_RETURN INTO RETURN.
ENDLOOP.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = ''
IMPORTING
RETURN = RETURN.
"COMMIT WORK.
Inputs to Fm:
Business partner: 1000058
Central data: Navin Chettiar
CENTRALDATA_X : X X
Regards,
Navin -
About FM BAPI_BUPA_CENTRAL_CHANGE update
Hi all,
I am entering an BP no in FM BAPI_BUPA_CENTRAL_CHANGE . The FM is Running but not showing any result in Return table and the data is not getting changed too.Why is it so? any ideas guys?.
Please reply soon.Hi,
Please check you are possing correct value in table .....X (end with X)
e.g.
If you are changing TELEFONDATANONADDRESS remember you should have correct values set in TELEFONDATANONADDRESSX.
Also check field in UPDATEFLAG in table TELEFONDATANONADDRESSX.
'U' - Update
'D' - Delete
Where ever you make changes replace with 'X'
suppose u r changing TEL_NO then in TELEFONDATANONADDRESSX-TEL_NO set as 'X'
I hope it will work.
Regards,
Nilesh P. -
Mass update of BUT000-Z field, but can't use FM BAPI_BUPA_CENTRAL_CHANGE
After a data load we have realised that one of the Z fields has not been populated with data and so as a result of this I am attempting to write a quick program to update this Z field. The field is located in table BUT000, but of course I need to update this using the appropriate FM rather than direct table update.
There seems to be a few' BUT000' FM's and a number of 'CRM_BUPACHANGE' FM's as well. Has anyone used an FM for such an update before?. I think I need to identify the best FM for the job.
I have also looked at FM BAPI_BUPA_CENTRAL_CHANGE as well, but that does NOT contain the Z field to change.
With regards
J SaporaHi Markus,
I agree with you, but MASS is something very straight forward, plus, don't support paralelization, so if you want to change a smalll amout of data or you really don't care about performance (I mean for the process is the same if the update takes 1 or 4 hours) and the changes doesn't imply a business logic, the user has all the control of which fileds should be changed and for which value, then it's a good option.
But when extra logic is needed, Mass can become a nightmare, I will write a blog about this if I have the time.
Cheers!
Luis
Maybe you are looking for
-
How do i share files beween 2 computers on the same local net
I have a iMac and a MacBook. I usually use the iMac but when I go on vacation I take the MacBook. How do I get the files and bookmarks from the iMac to the MacBook?
-
My older model ipod (click wheel) no longer works with my BOSE player. Help!
My older model ipod (click wheel) no longer works with my BOSE player. Help!
-
MacMini to Display Port HP ZR30W
I need to connect 2012 thunderbolt port to a HP ZR30W, I currently have a mini display port to display port cable and have tried both a U3011 and a ZR30W neither have worked, does anyone have any ideas the Apple display's won't work. I really need th
-
HDMI in - is it possible?
I have a helmet camera for recording when riding my bike, it has a HDMI connection on the back, when fixing the camera on the helmet I want to see what is looking at - not twisted or pointing to the side for example. Does anyone know if I can connec
-
I feel like I've been tricked or taken or just dumb. I just upgraded from PS 6 to PSE 9 and as far as I can see there isn't much difference between the two. I use this product for editing digital pictures and repairing old photographs only. I never