Usage of attribute1 field of base table as a text field in OA Page
Hi Gurus,
Could you please let me know if attribte1 field of an oracle base table can be used as a simple text or LOV input field in OA Page, NOT as a DFF Field.
Thanks in advance.
With warm regards,
SKA
In my case, Attribute1 is reserved for DFF. But I have to use it with a Text Input Item. OA page is showing the value stored for attribute1 in database. But it doesn't store the value in Database through OA Page. I am able to save other fields of the same VO through same OA Page, but not attribute1.
Is it because attribute1 is registered with DFF or some other reason??
Please advice.
Thanks in advance.
-SKA
Similar Messages
-
Assigning a Value to a Base Table BLock Field
hi,
I have a form in which a block is a base table block . i need to change the value of a field. currently it shows the value of a field from the Table on which the block is based . I need to change the value of that field to display some other value of another table.
i have a written select statement like this
select name into vname from ws_emp where ecode = 101
then i have assigned to this base table field
:bt_person.ti_v_name := vname;
this i have created in the base table blocks Post query
but it is not assigning value
pls correct me and suggest me if there is any other better method to do this
SaravThat SHOULD work in the Post-Query trigger of the block, but doing that is never a good idea. By replacing a base-table field with any value, it causes Forms automatic processing to lock the row immediately, so no other person running your form can call up the same data. And it causes Forms to think you need to update the record, so the record's status is changed to 'CHANGED' from 'QUERY'.
It would be better to create a non-base-table field in the block, and put the name into that field. -
Creation of field in data base table
Hi,
I want to create a field in data base table , which holds the float values but i don't want to use the FLTP data type, why bcoz if i use this data type in selection screen of the table the the field is not appeqring, i dont want to go for the option QUAN bcoz there i need to define the ref table and ref field.
please explain what is the way to create this field.
regards
KrishnaUse NUMC
Awrd POints if useful
Bhupal -
Sales order purchase order field is updated with dots in data base table
HI
we have problem in Production when sale order created
P O date is update with dots and these dots we are unable to see at screen and data base table
we go t change mode of the order and delete the P O field with back space (button) and saving the order
when we see the change log of the order
there it is sowing
Old value = " . . "
New Value = " 00.00.0000"
Can any one give the suggetions to come out of this problem
This is we have noticed with only two customers
Thanks and regards
Kishore
Edited by: DevarapalliKK on Oct 23, 2010 8:43 PM
Edited by: DevarapalliKK on Oct 23, 2010 8:44 PMHi Kishore,
Two things could have happened:
1) Since this is happening with only two customers - I am sure it has got to do with some custom code on your system which is causing this problem. I 'd suggest you to create a new order with all the fields
2) It could be a bug with SAP- might want to check relevant SAP Notes. ( But this could not be a reason, if yes should have had the same prob with all cusotmers)
regards
sadhu kishore -
Tabular form with non base table field
I want to develop a tabular form with
1. A non-base table edit field to accept a value
2. Insert/update another table based on the input value
3. Also, computed field on each row based on other fields on the records (like post-query trigger in oracle forms at block level - for each row)
Thanks,
RachnaThanks for your reply.
Varad, I like the link you sent me. It has a lot of good information.
I created a process (under page processing) called "Update/Insert Process" that dosn't seem to be working.
Question, I created a manual tabular form with SQL Query and created a process (under page processing) called "Update/Insert Process", then I check for each record in the tabular form. If the old value <> new value then I update/insert in the new table.
Any step by step will be highly apprciated - to create process/validation etc.
Thanks,
Rachna -
Base table name for fields from Material Master
Hi All,
I want base table name which holds all possible values of following column:
1)Material Master : X-plant matl status from tab -basic data 1
2)Material Master: X-distr.chain status from tab -sales org 1
for example: Base table for Prod.hierarchy is T179/T179T.
Many thanks to all
YogeshThanks Mahesh but I know its value available in MARA table for eery material. But i want to know where all possible distinct values are stored?... In other word, when we click on button which is next to this field and from that list we normally select value and then assign to above fields. Where this list is stored for
X-plant matl status
X-distr.chain status -
Calculated non-base table field in a tabular form
I am struggling with creating a non-base table calculated field in a tabular form in ApEx 3.1
Can you point me in the right direction
I thought this would be fairly easy to do, but I cant work out how to do it
Requirements
1) Tabular Form based on a table with QTY and PRICE columns
2) TOTAL is a non-base table field, based on QTY * PRICE
3) If the Qty or Price changes, the TOTAL should be re-calculated
Example
QTY PRICE TOTAL
=== ===== =====
3 5 15
10 50 500
20 3 60
Environment
ApEx 3.1, Oracle 10 and Oracle 11 databases
I recommended to upgrade to a newer version of ApEx but the request was rejected so Im stuck with 3.1Thanks, but its not the solution that I am after
I am looking for a solution that will ...
1) not require the calculated value TOTAL to be stored in the table
and 2) re-calculate the TOTAL when I modify the dependent values (QTY and PRICE) before I save the changes to the database
I am still looking for a solution if anyone can help -
Finding base table for a field in a structure !! urgent
i need to find out where is BUDAT field being populated in the 2lis_04_p_arbpl extractor. When i see where this field is coming from it shows MCAFVG which is a structure. i need to use this field in user exit and need to know which table is it coming from. I am actually looking for last confirmation date on an order.
my query is that if a field is shown as a part of a structure then how can we find out where is it being populated from ? like where can we find the base tables for this structure ?
Please help. Points will be assigned to all helpful answers.
thanks
Laura.HI..
well yes... go to ROOSOURCE and find the name of the program for that structure. go to se38 and check out the tables used in that program.
let me know if that helped... what structure are u trying to find the tables for ?
thanks
Laura. -
Ordering a block by a non-base table field
Hello,
I have heard you can order your block by a
non-base table field by using a stored function. Does anyone know how to do this?
LisaIn a WHEN-VALIDATE-ITEM user have to press ENTER or TAB key too !!
anyway he have to press something.
KEY-NEXT-ITEM and KEY-PREVIOUS-ITEM is a good choice.
You can create a timer who fire each second, verify that user enter something new in the field (by comparing old and new value), then do execute_query -
Two LVO link to the same not base table field
I would like to know if it possible to relate two LOV to the same not base table field. If it possible, how to do it.
Thanks,
JuliaYou can set the LOV with set_item_property(<item>,LOV_NAME,<lov>). This way you can associate 2 or more different LOV's with an item. Of course only one LOV can be active at any given time.
-
Fields comming from which data base tables
Hi Experts,
Every extractor should fetch data from some data base table. For generic data source and LO data source I know to see but could you please tell me, how I can find for business content (ex: 0FI_GL_4) data source which field data coming from which data base table.
Regards
Lokanatha.Hi,
We can get from SAP help about the tables being used in each business content extractor.
For Eg-0fi_gl_4, data coming from BKPF,BSEG tables.
Go thru this link which tells the table for the above extractor..
http://help.sap.com/saphelp_nw70/helpdata/en/8b/02f93abb013b0de10000000a114084/content.htm
Hope this helps..
Thanks & Regards,
Pradeep -
Order by on a non-base table field
I want to order by on a non-base table field in a form. Can any body help how to do this in a form.
ThanksRamesh,
I am not sure of ver 4.5. But in v6i, I did something similar.
What I did was :-
1. Based the Block's datasource on a stored procedure and
not TABLE
I'm not sure if it can be achieved in 4.5. First check if the block data source can be based on a stored procedure.
Here's a sample code of what i did :-
/* Description : Using a stored procedure as a block datasource.
Author : Shailender Mehta
Create Or Replace PACKAGE my_datasource Is
/* Shailender Mehta */
TYPE outrec is RECORD (comp_id tbgp_gl_detail.comp_id%Type
,cc_id tbgp_gl_detail.cc_id%Type
,journal_no tbgp_gl_detail.journal_no%Type
,account_code tbgp_gl_detail.account_code%Type
,debit_amt tbgp_gl_detail.debit_amt%Type
,credit_amt tbgp_gl_detail.credit_amt%Type
,sort_order Number(1)
TYPE outcur is REF CURSOR RETURN outrec;
PROCEDURE outquery (resultset In Out outcur
,p_journalno In Number);
END;
Create Or Replace PACKAGE BODY my_datasource IS
PROCEDURE outquery(resultset In Out outcur
,p_journalno In Number)
Is
BEGIN
OPEN resultset FOR
SELECT comp_id
, cc_id
, journal_no
, account_code
, debit_amt
, credit_amt
, Decode(substr(account_code,6,1), 'g', 1,
'd', 2,
'b', 3,
'h', 4,
'f', 5,
'a', 6,
'c', 7, 8) sort_order
FROM tbgp_gl_detail
WHERE journal_no = p_journalno
ORDER BY 7;
END;
END;
Use the Block Data Wizard, which will guide you step by step what next to be done.
In my example, I'm sorting the resultset by the 6th character of the string Account Code.
In your case, you could join the main table by the one used in your POST-Query in the stored procedure and sort the resultset.
- Shailender - -
Sorting by non-base table fields - Is it possible?
I have a form with a block that associated with a table.
There are several base table fields and several non-base table fields displaying information in this block.
I need to sort the data in this block by non-base table fields.
Is this possible without rewriting the form so that the block is not associated with a base table, and then manually populating the block?This may help you.
Example
I have a customer_id in my base table, but I want the data ordered by customer_name which is from another table.
Answer
You need to create a function in the database with an associated
pragma to specify the level of purity of the function
WNDS (write no database state)
WNPS (write no package state)
PRAGMA RESTRICT_REFERENCES(fn_get_dname, WNDS, WNPS);
Function fn_get_dname (p_empno in number) return varchar2 is
v_dept_name varchar2(40);
begin
select dname into v_dept_name
from dept, emp
where dept.deptno = emp.deptno
and emp.emp_no = p_emp_no;
return v_dept_name;
end;
order by in a block based on the emp table (assuming you want a list of employees by department name)
order by fn_get_dname(empno), empno -
Sorting by non-base table fields in Oracle Forms
I have a form with a block that associated with a table.
There are several base table fields and several non-base table fields displaying information in this block.
I need to sort the data in this block by non-base table fields.
Is this possible without rewriting the form so that the block is not associated with a base table, and then manually populating the block?Hi mark
You could do the following
Create a database function on the server,
The function should return the value that you want to order by.
In your form update the ORDER BY clause to use the function
Example:
Assume you have a block base on the employee table,
and you want to order by the department name not the department no (The employee table only contains the department no)
The function will be
CREATE OR REPLACE FUNCTION "TEST_ORDER" (pDEPT_NO NUMBER) RETURN VARCHAR2 AS
DptName VARCHAR2(100);
BEGIN
SELECT DEPT_NAME
INTO DptName
FROM DEPT
WHERE DEPT_NO = pDEPT_NO;
RETURN DptName;
END;
The form block ORDER BY Clause will be
TEST_ORDER(DEPT_NO)
Hope this will solve your problem
Regards -
How to control the name of custom field in data base table, added by AET
Hi,
I have added the one custom field by Application Enhancement Tool (AET).
The name of custom field has been added in the data base table as ZZFLD000004 by AET.
I need to add the some meaningful name like that ZMYPROB.
How can I control the name of custom field in the database field through AET?
Thanks,
AmitGot the answer.
Need to click on the Enable Expert mode, then custom field name will be editable.
Maybe you are looking for
-
HT3275 How can I backup my computer to a hard drive attached to my router using Time Machine?
Time Machine does not list my external drive as an option.
-
Downloaded new version emails all reloading as unread
Downloaded latest version on my 3G now all of my emails are being downloaded as not read
-
What is error 102 for macbook pro
i just bought my macbook pro 13.3 inch and i recieved a notification stating that i needed to up date to itunes 10. 7 and OS X update combined 10. 8. 2. once i tried up dating a window came up saying "cannot complete updates due to error 102" can som
-
HT1694 I phone e mail notifications
I've had the I phone 5 for about a month and all of a sudden it's showing all the e mails I receive from my hotmail account, including the junk. I'm getting notifications every 5 seconds, and I just want to be notified for inbox only.
-
How to find DB schema from Java codes
Hello, Do you know whether there are java packages/classes to find the DDIC (schema) info of DB tables (the tables created by Netweaver Dev. studio)? Thanks, Martin