How to add new columns to datablock
Hi,
I am new to oracle forms.
Can you gurus out there help me with a simple query.
I've a data block based on system_parameters table.
I've to add two new text items corresponding to two new columns (let say A & B) added in the same table.
I've added the text items manually on the layout editor of the data block.
In the property pallette under the database section i've given column name as A & B (new column name of the table).
When i am running the form, it gives me FRM-40505 (Unable to perform query).
I know, the new text items have to be associated with system_parameters.A and system_parameters.B..
Are there any more things which need to be done in order to reflect the two new columns on the scree?
Any help will be greatly appreciated.
Regards,
Navnit
Another way:
right-click on the block and select the data block wizard.
Click the table tab and press refresh (the new column will appear in the list).
Press the button to move the new column from the "available columns" list to the "database items" list.
Press finish
Go to the objact navigator and set properties.
I usually use this methed as I figure internal structures in the .fmb file will be setup properly to know about the new column by using the wizard. Be advised though if you use this method, if you have previously changed an item in the same block to have an increased maximum length, when you press refresh it's property will be set back to match the database (with no warning to you). Maybe this is a bug.
I have used the other method too with no apparent side effects though. Does it matter?
Gary
Similar Messages
-
How to add new column in Report ME2L
Dear Sir,
We are using ME2L for various purposes . In the ME2L report we need to add 2 new columns i.e Item Delivery Date and WBS Element .
Although in the standard ME2L report , after the basic list generation , there have been provided 2 icons for getting the report displayed with either WBS Element or with Delivery Date . It means we can not get both the column Delivery Date and WBS Element available simultaneously in the standard ME2L report .
We request you to kindly guide us as how can we add these column in the ME2L report pl . We are on ECC-6.0 and not having enhancement package 4.0 .
Kindly help us pl .
Regards
Sonia AgarwalHI Pradeep,
Goto the transaction code (Change Report) GR32.
Give you library name and report name
And click on the column (application tool bar or F7) button then place the curser on the screen where you want column (please note you have to keep curser on the header section u2013Red column text) right click and insert element. Then you select formula as selection element and enter. You will get the enter formula box. Then you can type your formula and continue. This will add new column to the report.
How to enter formula: you can see the formula components in that id and description.
Id is columns that are present and description indicates explanation of that column.
Enter formula according your requirement.
Examples:
Enter formula screen:
ID : des
X001 amount
X002 pt000
X003 test
1. Enter formula as: ( X001 u2013 X002)
The above formula is for fist column u2013 second column.
2. ( ( X001 u2013 X002) / X003) * 100
First column u2013 second column and devide by third column after that multiple with 100.
Hope this will help you
Regards
Manohar -
How to add new column in report painter
Hi Experts,
I want to add new column in report painter which as to calculate the previous column . value in the new column should be the precentage of previous column existing on left side...HI Pradeep,
Goto the transaction code (Change Report) GR32.
Give you library name and report name
And click on the column (application tool bar or F7) button then place the curser on the screen where you want column (please note you have to keep curser on the header section u2013Red column text) right click and insert element. Then you select formula as selection element and enter. You will get the enter formula box. Then you can type your formula and continue. This will add new column to the report.
How to enter formula: you can see the formula components in that id and description.
Id is columns that are present and description indicates explanation of that column.
Enter formula according your requirement.
Examples:
Enter formula screen:
ID : des
X001 amount
X002 pt000
X003 test
1. Enter formula as: ( X001 u2013 X002)
The above formula is for fist column u2013 second column.
2. ( ( X001 u2013 X002) / X003) * 100
First column u2013 second column and devide by third column after that multiple with 100.
Hope this will help you
Regards
Manohar -
How to add new columns in predefined matrix in system form
Hi all,
I am new to SAP B1. I am going to add New column to Good Receipt PO matrix. I faced the one error " Matrix Line Exists " While adding new column to good receipt PO matrix".
=========================================================
Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
oMat = oForm.Items.Item("38").Specific
oCols = oMat.Columns
oCol = oCols.Item("U_MyCol")
If pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD And pVal.BeforeAction = True And pVal.FormType = "143" Then
Try
oForm = SBO_Application.Forms.Item(pVal.FormUID)
oMat = oForm.Items.Item("38").Specific
oCols = oMat.Columns
'oCol = oCols.Item("U_MyCol1")
oCol = oCols.Add("U_MyCol1", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oCol.TitleObject.Caption = "Qty Accepted"
oCol.Width = 40
oCol.Editable = True
oCol = oCols.Item("U_MyCol1")
Catch ex As Exception
SBO_Application.MessageBox(ex.Message)
End Try
End If
oDBDataSource = oForm.DataSources.DBDataSources.Add("PDN1")
''oEdit.DataBind.SetBound(True, "PDN1", "U_QtyAccepted")
============================================================
And i also added for Datasource to Databind. what there is no result ??i wanted Clear information regarding this to add new columns in matrix in middle of Matrix items. I wanted Clear coding& information for this to add new Columns in Matrix ?help me regarding this asap??
Regards
ANANDAnand,
If you use the "search" feature of this forum and type "add column", you will find many posts that may help you such as this one ...
How to add a column on sales order matrix?
HTH,
Eddy -
How to add new column to COPA datasource?
Dear all,
It seems we have to delete the COPA datasource and regenerate it when we need add new column, if so,we should regenerate the initialIzation for the delta.
Beacause only the new delta data need have value for new column,so I do not want to reextract the historical data,do you have any solution?
Best regards
SimonHi Simon
You are correct, COPA DS need to be regenerated.
Initialize without Data Transfer might help you. But was thinking how do you manage the 'lost' delta in between the processes?
I m not sure about your flows i.e how data moves from PSA to cube but I think at least you should
Initialize the delta for the current fiscal year ( with Data Transfer) and then continue with delta.
Which type of COPA you are using? Account based or Cost Based? For Acc Based delta initialization starts from summarization level , so you also need to fill up summarization level at least for the current year.
Regards
Anindya -
How to add new column inside ME28 PO Approval Screen?
Hi Abapers,
Can u please explain and give sample code to me, how to add new customise column inside standard Layout ME28 PO Approval Screen.
Waiting for yours reply.
Tks,
S.Muthu.Hi
Don't need a code or customize.
1- Execute ME28
2- select a line in the ALV
3- type 'F1'
4- Go to technical information
5- Go to Table name 'MEREP_OUTTAB_PURCHDOC_REL' it is a structure
6- Append the new field into that structure using SE11
7- return to ALV in ME28 and change Layout
8- you will find at right your new field, deplace it to left part and it's OK.
REM :your new field will be filled only if the ME28 program is reading your field and passing it to the ALV structure (MEREP_OUTTAB_PURCHDOC_REL)
It worked for me with EKPO-AFNAM
cordially,
Faycel MOSLAH. -
How to add new column in screen painter
Hi
I have try to add new column on existing screen and test screen in se51, the column is added in position correctly. But when I run program call this screen, the added column is placed as the last column.
Please help.
ThanksThank for your replied.
I have check the table control, it has fix column. So, I set fix column to 0 at table control but when execution by program call it's still not update what I have changed. (On test screen in se51, it come out correctly and updated)
So, I don't know why I use program call this screen, the screen is not updated what I have try to change but, when execute in test screen it come out correctly
PS. I have check attribute, it's numbered right.
Please help !!
Edited by: VerdamFK on Oct 4, 2010 8:11 AM -
How to add new columns in materialized view
We are using Oracle 10g Release2.
We need to add new columns to a prebuilt fast refresh materialized view. We want to add 4 new columns in this table and make them part of select statement in the materialized view. We can drop the view but we cannot do complete refresh after that because the paymentsInfo table has a creation_timestamp column which is populated by before row insert trigger with systimestamp. If we did the complete refresh, all values in this column shall be changed.
CREATE MATERIALIZED VIEW paymentsInfo
ON PREBUILT TABLE
REFRESH FAST
ON DEMAND
START WITH SYSDATE
NEXT SYSDATE+5/1440
WITH PRIMARY KEY
DISABLE QUERY REWRITE AS
SELECT PAYMENT_ID,BATCH_REFERENCE, TRANSACTION_REFERENCE, NO_OF_TRANSACTIONS, DEBIT_ACC_NUM,... from payment@dblink
I want to know is there any other way to add new columns without losing any changes from the master table.
Thanks.There is no way to add new Columns to Materialized view. To add new columns, it has to be dropped and re-built again.
Extract from Oracle Documentaion:
Use the ALTER MATERIALIZED VIEW statement to modify an existing materialized view in one or more of the following ways:
To change its storage characteristics
To change its refresh method, mode, or time
To alter its structure so that it is a different type of materialized view
To enable or disable query rewrite
If you have a problem of Complete refresh, then It may be beneficial to get the backup of the MView; Drop and re-create it with modified definition; Restore the backup data leaving the new columns untouched (assuming they are to be kept as fetched from the Master site). -
How to Add new column in cross tab reports
I am using crystal reports 10
I created cross tab report for monthly sales. I need to add one more column in that report
ex:
Month Customer Part1 Part2 Part3
Jan A 10 12 15
Jan B 20 0 10
Jan C 0 3 5
Feb A 5 10 8
Feb D 55 23 33
In above data Parts are no limit, thatswhy i am taking cross tab report.
I am taking Month and Customer name as Rows,
Part Codes as Colums,
Quantiry as Total fields in cross tab Report.
Here month field is storing as Transaction date in database, I am calculating by month
I am getting upto this.
User needs add one more field is Invoice no
Month Customer Part1 Part2 Part3 Invoice no
Jan A 10 12 15 B1,B2,B3,B4
Jan B 20 0 10 B12,B30
Jan C 0 3 5 B6
Feb A 5 10 8 B35,B40
Feb D 55 23 33 B25,B56
How to add invoice nos by group wise(By customer and By month)
Thank you.
Raja shekar Reddy K.
Edited by: Raja shekhar Reddy on Apr 16, 2009 5:10 PMDear Amogh,
Thanks for u'r Replay.
If i use new crosstab for Invoice no each invoice number can display like seperate columns.
But I need Invoice no in single column with seperate with "," or "/".
Thanks & regards,
Raja Shekar Reddy K. -
HOW TO ADD NEW COLUMN IN EXISTING QUERY
hi,
i m working on oracle reorts 10g. i have a multiple query based report. now i want to add a new column in query 1 and order by on that new column .
i added column in query but when i see that group i dont find that column in that group.wt do i need to do to visible that column in query1 group thats y the order by on that column is not working i think.
tell how to solve it ?
thanksHi,
The new column you have added might be in the least level group of that query.
Drag it to the desired group level, first postion and set the break order for that item in the property pallette..
(If still the item not coming, check whether you have put 'comma' in the select query after writing the column name)
Simply giving the column in the order-by clause will not work in report.
In Report, record display order is completely based on the break-order of the items given in query-groups
If you change accordingly it will work
Regards
Dora -
How to add new column in specific position
Say, a table has existing columns of A, B, D, and E.
Now I want to add a new column C. But I want this column appear between B and D. I found that the newly added column always goes to the end of the table, i.e., A, B, D, E, C, instead of, A, B, C, D, E.
How can I do it?scottjhn wrote:
Say, a table has existing columns of A, B, D, and E.
Now I want to add a new column C. But I want this column appear between B and D. I found that the newly added column always goes to the end of the table, i.e., A, B, D, E, C, instead of, A, B, C, D, E.That's right; new columns are always added at the end.
Why is is so important to have the columns in a specific order? If the order is important, why aren't you specifying it in the SQL code that actually uses the table?
How can I do it?When you add C, add columns called NEW_D and NEW_E as well, in that order, where NEW_D has the same data type as D, and NEW_E has the same data type as E. Then UPDATE the table to set NEW_D and NEW_E to be the same as D and E, drop the original D and E, and rename NEW_D and NEW_E to the original names, D and E. -
How to add new column in VA02?
I want to add a new column before the column posnr in VA02/VA03 which will be non editable.
Hi,
You cannot add a new field before POSNR in VA02/03. The exit available only allows you to add fields in the additional fields section of the transaction.
Reward points if found useful...!
Cheers
Abhishek -
How to add new column in partition table
Hi,
In Oracle 10g Database, I have one table (X) with list partition . I have added one new column to "X" by "Alter Table" command. Please advise whether any other command needs to be executed since it is a partition table .
The "X" table is used for partition swapping with another table (Y). I have added the same column also in table "Y". Will there be any issue while swapping the partion with the following command
alter table X exchange partition partition_name with table Y
Version Details :
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 OS
Solaris 5.10
Thanks in advanceyou would have to explicitly put that into the create table as select - the partition details.
ops$tkyte%ORA10GR2> create table t1
2 PARTITION BY RANGE (dt)
3 (
4 PARTITION part1 VALUES LESS THAN (to_date('13-mar-2003','dd-mon-yyyy')) ,
5 PARTITION part2 VALUES LESS THAN (to_date('14-mar-2003','dd-mon-yyyy')) ,
6 PARTITION junk VALUES LESS THAN (MAXVALUE)
7 )
8 COMPRESS
9 as
10 select * from t;
Table created.
Source:http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:69076630635645
Hth
Girish Sharma -
ERec: How to add new column in Recruiter TRM New Registered Candidates list
Hi,
In the Recruiter tab, active query for TRM> New Registered Candidates, there are 9 columns which has candidate name, registered since, resume, interest group and so on. If I want to add "Country" in the view, how to proceed?
Please advice. Thanks a lot.Hello,
Usually the columns are defined in the POWL feeder class method IF_POWL_FEEDER~GET_FIELD_CATALOG. In case of the POWL query 'new registered candidates' the class is CL_HRRCF_M_NEWREGCAND_POWL_UI. You can copy that class to a custom one, adjust the get_field_catalog method with the column 'country'.
Regards
Nicole -
Doubt in report painter (how to add new columns?)
Hi all,
I have a doubt in report painter, i have copied the report 12kst1c to a zreport and also the form to a zform.
I want to add the PO relese indicator desc as a column in report output.
Is the above possible in report paintaer.
also please tell me the transaction codes i tried with cje2 and cje3.
Thanks in advance,
Sathanbabu Mathan Kumar.Hello Santhan,
Where you able to find a solution to this.If so please help me I have similar requirement.
Thanks Arjun
Maybe you are looking for
-
Visio 2013 startup problem "Please wait while Windows configures Microsoft Visio Professional 2013
Hello, I am having a frustrating problem with Visio as it is opening. It keeps displaying the message that I have in the title about it trying to configure. I have tried the following: reg add HKCU\Software\Microsoft\Office\15.0\Visio\Options /v No
-
Urgent ..How to use Tree component in a web based interface
I want to make a Java web based windows explorer type interface. For that i want to use tree component . Is it possible for me to do this. Can anybody suggest me how to do ?
-
I downloaded a cheap PDF editor and it converted all my PDFs to their software. Then when I deleted it, I cannot open them in the Adobe format any longer. Please let me know how to get them back!
-
Hi, I have an SBS 2011 box with Exchange 2010 on it. All updates are installed. Whenever a user tries to use Outlook Web Access to set an Auto-Reply the error "Sorry! We're having trouble processing your request right now. Please try again in a few
-
Hi I am unable to see any thumbnails. I have PSE 7 and this is the first time I am using it.