Badi before create Business Partner
Hello Expert !!!
when I create Business Partner in transaction BP , I have to add attribute set in tab marketing attributes everytime (depend on role that i create ).
I want to program for automatic update attribute set .
Do you know the Badi that i can code in that ? Badi before create Business Partner?
please help me
advance thanks,
kritamate
hey everyone !!!!
this all code in Badi Partner_update :
method IF_EX_PARTNER_UPDATE~CHANGE_BEFORE_UPDATE .
FIELD-SYMBOLS: <ls_but000_new> TYPE but000,
<ls_but050_new> TYPE but050.
CONSTANTS: lc_object_type TYPE crmt_prt_otype VALUE 'BUS1006'.
DATA: lt_changed_object_guids TYPE crmt_ace_object_guid,
lt_new_object_guids TYPE crmt_ace_object_guid,
ls_object LIKE LINE OF lt_changed_object_guids,
lt_but000_old TYPE STANDARD TABLE OF but000,
lt_but000_new TYPE STANDARD TABLE OF but000,
ls_but000_old LIKE LINE OF lt_but000_old,
lt_but050_new TYPE STANDARD TABLE OF but050,
lt_but050_old TYPE STANDARD TABLE OF but050,
ls_but050_old TYPE but050,
lv_partner_guid TYPE bu_partner_guid,
lt_return TYPE STANDARD TABLE OF bapiret2,
lv_tabix TYPE sy-tabix.
CLASS cl_bsp_bp_accmod DEFINITION LOAD.
business partners ************************************************
CALL FUNCTION 'BUPA_GENERAL_CALLBACK'
TABLES
et_but000_old = lt_but000_old
et_but000_new = lt_but000_new
EXCEPTIONS
OTHERS = 0.
BP new or changed?
LOOP AT lt_but000_new ASSIGNING <ls_but000_new>.
ls_object-object_guid = <ls_but000_new>-partner_guid.
READ TABLE lt_but000_old INTO ls_but000_old
WITH KEY partner = <ls_but000_new>-partner.
New BP created
IF sy-subrc NE 0 OR ls_but000_old-client IS INITIAL.
COLLECT ls_object INTO lt_new_object_guids.
BP changed
ELSE.
COLLECT ls_object INTO lt_changed_object_guids.
ENDIF.
ENDLOOP.
data BP_guid type CRMT_TG_BP_GUID.
DATA: L_ATTRIBSET TYPE CRMT_PROF_TEMPLATE.
DATA : LW_VALUE TYPE CRMT_MKTPROF_COMW.
DATA: T_VALUE TYPE TABLE OF CRMT_MKTPROF_COMW .
DATA: T_RETURN TYPE TABLE OF BAPIRET2 ,
LV_BP_PERSON TYPE BU_PARTNER.
CONSTANTS: C_ROLE(5) VALUE 'ZMROL'.
L_ATTRIBSET = C_ROLE.
BP_guid = ls_object-object_guid. .
LW_VALUE-ATNAME = 'ZMRO0001'.
LW_VALUE-ATWRT = 'Z11'.
INSERT LW_VALUE INTO TABLE T_VALUE.
*LV_BP_PERSON = '20001678'."<ls_but000_new>-partner .
CALL FUNCTION 'CRM_MKTBP_CHANGE_BP'
EXPORTING
iv_profile_template_id = L_ATTRIBSET
IV_BP_GUID = BP_guid
IV_XDESCR = ' '
IV_FCODE = 'C'
IV_MSA = 'X'
IV_COMMIT = 'X'
IV_PARTNER = LV_BP_PERSON
IV_CONVERT_VALUES = 'X'
TABLES
IT_IMP_SELTAB = T_VALUE
ET_RETURN = T_RETURN.
if sy-subrc <> 0.
endif.
endmethod.
message Shotdump :
What happened?
The current application program detected a situation which really
should not occur. Therefore, a termination with a short dump was
triggered on purpose by the key word MESSAGE (type X).
i don't what happen . Maybe because it cannot use this function in badi . I don't know . if you know ,please help
advance thanks ,
kritamate
Similar Messages
-
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 -
Create Business Partner from XMl String not a file
Hi,
Is it possible to create a BP from an XML string.
I know about GetBusinessPartnerFromXml(string FileName, int index)
but I dont want to save the string in a file before creating a BP from it
Hope there's a method to do thatMarc,
This looks like it is a duplicate of this post, so I am closing this thread as it looks like you answered your own question!
Create Business Partner from XMl String not a file
Eddy -
Messagw while trying to create Business partner (BP) object for Recruiter
Hi,
We have upgraded E-Recruitment from EHp2 to EHP4.
When I tried to access Recruiter dash board through recruiter ID, I got error "You are not authorized to see this". After checking it is found that business partner object is not created for Recruiter ID. So tried to create through program RCF_Create_user. But while running this report, I am getting message like "candidate number is already exist" and I am not able to proced further. I checked relationship A650, also table HRP5102 for candidate details for this Recruiter personeel number. But no where it is available.
Could anybody please tell how to proceed on this? Where to see candidate details for an employee? How to delete candidate details if exists so that I can create business partner object again via program RCF_create_user.
Anybody's help is appreciated.
Regards,
PurnimaHello Purnima,
as you started from an authorization error message, have you tried to assign SAP_ALL to the user and check if the application was working? Did you regenerated SAP_ALL after the upgrade as otherwise the authorization for the new application might still be missing.
I first thought the BP relation was missing after your upgrade but in your 2nd post you said you deleted CP-BP relation among others. Was this a typo or was the relation existing but the business partner missing. This would be very suprising as it is not that easy to get rid of one.
It is very strange if RCF_CREATE_USER is still not working after deleting all relations. If you only deleted one relation from CP it might be necessary to delete the other direction for all objects being internal. BUT be aware! Changing HRP1001 data this way will lead to inconsistencies in the system.
The only additional thing which comes to my mind is the integrated installation. Here the user for the candidate is not read from HRP1001 but directly from the PA infotype 0105. So there might be another candidate joined to the user this way if you use an integrated landscape.
But before you start changing hrp1001 by hand please always get the CP id for the candidate, go to SE80, open class cl_hrrcf_candidate and test the get method. (you need the cp id as you have to enter the first id on the method test screen, the others won't work due to the usage of "is supplied" in the method combined with the methgod tester). In the result check if there is really no BP Id resolved.
If the relation or the bp object really got lost during the upgrade, I'd check if this is a single case or more candidates were effected. If so I'd in every case get in contact w/ sap suppport.
Kind Regards
Roman
Edited by: Roman Weise on Mar 14, 2010 6:43 PM -
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 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 -
Geocode Error while creating Business Partner in Audit Management
Hi All,
When I try to create business partner in PLMD_AUDIT and assign it to various partner roles like Auditor, Responsible person etc. I am getting error as " Geocoder SAP0: Country specification is (Customizing) " What should be done to avoid this error?
Found details in spro:
For "SAP0 Geocoder" there is no function module and destination assigned, Is it the cause of error? If it is the case then what should be assigned and Let me know the standard function module.
Regards,
Ram.hi Keerthi,
553073 is the sap note for geocode error in country specification.
Regards,
Ram.
Edited by: Ramachandran Jayaraman on Jun 9, 2008 3:18 PM -
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 -
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 -
How to create Business partner from uploaded file by Function module?
Hi Experts,
I have uploaded Business partner data from a file to server now from individual records I have to create Business partner and have to update the records in the tables. Means from on record i have to create one business partner in sap system.
I have uploaded the records in the system and stored in a internal table.Now my task is to create business partner and have to update tables.
I need a function module which create BP by each records uploaded and update the respective tables of BP and exports business partner ID.
Please respond soon Its a requirement form the client.
Prem.HI,
You can use the bapi 'BAPI_BUPA_CREATE_FROM_DATA' to create a business partner .
call function 'BAPI_BUPA_CREATE_FROM_DATA'
exporting
businesspartnerextern = g_bpartner-partn
partnercategory = partnercategory
partnergroup = partnegroup
centraldata = centraldata
centraldataperson = centraldataperson
centraldataorganization = centraldataorganization
* CENTRALDATAGROUP =
addressdata = addressdata
* DUPLICATE_MESSAGE_TYPE =
* IMPORTING
* BUSINESSPARTNER = G_BPARTNER-BUSINESSPARTNER
tables
telefondata = telefondata
faxdata = faxdata
e_maildata = e_maildata
return = return
* ADDRESSDUPLICATES =
addressnotes = addressnotes. -
How to create business partner temblet
Dear friends,
how to create business partner temblet .
please send the following mail address
[email protected]
Thangs in advance
Regards,
S.Sivahi
Refer to the links below might get u some info
General Business Partner-initial screen
http://help.sap.com/erp2005_ehp_02/helpdata/en/39/0b77a9df3011d189fc0000e829fbbd/frameset.htm
Business partner as Template
http://help.sap.com/erp2005_ehp_02/helpdata/en/2f/3a2a09969611d2ac750000e829fbfe/frameset.htm
Business Partner
http://help.sap.com/erp2005_ehp_02/helpdata/en/43/a0dfe510d825e5e10000000a1553f7/frameset.htm
Creating or Changing Master data Template
http://help.sap.com/erp2005_ehp_02/helpdata/en/c7/adcef39296f94e8ef7077ce160200e/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/57/92f63aad7e3014e10000000a11402f/content.htm
http://b1up.net/index.php?id=modules
Reward if USeful
Thanx & Regards.
Naren.. -
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, -
How to create Business Partner in CFM
Hello,
I want to Know which TCode should be use while creating Business Partner in CFM Module
Regards
ReshmaDear Reshma,
Please, use the transaction "BP" in CFM module to create a business partner.
Regards,
Paulo -
How to create business partner in solman
How to create business partner in solman?...
Hi,
Check pages 8 - 11 in this document.
https://websmp209.sap-ag.de/~sapidb/011000358700001197002005E/Addtional_Information.pdf
This would solve your problem.
feel free to revert back.
--Ragu
Maybe you are looking for
-
I have been trying to download adobe flash player. Screen says download was sucessful. When i need flash player to view it says I do not have and gives me another option to download. I use Windows 7 and google. Went thru questionaire and system was f
-
Reports for Database metriks: what is possible?
Hello, we are using the GridControl since several months. For our databases we are collecting several metrics and keep them for 365 days. I know how to look up the metrics for historic data (e.g. the first week in january), but for reporting purposes
-
(Also posted as discussion with related article) Vertical scroll bar shows, but down arrow is hidden. Visible when window is not maximised, but as soon as maximised it hides the down arrow only. Article on help suggests clicking view-show status bar,
-
How can i save alternatively the data without asking the acquisition program?
hello, I'm developing un acquisition program for a machin that have the syclic operations, I want to save automatically the data in different fils evry sycl!
-
Second battery with same problem
I have had a new battery replaced by Apple for wearing down prematurely. I had 50 cycles and was getting 70%health. I have had this new battery for approx. 2 months and have noticed that after 20 cycles the health is declining. I am currently at 89%