Make queriable a non based item

hello all.
what's the best way to make queriable (f7/f8 functionality) a non based item?
i've tried dynamic sql but it's not admited in forms, and I don't think exec_sql it's the best way.
any ideas?
thanks in advance.

im doing this:
PROCEDURE SET_WHERE_FOR_DUENO(dueno in varchar2) IS
sql_stmt varchar2(1000);
connection_id EXEC_SQL.CONNTYPE;
cursorID EXEC_SQL.CURSTYPE;
nIgn PLS_INTEGER;
cod_dueno number;
BEGIN
     sql_stmt:='select codigo_dueno_contenido from sia_duenos_contenido where descripcion';
if instr(dueno,'%')>0 then
     sql_stmt:=sql_stmt||' like :dueno';
     connection_id := EXEC_SQL.OPEN_CONNECTION('inter','cordoba','interd');
     --Connection_id := EXEC_SQL.OPEN_CONNECTION('inter/cordoba@interd');
     cursorID := EXEC_SQL.OPEN_CURSOR(connection_id);
     EXEC_SQL.PARSE(connection_id, cursorID, sql_stmt, exec_sql.V7);
     EXEC_SQL.BIND_VARIABLE(connection_id, cursorID, ':dueno', dueno);
     EXEC_SQL.DEFINE_COLUMN(connection_id, cursorID, 1, cod_dueno, 30);
     nIgn := EXEC_SQL.EXECUTE(connection_id, cursorID);
     WHILE (EXEC_SQL.FETCH_ROWS(connection_id, cursorID) > 0 ) LOOP
          EXEC_SQL.COLUMN_VALUE(connection_id, cursorID, 1, cod_dueno );
     message(cod_dueno);pause;
     END LOOP;
     exec_SQL.CLOSE_CURSOR (cursorID);
else
     sql_stmt:=sql_stmt||' = '||dueno;
end if;
EXCEPTION
     WHEN OTHERS THEN
     MESSAGE(SQLERRM||' '||ERROR_TEXT);PAUSE;
END;
and it's giving me the 306500 at the parse command.
i've tried both the connection_id options.

