HOW TO GENERATE A BUSINESS PARTNER AUTOMATICALLY
Hi in my other sap i see someone created a trigger to auto generate a business partner number. eventhough i copied the trigger to my new db i dont see the option to generate the following number. in my old database once i selected to create a customer on the code field it showes me like a search/magnifying glass and once i click on it it generates the next customer number.
does someone know how to do this.
thank you.
THIS IS MY TRIGGER
SELECT
CASE
WHEN N'C'='C' THEN 'C'replace(str(MAX(convert(decimal,substring(CardCode,2,5)))1,5,0),' ','0')
WHEN N'C'='S' THEN 'V'replace(str(MAX(convert(decimal,substring(CardCode,2,3)))1,3,0),' ','0')
ELSE 'L'replace(str(MAX(convert(decimal,substring(CardCode,2,3)))1,3,0),' ','0') END
FROM OCRD
WHERE cardcode>=
CASE
WHEN N'C'='C' THEN 'C00000'
WHEN N'C'='V' THEN 'V000'
ELSE 'L000' END
and
cardcode<
CASE
WHEN N'C'='C' THEN 'C99999'
WHEN N'C'='S' THEN 'V999'
ELSE 'L999' END
WHEN I CLICK CUSTOMER IT GENERATES THE NEXT CUSTOMER NUMBER FINE BUT WHEN I CLICK VENDOR OR LEAD
IT STILL GIVES ME THE CUSTOMER NUMBER.
Similar Messages
-
Name of Standard outbound Idoc generated after Business Partner change
Dear All,
I am looking for an standard outbound Idoc ehich generates after Business Partner Change/Save.
We are working on a customer requirement where we need to send Business Partner change data from ECC 6.0 system to their application through SAP PI 7.0.
The requirement is whenever we change a Business Partner (TCode - BP) in ECC 6.0 and save it,an IDoc should be triggered with changed data and this Idoc data will be propagated to SAP PI.
Can someone suggest the message type or basic type of standard outbound Idoc ehich generates after Business Partner Change and how we can trigger it.
Thanks
Honey
Edited by: Honey Gyanani on Jun 21, 2009 6:58 AM
Edited by: Honey Gyanani on Jun 21, 2009 7:05 AMDear Michal,
Thanks for all the details. At last the scenario worked and i am able to send the saved Business Partner data from ECC system to PI.
Can you please suggest what configuration needs to be done to send Customer data from ECC system to PI when we save/change any Customer in ECC system.
I have done ALE setting like SM59 (RFC destination), WE21 (Port creation), WE20 (Partner profile ), SALE (Logical system creation) and BD64 (Distribution channel with DEBMAS Idoc).
In transaction CRMC_BUT_CALL_FU, do I need to change any event.
Also please confirm if I can use outbound IDOC DEBMAS.
Best Regards
Honey -
How to create a business partner whose BP category is person in crm portal?
How to create a business partner whose BP category is person in crm portal.When I use Partner and account management>Partner function in portal,I create a new partner,the partner category is default organization,can not change.
But I what to create a partner with the partner category person,how can I do it?
Is there any other special function to ceate a BP in portal matching the function with T code Bup1(create BP)in sap gui?
By the way,I have the whole privileges in portal and crm.
thanksHello,
Standard CRM PC UI application offers three options when you push 'New' button: 'Person', 'Organization' and 'Group' (combobox appears). In your case, 'Person' should be selected.
p.s. If you don't see combobox mentioned above, it could be security issue.
Kirill -
How to read the business partner activity
Hi experts,
How to get the business partner(role:employee) assigned activities in crm and how to create the activity .my requirment is change the assiged from old employee(bp) to new employee(bp). i have to develop the program. i searched some BAPI's.
Please help on this.
thanks,
venu.Pls use the FM CRM_REPORT_CALL_RF. Pass the partner function to the exporting parameter table ir_partner_fct_h and partner number to the partner number to ir_partner_id_h . You will get all the guid and then use CRM_ORDER_MAINTAIN to change the partner.
CALL FUNCTION 'CRM_REPORT_CALL_RF'
EXPORTING
iv_stat_open = 'X'
iv_maximum_hits = ' '
ir_object_type_h = it_act_objtype
ir_partner_fct_h = it_partner_fct_h
ir_partner_id_h = it_partner_id_h
IMPORTING
et_guidlist = it_guid
EXCEPTIONS
parameter_error_partner = 1
parameter_error_items = 2
parameter_error_ref_obj = 3
OTHERS = 4. -
How to link the Business Partner with the SAP User ID.
Hi,
We are working on a scenario wherein the resources are created as Business Partners in R/3.
now How to link the Business Partner with the SAP User ID.HI AP,
Maintain the business partner in role Internet User - BUP005.
Now assign the existing user to this BP .(you can make this assignment in tab "internet user'. Just enter the user name in the field User and save).
You can now see the link in table HRP1001.
Cheers,
Rishu. -
How to generate pdf report and automatically save in the folder?
Hi all,
I want to ask, how to generate pdf report and automatically save in the folder?
Actually, if i run pdf report and show to screen. Now do not need to show to the screen but save the pdf file in the folder.
If anyone know, please share to me.
Thanks and regards,
IwanHi all,
Thanks for the reply.
when i run pdf report, and i got this URL to show the pdf report.
http://190.180.55.73:7778/reports/rwservlet/getjobid3828?server=sitcnrepsvr
Do any body know where can i get this pdf report that i have run in application server report folder ?
Thanks and regards,
Iwan -
How to block a business partner...in sales order????
Hi all,
While generating the sales order....In the customer tab i will select one business partner from CFL,after choosing i want one particular customer to be blocked....means it should unable to post the sales order.....i know that i should write my coding in the customer tab LOST FOCUS event......can anybody suggest me the coding for this problem....
regards,
shangai.Shangai,
How about blocking some partner from ChooseFromList of BP in Sales Order?
Meaning that blocked some bp with criteria in Choose From List. Sample code:
If pVal.FormType = 139 And pVal.EventType = SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST Then
If pVal.ItemUID = "4" Then
If pVal.InnerEvent And pVal.Before_Action Then
BubbleEvent = False
Dim oForm As SAPbouiCOM.Form
oForm = SBO_Application.Forms.Item(FormUID)
Dim oCons As SAPbouiCOM.Conditions
Dim oCFL As SAPbouiCOM.ChooseFromList
'oCFL = oCFLs.Add(oCFLCreationParams)
oCFL = oForm.ChooseFromLists.Item("2")
oCons = oCFL.GetConditions()
'Note: Add the condition only once.
If 0 = oCons.Count Then
Dim oCon As SAPbouiCOM.Condition
oCon = oCons.Add()
oCon.Alias = "Cardcode"
oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
oCon.CondVal = "C0001"
'Set your own condition here instead of the system conditions
oCFL.SetConditions(oCons)
End If
BubbleEvent = True
End If
End If
End If
Regards, Yatsea -
How to look for business partner number in GTS
Hi Experts,
How to look for the business partner number in GTS when we have the Customer Id number in r/3?
Please let me know the path in GTS.
Edited by: Anurag87 on Dec 9, 2010 2:17 PMHello,
just simple in GTS in transaction BP find by "3 External number" (which is yours R/3 number).
Or in se16 table /SAPSLL/PNTBP type in field BPVSY you external number from R/3 system.
Cheers,
Gabriel. -
How to create the Business Partner Relationship
Dear Sir,
I would like to add the new Business Partner RElationship , but I don't know how to do . Please kindly advise me the step to add the new business partner relationship.
Thank you and best regards,
VimolHi Vimol,
BP Relationship can be created in the Tcode - BP.
Eg: If an Org, say SAP is defined as a BP (Org), and now u need to define some relationships for this org, say the Contact person, Employee responsible etc., then we nd to first create the separate BP's, for eg Contact PErson for SAP Org is Vimol S, then create Vimol S as an individual. and after doin this go to SAP Org BP and there click Relationship tab, on the TOP RIGHT hand side of the screen. Here it'll ask for the BP no. and the relationship u need to assign b/w this BP and the Org. There will be many relationships, choose the one which suits your requirement. This will take care of it.
I hope my explanation and steps are clear. Pls revert if any isues.
Suji -
How to copy a Business Partner (partner/contact) across Dev & QA
Hi,
Requirement is to copy few Business Partner data (partner/contact) from QA system to Development system.
How do I do that ? Are there any standard FM ?
Awaiting response.
Regards,
MaheshHi,
sorry i do not have the answer for your question.
In our company we do complete client copy from prod to dev twice a year.
Therefore we have masterdate there in DEV-System.
Kind regards
Manfred -
How to create a Business Partner with internal number assignment
Hello,
We are using a CRM 7.0 system. We want to create a new Business Partner using LSMW. We chose IDoc basic type CRMXIF_PARTNER_SAVE_M03 to perform it. We want to create it with internal number assignment (we don't have BP ID or BP GUID). Unfortunatelly, when we leave PARTNER_NO and PARTNER_GUID fields empty, we get an error message that we should supply at least BP ID or BP GUID. So what values should we enter in order to create a BP with internal number assignment?
Please put attention that we also don't want to enter any alternative external number because we don't want the end user to see after in the WebUI.
Thanks in advance,
Sergey KozyrevHello,
Standard CRM PC UI application offers three options when you push 'New' button: 'Person', 'Organization' and 'Group' (combobox appears). In your case, 'Person' should be selected.
p.s. If you don't see combobox mentioned above, it could be security issue.
Kirill -
How to delete standard business partner role in CRM
Hi,
on CRM in the business partner relationships we got some relations marked as 'standard'.
If we delete such a relationship in the mobile client the bdoc will be rejected during ConnTrans and the changes will be set back on the mobile client.
If we delete such a relationship in the R/3 backend the deletion will be rejected by CRM but the change is not being set back in R/3, hence we get inconsistencies.
We need to delete standard business relations initiated by R/3 and from the mobile client. Can this be set in customizing or otherwise?
Best regards.Hi Wiliam,
Maybe notes 497146 and 914470 can help you. These will solve that deletions from R/3 are correctly reflected in Mobile. I don't know if it solves also the other way around as we don't use this functionality.
Best regards,
Boris -
How to differenciate betwen Business Partner
Hello Guys,
I have created two business partner.One of type Organisation and another of type Person.
Once I saved them and reopen them,i dont see any difference based on that I can differentiate.
In this case I can remeber which one is of which type as I have created.
But assume a case when a user has created 2 BP,on what basis will i differenciate.
PS: I have notice BP type provided by SAP 0001 & 0002 But no where I found which one is of type organisation or which one is of type Person.
Can any one help .
Thanks & Best Regadrs
RahulRahul,
When you goto BP screen for Business partner as a person you see value of title will be Mr. or Ms. but when you see title:company which means it is Business Partner as a organization.
Summary:Business partner Organization has title only <b>Company</b>
<br>
Business partner person has title only <b>Mr.</b> or <b>Ms. </b><br>
From title field you can make out difference between organization and person as a business partner.
let me know for any quires.
Thanks,
Nikhil -
How to extract custom business partner attributes?
I am working with a customer that has created custom fields against business partner. The fields are different depending on the role of the business partner. What is the best way to extract these attrbutes to BW? Should i create new custom datasources? Or is there a better way?
Hi,
This may help you:----
country code, language key.
Regards,
Suman -
How to release a Business Partner (BP)
HI,
Can anybody please let me know the procedure for releasing the status of Business partner after making changes to BP. Thanks.
Regards,
SSHi,
If you see my first message I had a clarification that whether you have the workflow active, but you never answered that. From your message now I can see that Business partner is required for each change by an authorized user due to workflow settings.
Please check the inbox (SO01) of authorized user to release business partner.
thanks,
Kumar
Maybe you are looking for
-
Question about Unique Table Columns - How to Handle Alerts
I have a table with a unique column, and I want to provide an error alert when a user tries to insert a record in which there is another record that already has the same value for that column. I tried just relying on the table constraint in the DB, b
-
Hi, I have created a Function Module, and from the function module i am calling a report program thru "SUBMIT" command. now in the 'submit' command i add the addition 'exporting list to memory and return'. after that i read the contents of the list u
-
ALV REPORT: read selected checkbox in alv grid and process the pushbutton
my requirement is to check some rows from alv grid and the press the pushbutton. Thereby following things should process: select all checked rows into an itab and call the transaction code CJ01 for all entries...... I am finding the problem that when
-
Is it possible upgrade SAP HANA DB without system/root user??
Hi All, I am supporting banking client. they are expecting to do SAP HANA upgrade(from OS or with HLM) . even some time patch Kernels also. my question is can we upgrade the SAP HANA system with SYSTEM user and root from OS(create different user whic
-
Aperture stripping caption info using aperturetoFTPpro plug in
I have been uploading large jpegs onto another server using ftp plug-in with Aperture. But it strips the photo info, captions etc from the file, which is crucial information for my clients. Does any one know why this is happening, If I could ftp dire