Auto generation of Item Code And Business Partner
Hello All,
My client want to create Auto generation of Item Code And Business Partner with some prefix value.
Thanks
Deepak
Hi Dipak Patel,
i created BP code by BP Group use FMS . you can refer code.
declare @temp as char(20)
IF $[OCRD.GroupCode] =100
BEGIN
set @temp=(select isnull(max(right(CardCode,5)),0) + 1 from OCRD where (GroupCode =100) and (len(CardCode)=8))
set @temp='C11'+isnull(replicate(0,5-len(@temp)),'')+@temp
select cast(@temp as char(20))
END
ELSE IF $[OCRD.GroupCode] = 102
BEGIN
set @temp=(select isnull(max(right(CardCode,5)),0) + 1 from OCRD where (GroupCode =102) and (len(CardCode)=8))
set @temp='C12'+isnull(replicate(0,5-len(@temp)),'')+@temp
select cast(@temp as char(20))
END
ELSE IF $[OCRD.GroupCode] = 103
BEGIN
set @temp=(select isnull(max(right(CardCode,5)),0) + 1 from OCRD where (GroupCode =103) and (len(CardCode)=8))
set @temp='C13'+isnull(replicate(0,5-len(@temp)),'')+@temp
select cast(@temp as char(20))
END
ELSE IF $[OCRD.GroupCode] = 104
BEGIN
set @temp=(select isnull(max(right(CardCode,5)),0) + 1 from OCRD where (GroupCode =104) and (len(CardCode)=8))
set @temp='C14'+isnull(replicate(0,5-len(@temp)),'')+@temp
select cast(@temp as char(20))
END
ELSE IF $[OCRD.GroupCode] = 101
BEGIN
set @temp=(select isnull(max(right(CardCode,5)),0) + 1 from OCRD where (GroupCode =101) and (len(CardCode)=8))
set @temp='V11'+isnull(replicate(0,5-len(@temp)),'')+@temp
select cast(@temp as char(20))
END
ELSE IF $[OCRD.GroupCode] = 105
BEGIN
set @temp=(select isnull(max(right(CardCode,5)),0) + 1 from OCRD where (GroupCode =105) and (len(CardCode)=8))
set @temp='V12'+isnull(replicate(0,5-len(@temp)),'')+@temp
select cast(@temp as char(20))
END
ELSE IF $[OCRD.GroupCode] = 106
BEGIN
set @temp=(select isnull(max(right(CardCode,5)),0) + 1 from OCRD where (GroupCode =106) and (len(CardCode)=8))
set @temp='V13'+isnull(replicate(0,5-len(@temp)),'')+@temp
select cast(@temp as char(20))
END
ELSE IF $[OCRD.GroupCode] = 107
BEGIN
set @temp=(select isnull(max(right(CardCode,5)),0) + 1 from OCRD where (GroupCode =107) and (len(CardCode)=8))
set @temp='V14'+isnull(replicate(0,5-len(@temp)),'')+@temp
select cast(@temp as char(20))
END
ELSE IF $[OCRD.GroupCode] = 108
BEGIN
set @temp=(select isnull(max(right(CardCode,5)),0) + 1 from OCRD where (GroupCode =108) and (len(CardCode)=8))
set @temp='V15'+isnull(replicate(0,5-len(@temp)),'')+@temp
select cast(@temp as char(20))
END
ELSE IF $[OCRD.GroupCode] = 109
BEGIN
set @temp=(select isnull(max(right(CardCode,5)),0) + 1 from OCRD where (GroupCode =109) and (len(CardCode)=8))
set @temp='V16'+isnull(replicate(0,5-len(@temp)),'')+@temp
select cast(@temp as char(20))
END
ELSE IF $[OCRD.GroupCode] = 110
BEGIN
set @temp=(select isnull(max(right(CardCode,5)),0) + 1 from OCRD where (GroupCode =110) and (len(CardCode)=8))
set @temp='V17'+isnull(replicate(0,5-len(@temp)),'')+@temp
select cast(@temp as char(20))
END
thanks
H2
Similar Messages
-
Hi Experts,
Is it possible to create auto generation of Item Codes in SAP B1?
E.g Customer want specific format say ... I000001---- I9999999
tks,
SB1Dear,
You posted the same thread twice.
Check you previous thread for reply :
Re: Auto generation of Item Code
Hope this will help u.
Thanks,
Neetu -
Open projects conversion RPM Items / cProjects and Business Partner
Guru's,
Do we have any SAP standard delivered objects for projects upload conversion (from excel sheets for example) for RPM Items and cProjects ? Please provide information, we have about 1000 to convert. We also have a custom tab for attributes, so wondering how to convert them without manual keyboard entries of each project.
Also, Business partners for RPM, do we have any BAPI available ?
thanks in advance ...
- RPM/cProject newbieThe bad news is that we had to write our own custom program to upload RPM items though we used SAP provided function modules /RPM/ITEM_MODIFY, /RPM/ACL_MODIFY, /RPM/DECISION_POINT_MODIFY, /RPM/FIN_GROUP_MODIFY
/RPM/CAP_GROUP_MODIFY, /RPM/SAVE_CHANGES ). -
Automaticly offer outstanding items of a business partner in journal entry
One Customer ist a stright bookkeeper. Hi only likes to book in the journal and won't use the banking wizzard.
Is there a possibility, that there will be automaticly an offer with the outstanding items of the business-partner when making a journal-entry like:
GL 1.000,00 against BP
Thanks for helpingGood morning,
thanks for your answer. I know this proceeding i've written from other ERP-Software (sage).
When you make a journal entry, i'll get an offer of the outstanding items from the BP an i can choose, where i'll subtract the payed amount from.
I see, there is no standard possibility to do so in SBO.
Why you say, that it isn't a good practise to pass yournal entries on bp? -
BP change documents ( linking problem between Object id and Business Partner)
Hi,
We need to create a report for documents changed for a Business partner.
This will be done in sap bw.
on source side I have created the datasource with function module changedocument_read and I am getting most of the information
which I want. Only missing part is Business Partner number.
Can somebody suggest , how I would be able to link Object Id to business partner.
I need to pull everything that is changed at BP level and the Object class selection around 30 in number.
So I am looking for any standard function module which can provide me the link between Object id and Business partner.
If I establish the rules to determine the Business partner from Object id , its getting bit difficult.
Can somebody please help/suggest.
I have gone through many documents and scn posts but unable to find anything on this.
Thanks !Hi, looking at the change history header table CDHDR it seems that object ID simple equals the internal format of the business partner number.
-
Business Partner Role and Business Partner Grouping
Hello Everybody!
Business Partner Role and Business Partner Grouping.
Which correlation ist between this attributes existing.
In which table are this infos stored, In order create I can use
e.g. BUPA_CREATE_FROM_DATA
but how is the way inversely. Suppose I want to abtain the information
about a existing business partner which group he has etc.
Regards
sasDear Sas,
Business Partner Grouping is used to determine the number ranges to be used by the business partner at the time of creation.
Business Partner Role determines the subset of all the data available to be shown and edited.
I will give you a very simple (but imaginary) example for understanding the role concept: the business partner in a role of employee might allow you to enter a department id. So this field should be available to you for input when you edit the business partner in the role of employee. But suppose the same business partner is also a person who is your customer. And your customer will require a default payment term. So this field should be available for input when you edit the business partner in the role of a customer. Also, some applications use these roles to determine if the business partner is suitable for particular transaction. In the above example, Payroll application will only allow those Business Partner to be used if they are maintained as an employee. Similarly the sales application can mandate that you can only sell a product to a business partner if he is maintain in a 'customer' role.
Please understand the example above is not real but given for the understanding of the concept of role.
You can use the function module 'BUPA_CENTRAL_GET_DETAIL' to find the business partner group. And you can use the function 'BUPA_ROLES_GET' to find the role assigned to a Business Partner.
Regards, Rakesh -
Item Codes and Revisions to Items
Hi Experts!
I have a client who does Custom Manufacturing. I have a question about Item Codes and Revisions.
My understanding is that it is better to use a unique Item Code for each change to an Item. Therefore every revision would have a new Item Code with all the nessesary drawings etc. linked to it.
Is there a way to keep the same Item Code and just mark it as Revision 1, 2,3 etc....(not in the ItemCode) BUT keep the history of the old revisions, like the drawings that was attached to it...
Any help would be appreciated.
Thanks.
MarliHi Marli,
Unfortunately No. Item Code is the primary key for item table OITM. You have to make it unique. You could keep the same initial with suffix like a, b, c to make the different item codes but identifiable easily.
Thanks,
Gordon. -
Account group and Business partner link
Hi all,
Is there any relation maintained for Account group (From R/3) and Business Partner Role in GTS system?Hi Balu,
In GTS, system does not consider the Account group while creating a BP role for a BP whereas it only considers the classification of Vendors or Customers. If a Customer master is created in R/3 irrespective of Account Group, BP role SLLCPC will be assigned whereas if a Vendor is created in R/3, then BP role SLLCPS will be assigned.
Hope this answers the query.
Regards,
Shiva Shankar -
New user created. How to create Central Person and Business partner
Hi,
I got a new users created in SRM 5.0 .how to create Central person and business partner.
Without CP & BP we cannot work. please guide.
Regards
G.Ganesh KumarHI GANESH
As you aware , assign the user to organisation structure via users_gen , the system will create a BP and Central Person , Position and user for you.
br
muthu -
What is the Diff bet partner functions and business partner?
Hi friends
what is the Diff bet partner functions and business partner
Regards
AbirathHi,
In SRM there are different Partner functions like REQUESTER, GOODS RECIPIENT, VENDOR ,LOCATION.
All the org units or users in SRM will have a unique identification number called Business Partner Number maintained in table BUT000.
The users can have differnt partner functions in differnt documents and accordingly mainatained in table CRMD_PARTNER.
Hope this will give you some infomation.
Regards,
Sheetal. -
E-Recruitment,Syncronization for Employee and Business Partner not working?
hi there,
i itend to create a business partner for employee in SAP E RECRUITMENT but when i run the report HRALXSYNC for an employee, the result i am getting is total blank. I suppose there should be some errors if it is not working properly, but the the screen after running the report is total blank.
are any prior settings must me meet before the business partners can be created using HRALXSYNC?
thanks youHI Ravi
Requirements to use the report are the activation of the integration for buisness partner. You could get details from sap note 550055.
You have to switch on the following keys in table T77S0 with SM30:
Group Sem. ID
HRALX HRAC to 'X' for global HR-Integration
HRALX OBPON to "ON" for activate the integration between organization object and business partner
HRALX PBPON "ON" for activation the integration between central perosn and business partner
Hope this helps.
Regards
Bernd -
How i Rename Item Code and Description
Dear All,
Can you please tell me how i change Item code and item description in sap b1 8.8.This can be very annoying. If there's a typo in the product code, we cannot update it anymore (since there are already transactions with this product) and the item is not displayed in the correct place when the item list is sorted on the item code. We can start a new product with the correct code and transfer the items in stock to the new product code, but then all the current transactions are still linked with the old/deprecated product. Very annoying.
If someone could find a method to rename the item code without losing the linked transactions, this would really be helpful. Thanks!
Regards,
Pieter Verhaeghe -
Product master screen enhancement and Business partner screen enhancement
Can anyone please let me know how to enhance screen, DB for Product Master and Business Partner in SRM.
Thanks in advance.
Regards,
Nilesh KumarHi Nilesh,
For enhancing the BP screen you can refer the following links:
Re: Customer fields in BP
Re: Business partner enhancement
Thanks,
Pradeep -
Table for link between conttract account no and business partner
Hi,
can anyone let me know abt any table that defines relation between contract account and business partner.
so dat for a contract account no i can get 1 business partner .
Thnx,Hi
Use the table
<b>VVKKFOPT and VVKKFOP</b>
both business partner and Contract account fields are there.
Reward points if useful
Regards
Anji
Message was edited by:
Anji Reddy Vangala -
Item Code Auto generation in item master UDF field
Dear Expert,
I want to Generate automatic item code in the item master U_STY UDF field . the number start with 'SL' prefix
like this 'SL000001' and continue when i generate next item master.
for example 'SL000001' for X item . when add next item Y then item nuber will be 'SL000002'. kindly help me.
thanks.
sridharan
Edited by: Sridharan.R on Oct 28, 2011 10:02 AMHi!
Try this
declare @temp as char(15)
IF (Select max(Itemcode) from OITM ) IS Null
BEGIN
set @temp = 'SL000001'
select cast(@temp as char(15))
END
set @temp=(select max(right(ItemCode,6)) + 1 from OITM )
set @temp='SL'+isnull(replicate(0,6-len(@temp)),'')+@temp
select cast(@temp as char(15))
END
Regards,
[Thanga Raj K|Q3 Wrap-Up: What happened in the third quarter of 2009 in the SAP Business One Community]
Maybe you are looking for
-
ADF Master Detail Insertion and updation
Dear All I am developing a web application with the ADF using ADF BC4J as a buisness service and JSP as th view. I am creating a Master detail page that makes the user add the ,master and the detail(s) information in the same page. Example: you may i
-
Hi SAP-ABAP Experts, In SLDB, I created the logical base base, in that i Created 3 Nodes. Error: When i tried to save the created nodes, i am getting the Run time Error. Please resolve the problem. Thanks Kavitha
-
Version compatability for Transformation
Hi, I developed code for transforming the xmls by using xsl contain java methods ex: <xsl:stylesheet version="2.0" xmlns:jiva="com.seq.sqlxml.xslutil" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="seq" > <xsl:output method
-
When importing pictures from digital camera, error/unreadable pics?
I'm new to Mac - and fairly green when it comes to all thinks computer related..so bear with me I've connected by digital camera and tried using the iphoto to import - but it won't find/upload any pictures...I just get the spinning wheel/timer foreve
-
Can you have more than one iWeb?
how do you do this? thanks, missy