Similar Messages

  • Search on a non-based item

    Hi everyone,
    I am modifying a form and have a concern,
    is it possible for the user to do a search if he is in a non-based item?
    I don't want to base this item but if needed, i would base it as user need to do a search from this item.
    Thanks and any help would be appreciated.

    you can use a based table item then forms use it in the query if the user populate this item
    but you can use this item as non-based table and the user populate and you can use to create the query, in the pre-query or changed the where clause conditin property in the block
    the usual is the field based on table is very easy, but if you need depending the value populate for the user do other things and not use the value exactly, you can use non based item

  • FRM-40209 Field must be of form . - for a non-based text item

    Hello,
    When I try querying using a VARCHAR2 non-based text item in a table-based block, setting dynamically in PRE-QUERY trigger the DEFAULT_WHERE property for its block, in case I use characters > or < (for bringing values greater or smaller than the one in the field, as in a standard Oracle query) error message is raised: 'FRM-40209 Field must be of form .' The issue has nothing to do with the error itself (usually related to erronated format mask of the field), and it is known as an Oracle Forms bug: I found it as bug 851153 - which appears on execute query if you enter in a non-base-table-item and the block has a pre-query trigger. The bug has been solved later in Oracle Developer Forms Builder 6i, or so I've been reading, problem is the application I'm working to requires Forms Builder 6.0.5.
    I am trying to find an workaround for this situation and these are the info I managed to discover myself on the topic:
    - if I fill the field with '>value instead of >value, query works fine, bringing only values greater than the specified value. (So far, this and inactivating the FRM-40209 error in ON-ERROR trigger seems like the best I can do)
    - if I only use > (without '), I cannot use an auxiliar variable/global in which to store the actual value written in the field, I also cannot print the value in a message, because trying to use the exact string, it is shown as null (even though when the error is raised, value is still shown on the screen in the text item).
    Maybe someone could help with an idea for an workaround in order to copy the content of the text field before it actually becomes null…
    Thank you in advance.

    I have already tried that... but for some reasons the field already appears as null, when I try to use it.

  • How to make openitem managed GL accounts to Non open item and the implicati

    Dear all,
    Can any one please tell what are the steps to be taken for making an openitem managed GL accounts to Non open item and the implication of this change.
    Thanks in advance.
    Gokul

    Hi Gopal,
    You can maitian a gl a/c without line item display to do so follow the path
    sap easy access-accouting-financial accouting-general ledger-master records-gl a/cs-individual processing-centrally, or trans code FS00
    then open the gl account in the required company code and click control data ,then  click change and under account management in company code u can un check line item display and save the changes.
    Make sure line item display is off for recon accounts as the line item are maintained at customer or vendor level and for bank a/c line item should always be ticked on .
    Hope this is helpful if so  reward points.
    regards,
    Mayur

  • Problem with parameters and non table based items

    Hi,
    I have a situation where I have some not table based items on a page (shuttles and select lists). It is parameters that the end user inputs. I have another page with the same items just here they are Display Only and also not table based. When the user press a button I branch from page 1 to page 2 and set the items on page 2. My problem is that the input the user keys in are not copied to the items on page 2. I can see the data in the session state.
    I assume that this is a silly question and I have just set Source Used or Source Type wrong one one of the items but I can not get it working. Can anybody help?
    It works fine if I use a Application Item and creates a process on page 1 where I copy the item value from the session state but that should be needed right?
    Regards Pete

    Thanks Scott,
    I think I got it working. If I remove all the colons from the data it works. I select several entries in a Shuttle and the result is a colon delimited string of values. If I remove these in a process it works fine. Is there a way of escaping the output from a Shuttle?
    Regards Pete

  • How to set_value for non-table items.

    I have a form, based on scott.emp, with a button and three fields, empno, ename and xxx. The empno and ename fields are based on the scott.emp table, whereas the xxx field is a non-table based field.
    Setting xxx text type to either a text area or text box makes no difference.
    The following code in the buttons PL/SQL Button Event Handler, Custom section results in a (WWV-00000) error.
    begin
    p_session.set_value(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_XXX',
    p_value => 'Hello');
    end;
    However, if I change the p_value to ename, a table based item, the code works as expected.
    I ran across a post that had the following link
    Re: transactions
    Regarding setting values for non-table items. Unfortunately, the post was made prior to the latest discussion forum reorganization, so it's no longer valid.
    I would appreciate any help on the problem.
    Thanks, Larry

    Hi,
    Try using set_value_as_string
    begin
    p_session.set_value_as_string(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_XXX',
    p_value => 'Hello');
    end;
    Thanks,
    Sharmila

  • STOCK AND NON STOCK ITEMS

    hi,
    Here i want to know the difference between stock and non stock items.and give detail process flow for procuring both Non stock as well as stock items .

    Dear Harshad,
    Stock Items are the item for which we maintain stock in the system normally at various level which means the stock quantity gets updated in the system based on the movement done for that item
    For ex if we make GR for 100 Qty of X item then its stock qty  gets added into the system may be at plant /storage location level.Suppose out of this 100 nos if we issue 50 nos for production line then the stock at store reduces by 50 nos & added to production cost center by 50 nos.
    Non stock material : NLAG: It stands for Non stock material
    In customizing for basic setting in material type neither Qty update or Value update. No accounting data is maintained in Material master hence stock values are not updated. This material is procured only with account assignment.
    In this case as soon as material is received Qty & value is posted to consumption account & statistic gets updated.
    No updation of Qty or value takes place in Material master record.
    For examle if we procure milk for canteen , its goes directly in canteen & stock of such items are not maintained
    I hope this will clarify your concepts,
    Vivek

  • Purchasing - A/P Transaction Processing for Services and Non Inventory Item

    On of the main areas of concern that businesses have is in the area of Purchasing, Goods Receipts and AP Invoices Processing - There is a requirement that businesses have widely referred to as 3-way matching.
    While SAP Business One has this functionality covered quiet well via the following, there is still some need for enhancements so that the application can correctly reflect the AP Accruals:
    - Purchase Order processing with Approval Process (if configured)
    - Ability to perform Goods Receipts for Services.
    - Matching of AP Invoices to Goods Receipts with AP Invoice Approval Process (if configured)
    The above transactions serve the 3-way matching quiet well for all purchases however when it comes to accuring for Services that have been provided, the application does not do this. The Goods Receipt transaction processing to acknowledge the service delivery is allowed however the related posting to the allocation account is missing.
    The process that is followed by the application is same for Items that have not Inventory Items in Item Master.
    As a result of the above, the business have to manually work out what the Accurals for services provided but not invoiced should be.
    With little enhancement to the product this shortfall could very easily be overcome.

    Hi,
    Once there are transactions, we cannot make existing Inventory type item to Non Inventory type item.
    Check SAP note:937297 which states as follows :
    Symptom
    Changing the status of the Inventory Item checkbox (in Item Master Data) for items with inventory transactions and documents, might lead to inaccuracies in the calculations of inventory value.
    Other terms
    Inventory Item, Non-inventory Item, Item Master Data, Continuous Stock, Perpetual Inventory, Inventory Valuation, 2004, 2005, 2005 A SP01
    Reason and Prerequisites
    Consulting Note
    Solution
    The status of an item (Inventory Item/Non-Inventory item as selected in the Inventory Item checkbox in the Item Master Data window), cannot be changed once an A/P, A/R, or Inventory document is posted for the item.
    Regards,
    Jitin Chawla

  • Sales order line for Non Stock items progressed to Closed status, need to be Cancelled.

    Hi,
    First time posting to this community, I hope someone can help.
    Currently we have a setup where non stock items are being added to sales order lines (charges, etc.).
    These lines are being progressed through to Closed status automatically.
    Users are reporting that they have entered the line in error and would like to change the status of the line to Cancelled.
    We are unable to return the material (RMA) as it is non stockable/transactable etc.
    Current workaround is to adjust the stock and make finance aware so that the line does not get invoiced.
    However, the system still shows that the line is closed (i.e. provided to customer) which is not correct.
    Is there any way of getting the line to a status of cancelled?
    Your help is very much appreciated.
    Regards
    Tim

    Hi Arif,
    Many thanks for the warm welcome.
    I'm thinking the only course of action I have for future, is to make the items stockable/transactable/returnable such that an RMA can be performed if added in error.
    We can put a large qty into stock at zero value.
    Thanks for your help in any case.
    Tim

  • Need negative quantity non-inventory items on Credit Memo

    Version: (2007A)
    Description of requirements: (Please provide a detailed description)
    Our customer issues many invoices with a negative quantity line item for a miscellaneous non-inventory item. These non-inventory items are used to reduce the amount of the invoice regarding miscellaneous credits to their customers.  These are not discounts.
    When the customer wants to credit these invoices, they canu2019t create a Credit Memo based on the invoice because SAP wonu2019t allow this if there are line items with negative amounts.
    When they create a credit memo not based on an invoice, they arenu2019t allowed to enter a negative quantity for a line item as they are for an Invoice. They are forced to create a credit memo not based on an invoice the inventory item line items and an invoice or Journal Entry for the negative quantity line item to debit back the miscellaneous line amount.
    As an example:
    Invoice line item one for inventory item: qty one, price 100,line total $100.00
    Invoice line item two non-inventory item misc credit: quanity -1, price 10, total -$10.00
    Invoice Total $90.00
    In Order to provide the correct credit amount, they have to create a Credit Memo not based on an invoice for line item one, qty one, price 100 u2013 value -100 and an invoice for the non-inventory item for qty one, price 10 -  value 10.00.
    This creates a net credit for the customer of 90.00
    This looks ridiculous to their customers when they see these transactions on their statements, creates extra work for the users and there is no link between the three documents.
    By using inventory items for these miscellaneous credits, they can assign a sales revenue of their choice. They have multiple sales accounts and the GL posting is determined by the item group for the item. By assigning the desired item group to these non-inventory items, they can control which sales account is updated on their marketing documents when using these non-inventory items.
    If they were to use the Freight items, they would need a separate freight setup entry for combination of item group and miscellaneous credit. Because they have so many Item Groups and types of credits, they would need a great many separate Freight Charges to choose from.
    All of the above pertains to all of our customers. This customer has a custom add-on and their marketing documents are all created from custom objects.  They hit a button on the custom sales contract screen and an invoice is created.  When they hit another button on the screen, the selected invoice is credited. They have legally binding contracts for fixed quantities to be shipped, so we decrease the quantity shipped when creating an invoice and decrease the quantity shipped when a credit memo is created. The contract is fulfilled when the exact quantity contracted for has been shipped. Because the credit memo fails, we canu2019t update the custom objectu2019s remaining to be shipped, rendering it inaccurate from that time forward. (reducing the quantity shipped is part of the Credit Memo creation process).Creating Credit Memos and Invoices from the interface fixes the inventory count, customer balance, etc., but we have no way of fixing the sales contractu2019s quantity shipped & remaining to be shipped or linking the contracts to the documents created from the interface.
    Business needs: (Please describe the impact on your business, if the functionality is not realized)
    Examples: (Please describe a typical example, how the functionality should work.)
    Credit Memos should allow negative quantities and line total amounts for non-inventory items, the same way that A/R Invoices do, so that credit memos can be based on invoices that have negative quantity non-inventory line items.
    Current Workaround: (Please describe the workarounds you are using at the moment)
    Please see above
    Proposed solution: (Please suggest how the new functionality should work)
    Credit Memos should allow negative quantities and line total amounts for non-inventory items, the same way that A/R Invoices do.

    Hi Sean......
    System is behaving properly as per its logic. Infact it does same in all the previous or upcoming versions.
    If you have Item Type GRPO for Non Inventory Item it does not create any accounting but you can see the same during AP invoice.
    GRPO for such type is only optional. For further clarification you can discuss this with your CA what he suggests. But i suggest you to raise AP invoice also for getting Account effect. Just see doing this in test DB you get your answer......
    Regards,
    Rahul

  • Credit memo for non inventory item

    Hi MM consulatnats,
    My client need to know the best practices to handle teh credit memo for non inventory item ??
    We have two options like FB65 in FI part where it wont update in PO history.
    In MIRO also we can make credit memo w.r.to PO.
    What they  want to know is if FB65  is the correct way to do this to fully reverse the effect that the receipt and invoicing of the item had on the financial accounts.
    What is the best pracise to adopt ??
    Need your views
    Thanks
    A.Gururajan

    Hi,
    You can use MIRO for credit Memo with ref to PO.
    This will update both PO history as well as your FI accounts/Vendor Balance.
    Thanks & Regards,

  • How to include non database item in the query

    Hi
    I have a Master-Detail form. where in the detail block one of the field is text item 'X' attached the list of values(Y). Master block includes non database items which is based in the decoding result of the database items for example:
    Gender(Male, Female)>> non database item
    Gender_id(M,F)>>database item
    the form is created based on the template.fmb form for apps. When I run the form in the query mode, i can query about any database item while including query about others non database item does not affect.
    how to can i modify it so this could be handled??
    I know that one way to avoid this issue is to create a view with all my desired field.
    but there should be away to override the build in query used by oracle apps...
    any one has a link, source, document... etc that help on this??
    any idea how to do it without creating a view??
    thnx alot

    Hi HST,
    You can code the handling in POST-Query of the corresponding block to retrive the corresponding data depending on the Queried data.
    Regards,
    Kiran

  • How to link Sales Order and WIP job for non-ATO items

    Hello All,
    My client's requirement is to link an Sales Order with a WIP Job as soon as it is booked.
    It is for FG and for a non-ATO item.
    The process should be to have SO booked and then it should raise a WIP job based on it if there ar no inventory stocks.
    Thanks in advance.

    You will have to write an extensive customization that will work similar to planning engine.
    It will have to look at order quantity and then look at onhand, reserved onhand, min-max quantities, safety stocks, move orders etc etc and then create a job if necessary.
    Are you sure you want to do it this way?
    Hope this helps
    Sandeep Gandhi
    Omkar Technologies Inc.
    Independent Techno-functional Consultant
    513-325-9026

  • Problem in  BOM or component allocation for the Non- codified Item in a PO.

    Hi All,
    Please advise how to explode a BOM or Assign component in a Purchase order with Item category (L) for a Operation oriented material for which no material code is created from a production order .
    Actually in my scenario, no raw material component will send to the Sub -Contract Vendor. Only Assembled operation material lets say operation 20 from a routing ( which is not having material code ) from an In - house production from a shopfloor has to be sent to the vendor to create a operation 30 material , which is also not having a material code." How to explode a BOM or component allocation for the Non- codified Item in a PO".
    Kindly give me the IMG settings for the above scenario.
    regards,
    YK

    Hi Prasobh,
    Tnx for your suggestion. But, the client external processing routing is not constant activity . Based on the Operation bottlenecks client is sending the operation as external Processing. For Eg., If on first order operation 20 be external , Then in second order operation 20 need not be external. operation 30 may go out for external processing. Client does not want a material code for each operation.
    Give your valuable suggestion.
    regards,
    YK

  • MIGO Print label WEE1 for non stock items from GR for PO

    Hi,
    I added logic to print new label into printing program MZ07DETI which is printing labels for stock items. My label is for non stock items. The problem is that for non stock items printing process is not triggered. I created PO with Account Assign. Category F, P or K no material number and no storage location. For this type of PO no print possible during GR posting. Is any set up available in IMG to make it work. I appreciate any response.

    Hi,
    Please check up if there is any default value at the plant level;in case of such default,the system will post to the GL Account defaulted,not with standing the "standard item category".Better checkup if any cost center /order has been assigned.
    The GL item is defaulted thro'the item category.If both the goods and services have been defaulted to the same GL  Account,then not with standing the type [ie] whether goods or services,the system will post tot he same GL Acct.
    Hope this helps.
    Regards.
    Ramesh

Maybe you are looking for

  • Viewing BLOB Data in a Form

    I have created viewing BLOB Data in a Report now I need to Viewing BLOB in a form how to This is one of the link I have used. Are their other solutions. http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/apex/r31/apex31nf/apex31blob.htm#t4

  • Contact names not appearing in texts or when calls recieved

    I got off a plane from the UK to the US (this was a return trip, i'm from the US on Verizon) and when I turned my iPhone 4S back on, all of the contact names (who are in my Contacts) disppeared from emails, texts and my phone log.  A friend told me t

  • Change Data Table column header color

    How do I change the background color displayed in data table column headers?

  • Different Invoicing Vendor

    Hi, We want to raise a Purchase Order to Vendor 1 & do the Invoicing to Vendor 2. We want to maintain the Vendor Code in (Partner Function) data in the Vendor Master Record. How can we configure the Scenario in SAP? Please guide. Regards,

  • Creation of Distribution Center without  QM

    Hi, Our DC is full warehouse managed and quality managed, we would like to go for warehouse managed DC without quality in the initial stage for this new DC, but later on we may need quality in this DC. Can anybody tell me the procedure of creating a