Item Code Length
Hi Experts,
Is there any way to increase the length of Item code(From 20 to 35) in Item master data? If yes than please let me know, how? If this is not possible than please help me to create "Foreign Name" Field Mandatory and unique in Item master data.
Thanks in advance.
Ashutosh
Edited by: Ashutosh T on Nov 23, 2009 12:55 PM
There is no possibility to increase the item code. To make it unique and mandatory you should insert this code into the SBO_SP_TransactionNotification stored procedure after the
-- ADD YOUR CODE HERE
line:
If @object_type = '4' and @transaction_type in ( 'A','U')
BEGIN
declare @fn nvarchar(100)
set @fn=(Select isnull(I.FrgnName,'') From OITM I
Where I.ItemCode=@list_of_cols_val_tab_del)
If @fn=''
begin
select @error =11
select @error_message = 'You should enter Foreign Name!'
end
else
If exists (Select I.FrgnName From OITM I
Where I.FrgnName=@fn and I.ItemCode!=@list_of_cols_val_tab_del)
begin
select @error =12
select @error_message = 'Duplicate Foreign Name!!'
end
END
Similar Messages
-
Hi!
Is there a way to increase the Item Code field size? I believe it is 20 characters. Can it be increased to a higher size, say, 35 characters?
PrajwalHi Prajwal Kashyap,
The length of item code is designed in background as 20 characters and cannot be changed from front end, even with add-on/SDK.
If it is really necessary for your customer to change the definition, please kindly refer to Note 1028874 regarding missing functionality for datails and log a message providing Business Impact.
Regards,
Varun
SAP Business One Forum Team -
What is the best way to set a rule for item codes to ensure the length of the item code MUST equal 14 characters including 2 - signs (character will be numberic and alphanumeric)
I.e.
1234-12345-123
Thanks LisaLisa,
Try this in SP_SBO_TransactionNofication:
--validation for ItemCode in Item Master Data.
--Rules:
--1.length = 14,
--2.char = numeric, - , alpha
--3.Contain two '-' sign
if @object_type = '4' and (@transaction_type = 'A' OR @transaction_type = 'U')
begin
if (len(@list_of_cols_val_tab_del) <> 14 )
or (patindex('%[^0-9,a-z,A-Z,-]%',@list_of_cols_val_tab_del) <> 0) --contain special chars
or (patindex('%-%-%',@list_of_cols_val_tab_del) = 0)
begin
set @error = -4
set @error_message = 'Item code should contain 14 characters and 2 ''-'' sign'
end
end
Regards, Yatsea -
How I can know which row is parent item code or child item in matrix?
Hi,
In marketing document, when insert a item into contents page, if it is a BOM then all child item will be inserted into matrix automatically. My question is when i view the rows in matrix how i can know which row is normal master item and which row is a child item row? From the UI, i can only see the child item code looks readonly but how i can know it in my add-on code? I tried to get the edittext box object from item No. cell, but i can't find any difference.
Thanks!
LanSorry, i found an issue when i try to retrieve the BOM Type column value. I am in adding mode, when i insert a BOM with components, the bom type will appears as "Component of a Sales BOM". But in the event, when I try to get the value from this cell (it is combobox), it gives another value which is not same with the one it appears in the matrix. Is anyone know how to solve my problem?
Thanks!
Lan -
Inventory account not defined in item code
Hi,
Iam trying to add A/p Credit memo from A/P invoice (Copy to method) and changing Unit price of one item (there 8 items) then it gives error of "Inventory account not defined item code" i check all accounts in Item group and Wh also.i also change item gr.of particular item and update it correct item gr.relogin but still problem occurs so pl suggest me solution.
Regards
Sudhir Pawar.HI
If ur using purchasing acc.System method u have to define the accounts for purchase acc., purchase offset acc. then ly it will allow to add. Also check the new item group which u have changed now, check whether all acc.s r there r not in that group.
Also Purchase Return acc.
Giri
Edited by: Giri dharan on Aug 18, 2009 11:15 AM -
Multiple Item Codes in a MRP Generated PR
Dear Sir,
We have a requirement to have "Multiple Item Codes" in a single PR . The PR are generated thru MRP . The criterion to have multiple Items in a single PR is that a PR will contain multiple Items codes pertaining to the same Material-Group .
We have come to know that for this MD15 tcode can be used . But the problem with this is that there is manual effort required for clubbing of multiple Items in a single PR from the planned order .
We look forward for some automatic way for handling the above requirement .
Request you to kindly help me on the above issue please .
Regrds
B MittalIf you are getting Currency key from file then before passing data to BAPI, Check the value of Currency key, if it is not USD then display error message.
-
Hi All,
My query goes like this
SELECT DISTINCT(T0.[ItemCode]), T0.[ItemName], T1.[OnHand] as STOCK_IN_METER, T2.[Price] as BASE_PRICE, T0.[U_Length_In_Meter],T1.[OnHand]/T0.[U_Length_In_Meter] as STOCK_IN_PIECE, T0.[U_Weight_kgm], T1.[OnHand]* T0.[U_Weight_kgm] as TOTAL_KG FROM OITM T0 INNER JOIN OITW T1 ON T0.ItemCode = T1.ItemCode INNER JOIN OINM T2 ON T0.ItemCode = T2.ItemCode WHERE T1.[WhsCode] ='03' and T0.[ItmsGrpCod] ='102' and T1.[OnHand] <>0
Why Duplicate item code is coming and how to solve that?
Regards,
Rupa SarkarHi Rupa,
There could be many different Prices under OINM for one item. You can only use OITM.LastPurPrc or a specific price under a specific price list for a item.
Thanks,
Gordon -
Every item has 12 digits code.
Reason of duplicate item code opening:
1. Different description formats for same part
2. Different unit of measurement
3. Different export place(e.g. China and India)
4. Different old code
5. Same use of part in different system leads to different catalog
so different code
Due to these reason the person who create code for items can’t
differentiate between the new item and existing item code. This
leads to opening of new item code for an existing code and hence
duplicate code.Hello,
I think application do not help you with this. This is business problem not application problem. In my company a few person can create items and a few person can request new items. This process should be centralized and you have make some procedure in your organization. You can make some rules to valid new item before creating it.
Regards,
Luko -
Report to find Bid Invitation against an item code
I have an item code(product master) in SRM. I want to find whether any Bid Invitation exists against this item code? Is there any report or function module to find??
regards
HarshbHi,
YS,
I must thank you for taking interest in my question.
I tried to test the FM BBP_PD_BID_GETLIST; I put product-id in the Import parameter I_ITEM_ORDERED_PROD; But it is not bringing any result, where as Bid inviation exists against the product. Then I put product id in import parameter I_ITEM_PRODUCT, but still no result. Can you pl. suggest what is wrong?
regards
HARSHB -
Item Code Auto Generation Based on User defined Tables
I need the Item code like
PRODUCT TYPE-ITEMGROUP-ITEMCODE-SUBITEM-BRAND-COLOR e.g .FG-01-01-00-001-00.
I created the following User define Tables and link to Item Master data
U_PRO - FOR PRODUCT TYPE
U_GROUP - FOR ITEM GROUP
U_ITEMCODE - FOR ITEMCODE
U_SUBITEM - FOR SUB ITEM
U_BRD - FOR BRAND NAME
U_COLOR - FOR COLOR
i need a formatted search in Item code to fetch the codes from the user defined table
i tried with the following
SELECT T5.[Code]'-'T2.[Code]'-'T3.[Code]'-'T4.[Code]'-'T0.[Code]'-'T1.[Code] FROM [dbo].[@BRD] T0 , [dbo].[@COLOR] T1, [dbo].[@GROUP] T2, [dbo].[@ITEMCODE] T3, [dbo].[@SUBITEM] T4, [dbo].[@PRO] T5 INNER JOIN OITM T6 ON T5.Code = T6.U_PRO WHERE
T5.[Code] = T6.[$U_PRO] AND
T2.[Code] = T6.[$ U_GROUP] AND
T3.[Code] = T6.[$U_ITEMCODE] AND
T4.[Code] = T6.[$U_SUBITEM] AND
T0.[Code] = T6.[$U_BRD] AND
T1.[Code] = T6.[$U_COLOR]
showing errors. Can any one help me regarding this. I badly need the query for Auto generation of ItemcodeHi,
How can you assign those UDF value without ItemCode in the first place?
Thanks,
Gordon -
Item Codes-Automatic(urgent)
Hi All,
I want to define Item Code as Default i.e In SAP How we are getting the Default numbering for eg.1,2,3,4.........I want in the same way for the Item Code.IS IT POSSIBLE through Query based FMS or any other way??
Thanks in Advance.
monaDear Mona,
In order to resolve the issue, please do the following steps :-
1. Create a Initial Item code I0000 manually in the application.
2. Save the following query :-
Select max(Itemtype)
+ cast(substring( max(Itemcode), 2, len(max(Itemcode)))
+ 1 as nvarchar(10)) from OITM
Where Itemtype = $[OITM.Itemtype]
3. Create a formatted search based on the above query and assign it to the itemcode field. (Open Item master in add mode )
4. Then select refresh the formatted search regularly with the Item description change.
5. Then Go to item master data in add mode put something in item code field and then type the correct item description and click tab.
Now your Itemcode field will display as "I0001".
Regards,
Rakesh Pati
SAP Business One Forum Team -
SBO 2007 PLD AR invoice item code not printing
Hi,
We have a problem which just started yesterday on an installation that has been running fine for a long time. The PLD format for the AR Invoice usually prints the row ItemCode no problem. Since yesterday it started printing the item's manufactirers number instead. If we changed the default layout to the SAP supplied layout the problem was the same. Went in to the customised PLD and amended it to one field and then back to the ItemCode now it does not print anything in that field, and nor do the system provided PLDs either, although they have/can not be amended.
Any ideas?
Thanks
SimonHi Thanks for the replies,
The system is on SP00 PL49. There are no add-ons, and certainly no add-on have been removed or added recently. The AR invoice PLD has been in use for at least six months without modification. The field for item code in the PLD looks fine, if I amend it to show, say, the INV1 warehouse code instead, it works fine. If I switch it back to Itemcode it print nothing. If I check the table it looks fine also. It is very strange that the same symptom is experienced in the customer modified PLD and system default PLDs
Any ideas?
Simon -
Query-Select Item Code ending in 'NI'
How do I select an Item Code ending in 'NI'?
Hi Daniel,
Please check below query which will give you Item ending with 'NI'
SELECT T0.[ItemCode], T0.[ItemName] FROM OITM T0 WHERE T0.[ItemCode] LIKE '%NI'
Hope this help
Regards::::
Atul Chakraborty -
Hello experts,
I had a small doubt.
While going thro Vendor replication errors in SLG1, I see that many errors like postal code length, geocodes not mainatained etc are repeating..
We have tried syncing the two with know tables/config many times, but something new pops up each time.
My question here is that, do we have any report/config that needs to be scheduled/done to bring in the supporting config entries from ECC to SRM.
Any help/lead would be of great help.
Thank you.Hi Aarvi,
There is a table comparision method which you can sync up from your dev system, create a transport and move through your production systems.
Thank You,
DV -
Hide inactive item codes in A/R Invoice
Hello,
Please let me know the process to block the inactive item codes in A/R Invoice. Even after setting the Inventory codes as "Inactive", the corresponding item codes are still shown in Invoice. Is there a way to block them from being displayed.
Thanks,
Vineela.Hi
Apply this FMS on Item Code of Invoice
FMS Query:
select Itemcode,ItemName from OITM where OITM.FrozenFor = 'N'
Maybe you are looking for
-
Text elements not displayng for upgraded 7.x worbook
Hi Experts, I have migrated a 3.x workbook to 7.x worbook. In 3.x I have text elements for variable in my layout.. After migration the text elements for variables are not displaying and they are blank in 7.x workbook. Is there any equelent opton for
-
ok i recieved the jurassic park blu ray triliogy with digital copy. i put in the code and after it was done downloading it said it could not play nor sync into my ipod touch 4th gen as didn't have Quick time installed but as the topic states i have a
-
How can I add photos to my iphone using windows XP?
I'm trying to figure out how to add pictures from my XP to my new iphone without using the email?
-
Two vexing consolidation and library problem
1. About 3 years ago, the "C drive on my computer was just about full. I moved iTunes content to the "D" drive, unfortunately without consolidating. On that computer, all content -- whether purchased or added before or after the move from "C" to "D"
-
I used Maps last night in Manhattan and the turn by turn could not pronounce the numbered streets properly. What's the fix? It was reading off the letters and numbers individually. E. 11th St. was reading as E 1 1 th S T.