*******************Kindly suggest***************
Hi,
A business partner is created using External Number Asignment using the Bapi 'BAPI_BUPA_CREATE_FROM_DATA'.
I have two queries
(a)I want to extend the role of the Business Partner to role 'EMPLOYEE".Kindly tell a Function Module / Bapi to do the same.
(b) Once I extend the role to employee I want to have the User under the identification Tab the same as the the Busines Partner ID I have created.
Kindly suggest the Bapi / Function Module to do the same.
Kindly reply.
Regards,
Balasubramanian Vijay
**replies will surely be rewarded***
It's an example.
Reggards.
DATA:
partner LIKE bapibus1006_head-bpartner,
partnercategory LIKE bapibus1006_head-partn_cat,
partnertype LIKE bapibus1006_head-partn_typ,
partnergroup LIKE bapibus1006_head-partn_grp,
partnerextno LIKE bapibus1006_head-extern_no,
centraldata TYPE bapibus1006_central,
centraldataperson TYPE bapibus1006_central_person,
adressdata TYPE bapibus1006_address,
businesspartner LIKE bapibus1006_head-bpartner,
telefondata TYPE bapiadtel OCCURS 0 WITH HEADER LINE,
faxdata TYPE bapiadfax OCCURS 0 WITH HEADER LINE,
e_maildata TYPE bapiadsmtp OCCURS 0 WITH HEADER LINE,
return TYPE bapiret2 OCCURS 0 WITH HEADER LINE.
Datos Generales Tipo de Partner
partnercategory = '1'.
partnertype = ''.
partnergroup = '0001'. "EXTERNO o INTERNO
DATOS GENERALES
*centraldata-SEARCHTERM1 =
*centraldata-SEARCHTERM2 =
centraldata-partnertype = partnertype.
*centraldata-AUTHORIZATIONGROUP =
*centraldata-PARTNERLANGUAGE =
*centraldata-PARTNERLANGUAGEISO =
*centraldata-DATAORIGINTYPE =
*centraldata-CENTRALARCHIVINGFLAG =
*centraldata-CENTRALBLOCK =
*centraldata-TITLE_KEY =
*centraldata-CONTACTALLOWANCE =
*centraldata-PARTNEREXTERNAL =
*centraldata-TITLELETTER =
*centraldata-NOTRELEASED =
*centraldata-COMM_TYPE =
DATOS GENERALES PARA PERSONA
centraldataperson-firstname = 'NOMBRE'.
centraldataperson-lastname = 'APELLIDO'.
centraldataperson-birthname = ''.
centraldataperson-middlename = ''.
centraldataperson-secondname = ''.
centraldataperson-title_aca1 = ''.
centraldataperson-title_aca2 = ''.
centraldataperson-title_sppl = ''.
centraldataperson-prefix1 = ''.
centraldataperson-prefix2 = ''.
centraldataperson-nickname = 'APODO'.
centraldataperson-initials = 'NYP'.
centraldataperson-nameformat = ''.
centraldataperson-namcountry = 'AR'.
centraldataperson-namcountryiso = ''.
centraldataperson-*** = '2'.
centraldataperson-birthplace = ''.
centraldataperson-birthdate = ''.
centraldataperson-deathdate = ''.
centraldataperson-maritalstatus = '1'.
centraldataperson-correspondlanguage = ''.
centraldataperson-correspondlanguageiso = ''.
centraldataperson-fullname = ''.
centraldataperson-employer = ''.
centraldataperson-occupation = ''.
centraldataperson-nationality = 'AR'.
centraldataperson-nationalityiso = ''.
centraldataperson-countryorigin = ''.
DATOS GENERALES : DIRECCIONES
adressdata-standardaddress = 'X'.
*adressdata-C_O_NAME
adressdata-city = 'Lomas del Mirador Viteh'.
*adressdata-DISTRICT =
*adressdata-REGIOGROUP
adressdata-postl_cod1 = '1752'.
*adressdata-POSTL_COD2
*adressdata-POSTL_COD3
*adressdata-PCODE1_EXT
*adressdata-PCODE2_EXT
*adressdata-PCODE3_EXT
*adressdata-PO_BOX
*adressdata-PO_W_O_NO
*adressdata-PO_BOX_CIT
*adressdata-PO_BOX_REG
*adressdata-POBOX_CTRY
*adressdata-PO_CTRYISO
adressdata-street = 'Paso'.
*adressdata-STR_ABBR
adressdata-house_no = '9987'.
*adressdata-HOUSE_NO2
*adressdata-HOUSE_NO3
*adressdata-STR_SUPPL1
*adressdata-STR_SUPPL2
*adressdata-STR_SUPPL3
*adressdata-LOCATION
*adressdata-BUILDING
*adressdata-FLOOR
*adressdata-ROOM_NO
adressdata-country = 'AR'.
*adressdata-COUNTRYISO
adressdata-region = '01'.
*adressdata-TIME_ZONE
*adressdata-TAXJURCODE
*adressdata-HOME_CITY
*adressdata-TRANSPZONE
*adressdata-LANGU
*adressdata-LANGUISO
*adressdata-COMM_TYPE
*adressdata-EXTADDRESSNUMBER
*adressdata-DONT_USE_P
*adressdata-DONT_USE_S
*adressdata-MOVE_DATE
*adressdata-MOVE_ADDRESS
adressdata-validfromdate = ''.
adressdata-validtodate = '99991231'.
*adressdata-MOVE_ADDR_GUID
*adressdata-CITY_NO
*adressdata-DISTRCT_NO
*adressdata-CHCKSTATUS
*adressdata-PBOXCIT_NO
*adressdata-STREET_NO
*adressdata-HOMECITYNO
DATOS GENERALES : TELEFONOS
telefondata-country = 'AR'.
*TELEFONDATA-COUNTRYISO
telefondata-std_no = 'X'.
telefondata-telephone = '46577777'.
telefondata-extension = '89'.
telefondata-tel_no = '46577777'.
*TELEFONDATA-CALLER_NO
*TELEFONDATA-STD_RECIP
*TELEFONDATA-R_3_USER
telefondata-home_flag = 'X'.
telefondata-consnumber = '001'.
*TELEFONDATA-ERRORFLAG
*TELEFONDATA-FLG_NOUSE
APPEND telefondata.
telefondata-country = 'AR'.
*TELEFONDATA-COUNTRYISO
telefondata-std_no = 'X'.
telefondata-telephone = '1556577777'.
telefondata-extension = ''.
telefondata-tel_no = '46577777'.
*TELEFONDATA-CALLER_NO
*TELEFONDATA-STD_RECIP
telefondata-r_3_user = '3'.
telefondata-home_flag = ''.
telefondata-consnumber = '002'.
*TELEFONDATA-ERRORFLAG
*TELEFONDATA-FLG_NOUSE
APPEND telefondata.
DATOS GENERALES : FAX
faxdata-country = 'AR'.
*faxdata-COUNTRYISO
faxdata-std_no = 'X'.
faxdata-fax = '99999999999'.
faxdata-extension = '345'.
faxdata-fax_no = '99999999999-345'.
faxdata-sender_no = 'X'.
*faxdata-FAX_GROUP
*faxdata-STD_RECIP
*faxdata-R_3_USER
*faxdata-HOME_FLAG
faxdata-consnumber = '001'.
*faxdata-ERRORFLAG
*faxdata-FLG_NOUSE
APPEND faxdata.
DATOS GENERALES : MAIL
e_maildata-std_no = 'X'.
e_maildata-e_mail = '[email protected]'.
*e_maildata-EMAIL_SRCH
e_maildata-std_recip = 'X'.
*e_maildata-R_3_USER
*e_maildata-ENCODE
*e_maildata-TNEF
e_maildata-home_flag = 'X'.
e_maildata-consnumber = '001'.
*e_maildata-ERRORFLAG
*e_maildata-FLG_NOUSE
APPEND e_maildata.
CALL FUNCTION 'BAPI_BUPA_CREATE_FROM_DATA'
EXPORTING
BUSINESSPARTNEREXTERN =
partnercategory = partnercategory
partnergroup = partnergroup
centraldata = centraldata
centraldataperson = centraldataperson
CENTRALDATAORGANIZATION =
CENTRALDATAGROUP =
addressdata = adressdata
DUPLICATE_MESSAGE_TYPE =
ACCEPT_ERROR = ' '
IMPORTING
businesspartner = businesspartner
TABLES
telefondata = telefondata
faxdata = faxdata
TELETEXDATA =
TELEXDATA =
e_maildata = e_maildata
RMLADDRESSDATA =
X400ADDRESSDATA =
RFCADDRESSDATA =
PRTADDRESSDATA =
SSFADDRESSDATA =
URIADDRESSDATA =
PAGADDRESSDATA =
ADDRESSNOTES =
COMMUNICATIONNOTES =
TELEFONDATANONADDRESS =
FAXDATANONADDRESS =
TELETEXDATANONADDRESS =
TELEXDATANONADDRESS =
E_MAILDATANONADDRESS =
RMLADDRESSDATANONADDRESS =
X400ADDRESSDATANONADDRESS =
RFCADDRESSDATANONADDRESS =
PRTADDRESSDATANONADDRESS =
SSFADDRESSDATANONADDRESS =
URIADDRESSDATANONADDRESS =
PAGADDRESSDATANONADDRESS =
COMMUNICATIONNOTESNONADDRESS =
return = return
ADDRESSDUPLICATES =
IF return[] IS NOT INITIAL.
READ TABLE return INDEX 1.
MESSAGE i000(zbp) WITH return-message.
EXIT.
ENDIF.
IDENTIFICACIONES -
DATA : iv_identificationnumber TYPE bu_id_number,
is_identification TYPE bapibus1006_identification,
iv_identificationtype TYPE bu_id_type,
et_return TYPE bapiret2 OCCURS 0 WITH HEADER LINE.
iv_identificationnumber = '30303030'.
*is_identification-IDINSTITUTE
is_identification-identrydate = sy-datum.
is_identification-idvalidfromdate = '19000101'.
is_identification-idvalidtodate = '99991231'.
is_identification-country = 'AR'.
*is_identification-COUNTRYISO
*is_identification-REGION
iv_identificationtype = '96'.
CALL FUNCTION 'BUPA_IDENTIFICATION_ADD'
EXPORTING
iv_partner = businesspartner
IV_PARTNER_GUID =
iv_identificationcategory =
iv_identificationnumber = iv_identificationnumber
is_identification = is_identification
IV_X_SAVE = 'X'
iv_identificationtype = iv_identificationtype
TABLES
et_return = et_return.
IF et_return[] IS NOT INITIAL.
READ TABLE et_return INDEX 1.
MESSAGE
ID et_return-id
TYPE et_return-type
NUMBER et_return-number
WITH et_return-message_v1
et_return-message_v2
et_return-message_v3
et_return-message_v4.
EXIT.
ENDIF.
*--TAX TYPES--
DATA:
iv_tax_type TYPE bptaxtype,
iv_tax_number TYPE bptaxnum.
iv_tax_type = 'AR1C'.
iv_tax_number = '20303030306'.
CALL FUNCTION 'BUPA_TAX_ADD'
EXPORTING
iv_partner = businesspartner
iv_tax_type = iv_tax_type
iv_tax_number = iv_tax_number
IV_COMBINED_CHECK = ' '
IV_X_SAVE = 'X'
EXCEPTIONS
record_already_exists = 1
invalid_data = 2
foreign_lock = 3
OTHERS = 4
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
EXIT.
ENDIF.
*-- AGREGAR ROLES--
REFRESH et_return.
CLEAR et_return.
BREAK-POINT.
CALL FUNCTION 'BAPI_BUPA_ROLE_ADD'
EXPORTING
businesspartner = businesspartner
businesspartnerrole = 'BCA040'
DIFFERENTIATIONTYPEVALUE =
TABLES
return = et_return.
IF et_return[] IS NOT INITIAL.
READ TABLE et_return INDEX 1.
MESSAGE
ID et_return-id
TYPE et_return-type
NUMBER et_return-number
WITH et_return-message_v1
et_return-message_v2
et_return-message_v3
et_return-message_v4.
EXIT.
ENDIF.
REFRESH et_return.
CLEAR et_return.
CALL FUNCTION 'BAPI_BUPA_ROLE_ADD'
EXPORTING
businesspartner = businesspartner
businesspartnerrole = 'BCA045'
DIFFERENTIATIONTYPEVALUE =
TABLES
return = et_return.
IF et_return[] IS NOT INITIAL.
READ TABLE et_return INDEX 1.
MESSAGE
ID et_return-id
TYPE et_return-type
NUMBER et_return-number
WITH et_return-message_v1
et_return-message_v2
et_return-message_v3
et_return-message_v4.
EXIT.
ENDIF.
COMMIT WORK.
Similar Messages
-
i am new in using Mac operating system, kindly suggest ebooks, videos or audio books to me so that i can learn more about it.
any kind of help would be appriciated. i am very eager to learn.how to make ios application? and how to effectively use terminal? where does the basic programming start in Mac? what are the different tools that can help me make an Mac application and ios application.
-Thank you
Shailendra (India)Apple has got some great guides to start developing in Objective-C, used for programming OS X and iOS apps > http://developer.apple.com/library/mac/#referencelibrary/GettingStarted/RoadMapO SX/chapters/01_Introduction.html
-
How do i restore my iphone from "no Service". I tried to update my iphone 3G TO iOS 6.0. But it got stuck and now my itunes is displaying Error message: "there is no sim card installed in the iphone you are attempting to activate" and my iphone is without service. While i am trying to activate my ihone on wifi also it doesnt saying servers are temporary unavailable try after sometime. Kindly suggest
It sounds a lot like your phone was hacked or jailbroken to unlock it prior to your trying to update it.
If that is the case, it is nowpermanently bricked. -
In JDBC Sender Adapter , the server is Microsoft SQL .I need to pass current date as the input column while Executing stored procedure, which will get me 10 Output Columns. Kindly suggest me the SQL Query String , for executing the Stored Procedure with Current date as the input .
Hi Srinath,
The below blog might be useful
http://scn.sap.com/community/pi-and-soa-middleware/blog/2013/03/06/executing-stored-procedure-from-sender-adapter-in-sap-pi-71
PI/XI: Sender JDBC adapter for Oracle stored procedures in 5 days
regards,
Harish -
Kindly suggest oracle automation testing tools supporting oracle 10g forms
Hi,
We would like to automate oracle 10g forms in our company. kindly suggest oracle automation tools supporting oracle 10g forms other than OATS.
If only OATS tool is available in Oracle, please suggest user guide for OATS.
Regards,
SairamHi Sairam,
You can find OATS docs in OATS installation package itself. You can find separate pdf files for each OATS product(OpenScript Programmer Preference, OFT, OLT, OTM, Administrator etc).
Regards,
Deepu M -
Hi , I suhail khan from india and i am user of iMac system 10,1.These days i am facing the sound enabling issue with my iMac system I am not able to hear sound in my iMac system.So kindly suggest me how to enable sound in my iMac . Please no the needful.
Take each of the following steps that you haven't already tried.
1. If you've recently plugged anything into the audio-out (headphone) port, plug and unplug it a couple of times.
2. From the menu bar, select
▹ System Preferences ▹ Sound ▹ Output
Check the settings. The internal speakers should be selected as the output device, the Mute box should not be checked, and the volume slider should be at least halfway to the right.
3. Look inside the headphone port. If a red light is coming from the port, the internal switch is stuck in the position for digital output. You may be able to free it by inserting and removing a headphone mini-stereo jack of the proper size.Inserting any kind of tool in the port may cause damage that won't be covered by your warranty.
4. Boot in safe mode by holding down the shift key at the startup chime. It will take much longer than usual. You don't have to log in; just reboot as usual (without holding any keys) when the login screen appears. (Note: If FileVault is enabled under OS X 10.7 or later, or if a firmware password is set, or if the boot volume is a software RAID, you can’t boot in safe mode.)
5. Reset the NVRAM.
6. Reset the SMC.
7. Reinstall OS X after backing up all data as a precaution. You won't need your backup unless something goes wrong.
8. Make a "Genius" appointment at an Apple Store.
Back up all data on the internal drive(s) before you hand over your computer to anyone. If privacy is a concern, erase the data partition(s) with the option to write zeros* (do this only if you have at least two complete, independent backups, and you know how to restore to bare metal from any of them.) Don’t erase the recovery partition, if present.
*An SSD doesn't need to be zeroed. -
i am unable to configure my ipad 2 with my existing wifi of linksys though I have entered the all ip address as per my laptop but still I am not getting thru network kindly suggest the solution
The ip-adress cannot be the same as your laptop. You have to make sure that your ip-adress is unique in the network. if your ip is 192.168.1.100 try 192.168.1.112 or somthing. More advanced is to check avalible adress in your router.
-
I am handling logistics department in a company, i am handling more than 100 calls in a day. But my iPhone 4 have only 100 number call history. How to increase my call log size or kindly suggest a better app for storing 1 month call history..
Here's one:
https://itunes.apple.com/us/app/callog/id327883585?mt=8 -
I am using 4K Footages for editing in Premiere pro CC 2014, but its getting crash in between at every 15 to 20 mins. Kindly suggest how can it be solved, does any plugins or settings needed to edit 4K footages? Also would like to mention that footages frame rates are 29.97 and i have set timeline to 25 FPS is requirement by client. kindly revert. Thanks
Thanks Richarad ..It has solved the problem but still crashes some times .As the programme has the break (bumper)after every five minutes ,i hope it will not compress bumper time too after export.
-
i updated my iphone 3g to ios4.2.1 ... the update was succesful but nw itunes says that sim card inserted in this phone is not acceptable and also states that on;y compatible sim from supported carrier is acceptable !!! kindly suggest ...
horsie10 wrote:
i bought my iphone in USA and im using it in india .... kindly hellp me how can i resolve this problem !!!
It has NEVER been possible to purchase an unlocked iPhone 3G in the US. Your phone was hacked. Updating it has re-locked it to AT&T. AT&T will NOT unlock iPhones for any reason.
The phone is now useless to you. There is no legitimate way to fix this. Buy a new phone. Preferably in India. -
Hi Gurus Kindly suggest me reg my Masters SAP Project
Hi all,
i am Nikhil trying to do a project in sap at masters level , i have not decided on the project can any one suggest me a good one ,
i am planning either creating a business scenario for xyz company (SD )
or installation sap IDES environment (Basis Project)
Kindly suggest me guru's.
Regards
Nikhil.C.Nelluri
[email protected]Hi Varma,
The module which I am talking about is a project management tool which is very much required for managing the projects,it may be a product development project, infrastructure project or any other project..
Normally this is handled by project management office(PMO) where they plan the project i.e. list all activities that are required to complete a project. It may be land acquiring, material procurement, sub-contracting through orders, billing etc...All these activities are planned in this project management tool (This planning requires enormous amount of field/site knowledge) and these activities are monitored & closed.
This module covers almost all process and integrates with almost all SAP modules like finance & controlling, materials management, production planning etc.
If you are interested in planning activities, then you can think of it. Otherwise choose your own interest area.
Regards,
Ravi -
HI..
well i have a strange requirement and thus i want that you people, specially gurus kindly suggest an optimum solution. i will be thankful...
I have a Form which gives the summary of the current record state of the Database
For. e.g i have display items. that shows count of ..
Total number of teachers in shool, total male , total female,
teacher resigns, teachers hired, teachers on holiday etc..
The Form serves as a Summary Sheet for the higher management.
Now the thing is that higher management wants me to take the backup of this report.
so that if they want they can compare it . with the yesterday or with any date , the status ... summar.
i am taking logs for each table, but they dont want that it is better if we can take logs of the summary report..
I think we cannot user oracle workhistory for this purpose.. because then i would be needing to store the report in a table.. wastage n burden on database.. isnt it ..
IS it possible that i can take that report summary as export in excel file or any other file... through forms.. l, so that they can or i can store the daily stats..
which can be shown on request..
what to do i do not understand.. probably..
i mean obviously if i were to take backup of each and every thing .. it required huge burden and space..
obviously i cannot take export of DB as logical backup and import because then the current state of DB would be effected..
what to do kindly suggest some good solution , with the help of ur experience..Hi,
You can use OLE for storing the records in excel file. Searching this forum on OLE will give you more details on how to achieve this and may be some samples too.
HTH.
Regards,
Arun -
Im looking for any Hardware (NI or third party Hardware) in which i can get trained with interfacing with hardware with different communication techniques like Can, I2c, as well 232 and 485.. and Few DAQ interface... So kindly let me know any such hardware from any vendor is available.. Kindly suggest.
The best place to start would probably be the NI LabVIEW Basics 1 & 2 courses. They cover some of these concepts. You can find out more at http://www.ni.com/training. Other wise if you search the knowledge base on the NI Developer Zone you can find tutorials for lots of hardware bus interfaces, like this one on the CAN bus.
Jason
Wire Warrior
Behold the power of LabVIEW as my army of Roomba minions streaks across the floor! -
Kindly suggest me how can i get out of the restore mode bcoz whenever i want to do it it shows error (-1) before complition....
Try:
- Powering off and then back on your router.
- Anything else here
iTunes for Windows: iTunes cannot contact the iPhone, iPad, or iPod software update server
- Change the DNS to either Google's or Open DNS servers
Public DNS — Google Developers
OpenDNS IP Addresses
- Try on another computer/network
- Wait if it is an Apple problem -
how can i share m3u8 downloaded video to watsapp through video d/l app. application only allow to add mp4 videos to the camera roll and only mp4 video i am able to share. kindly suggest appropriate solution. Thanks
Hello Achates:
I did not read the rather long post. If you wish to reinstall OS X 10.4, use your software install DVD. Backup is essential. To minimize your risk, I would use an archive and install:
http://docs.info.apple.com/article.html?artnum=107120
In that way, you will have a fresh copy of OS X and your current settings will be preserved.
Incidentally, I do not agree that the printer problem is best solved by reinstalling OS X. I have had HP printers for sometime and, on one occasion, had difficulty after an upgrade. HP technical support walked me through uninstalling all traces of the HP driver and then reinstalling.
Barry -
Rapid deployment of HFM getting failed at "Install Financial Management domain" step. Kindly Suggest what could be the reason and how to eliminate it?
Rapid deployment of HFM getting failed at "Install Financial Management domain" step. Kindly Suggest what could be the reason and how to eliminate it?
Maybe you are looking for
-
Hi, SQL 2008R2 (Standard) Windows Server 2012 Having problems accessing SSRS on a new commissioned SQL server. In the "Web Service URL" page of the "Reporting Services Configuration Manager", I'm clicking on the link next to the label "Report Ser
-
EDI Confirmation for Purchase Order
Hi All, Scenario : Our vendor is located abroad. The Purchase order is transmitted to the vendor via EDI. The vendor sends a confirmation for the PO as an IDOC via EDI. The suitation we have is that there are instances where there is a miss match( Re
-
Where can I get the performance test code mention in this doc http://www.oracle.com/technetwork/database/berkeleydb/berkeley-db-perf-128909.pdf Its not here http://www.oracle.com/technetwork/middleware/ias/perf-129688.zip or here http://www.oracle.co
-
Word and Excel applications for iPhone
It is disappointing that the iPhone didn't come with word and excel-type applications. Any insights someone?
-
Hi, In my project, I want to include around 250 sound clips. Each clips is about 4 minutes averagely. They were saved as wav or aif files and now they are converted into Dolby 2.0 AC3 format for DVDSP. Now my problem is that after including 391 text-