FRM 41337: Issues with list item

Hi Everyone,
I have created list item, and populated elements dynamically in when-new-form-instance using below code
DECLARE
l_action_rg  recordgroup;
l_action_id    item
               := FIND_ITEM ('XXSCP_GBL_EXP_DETAIL_V.ACTION_TYPE_TEXT');
l_num_action NUMBER;
BEGIN
l_action_rg :=
            CREATE_GROUP_FROM_QUERY
               ('Action_Type_Text_lov',
                'select flv.meaning Action_Type_Text_lov, to_char(flv.lookup_code) Action_Type_Text_lov from fnd_lookup_values flv where flv.lookup_type= ''XXSCP_GBL_ACTION_TYPE'' AND flv.LANGUAGE = USERENV (''LANG'') '
         l_num_action := POPULATE_GROUP ('Action_Type_Text_lov');        
         POPULATE_LIST (l_action_id, 'Action_Type_Text_lov');
END;My form opening with below error "FRM-41337: Cannot populate list from record group " and showing no records.
I have read the related threads and tried implimenting the tips. But didnt help me..
Please suggest me if i miss anything.
Thanks
Pavan

Hi pavan
Let's test the query on toad...
or
i suggest u to try the first condition of ur rg in where clause as below ...
now let's see what's the output ???
DECLARE
l_action_rg  recordgroup;
l_action_id    item
               := FIND_ITEM ('XXSCP_GBL_EXP_DETAIL_V.ACTION_TYPE_TEXT');
l_num_action NUMBER;
BEGIN
l_action_rg :=
            CREATE_GROUP_FROM_QUERY
               ('Action_Type_Text_lov',
                ' select flv.meaning Action_Type_Text_lov,
to_char(flv.lookup_code) Action_Type_Text_lov
from fnd_lookup_values flv where flv.lookup_type= 'XXSCP_GBL_ACTION_TYPE' ' );
         l_num_action := POPULATE_GROUP ('Action_Type_Text_lov');        
         POPULATE_LIST (l_action_id, 'Action_Type_Text_lov');
END;
@ Divya ;
Hi Divya Action_Type_Text_lov in the fist select is just an aliasHope this helps...
Regards,
Amatu Allah

Similar Messages

  • Issue with list saving data after sites upgrade from sharepoint 2010 to sharepoint 2013

    Issue with list saving data after sites upgrade from sharepoint 2010 to sharepoint 2013 
    Newform.aspx of list:-
    Custom List is not saving data sometimes in the new form after 15 minutes and only blank entry record got created without saving data, even though some columns are mandatory fields?

    Hello dcakumar,
    Sounds like a strang issue. If you can reproduce this can you see some errors in the ULS logs?
    - Dennis | Netherlands | Blog |
    Twitter

  • GoDaddy IMAP issue with "Sent Items"

    There's some long standing issues with GoDaddy IMAP and Apple Mail.  GoDaddy is using Courier-IMAP 3.1.0.5.  The worst of the issues seems to be the fact that if you store your Sent Items on the Server, your log gets spammed with these two message (I'm removed the call stack) over and over and it also seems to degrade performance while Mail tries to traverse the folder hierarchy even though on the surface everything seems to be working.  Mail is spending an inordinate amount of time trying to create this "Sent_Items" mailbox and then failing... over and over...
    Aug 11 09:32:04 seven Mail[9613]: *** Assertion failure in -[IMAPAccount _IMAPMailboxForMailboxUid:name:createIfNeeded:], /SourceCache/Message/Message-1244.3/Accounts.subproj/IMAPAccount.m:1336
              Expected mailboxUid for Sent_Items
    Aug 11 09:32:04 seven Mail[9613]: *** Assertion failure in -[IMAPAccount _IMAPMailboxForMailboxUid:name:createIfNeeded:], /SourceCache/Message/Message-1244.3/Accounts.subproj/IMAPAccount.m:1344
              Didn't create IMAPMailbox for (null)
    Seems to me the reason this is happening has something to do with the fact that the "Sent Items" system folder is internally referenced as "Sent_Items" and they are being treated as synonyms for each other on the IMAP side while Apple Mail is seeing them as 2 different folders and failing when it thinks it needs to create the Sent_Items folder on the server. 
    I'm willing to accept that I could be completely wrong about this, or I could be right, but neither GoDaddy or Apple side seems interested in looking into it and it's very frustrating.  Here's why I think it might have something to do with it:
    [ben@seven][~]$ telnet imap.secureserver.net 143
    Trying 72.167.82.19...
    Connected to imap.where.secureserver.net.
    Escape character is '^]'.
    * OK [CAPABILITY IMAP4rev1 UNSELECT STARTTLS ID CHILDREN NAMESPACE IDLE] Courier-IMAP ready. Copyright 1998-2004 Double Precision, Inc.  See COPYING for distribution information.
    1 LOGIN [email protected] password
    1 OK LOGIN Ok.
    2 LIST "*" "*"
    * LIST (\NoInferiors) "/" "INBOX"
    * LIST (\NoInferiors) "/" "Bulk Mail"
    * LIST (\NoInferiors) "/" "Drafts"
    * LIST (\HasNoChildren) "/" "Email_Templates"
    * LIST (\NoInferiors) "/" "Send_Later"
    * LIST (\NoInferiors) "/" "Sent Items"
    * LIST (\NoInferiors) "/" "Trash"
    2 OK  Success
    3 STATUS "Sent Items" (UIDVALIDITY)
    * STATUS "Sent_Items" (UIDVALIDITY 1109891090)
    3 OK STATUS completed.
    4 STATUS "Sent_Items" (UIDVALIDITY)
    * STATUS "Sent_Items" (UIDVALIDITY 1109891090)
    4 OK STATUS completed.
    5 LOGOUT
    * BYE IMAP server shutting down
    5 OK LOGOUT completed
    Connection closed by foreign host.
    If you login to the GoDaddy webmail system and bring up the properties of the "Sent Items" folder, it's referenced as "INBOX.Sent_Items" and it's the only folder whose internal name doesn't match the name given in the LIST command.
    I really wish that someone from Apple or someone from GoDaddy would take a look at this seemingly simple thing to fix and just make it work.  It appears to not be an issue for other IMAP clients, or on the iOS devices, though I suppose that my iPhone could be logging all this same stuff internally.
    Hopefully GoDaddyGuy will come to the rescue once again and get this resolved.  If anyone has been able to actually store their Sent Items in the Sent Items system folder and not get this message over and over, let me know.  This has nothing to do with the IDLE command or "Use this mailbox for..." or IMAP prefix (which if you run the NAMESPACE command isn't defined) or any other suggestions that have been given previously. I've already exhausted all the different combinations.
    Sincerely,
    Ben Morin
    CTO
    Sevence, LLC

    Hi,
    I'm marking the reply as answer as there has been no update for a couple of days.
    If you come back to find it doesn't work for you, please reply to us and unmark the answer.
    Thanks,
    Melon Chen
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • Problem with List Item in oracle forms

    Hello Experts,        
                         I am new in oracle forms and i am using oracle forms 11g with weblogic 10.3.5 at windows 7.
    I have 3 database tables say(tbl_city,tbl_state,tbl_address).
    tbl_city
    C_ID
    C_name
    S_ID
    0
    None
    0
    1
    XYZ
    1
    2
    AS
    2
    3
    AXD
    2
      tbl_state
    ID
    s_ID
    S_Name
    0
    None
    1
    XY
    2
    ASD
    tbl_address
    A_ID
    A_Street
    S_ID
    C_ID
    1
    ABC
    1
    1
    Now I have made an oracle form having data block tbl_address with base table name tbl_address. In the form there are two list: one(list_state) for State_Name & State_ID and another(list_city) for City Name & C_ID display.
    Here I want when I set State_name to ASD then List item list_city should be populated with the values having State_NAME=ASD not of State_Name=XY or None.I have tried it to make but not succeeded.I have made a procedure to populate list_city list item as:
    -- here item_nm-->List item Name,  sel_val & sel_val2 for selecting C_ID and C_NAME,   tablNm---->tbl_CITY,  whr for where condition,   mtch--->selected value of list_State(list item in form)
    PROCEDURE list_item(block_nm varchar2,item_nm varchar2,sel_val varchar2,sel_val2 varchar2,tablNm varchar2,whr varchar2,mtch varchar2) IS
    group_id RecordGroup;
    group_name varchar2(10) :='abc';
    status NUMBER;
    query1 varchar2(350);
    item_name varchar2(20);
    match varchar2(50);
    BEGIN
        match:=mtch;
        item_name:=block_nm||'.'||item_nm;
      group_id := find_group(group_name);
    if not id_null(group_id) then
    delete_group(group_id);
    end if;
    --if whr='' then
    --    match:='0';
    --    end if;
    query1:='select '|| sel_val || ',TO_CHAR('|| sel_val2 || ') from '|| tablNm ||' where '||whr||' = '||mtch;
    message(query1);
    group_id := Create_Group_From_Query(group_name,query1);
    /* Select statement must have two column*/
    status := Populate_Group(group_id);
    Populate_List(item_name,group_id);
    exception
        when others then
        message('error');
    END;
    I am not  able to guess what trigger  in oracle forms should be used to populate list item(list_city). Please help by giving useful suggestion.
    Thank You
    regards
    aaditya

    979801 wrote:
    If I use LOV in place of List Item,Then I have to populate a LOV at run time.How could I maintain a record group n attach to LOV at run time?
    On my previous post I have mentioned record group as follows:
    select * from tbl_state where s_id=:tbl_address.s_id;
    If :tbl_adress.s_id chaned during the time of run, then output values of list_city (LOV) is also changed.

  • Check box with list item

    hi ,
    i have items in the form , the user need to visible this item with him self , so i make all the items visible = no
    and make list item and but all the items in list value
    when list item chanched and the user select any item the item will visible = yes
    the form like that
    list item named = bank
    value in the list ( bank_name= 1
    bank_address = 2)
    and i have 2 items in the form
    bank_name
    bank_address
    both of them visible = no
    and i make trigger ( WHEN-LIST-CHANGED )
    if :bank =1      then
         SET_ITEM_PROPERTY('bank_name', VISIBLE , PROPERTY_TRUE);
    elsif :bank=2 then
         SET_ITEM_PROPERTY('bank_ADDRESS', VISIBLE , PROPERTY_TRUE);
    end if ;
    the qustion is
    when the item visible = yes after the user selected it from the list
    how can make this itme visible = no
    when the user selected the same item ?
    thank you

    Hello,
    One idea is to make that conrtol using one list item. Suppose you have two item names in the list then create two parameters/global variables in the form and use them like this...
    Trigger = WHEN-NEW-FORM-INSTANCE
    :PARAMETER.NAME_FIELD:='N';
    :PARAMETER.ID_FIELD:='N';Now in the WHEN-LIST-CHANGED trigger use the code as below...
    IF :list_name='NAME_FIELD' THEN
      IF :PARAMETER.NAME_FIELD='N' THEN
        SET_ITEM_PROPERTY('NAME_FIELD',VISIBLE,PROPERTY_TRUE);
        :PARAMETER.NAME_FIELD:='Y';
      ELSE
        SET_ITEM_PROPERTY('NAME_FIELD',VISIBLE,PROPERTY_FALSE);
        :PARAMETER.ID_FIELD:='N';
      END IF;
    ELSIF :list_name='ID_FIELD' THEN
      IF :PARAMETER.NAME_FIELD='N' THEN
        SET_ITEM_PROPERTY('ID_FIELD',VISIBLE,PROPERTY_TRUE);
        :PARAMETER.ID_FIELD:='Y';
      ELSE
        SET_ITEM_PROPERTY('ID_FIELD',VISIBLE,PROPERTY_FALSE);
        :PARAMETER.ID_FIELD:='N';
      END IF;
    END IF;HTH.
    -Ammad

  • Issue with Work Items for a User

    HI All,
    I have an issue with workflow.
    One of my user stopped receiving work items in his inbox. I checked table SWWUSERWI and found 0 entries for the user. So i guess there is no problem with the display setting in SBWP.
    What could be the probable reason and where can i find if those workitems that are generated for him that he has not received.
    Regards,
    Rohit

    There can be many many reasons. You need to understand the workflow and work with an example (an item the user says they should have received). Then try to follow the agent determination logic based on the data contained in that example and verify that everything matches up.

  • Issue with sent items disappearing from Outlook

    We are having an issue with many of our users who have had their sent items disappear from Outlook. We are running Exchange 2010 SP2 with Rollup 8. All users on Windows 7 appear to be working fine, it is just users on XP that are having the issue. All
    PCs are SP3 with updates applied. The messages were there previously, but the Sent folder shows empty as of Monday. They show correctly in OWA, it is just in Outlook itself that is the problem. If we enable cached mode the items populate, but our standard
    policy is to run online with no local PST. We have tried running Outlook with /clearviews and in Safe Mode, but this does not resolve the issue.

    Hi,
    From your description, all the sent items are correct in OWA. So the Exchange Server is ok.
    About this issue, I recommend you install all the latest Windows updates and check the result.
    Hope it helps.
    If there are any problems, please feel free to let me know.
    Best regards,
    Amy
    Amy Wang
    TechNet Community Support

  • Issue with transfering items from punch out

    Hi All,
    We are using a punch out for ordering shopping carts. It is working fine for all the users but not for one of the user. That user is able to open punch out site in her system and able to select the items in that punch out. But when she clicked on "checkout" button in that site, it is not transferring the items to the shopping cart. Rather it give internet explorer error" Page cannot be displayed". I believe, this is not a punch out or SRM issue. It should be an issue with the user's system settings.
    But I am not sure where to check? Is it something that the cookies need to be enabled in user's system? Could you please help me with your suggestions?
    Thanks,
    SS

    Hi,
    You could perform a HTTP trace (using HTTP watch) and compare the OCI data in POST method for both users (the correct and incorrect ones).
    Perhaps there is some additional/missing information being passed from catalog to SRM.
    Kind regards,
    Ricardo

  • Issue with child items of flex tree using QTP

    Hi,
    We are trying to automate Flex web application using QTP10.
    We are facing below issue with Flex tree when we try to automate a scenario of selecting a child item displayed in flex tree.
    Issue:
    On recording the step of selecting an item from Flex tree using QTP, the script displayed is .Select Index1. But when we replay it back no action is being performed.
    Also on object spy we are able to navigate only till flex tree and we are not able to spy child items of flex tree.On the web page the child items are displayed as radio buttons/checkboxes.
    Please provide a solution for me to this problem.
    Thanks

    Hi,
    You could perform a HTTP trace (using HTTP watch) and compare the OCI data in POST method for both users (the correct and incorrect ones).
    Perhaps there is some additional/missing information being passed from catalog to SRM.
    Kind regards,
    Ricardo

  • FRM-41337: Cannot pop list from record group

    If I update a record from a poplist and try to re-populate the list, i get this error. I've read you need to have a default or other values listed, unless it can accept NULL values. Well, it CAN accept NULL values, and required property is set to NO. I'd appreciate your help.

    On-line help says:
    ADD_LIST_ELEMENT restrictions:
    For a base table list with the List Style property set to Poplist or T-list, Form Builder does not allow you to add another values element when the block contains queried or changed records. Doing so causes an error. This situation can occur if you have previously used DELETE_LIST_ELEMENT or CLEAR_LIST to remove the other values element that was specified at design time by the Mapping of Other Values list item property setting.
    Note: The block status is QUERY when a block contains queried records. The block status is CHANGED when a block contains records that have been either inserted or updated.

  • Issue with limit item  in ECC

    Hi,
    We are facing one issue with  Shop with Default (Limit items) in ECC.
    In basic data tab, if any value is entered in any field and press enter then that value is not getting reflected in that field. But if we enter the value and click on check then that value get reflected .
    The reason is BBP_DOC_CHANGE_BADI is not get triggered if we press only enter but it gets triggered if click on check.
    We also tested in Classic case , its working fine in Calssis case.
    Do you have idea for this?
    Do you know any note that we have to apply for ECC?
    Thanks in Advance.
    Snehal

    The lineitems and such will always be saved with English values. You are supposed to for display purposes, re-lookup the product in the appropriate language when you display it on the cart and what not. 
    Brad Foley | www.blfoley.com |
    www.darklakesoftware.com

  • Tooltips don't work with list items?

    Hi
    I have a list item (I've tried with both combo and poplist), I've set the tooltip and the tooltip doesn't get displayed. I tried setting the tooltip on a normal text item control for comparison and that displays the tooltip. Do tooltips not work on list items?
    Marc

    It's work in 10gR2.
    It's not work with Combo Box!
    Could be a problem about what JRE you are working? Jinitiator or Sun JRE.
    Try your test on it
    Regards

  • Tabular Block with list item

    I have tabular block (4 items) in this block and created a list item on top of this tabular.
    I insert first record and select an item from list item
    but when I go to 2nd record then list item value go back on this default item.
    there is possibility that when I enter 1st record and select item from item list
    this item (from list) is my default item in each row.

    No.
    Sr#     Item1          Item2          item3          list ( all database items)
    1     abc          abc          abc          xyz
    2     abc          bbc          ccd          
    now see list item this is a item list and having 3 list in item
    1. abc
    2. xyz
    3. bbc
    in first row I post record and select xyz from list item
    in 2nd row i want that xyz will be the default value of all rows in list item.
    null

  • Slow down after upgrading OS, issue with Startup item

    Problem description:
    slow after updating OS
    EtreCheck version: 2.1.5 (108)
    Report generated January 14, 2015 at 10:45:00 PM EST
    Click the [Support] links for help with non-Apple products.
    Click the [Details] links for more information about that line.
    Click the [Adware] links for help removing adware.
    Hardware Information: ℹ️
      MacBook Pro (13-inch, Mid 2012) (Verified)
      MacBook Pro - model: MacBookPro9,2
      1 2.5 GHz Intel Core i5 CPU: 2-core
      4 GB RAM Upgradeable
      BANK 0/DIMM0
      2 GB DDR3 1600 MHz ok
      BANK 1/DIMM0
      2 GB DDR3 1600 MHz ok
      Bluetooth: Good - Handoff/Airdrop2 supported
      Wireless:  en1: 802.11 a/b/g/n
    Video Information: ℹ️
      Intel HD Graphics 4000
      Color LCD 1280 x 800
    System Software: ℹ️
      OS X 10.10.1 (14B25) - Uptime: 1:36:4
    Disk Information: ℹ️
      TOSHIBA MK5065GSXF disk0 : (500.11 GB)
      EFI (disk0s1) <not mounted> : 210 MB
      Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
      Macintosh HD (disk1) / : 498.88 GB (251.85 GB free)
      Core Storage: disk0s2 499.25 GB Online
      MATSHITADVD-R   UJ-8A8 
    USB Information: ℹ️
      Apple Inc. FaceTime HD Camera (Built-in)
      Apple Computer, Inc. IR Receiver
      Apple Inc. Apple Internal Keyboard / Trackpad
      Apple Inc. BRCM20702 Hub
      Apple Inc. Bluetooth USB Host Controller
    Thunderbolt Information: ℹ️
      Apple Inc. thunderbolt_bus
    Gatekeeper: ℹ️
      Mac App Store and identified developers
    Kernel Extensions: ℹ️
      /Library/Extensions
      [not loaded] org.virtualbox.kext.VBoxDrv (4.2.6) [Support]
      [not loaded] org.virtualbox.kext.VBoxNetAdp (4.2.6) [Support]
      [not loaded] org.virtualbox.kext.VBoxNetFlt (4.2.6) [Support]
      [not loaded] org.virtualbox.kext.VBoxUSB (4.2.6) [Support]
    Startup Items: ℹ️
      VirtualBox: Path: /Library/StartupItems/VirtualBox
      Startup items are obsolete in OS X Yosemite
    Launch Agents: ℹ️
      [loaded] com.google.keystone.agent.plist [Support]
      [loaded] com.oracle.java.Java-Updater.plist [Support]
      [not loaded] com.xamarin.mtvs.buildserver.plist [Support]
    Launch Daemons: ℹ️
      [loaded] com.adobe.fpsaud.plist [Support]
      [loaded] com.google.keystone.daemon.plist [Support]
      [loaded] com.oracle.java.Helper-Tool.plist [Support]
    User Launch Agents: ℹ️
      [loaded] com.adobe.ARM.[...].plist [Support]
      [not loaded] org.virtualbox.vboxwebsrv.plist [Support]
    User Login Items: ℹ️
      SpeechSynthesisServer Application (/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks /SpeechSynthesis.framework/Versions/A/SpeechSynthesisServer.app)
      EOS Utility ApplicationHidden (/Applications/Canon Utilities/EOS Utility/EOS Utility.app)
    Internet Plug-ins: ℹ️
      FlashPlayer-10.6: Version: 16.0.0.235 - SDK 10.6 [Support]
      Default Browser: Version: 600 - SDK 10.10
      AdobePDFViewerNPAPI: Version: 11.0.10 - SDK 10.6 [Support]
      AdobePDFViewer: Version: 11.0.10 - SDK 10.6 [Support]
      Flash Player: Version: 16.0.0.235 - SDK 10.6 Mismatch! Adobe recommends 16.0.0.257
      o1dbrowserplugin: Version: 5.38.6.0 - SDK 10.8 [Support]
      QuickTime Plugin: Version: 7.7.3
      googletalkbrowserplugin: Version: 5.38.6.0 - SDK 10.8 [Support]
      Unity Web Player: Version: UnityPlayer version 4.6.0f3 - SDK 10.6 [Support]
      DirectorShockwave: Version: 11.6.8r638 [Support]
      JavaAppletPlugin: Version: Java 7 Update 71 Check version
    User internet Plug-ins: ℹ️
      aliedit: Version: 1.0 - SDK 10.6 [Support]
    3rd Party Preference Panes: ℹ️
      Flash Player  [Support]
      Java  [Support]
      TeXDistPrefPane  [Support]
    Time Machine: ℹ️
      Time Machine not configured!
    Top Processes by CPU: ℹ️
          14% Dock
          14% com.apple.WebKit.Plugin.64
          5% WindowServer
          2% Safari
          2% com.apple.WebKit.Networking
    Top Processes by Memory: ℹ️
      210 MB com.apple.WebKit.WebContent
      146 MB softwareupdated
      125 MB Finder
      94 MB loginwindow
      90 MB Safari
    Virtual Memory Information: ℹ️
      57 MB Free RAM
      1.75 GB Active RAM
      1.73 GB Inactive RAM
      746 MB Wired RAM
      2.01 GB Page-ins
      5 MB Page-outs
    Diagnostics Information: ℹ️
      Jan 14, 2015, 09:09:58 PM Self test - passed
      Jan 14, 2015, 08:06:51 AM /Library/Logs/DiagnosticReports/com.apple.WebKit.Plugin.64_2015-01-14-080651_[r edacted].cpu_resource.diag [Details]

    Add more RAM or cut back on concurrent applications. Startup Item is irrelevant.
    Try these in order testing your system after each to see if it's back to normal:
    1. a. Resetting your Mac's PRAM and NVRAM
        b. Intel-based Macs: Resetting the System Management Controller (SMC)
    2. Restart the computer in Safe Mode, then restart again, normally. If this doesn't help, then:
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the Utilities menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    3. Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the Utilities menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
    4. Reinstall Yosemite: Reboot from the Recovery HD. Select Reinstall OS X from the Utilities menu, and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible
                because it is three times faster than wireless.
    5. Reinstall Yosemite from Scratch:
    Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
    How to Clean Install OS X Yosemite
    Note: You will need an active Internet connection. I suggest using Ethernet if possible
                because it is three times faster than wireless.

  • Internal error (-2014) Goods Issue with Batch Items added through UI

    Hello Experts,
    I've added a button to my Production Order screen labeled 'Issue Components' that is meant to streamline the process, and it works, except when the ProdOrder has Batch controlled items on it. When that happens it returns Internal error (-2014)<br><br>
    I've tried stepping through the code and it doesn't error until the final Add
    Here is my function, Thanks for the Help!<br><br>
    I'm using CitiXSys Inventory Pro and am pulling the items from the Picked table, that's what that sQuery does. It returns correctly. I've also set everything to 'Manual' instead of 'Backflush'<br><br><br>
    <pre>
    Private Sub IssueComponents(ByVal iDocNum As Integer)
            Try
                'Declaring the needed variables'
                Dim oRec As SAPbobsCOM.Recordset
                Dim oGoodsIssue As SAPbobsCOM.Documents
                Dim bIssueLineAdded As Boolean = False, sQuery As String = "", x As Integer = 0, iCode As Long = 0, sErrorMessage As String = ""
                Dim tmpLot As String = ""
                'Instanciating the Goods Issue'
                oGoodsIssue = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryGenExit)
                'Initialzing the SBO object'
                oRec = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                'Assing the header of the Goods Issue'
                oGoodsIssue.DocDate = Date.Now
                oGoodsIssue.DocDueDate = Date.Now
                'Getting the entire "Manual" components for this production order to issue them'
                sQuery &= "Select PK1.U_DocNo, KI.U_ItemCode, KI.U_BseLnNo, OW.DocEntry, KI.U_Quantity, KI.U_WhsCode, KI2.U_BatSrlNo, KI2.U_LotNo from [OWOR] OW (NOLOCK) INNER JOIN [@ctx_pkin] PK ON OW.DocNum = PK.U_BaseDoc," & vbNewLine
                sQuery &= "[@ctx_PKIN] PK1 (NOLOCK) INNER JOIN [@CTX_KIN1] KI (NOLOCK) ON PK1.U_DocNo = KI.U_DocNo," & vbNewLine
                sQuery &= "[@ctx_KIN1] KI1 (NOLOCK) INNER JOIN [@CTX_KIN2] KI2 (NOLOCK) ON KI1.U_DocNo = KI2.U_DocNo and KI1.U_BseLnNo = KI2.U_BseLnNo" & vbNewLine
                sQuery &= "where OW.DocNum = '" & iDocNum & "' and PK.U_BaseType = 202 and PK1.U_DocNo = PK.U_DocNo and KI1.U_DocNo = PK.U_DocNo and KI1.U_BseLnNo = KI.U_BseLnNo" & vbNewLine
                'Executing the query'
                oRec.DoQuery(sQuery)
                'Looping through the "Manual" components'
                For x = 0 To oRec.RecordCount - 1
                    'Prompting the user'
                    oAppl.StatusBar.SetText("Issuing Components...(" & x + 1 & " of " & oRec.RecordCount & ")", SAPbouiCOM.BoMessageTime.bmt_Long, SAPbouiCOM.BoStatusBarMessageType.smt_Warning)
                    'Adding the previous line if applicable'
                    If bIssueLineAdded Then
                        oGoodsIssue.Lines.Add()
                    End If
                    'Filling the line information'
                    oGoodsIssue.Lines.WarehouseCode = oRec.Fields.Item("U_WhsCode").Value 'dIssueComponents(x).Item("WhsCode")
                    'oGoodsIssue.Lines.TransactionType = SAPbobsCOM.BoTransactionTypeEnum.botrntComplete
                    oGoodsIssue.Lines.BaseEntry = oRec.Fields.Item("DocEntry").Value 'oProductionOrder.AbsoluteEntry
                    oGoodsIssue.Lines.BaseType = 202                                          'Production Order Type'
                    oGoodsIssue.Lines.BaseLine = oRec.Fields.Item("U_BseLnNo").Value 'GetBaseLine(oProductionOrder.AbsoluteEntry, dIssueComponents(x).Item("Component"))
                    'oGoodsIssue.Lines.ItemCode = oRec.Fields.Item("U_ItemCode").Value
                    oGoodsIssue.Lines.Quantity = oRec.Fields.Item("U_Quantity").Value 'Math.Round(oRec.Fields.Item("U_Quantity").Value, 2) 'dIssueComponents(x).Item("PlanQty")
                    'Checking if the item is neither lot or serial controlled item'
                    If oRec.Fields.Item("U_BatSrlNo").Value = "" And oRec.Fields.Item("U_LotNo").Value = "" Then
                        'Nothing controlled item'
                    ElseIf oRec.Fields.Item("U_BatSrlNo").Value <> "" Then
                        'Lot controlled item'
                        tmpLot = oRec.Fields.Item("U_BatSrlNo").Value
                        'oAppl.MessageBox("Lot: " & tmpLot & ", whs: " & oRec.Fields.Item("U_WhsCode").Value & ", qty: " & oRec.Fields.Item("U_Quantity").Value)
                        oGoodsIssue.Lines.BatchNumbers.Add()
                        oGoodsIssue.Lines.BatchNumbers.BatchNumber = oRec.Fields.Item("U_BatSrlNo").Value
                        oGoodsIssue.Lines.BatchNumbers.Quantity = oRec.Fields.Item("U_Quantity").Value 'Math.Round(oRec.Fields.Item("U_Quantity").Value, 2)
                        'Else
                        'Serial controlled item'
                        'oGoodsIssue.Lines.SerialNumbers.SystemSerialNumber = oRec.Fields.Item("").Value
                    End If
                    'Setting the line to be added'
                    bIssueLineAdded = True
                    'Movoing to the next record'
                    oRec.MoveNext()
                Next x
                'Checking if there was any component or not'
                If bIssueLineAdded Then
                    'Adding the Goods Issue'
                    iCode = oGoodsIssue.Add
                    If iCode <> 0 Then
                        oCompany.GetLastError(iCode, sErrorMessage)
                        oAppl.MessageBox("Goods Issue Production Order: " & iDocNum & " didn't get created for the following reason: " & serrormessage)
                    Else
                        oAppl.StatusBar.SetText("Components were issued successfully.", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Success)
                        'TODO: add to ProdOrder remarks field
                    End If
                End If
            Catch ex As Exception
                oAppl.MessageBox("IssueComponents() " & ex.Message)
                oAppl.StatusBar.SetText("Error in IssueComponenets() : " & ex.Message, SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
            End Try
        End Sub
    </pre>
    Edited by: Rob Daniels on May 30, 2011 10:33 PM

    Please use the latest upgrade of Inventory Pro from CitiXsys.
    If you are using SAP Business One 2007; use Inventory Pro 5.6 series
    For SAP Business One 8.8 and up; use Inventory Pro 6.6.1 and up

Maybe you are looking for

  • Regarding Movement type 601 and 602

    Hi, We need to copy movement types 601 and 602. I would request to please provide me the configuration settings and all integration settings. Thank You, Waiting for your reply. Regards, Usha.

  • _sans and _serif Text Doesn't Display

    Hello, I think I might have a font problem, but don't know where to look to find out or how to fix it. Any static text box I create with _sans or _serif font chosen displays no text when I run the movie. If I choose Verdana, for example the text appe

  • ST02 buffer tuning

    Hi all, In ST02 for Screen buffer  and export/import Free directory  entries  and % are showing  '0' , what does it mean ... Hit ratio for all buffers is 99.96 nearly for export/import it's showing 85% and swaps also rising . Please suggest... Thanks

  • Konqueror home page

    I recently switch to konqueror from FF. After a couple of days it has started to use archlinux as its home page. I don know how I set it to this or how to change it.

  • Exception java.lang.IllegalThreadStateException

    Hi, Can any one help me to find the reason of this exception: Exception java.lang.IllegalThreadStateException I call some procedure in loop: while(MsgQueue.size() >0 && runSearch) if(!runSearch){resetVars(); return;} final String[] nodes1=this.getRan