Creating Business Partner Through Code
Hi Everyone
I just wanted to know if any of you knew a way to create a business partner through code.
If there is a way or a sample that anyone can provide that would greatly
apreciated.
What would mandatory fields be? I know CardCode would be one mandatory field but what else would be essential?
Hi Sebastiano,
If you only need to read the BP data from the 'source' company then you shouldn't need to log in to it. The RecordSet object should be capable of sending a SQL query that references the other database.
For example:
string sSQL = "select * from " + sSourceDatabase +"..OCRD where CardCode = '" + sMyBPCode +"'"
where sSourceDatabase is the Database ID for the source company and sMyBPCode is the BP you wish to copy.
Using this you should only need to log in to the company where the BP needs to be created. So the whole process should be something like this:
1) Connect to second company
2) Run the query to collect the BP data from the first company
3) Create an instance of the BP object and use the recordset object to assign the properties
4) Add the BP
Hope this makes sense
Owen
P.S. The other option is to use XML. See this post:
Copy items between databases
Similar Messages
-
Error in creating business partner through transaction FPP1 in ECC6.0
HI,
We have upgraded our system from 4.7E to ECC6.0.Now when we are trying to create business partner through transaction FPP1 we are getting error as " Exception condition "NO_ACTIVE_TAB" raised."
Can any one help us in rectifying the error and tell us the possible causes of error.. .??
Regards,
Shruti SinghHello,
Notes 696189 & 618123 may be of some help to you....:)
Regards
Olivia -
Problem in Creating Business Partner through BP
Hi All,
I am facing a problem in creating a business partner through transaction BP. I am selecting the Create Person tab. Selecting 'Employee' as BP role, choosing Xxternal Assignment. I am also giving mandatory fields like First name , last name and country. When i am saving it it is getting saved but an error message comes which says "Personal Address does not exist".
The entry comes in table BUT000 also but when I go to BP transaction again and open the Business partner it is not opening giveing the same error message. Please help in resolving this.
Thanks & Regards,
SaketHello Saket,
The error "Personal Address does not exist" (AM013) indicates a DB inconsistancy. That is the address number in table BUT020 does not have data in table ADRC. Please check whether this is your case.
If you can recreate such error in a non-modified SAP enverionment, please raise a customer message to SAP.
To correct the inconsistancies, please use the reports in note 865271 and note 1096330.
Best regards,
Maggie -
Business partner auto code generation
hi how to create business partner auto code generation. its based on customer group for example we have more customer group..dealer, distributor,subcontractor...
here dealer and distributor group starting cardcode is - C000001,C000002,C000003..... etc
when i was choose subcontractor its starts SUB00001,SUB00002...... etc
vendor is maintain same starting letter in all groups V000001,V000002
Thanks in advance
Thanks & Regards
B.Lakshmi Narayananhi thanks for your valuable replies...
i changed the codes...pls check its right or wrong
declare @temp as char(20)
IF $[OCRD.GroupCode] = 104 and $[OCRD.cardtype] = 'c'
BEGIN
set @temp=(select isnull(max(right(cardCode,7)),0) + 1 from Ocrd where (groupcode= 104) and (len(cardCode)=7))
set @temp='TRA'isnull(replicate(0,7-len(@temp)),'')@temp
select cast(@temp as char(20))
END
ELSE IF $[OCRD.cardtype] = 'C'
BEGIN
set @temp=(select isnull(max(right(cardCode,7)),0) + 1 from Ocrd where (len(cardCode)=7))
set @temp='C'isnull(replicate(0,7-len(@temp)),'')@temp
select cast(@temp as char(20))
END
ELSE IF $[OCRD.cardtype] = 'S'
BEGIN
set @temp=(select isnull(max(right(cardCode,7)),0) + 1 from Ocrd where (len(cardCode)=7))
set @temp='S'isnull(replicate(0,7-len(@temp)),'')@temp
select cast(@temp as char(20))
END
Thanks & Regards
B.Lakshmi Narayanan -
How to Create Business Partner with fix number in t-code :BP
Dear SIr,
Normally I will set number range for auto to create Business Partner. In case , If we would like to crea How to Create Business Partner with fix number in t-code :BP , howe to do?
Please kindly advise.
THnak you and best regards,
VimolDear Shobhit,
How to put the thread as you mentioned.
Best regards, -
Case created without business partner, reason code and result code
In our CRM system, some cases was created without business partner, reason code and result code.
We created some customer functions to make these fields as mandatory, it always work for our technique people and process expert, but it didn't work for some users occasionally. We cannot debug it.
Can anyone tell me why and how to solve it?
Please help me !
Regards,
ShirleyHello Shirley,
Well, then I would check the code, which calls your custom function modules.
It may be possible, that you have an IF in the 'Main' program, which makes it possible to skip the custom FM for these users.
The reason I am assuming this, is that normally you need just to change attributes for a field to make it mandatory, or customizing like SHD0 makes this possible. If you use custom FM, you have to call them somewhere and this is the point I would be looking for.
Check the traces for the users and you should find, that the custom FM are not called for them.
My opinion, of course
Award points if this helps.
Regards,
Martin Kuma -
LSMW to upload Business Partner through IDOC
Hello,
I have requirement to upload Business partner through IDOC. I am using below message type and IDOC type.
1:- Message Type :- CRMXIF_PARTNER_SAVE_M
2:- Basic Type :- CRMXIF_PARTNER_SAVE_M02
Could you please tell me what configuration I need to do for this? Like creating partner profile, port etc
Also I need to extend this IDOC segment to take care of my Z fields.
After extending the IDOC segment do I need to write code in order to update this Z filed or it will be take care and also how to extend existing IDOC.
If any one have has done this before then please share the logic.
Kindly help.
Regards
SachinHi,
Try LSMW with the IDOC method.
Message type: BUPAFS_FS_CREATE_FRM_DATA2
Basic type: BUPAFS_FS_CREATE_FRM_DATA201
You will need to setting for IDOC: port, partner type, etc.
Manish -
FM for create Business partner.
hii,
i have the following code to create business partner.
when i execute the code and enter the required data it gets executes successfully but i cannot see the created bp or partner-group or bp role in tcode bp.
<removed by moderator>
Moderator message: please post relevant code parts only, stay under 5000 characters total to preserve formatting.
Edited by: Thomas Zloch on Jan 17, 2011 11:19 AMhii gemini,
i went through the same pdf for creating bp, but when i click on save a short dump is generated.
which is as follows :
The current ABAP program "SAPLBUSS" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
The following syntax error occurred in program "SAPLCACS_BU_PARTNER " in
include "LCACS_BU_PARTNERU44 " in
line 19:
"The key of internal table "LT_BUT0BK" contains components of type "X" "
"or "XSTRING". The "READ TABLE LT_BUT0BK" statement is not permitted fo"
"r such tables in a Unicode context."
The include has been created and last changed by:
Created by: "SAP "
Last changed by: "SAP "
Error in the ABAP Application Program
The current ABAP program "SAPLBUSS" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
rror analysis
The following syntax error was found in the program SAPLCACS_BU_PARTNER :
"The key of internal table "LT_BUT0BK" contains components of type "X" "
"or "XSTRING". The "READ TABLE LT_BUT0BK" statement is not permitted fo"
"r such tables in a Unicode context."
regards,
akshay ruia -
ERROR IN CREATING BUSINESS PARTNER ON DOING IT 2ND TIME - SAURAV LAHIRY
Hi friends,
I a currently using a custoM tcode zib52 to create a business partner in CRM. My problem is that on creating the first time the Busness partner it is getting created. But on pressing it in the change mode and then clicking the create patient button it is giving a short dump. I am using FM BUP_PARTNER_MAINTAIN where i am giving '01' for create.
Regards,
SAURAV LAHIRY[error1.htm]Hi All,
Thanks for your quick reply.
Recently SAP has upgraded support packs and becuse of this dump is occuring. Piece of extra code has got added in existng code. We can not chage / comment that cde as the probe is in Zt-cde. But even if it is custm transaction, any standard includes havebeen used. And in sme of those include, that piece of code has got added.
Steps - First time business partner is getting created successfully. but when we save it, go back and cick on create business partner than it is going into short dump.
i had debug the code and found that GUID number is not getting cleared i second time.
can you please tell me how to clear GUID number? is there any FM / methods? Aso can you tell me hw to refresh/ clear global memory for FM BUP_PARTNER_MAINTAIN?
Thanks in advance
Saurav -
Error while creating Business partner
Hello,
I am getting an error while creating a role in Business Partner (T.code BP). The error is given below:
Role 'contract partner' in IS-U not same as role from FS
Message no. E9450
Diagnosis
In IS-U or IS-T, you are not permitted to allocate the role Contract Partner and a role from Financial Services (role category begins with 'FL' or 'TR') to a business partner. This is due a conflict with regard to the corresponding customers
Procedure
Create another business partner as a duplicate.
Please assist.
Thanks & Regards,
VineetHi,
The error prompts you that you can not create a business partner in financial roles (TR*, FL*) where a role of contract partner is already assigned to same partner.
Please refer SAP Note - 1123452 and 1564107.
Regards
Prasad AV -
Error while Creating Business partner in FPP1
Hi,
I can't create Business partner in standard T.code FPP1 in Test System and getting the following error
"Application object BUPA: Table EBUPD does not exist".
Kindly help me in solving this issue.Hi Venkatesh
Please add the message class and message number - in this case R1 149 - next time you post a problem.
There's probably an issue with your setup with for the Business Partner Screen Layout (area menu BUPT).
The error is raised, because the EBUPD is not a table assiciated with the Business Parter (Application object BUPA). See transaction BUSG or table TBZ1H. It is in fact a dynpro structure.
Now there's a table that links the dynpro structure fields to the db table fields, which should translate the structure EBUPD into table EKUN fields: TBZ1C. Technically, this is done in function BUS_DYNFLD_TO_DBFLD_CONVERT and it returns the dynpro structure instead of the DB table if there's no corresponding entry in TBZ1C.
So please check if you can find following entry in TBZ1C (client dependent):
OBJAP DYNPTABNM DYNPFLDNM DBTABNM DBFLDNM
BUPA EBUPD + EKUN +
Or via transaction BUSP - Screen field --> Database Field
If the entry is missing I suggest you add it.
Yep
Jürgen -
Dump Error while creating Business Partner in FPP1
Dear Experts,
I am using the EHP5 IS-U component. I am getting the below dump error, when I am trying to create Business partner in T.Code: FPP1.
**Error in the ABAP Application Program**
**The current ABAP program "ISU_BUPA_EVENT_DINP1==========FT" had to be terminated because it has come across a statement that unfortunately cannot be executed.**
**The following syntax error occurred in program "SAPLES02 " in include "LES02U14 " in line 30:**
**"The data object "BUS0DIINIT" does not have a component called "MUSTER_KUN".**
I have searched SAP notes, but I am unable to find any suitable notes to resolve this issue.
Could anyone help me to resolve this issue.
Thanks in Advance,
Regards,
AswinHi,
Please don't go adding fields. Aren't we talking about SAP-standard structures here?
Have you actually checked (in transaction SE11) that the structure ISU_EKUNINIT is included in the BUS0DIINIT?
If it is, and the field MUSTER_KUN is missing, then you should raise an OSS note.
If the structure is not included, you should also talk to OSS. Your ISU installation might be incomplete?
cheers
Paul Bakker -
SLG1 error while creating Business Partner
Hi,
Im currently working on SRM 7.0 and keep receiving the following errors in SLG1. Can you kindly advise what might be the root cause for the below errors so ican fix the issue and ensure the same error doesnt pop up going further?
Error type 1:
Error: Error while Creating Business Partner (BP) Module: BUPA_CREATE_FROM_DATA Vendor: XXXXX
The region 00 is not defined for country DE
Error type 2:
Error: Error while Creating Business Partner (BP) Module: BUPA_CREATE_FROM_DATA Vendor: XXXXXX
The transport zone ZOC0000001 is not defined for country YY
Error type 3:
Error:Error while Creating Business Partner (BP) Module: BUPA_CREATE_FROM_DATA Vendor: XXXXXX
Email address "whatever email" is invalid
Appreciate your feedback
AkshayHello Akshay,
Resolution for Isuue 1:
SAP Web Application Server -> General Settings -> Set Countries -> Insert Regions or Define Country Codes
Region for country DE is not maintained in SPRO or bad data.
Resolution for Issue 2:
SAP Web Application Server - Application Server - Basis Services - Address Management - Maintain Transport Zones
Maintain the transport zones in SRM.
Resolution for Issue 3:
email address should be a valid address. SRM checks the format e.g. xx @ yy . zzz
I believe error could be due to incorrect data.
Hope this solves.
Ashutosh -
Problem in creating business partner
Hi,
When we create business partner from customer in RE Classic in Create lease out(T-code FOV1) , system is not copying the address of customer to business partner.
Thanks in AdvanceHi,
Check note:
Note 681760 - Business partner: No copy of object address
Regards,
DAS -
Assigning mobile number to Business Partner through BADI
Hi Experts,
I have to create a business partner(organization) through a badi with the fields like name name1,name2,street, house number,telephone,email,mobile number. I am stuck in mobile number. I was able to create business partner with all the other fields but i dont know how to get hold of mobile number.Please suggest me functional module or the process of assigning mobile number to the BP.
Edited by: anurag112 on May 18, 2011 2:36 PMHi Anurag,
There is a field called R3_USER in the telephone structure(IT_ADTEL). If this field is populated with 2 or 3 which means it is a mobile number. You can use BUPA_CREATE_FROM_DATA FM to create BP.
Regards,
Lakshmi.Y
Maybe you are looking for
-
I have just attempted to update an iphone 4 to ois 7. All I get on itunes is restore error 3194. Can anyone explain what is going wrong with my attempt to upgrade?
-
In January I hooked up my 52" Samsung LCD to the MacMini using a Belkin DVI to HDMI Cable. All worked fine until 20 minutes ago. Now every 5-10 minutes the screen flickers with several bands of green horizontal linse going through the picture. I have
-
Post Author: Sriram Venkataramani CA Forum: Charts and Graphs Hi,I have a crystal report with a stacked bar chart. For one of the series in the chart I want to shown only dash(-) markers instead of showing it as a riser. So what I did was to change t
-
I'm unable to create a new Table on SQL Azure.
I'm trying to create a new table in my custom database. But i'm getting this error message: 'Filegroup reference and partitioning scheme' is not supported in this version of SQL Server.' Here is the sample create schema: CREATE TABLE dbo.[Contact]( [
-
KYF exhibits strange behaviour with decimals
Hi everybody, a DEC-key figure (IOBJ maintenance: additional properties->BEx->decimal places: Nothing Defined) exhibits strange behaviour regarding the treatment of decimals. When looking at the data in the cube (InfoCube maintenance->content) the va