Item Master SP validation help

Dear Experts,
Please help me on creating a validation script on SP_PostTransaction.
I will like to validate that if my Item master to be added is an inventory item, the item name must end with "-FAB" or "-FGT" or "-ACC". If not, prompt an error and do not allow add.
Much Thanks in advance for your help!
Warmest Regards,
Chinho

You can use this, but not in the SP_PostTransaction, but in the SBO_SP_TransactionNotification  procedure, inserting after the line
--     ADD     YOUR     CODE     HERE
If @object_type = '4' and @transaction_type in ( 'A','U')
BEGIN
If exists
(Select I.ItemName  From OITM I
  Where I.ItemCode=@list_of_cols_val_tab_del
    and right(I.ItemName,4) not in ('-FAB','-FGT','-ACC')
    and I.InvntItem='Y' )
select  @error =11,
     @error_message = 'Item name invalid !'
END

Similar Messages

  • Issue importing item master data. Help!

    Hello All,
    I;m fairly new to B1, looks like a great product.
    Im having some issues importing master data using the data import tool under the administraion module.
    I have a list of items, and it will only import the last row. The log error says " Character number is greater than allowed" on all other rows/items.
    It's weird because all fields match perfectly, and if I put 1 row/item it uploads perfectly.  Only errorss when I have more than 1 row.
    Any help would be wonderful!
    Thanks,
    -Jon

    Hello John,
    You may check this thread:
    data import through excel
    Thanks,
    Gordon

  • Default Item Master Valid Checkbox

    Hi Experts,
    Is it possible to default the Valid checkbox (as checked) for all new items in the item master?
    Thanks,
    Jane

    Hello Jane,
    i dont think it is possible to make it default as checked since the valid tick box has a special function that Determines the validity period of an item master data.
    hope this may help u.
    Fidel

  • Reg:Validation on Item Master data

    Hi,
    I would like to put the validation for Item Name and UOM Name fields in Item Master in Update mode.
    And i try to do the following query.But it is not restricted in update mode.
    if @object_type ='4' and @transaction_type in ('U')
    begin
    IF EXISTS(select t2.itemcode from oitm t2 where
    t2.docentry =@list_of_cols_val_tab_del and
    t2.itemname not in
    ( select t1.itemname from oitm t1 where t1.itemname is not null) or t2.InvntryUom not in(select t1.InvntryUom  from oitm t1 where t1.InvntryUom  is not null))
    select @error=N'1',
    @error_message =N'You cannot update this document.'
    end
    please correct my given query.

    Hi md,
    If's wrong in this :
    t2.docentry =@list_of_cols_val_tab_del
    change by the following
    if @object_type ='4' and @transaction_type in ('U')
    begin
    IF EXISTS(select t2.itemcode from oitm t2 where
    t2.Itemcode =@list_of_cols_val_tab_del and
    t2.itemname not in
    ( select t1.itemname from oitm t1 where t1.itemname is not null) or t2.InvntryUom not in(select t1.InvntryUom  from oitm t1 where t1.InvntryUom  is not null))
    select @error=N'1',
    @error_message =N'You cannot update this document.'
    end
    Hope it helps

  • Required (Purchasing UoM) in Item Master

    What is u2018Required (Purchasing UoM)u2019 in the Planning tab of Item Master? What is the purpose of setting this value?  There is a validation that this value must be between the MIn and Max value. Why?

    The following is the Help by SAP for these Fields:
    Enter the minimum, maximum, and required inventory levels for this warehouse.
    In the Required (Purchase UoM) field, the system displays the quantity needed to keep the stock at the minimum level.
    The system:
    ●     Issues alerts when the quantity goes below the minimum (Release Stock Below Minimum Level in Document Settings must be selected)
    ●     Does not let you enter stock documents when stock reaches maximum quantity

  • Deployment in Multiple countries, Single Item Master

    Hi,
    We have a Business Group in country A. Item master defined for the same. System is live since last year.
    This year we are planning to implement R12 for country B.
    1. Can we use the same Item Master for country B as well? I read Oracle suggests to use 1 item master only for the ease of maintenance. Both countries A and B have separate Business Groups. So if we intend to use item master of A in B, what should be the setup so that we can view Item master while defining financial options in inventory setups in B. Currently it is not coming under the LOV.
    2. What is an item validation org? How is it different than an Item master.
    Thanks for your time and help beforehand.

    985400 wrote:
    Hi,
    We have a Business Group in country A. Item master defined for the same. System is live since last year.
    This year we are planning to implement R12 for country B.
    1. Can we use the same Item Master for country B as well? I read Oracle suggests to use 1 item master only for the ease of maintenance. Both countries A and B have separate Business Groups. So if we intend to use item master of A in B, what should be the setup so that we can view Item master while defining financial options in inventory setups in B. Currently it is not coming under the LOV.
    You need to set the profile "HR:Cross Business Group" as "Yes" to get the master org visible across business group.
    The link - http://oracle.ittoolbox.com/groups/technical-functional/oracle-apps-l/use-of-same-master-organization-in-moac-4687847 talks about the same.
    2. What is an item validation org? How is it different than an Item master.Please refer to - http://www.oraappsguide.com/oracle-item-validation-organization/
    Thanks,
    PS.

  • Error while importing Item Master data through DTW

    Hello Expert,
      I trying to import item master data through DTW but it gives an error while importing as shown in attach file..
      Please help me...
      I am using SAP 9.0 Pl 6
    Regards,
    Sandy

    Hi Sandy,
    Kindly follow the check list
    1. Right Click DTW and run it as Administrator.
    2. Is your DTW version is same as SAP B1.
    3. Uninstall and re-install DTW.
    4. If you are using 64-bit DTW, try to use 32-bit one.
    5. Check the Template, is it of the same DTW version.
    6. Remove all the unnecessary columns.
    7. Last try different Template extension.. (e.g: CSV (Comma delimited), or Text (Tab delimited))
    Hope you find this helpful......
    Regards,
    Syed Adnan

  • Set Length in Inches in item master data in purchasing tab

    Dear Experts,
    I want to set the length,width and height in Inches in the item master data of purchasing data tab. By default it is coming in meter. Please help me
    Regards,
    Ravindra

    Hi Ravindra......
    Go to Administration --> System Initialization --> General Settings --> Display Tab --> Default Length UoM --> set in Inch.
    Hope this will solve your problem.......
    Regards,
    Rahul

  • Item master data: can't modify

    Hello Experts,
    In Item master data >> Purchasing Data Tab >> Items Per Purchase Unit: when I try to change the value of this said field, it gives an error:
    Cannot change the field becuase item is already involved in transactions Message [150-16]
    Though I closed all the PO, Goods Receipt-PO, and Invoice but still the error is same.
    Help Required
    Regards,
    Edited by: Shazad Nazir on Jan 6, 2009 11:40 AM

    Hi,
    You can check Note No. [1059753|https://websmp130.sap-ag.de/sap(bD1odSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1059753] regarding your case.
    Regards,
    Jitin
    SAP Business One Forum Team

  • Insert or Update Item Master is too slow

    Dear Expert,
    I have a problem in add or update Item Master Data. When I click Add/Update, the process saving is too slow (need more than 5 minutes). This condition appear yesterday. In 2 days ago process add/update item master data normal.
    But the others transaction like business process, transaction is normal.
    I have did shrink database in SQL, but not help.
    Does anybody help my problem? how should I do?
    Thank you before help me

    Hi pak Hendra,
    May I know how much is your livedb size now ? If it is still slow after reindexing, you may consider to do these followings suggestions:
    1. Increase your server hdd size
    2. Increase your server's processor
    3. cut off and do new opening balance
    Is the problem happened in branch/outlet ? do you use citrix to access the server from branch ? Of course you can reindex the db to solve this issue but it is not the only one solution. You must also concern about the connection.
    Rgds,
    JimM@sbo_knowledge_village

  • Ordered of item master show wrong Data

    Dear All
    i have problem in Ordered field of item master data ,because in some items it shows quantity but no open PO or A/R Reserve or Production Order or Inventory Transfer request and even Inventory status report show nothing ,you can find image of problem in attachment.
    Please some help with this
    Regards

    Hi,
    Not sure about this SAP note whether need to consider or not.
    752031 - Using the Restore functions
    Thanks & Regards,
    Nagarajan

  • Inbuilt RFC/IDOCs to upload ITEM MASTER DATA in SAP IS Retail system

    Hi,
    Kindly let me know the inbuilt IDOCs/RFCs to upload ITEM MASTER DATA in SAP IS Retail system.
    Otherwise let me know the tcode to check the inbuilt IDOCs/RFCs in SAP IS retail system or let me know all MASTER DATA related inbuilt IDOCs/RFCs in SAP IS retail system.
    Thanks
    Ramesh

    Hi,
    Please check below link. hope it helps you to answer your question
    http://wiki.sdn.sap.com/wiki/display/Retail/SAPRetailPOS+Interface

  • Problem in Set GLby in Item Master

    Dear All,
    I am facing problem in set GL by method in item master, In my master I have defined some items with warehouse determination, some items with Item group determination and few items with Item level determination.
    but in case of items for which i have set GL by item level are automatically changes to item group as i have determined GL at item level and my item group GLs are blank system wont allow me to transact as there is no account in item group and anyway it is not desired .
    anybody has faced problems like that and what would be the possible solution
    Thanks,
    Regards,
    Atul Joshi

    Hi Atul,
    >>  I am facing problem that in Item master "Set GL By" changes from Item level to Item Group automatically
    I am not sure whether my reply will be of any further help to you or not!
    However, would you please check whether this behaviour is also reproducible in demo database (say OEC computers) or any other database on the same server environment.
    If you are able reproduce the same problem in all databases that are configured in your current server environment, I recommend to report the issue to support via a ticket (if not created already).
    If the problem is with only one database then as already recommended by other experts on this thread:
    1. Comment all user code in Stored procedure
    2. Verify if any formatted search queries are active on Item Master (like auto number generation, like ...)
    3. Is there any add-ons that are active on Item Master
    Would appreciate if you also write back whether you are not able to update on change of "Set GL By" (or) it is getting changed automatically from item level to Item group.
    Good Luck.
    Regards
    Satish

  • Update of Intrastat details against Item Master Data

    Hi I'm looking to import Intrastat details against item master data.  I understnad from the portal that this needs to be imported to UDO but need some guidance in terms of template set up. 
    Grateful for any help
    Regards
    David

    Hi,
    If you have made already the transactions you cannot update the G/L method.
    Secondly if you have set G/L by Item level then you need to define the inventory accounts for all the items in your template then only you will be able to proceed further
    Regards
    Md.nazeer Shaikh

  • FK01: Vendor Master Record Validation Table is not maintained

    Hi Experts,
    Appreciate your help on this matter: I have created a new Vendor Account Group and tried to used it. However, upon saving I encountered problem: error message Vendor Master Record Validation Table is not maintained. Do I missed some configuration?
    Thank you very much!

    Hi,
    STEP 3 : In Financial accounting > A/R A/P > Business Transactions > Outgoing payments > Manual Outgoing payments >
    Define Tolerance (Vendors)
    STEP 4 : Create a GL A/c Creditors in FS00 as a balance sheet a/c and in control tab give reconciliation type as Vendors
    and Field Status Group G067.  Assign this account in company code data in FK02.
    Regards,
    Sadashivan

Maybe you are looking for

  • When i try to open a pdf file my security settings allow it. Help?

    when i try to open a pdf file i get a message box that says my security settings won't allow it.  i have adobe reader 9.  what can i do?

  • Dynamic displaying fileds of a record

    hi, i am doing a jsp app. user can register personal infomation into database. he can also customized which field of his own reocrd will be displayed. how can do that?

  • After dragging a map and navigating away all other scenes are off centre..

    My Flash document contains several scenes, one of them is a draggable map including hotspots/buttons to navigate to another scene. After dragging the map then navigating from one of the buttons the next frame is remains off centre (as if when the map

  • How to make comp be clever

    hi i have a static evaluation method which looks for the best algo for a comp for the game noughts and crosses: Does anybody have a better algo?? public Coords requestMove(Umpire theUmpire, GameBoard position)     int big = -100;     Coords c =null;

  • Lightroom 3 poor performance

    I read about all of the improvements that were supposed to be in LR3, but I'm extremely disappointed in the performance of it and Adobe. Today I tried to take a simple catalog of jpgs and create a slideshow.  About 3 files into the rendering, LR3 cra