Adding columns to forms
So I have added a column to my table in the object browser, now I want my report and form to have that column on them. How can I do this?
Thanks,
Steve
I figured it out, not sure what it was but I rebuilt the table and it worked, I think I messed up some sequences/triggers when I was working on another function.
I'm wondering if there's a way on a form to enter a foreign key and have the rest of the items on the page pull a LOV from a SQL query based on that foreign key but have everything in that form populate on one table/report. But I would want to retain the function to enter in custom values if nothing came up in the query.
Edited by: switbeck on May 17, 2013 10:10 AM
Similar Messages
-
Adding Columns to the matrix in SAP B1 user form using Visual studio 2010
Hi,
Using Visual studio 2010, I have created a SAP B1 user form( b1f ) with one matrix.Matrix is having 5 columns. Its working properly. Later, I want to add few more columns. Then I added columns to the matrix as I have created columns initially. But, it does not saves.
i.e, Whenever I run, In B1 I could see only old columns. Newly created columns are not showing.So, I closed the .net project and opened again. Created columns are not showing in visual studio b1f itself. So, I created again and saved. But, its not saving.I tried it many times.
What I am missing?
Any help is appreciated.
Thanks in advance,
Parvatha Solai.NHi Parvatha,
Are you using B1 Studio? Anyway try to clean the solution first then rebuild it. This would re-copy files to the output directory, that contain your changes.
Best regards,
Pedro Magueija -
Newly added column not displayed in Interactive report
Hello,
I have a tableA with 3 columns.In the application i am displaying as Form with Report region as Interactive report(Oracle 10g Application Express 3.2).
I added one column to tableA.Now when i am refreshing the report by adding that column in the select query,the new added column is not displayed in the application.
How can i do this so that the added column can be displayed.I dont want to delete the whole thing and redo it again.
Thanks
SiyaHi Siya,
The Interactive Report will not show you the newly added columns by default. You have to select those columns from the actions menu and when all the required fields are displayed then save it as the default report.
Then you will be able to see all the columns.
Hope this solves your problem.
Thanks,
Satish. -
Stock Requirement List - MD04 - adding columns in this list
Dear All,
I am working on the Stock Requirement list ( transactioncode MD04) and the customer wants to add columns with the fields STPO-DATUV ,date of change of a drawing, and the drawing number with revision level STPO-YY_DZEINR.
There is a badi MD_ADD_COL_EZPS which provides in adding columns, but according the structures MDPSX , MDEZX and MDSUX there are no fields in thoser structures, which directly match with the required fields; somebody has a clue to help me out and get it working.
For instance: Vendor- and Customer data can be added by using the pushbuttons and those fields are available from above mentioned structures.
Thanks in advance and kindest regards,
Rene.Hi Utpal Mishra
You guessed correctly. I missed to inform our Strategy. We are using Strategy group 11 Make-to-stock prod./gross reqmts plnning.
User is not able to do PGI or create delivery. He says I have enough stock in MMBE but why system is not allowing.
Here there are some pending document like -
1. Pending sales order
2. Pending deliveries (picking not done)
2. Delivery created & Picking Done but PGI not done. These things will have a commitment against the stock. But we are interested in getting these document numbers, so that we can take come action against them.
MD04 simply shows the mrp element as order / delivery but the document number is not available. How to find these documents.
Please help. Is there any table or a standard transaction ??
Thanks -
When adding columns, why do I get overrides on style?
Hi all,
When I'm adding columns in a certain document I end up with the new columns having overrides on them. How can I avoid this?
The columns I added are seen in the middle.
As you can see the they all get a "shift down" by -22 pt.
I use this shift down on some other place in the document, but the table columns are clean from that kind of override, and just by selecting a column and adding 4 new columns "to the right" of that column, I would expect the new ones to get the exact same properties as the one selected.
Can anyone try to explain what might be wrong with my document or way of working?
Adding info: It seems there's something in the styles - many properties on them... This has noting to do with cells specifically. Just adding a textbox results renders the text this way as well, with the baseline shift (only no override symbol).
Best regards,
AndreasAh... now I get it. The default styles of the document were set to a specific paragraph style and another character style.
Setting the defaults to [Basic Paragraph] and None respectively seems to put everything in order.
(You set a default by clicking outside the document so that nothing is selected, and then you select the styles [Basic paragraph] and None)
Case closed. -
Discoverer 10.1.2 does not refresh new added column
Hello,
I need help to add a new item to EUL Business Area folder for a new added column in the database table.
When I refresh the folder in the BA EUL, the result shows no difference between the folder and the underlying table in the database; however, when I quey the table in the database, a new column is there. The refresh of the folder in the Discoverer Admin tool cannot find the newly added column. Weird!! The first time saw this problem.
Could someone shine some light on it? Would be really appreciate it!
PingI have a slightly different problem and can't solve it! When I refresh the EUL, the result shows the differences between the folder and the underlying tables in the database. However, it does not refresh the EUL in Discoverer Administrator 10g. Nothing happens! When I try to refresh again, the same list is shown... Does anyone know what could be happening?
Thanks -
How to get added columns in the after DDL trigger?
As title, I want to get information, like name/type/.., about the added columns by sql statement "alter table *** add (***)" in the after ddl trigger. But looks like dba_tab_columns view doesn't include the added columns.
ThanksHi
Hi try other versions of the trigger like
create or replace trigger addl_trigger
after alter on schema
declare
TYPE attrs_cur IS REF CURSOR;
m_cur attrs_cur;
m_event varchar2(50);
m_user varchar2(50);
m_owner varchar2(50);
m_user1 varchar2(50);
m_type varchar2(50);
m_name varchar2(50);
m_column varchar2(50);
m_cnt NUMBER;
m_stmt varchar2(512);
number_of_modified_objects BINARY_INTEGER;
t ora_name_list_t;
begin
m_event:=ora_sysevent;
m_user:=SYS_CONTEXT('USERENV','SESSION_USER');
m_user1:=ora_login_user;
m_owner:=ora_dict_obj_owner;
m_type:=ora_dict_obj_type;
m_name:=ora_dict_obj_name;
if (m_type='TABLE' and m_event='ALTER')
then
execute immediate 'select count(*) from dba_tab_columns where owner=:1 and table_name=:2' into m_cnt
using m_owner,m_name;
insert into log values (m_cnt);
dbms_output.put_line('->'||m_cnt);
OPEN m_cur FOR 'select c.name from sys.col$ c, sys.obj$ o, sys.user$ u where o.obj# = c.obj# and o.owner# = u.user# and u.name=:1 and o.name=:2' using m_owner,m_name;
LOOP
FETCH m_cur INTO m_stmt;
EXIT WHEN m_cur%NOTFOUND;
insert into log values (m_stmt);
--dbms_output.put_line(m_stmt||'**************');
END LOOP;
end if;
but all versions continue to insert only the already existing columns. I think that Oracle actualize the dictionary first after this system event.
Bye, Aron -
SSAS Tabular - Adding Column to a table gives error "Object reference not set to instance of object"
If I make changes to a table in SSAS Tabular Visual Studio, the newly added column gives error as "Object
reference not set to instance of object"Hi VikasJain13,
According to your description, you get the "Object reference not set to instance of object" error when adding columns in Tabular. Right?
Generally, it throws this error when the internal code is accessing the property of an empty object. As you mentioned it happens when you make changes on a table, mostly it means that table is already a empty object. Please re-process your tabular to see
if this table is still existing.
If you have any question, please feel free to ask.
Simon Hou
TechNet Community Support -
Irritating problem with adding columns
I am adding columns to jtable. And then moving it to required postion.
But whenever I edit those columns all the newly added columns and the first column reflects those changes. ie whatever I enter in the new columns, it appears in all newly added columns and the first column as well.
whats wrong I am doing here.
EditableHeaderTableColumn ncol = new EditableHeaderTableColumn();
TableColumnModel columns = table.getColumnModel();
int c = table.getSelectedColumn();
columns.addColumn(ncol);
columns.moveColumn(i-1, c+1);Make sure you are not sharing the TableColumn instance or adding a TableColumn that already is in the TableColumnModel.
When resizing the table column, do the others resize too. ? -
Newly added column not reversed by strand reverse engineering
Hi Guys,
I have reverse engg a datastore from Oracle database and later I added one new columns in the same table at database level. Now when I am doing strand reverse Engineering from the model the newly added columns are not being reflected in ODI.
please comment/advise.
I want to do this through strand reverse Engineering.
Thanks,
GiriAppreciate if any one share suggestion/inputs on this issue
-
I am using RAS server to create dynamic columns in my report. But the column headings are not coming.
Isnt there any way to set the heading for the newly added columns?
Any idea what i am missing?
Here is a code i am using
Private Sub AddTableFromDataSet(ByVal ds As System.Data.DataSet, ByVal crTable As CrystalDecisions.ReportAppServer.DataDefModel.ISCRTable)
' Add the dataset as a data source to the report
m_boReportClientDocument.DatabaseController.AddTable(crTable, DBNull.Value)
m_boReportClientDocument.DatabaseController.SetDataSource(DataSetConverter.Convert(ds), "TEST")
Dim ifield As Integer
' Add a field to the report canvas
Dim CrField As CrystalDecisions.ReportAppServer.DataDefModel.ISCRField
For Each dtfield In m_boReportClientDocument.Database.Tables(0).DataFields
ifield = m_boReportClientDocument.Database.Tables(0).DataFields.Find(dtfield.Name.ToString, CrFieldDisplayNameTypeEnum.crFieldDisplayNameName, CeLocale.ceLocaleUserDefault)
CrField = DirectCast(m_boReportClientDocument.Database.Tables(0).DataFields(ifield), Field)
CrField.HeadingText = CrField.Name
CrField.Description = "TEST"
m_boReportClientDocument.DataDefController.ResultFieldController.Add(-1, CrField)
Next
End Sub
Thanks in advanceYou either have to add the heading yourself, or you can use
reportClientDoc.ReportDefController.ReportObjectController.AddByName("{Orders.OrderID}", "OrderID")
This doesn't let you set anything about the objects, so it would probably be better to add them separately. -
Hi,
This is Rajyalakshmi. I nee to add columns in the UWL .
I have changed the XML coding accordingly .and uploaded the file .but the added columns are not appearing in the UWL.
I have added the view in the XML file corresponding to the backend related.
do i need add the view and atributes in teh standard XML file as well?
It would be great if anybody can share the information reagrding this.
RajiHi Beth Maben,
I am trying to add the custom attributes.now the added columns are appearing ina subview.But i the new columns which I ahve been added need to appear in the default view.
the UWL version I am using is as below.
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE UWLConfiguration PUBLIC '-//SAP//UWL1.0//EN' 'uwl_configuration.dtd'>
<UWLConfiguration version="7.00.01.01">
I configured the XML for one task for test purpose.
<ItemType name="uwl.task.webflow.TS10008126" connector="WebFlowConnector" defaultView="MyView" defaultAction="viewDetail" executionMode="pessimistic">
<ItemTypeCriteria externalType="TS10008126" connector="WebFlowConnector"/>
<Actions>
<Action reference="com.sap.pct.srm.core.action.oldwfl.approve"/>
<Action reference="com.sap.pct.srm.core.action.oldwfl.reject"/>
<Action reference="com.sap.pct.srm.core.action.launchWD.oldwfl.sc.approve"/>
</Actions>
</ItemType>
<ItemType name="uwl.completedtask.webflow.TS10008126" connector="WebFlowConnector" defaultView="MyView" defaultAction="viewDetail" executionMode="pessimistic">
<ItemTypeCriteria externalType="TS10008126" connector="WebFlowConnector"/>
<CustomAttributes>
<CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalObjectId" objectType="WebflowContainer" cacheValidity="final">
<Attribute name="REQ_NAME" displayName="Created By"/>
<Attribute name="TOTAL_VALUE" displayName="TotalValue"/>
<Attribute name="CURRENCY" displayName="Currency"/>
</CustomAttributeSource>
</CustomAttributes>
<Actions>
<Action reference="com.sap.pct.srm.core.action.launchWD.oldwfl.sc.display"/>
</Actions>
created View is as follows :
<!-- View: New and Inprogress Tasks -->
<View name="MyView" selectionMode="SINGLESELECT" referenceBundle="MyView" width="98%" supportedItemTypes="uwl.task.webflow.TS10008126" columnOrder="subject,creatorId,RequisitionerName,TotalValue,Currency,createdDate" sortby="createdDate:descend" tableDesign="ALTERNATING" visibleRowCount="10" queryRange="undefined" displayOnlyDefinedAttributes="no" tableNavigationFooterVisible="yes" tableNavigationType="CUSTOMNAV" refresh="300" dueDateSevere="86400000" dueDateWarning="259200000" emphasizedItems="new" dynamicCreationAllowed="yes" actionPosition="bottom">
<DisplayAttributes>
<DisplayAttribute name="subject" type="link" width="" sortable="yes" format="default" actionRef="viewDetail" referenceBundle="subject" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes"/>
<DisplayAttribute
name="creatorId"
type="people"
width=""
sortable="yes"
format="default"
referenceBundle="from"
hAlign="LEFT"
vAlign="BASELINE"
maxTextWidth="0"
headerVisible="yes"/>
<DisplayAttribute
name="RequisitionerName"
type="String"
width=""
sortable="yes"
format="default"
referenceBundle="REQ_NAME"
hAlign="LEFT"
vAlign="BASELINE"
maxTextWidth="0"
headerVisible="yes"/>
<DisplayAttribute
name="TotalValue"
type="double"
width=""
sortable="yes"
format="medium"
referenceBundle="TOTAL_VALUE"
hAlign="RIGHT"
vAlign="BASELINE"
maxTextWidth="0"
headerVisible="yes"/>
<DisplayAttribute
name="Currency"
type="String"
width=""
sortable="yes"
format="medium"
referenceBundle="CURRENCY"
hAlign="RIGHT"
vAlign="BASELINE"
maxTextWidth="0"
headerVisible="yes"/>
<DisplayAttribute name="createdDate" type="datetime" width="" sortable="yes" format="medium" referenceBundle="sent_date" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes"/>
</DisplayAttributes>
<Actions>
<Action reference="removeFromNavigation"/>
<Action reference="addToNavigaion"/>
<Action reference="personalize"/>
</Actions>
</View>
I am trying to add the attributes in the in standard XML file as well.but I am getting that error that " adding custom attributes is not supported " as per the standard model definition.
Appriciate your information if any reagarding this .
Raji. -
Hai ,
I am adding the columns in an existing matrix at runtime in page load.
I can able to add but how to give the header text for the columns added?
I tried with the following code,
oMatrix.Columns.Item("ItemMake").Title = "Make";
but it gives the error as,
"property or indexer 'SAPbouiCOM.IColumn.Title' cannot be assigned to -- it is read only"
and also i want the added column to be displayed in the first position.
Regards,
Kughan.Hi,
Then i recommend u to create a UDF in the marketing document section. So that in the PO matrix u can get a new col. And for creating the UDF u can do it in SAP UI using.. Tools->Customization Tools->User defined Fields management or u can also do it in code C:\Program Files\SAP\SAP Business One SDK\Samples\COM DI\VB.NET\02.MetaDataOperations Check that sample for code.
Hope it helps,
Vasu Natari. -
Adding columns in query causes renames of fields
Hi All, I'm using Oracle Reports Builder 10g. I have a query which has connections to other queries. When I try to add two columns into that query and recompile the RDF it automatically renames other fields adding "1" at the right side. Any ideas why this is happening? I'm not adding columns with names already existed. Thanks in advance, A. Stoyanov
Hi, The query is :
SELECT 0 CUSTOMER_TRX_ID,
rpad('a', 20, '-') TRX_NUMBER,
0 TERM_SEQUENCE_NUMBER,
rpad('a', 40, '-') TRX_TYPE,
rpad('a', 80, '-') TRX_TYPE_NAME,
'a' OPEN_RECEIVABLE_FLAG,
SYSDATE TRX_DATE,
0 SHIP_TO_CUSTOMER_ID,
0 SHIP_TO_CONTACT_ID,
0 REMIT_TO_ADDRESS_ID,
0 PRIMARY_SALESREP_ID,
rpad('a', 30, '-') CUSTOMER_NUMBER,
rpad('a', 240, '-') INTERNAL_NOTES,
0 BATCH_SOURCE_ID,
rpad('a', 240, '-') TRX_COMMENTS,
0 PREVIOUS_CUSTOMER_TRX_ID,
0 SHIP_TO_SITE_USE_ID,
0 PRINTING_COUNT,
SYSDATE PRINTING_ORIGINAL_DATE,
SYSDATE PRINTING_LAST_PRINTED,
'a' PRINTING_PENDING,
0 LAST_PRINTED_SEQUENCE_NUMBER,
SYSDATE START_DATE_COMMITMENT,
SYSDATE END_DATE_COMMITMENT,
0 INITIAL_CUSTOMER_TRX_ID,
rpad('a', 15, '-') INVOICE_CURRENCY_CODE,
0 TERM_ID,
SYSDATE SHIP_DATE_ACTUAL,
rpad('a', 30, '-') SHIP_VIA,
rpad('a', 50, '-') WAYBILL_NUMBER,
rpad('a', 50, '-') PURCHASE_ORDER_NUMBER,
rpad('a', 50, '-') PURCHASE_ORDER_REVISION,
SYSDATE PURCHASE_ORDER_DATE,
SYSDATE TERM_DUE_DATE_FROM_PS,
0 TERM_RELATIVE_AMOUNT,
rpad('a', 15, '-') TERM_NAME,
0 BILL_TO_CUSTOMER_ID,
0 BILL_TO_CONTACT_ID,
0 BILL_TO_SITE_USE_ID,
rpad('a', 40, '-') BILL_TO_LOCATION,
rpad('a', 360, '-') BILL_CUST_NAME,
rpad('a', 40, '-') BILL_ADDRESS1,
rpad('a', 40, '-') BILL_ADDRESS2,
rpad('a', 40, '-') BILL_ADDRESS3,
rpad('a', 40, '-') BILL_ADDRESS4,
rpad('a', 60, '-') BILL_CITY,
rpad('a', 60, '-') BILL_STATE,
rpad('a', 60, '-') BILL_POSTAL_CODE,
rpad('a', 60, '-') BILL_COUNTRY,
rpad('a', 50, '-') BILL_SITE_TAX_REFERENCE,
rpad('a', 50, '-') BILL_CUST_TAX_REFERENCE,
0 TRX_LINE_AMOUNT,
0 TRX_TAX_AMOUNT,
0 TRX_FREIGHT_AMOUNT,
0 TRX_ALL_AMOUNT,
rpad('a', 360, '-') ORDER_BY,
rpad('a', 240, '-') BILL_TO_ADDRESS1,
rpad('a', 240, '-') BILL_TO_ADDRESS2,
rpad('a', 240, '-') BILL_TO_ADDRESS3,
rpad('a', 240, '-') BILL_TO_ADDRESS4,
rpad('a', 60, '-') BILL_TO_STATE,
rpad('a', 60, '-') BILL_TO_PROVINCE,
rpad(‘a’, 150, ‘ - ’) our_ref,,
rpad(‘a’, 150, ‘ - ’) your_ref
FROM dual
WHERE 1 = 2
UNION ALL &common_query
The bind variable &common_query is accepting the following sql:
'SELECT
' ||:P_SEL_TRX_ID ||'
CUSTOMER_TRX_ID
' || :P_SEL_TRX_NUMBER ||'
TRX_NUMBER
NVL(TL.SEQUENCE_NUM,1)
TERM_SEQUENCE_NUMBER
' || :P_SEL_TRX_TYPE ||'
TRX_TYPE
, ' || :P_SEL_TRX_TYPE_NAME||'
TRX_TYPE_NAME
, TYPES.ACCOUNTING_AFFECT_FLAG
OPEN_RECEIVABLE_FLAG
, ' || :P_SEL_TRX_DATE ||'
TRX_DATE
, SHIP_TO_CUSTOMER_ID
SHIP_TO_CUSTOMER_ID
, SHIP_TO_CONTACT_ID
SHIP_TO_CONTACT_ID
, REMIT_TO_ADDRESS_ID
REMIT_TO_ADDRESS_ID
, A.PRIMARY_SALESREP_ID
PRIMARY_SALESREP_ID
, B.ACCOUNT_NUMBER
CUSTOMER_NUMBER
, A.INTERNAL_NOTES
INTERNAL_NOTES
A.BATCH_SOURCE_ID
BATCH_SOURCE_ID
A.COMMENTS
TRX_COMMENTS
, PREVIOUS_CUSTOMER_TRX_ID
PREVIOUS_CUSTOMER_TRX_ID
, SHIP_TO_SITE_USE_ID
SHIP_TO_SITE_USE_ID
, NVL(PRINTING_COUNT,0)
PRINTING_COUNT
, PRINTING_ORIGINAL_DATE
PRINTING_ORIGINAL_DATE
, PRINTING_LAST_PRINTED
PRINTING_LAST_PRINTED
, PRINTING_PENDING PRINTING_PENDING
, LAST_PRINTED_SEQUENCE_NUM LAST_PRINTED_SEQUENCE_NUMBER
, START_DATE_COMMITMENT START_DATE_COMMITMENT
, END_DATE_COMMITMENT END_DATE_COMMITMENT
, INITIAL_CUSTOMER_TRX_ID INITIAL_CUSTOMER_TRX_ID
, A.INVOICE_CURRENCY_CODE INVOICE_CURRENCY_CODE
, A.TERM_ID TERM_ID
, A.SHIP_DATE_ACTUAL SHIP_DATE_ACTUAL
, A.SHIP_VIA SHIP_VIA
, A.WAYBILL_NUMBER WAYBILL_NUMBER
, A.PURCHASE_ORDER PURCHASE_ORDER_NUMBER
, A.PURCHASE_ORDER_REVISION PURCHASE_ORDER_REVISION
, A.PURCHASE_ORDER_DATE PURCHASE_ORDER_DATE
, P.DUE_DATE TERM_DUE_DATE_FROM_PS
, NVL(TL.RELATIVE_AMOUNT,100)* (100/NVL(T.BASE_AMOUNT,100)) TERM_RELATIVE_AMOUNT
, T.NAME TERM_NAME
, A.BILL_TO_CUSTOMER_ID BILL_TO_CUSTOMER_ID
, A.BILL_TO_CONTACT_ID BILL_TO_CONTACT_ID
, A.BILL_TO_SITE_USE_ID BILL_TO_SITE_USE_ID
, U_BILL.LOCATION BILL_TO_LOCATION
, NVL(A_BILL.TRANSLATED_CUSTOMER_NAME,PARTY.PARTY_NAME) BILL_CUST_NAME
, RTRIM(RPAD(LOC.ADDRESS1,40)) BILL_ADDRESS1
, RTRIM(RPAD(LOC.ADDRESS2,40) ) BILL_ADDRESS2
, RTRIM(RPAD(LOC.ADDRESS3,40) ) BILL_ADDRESS3
, RTRIM(RPAD(LOC.ADDRESS4,40) ) BILL_ADDRESS4
, LOC.CITY BILL_CITY
, NVL(LOC.STATE , LOC.PROVINCE) BILL_STATE
, LOC.POSTAL_CODE BILL_POSTAL_CODE
, LOC.COUNTRY BILL_COUNTRY
, U_BILL.TAX_REFERENCE BILL_SITE_TAX_REFERENCE
, PARTY.TAX_REFERENCE BILL_CUST_TAX_REFERENCE
, ' ||:P_SEL_TRX_LINE_AMOUNT||' TRX_LINE_AMOUNT
, ' ||:P_SEL_TRX_TAX_AMOUNT ||' TRX_TAX_AMOUNT
, ' ||:P_SEL_TRX_FREIGHT_AMOUNT||' TRX_FREIGHT_AMOUNT
, ' ||:P_SEL_TRX_ALL_AMOUNT ||' TRX_ALL_AMOUNT
, ' || L_ORDER_BY || ' ORDER_BY
, LOC.ADDRESS1 BILL_TO_ADDRESS1
, LOC.ADDRESS2 BILL_TO_ADDRESS2
, LOC.ADDRESS3 BILL_TO_ADDRESS3
, LOC.ADDRESS4 BILL_TO_ADDRESS4
, LOC.STATE BILL_TO_STATE
, LOC.PROVINCE BILL_TO_PROVINCE
, a.attribute1 as our_ref
, a.attribute2 as your_ref
FROM ' || :P_TABLE1 || '
WHERE ' || :P_WHERE1 || '
' || :P_USER_WHERE_CLAUSE1 || '
' || :P_USER_WHERE_CLAUSE2 || '
' || :P_USER_WHERE_CLAUSE3 || '
' || :P_MLS_CONDITION || '
' || :P_EC_WHERE_CLAUSE || '
' || :P_BR_WHERE_CLAUSE || '
' || :lp_trx_num_high || '
' || :lp_trx_num_low || '
' || :lp_trx_date_clause ||'
' || :lp_doc_seq_clause|| '
UNION
SELECT ' || :P_SEL_TRX_ID || '
, ' || :P_SEL_TRX_NUMBER || '
, NVL(P.TERMS_SEQUENCE_NUMBER,1)
, ' || :P_SEL_TRX_TYPE || '
, ' || :P_SEL_TRX_TYPE_NAME || '
, TYPES.ACCOUNTING_AFFECT_FLAG
, ' || :P_SEL_TRX_DATE || '
, A.SHIP_TO_CUSTOMER_ID
, A.SHIP_TO_CONTACT_ID
, A.REMIT_TO_ADDRESS_ID
, A.PRIMARY_SALESREP_ID
, B.ACCOUNT_NUMBER
, A.INTERNAL_NOTES
, A.BATCH_SOURCE_ID
, A.COMMENTS
, PREVIOUS_CUSTOMER_TRX_ID
, SHIP_TO_SITE_USE_ID
, NVL(PRINTING_COUNT,0)
, PRINTING_ORIGINAL_DATE
, PRINTING_LAST_PRINTED
, PRINTING_PENDING
, LAST_PRINTED_SEQUENCE_NUM
, START_DATE_COMMITMENT
, END_DATE_COMMITMENT
, INITIAL_CUSTOMER_TRX_ID
, A.INVOICE_CURRENCY_CODE
, A.TERM_ID
, A.SHIP_DATE_ACTUAL
, A.SHIP_VIA
, A.WAYBILL_NUMBER
, A.PURCHASE_ORDER
, A.PURCHASE_ORDER_REVISION
, A.PURCHASE_ORDER_DATE
, P.DUE_DATE
, NVL(TL.RELATIVE_AMOUNT,100)*
(100/NVL(T.BASE_AMOUNT,100))
, T.NAME
, A.BILL_TO_CUSTOMER_ID
, A.BILL_TO_CONTACT_ID
, A.BILL_TO_SITE_USE_ID
, U_BILL.LOCATION BILL_TO_LOCATION
, NVL(A_BILL.TRANSLATED_CUSTOMER_NAME,PARTY.PARTY_NAME)
BILL_CUST_NAME
, RTRIM(RPAD(LOC.ADDRESS1, 40))
, RTRIM(RPAD(LOC.ADDRESS2, 40) )
, RTRIM(RPAD(LOC.ADDRESS3, 40) )
, RTRIM(RPAD(LOC.ADDRESS4 , 40) )
, LOC.CITY
, NVL(LOC.STATE , LOC.PROVINCE)
, LOC.POSTAL_CODE
, LOC.COUNTRY
, U_BILL.TAX_REFERENCE
, PARTY.TAX_REFERENCE
, ' || :P_SEL_TRX_LINE_AMOUNT || '
, ' || :P_SEL_TRX_TAX_AMOUNT || '
, ' || :P_SEL_TRX_FREIGHT_AMOUNT || '
, ' || :P_SEL_TRX_ALL_AMOUNT || '
, ' || L_ORDER_BY || '
, LOC.ADDRESS1
, LOC.ADDRESS2
, LOC.ADDRESS3
, LOC.ADDRESS4
, LOC.STATE
, LOC.PROVINCE
, a.attribute1 as our_ref
, a.attribute2 as your_ref
FROM ' || :P_TABLE2 || '
WHERE ' || :P_WHERE2 || '
' || :P_USER_WHERE_CLAUSE1 || '
' || :P_USER_WHERE_CLAUSE2 || '
' || :P_USER_WHERE_CLAUSE3 || '
' || :P_MLS_CONDITION || '
' || :P_EC_WHERE_CLAUSE || '
' || :P_BR_WHERE_CLAUSE || '
' || :lp_trx_num_low || '
' || :lp_trx_num_high ||'
' || :lp_trx_date_clause ||'
' || :lp_doc_seq_clause;
The columns I added are OUR_REF and YOUR_REF which are at the end of the SELECT clause.
Thanks,
A.Stoyanov -
Specify the location for any newly added column
Hi friends,
Is it possible in Oracle to specify the location for any newly added column. why it always goes to
the last , I want to add a new column at first.
If it is possible and anybody knows please tell me.
Thanks & Regards
Chandrakishore BankhedeHi Chandrakishore,
Not exactly a spatial question but the answer is "no" as far as I am aware.
TOAD for Oracle has a nice feature called "Rebuild Table" that provides a GUI interface for redefining and moving columns around. Basically it generates all the required DDL for you - it saves all the constraints, indexes, triggers, etc. Then it creates a new table with your changes, renames the old table with a suffix and replaces all the constraints, indexes, triggers on the new table. Most helpful.
However - see this makes the post spatial in nature :) - for as long as I have been around this feature of TOAD has not been able to handle SDO_GEOMETRY columns - failing with "ORA-22917: use VARRAY to define the storage clause". The good news is the new TOAD 10 now is free of this bug.
This is not meant to be a commercial for TOAD, I just don't know of any other product with this feature. Others may know of similar things perhaps or you can write a function yourself in PL/SQL.
Cheer,
Paul
Maybe you are looking for
-
ITunes crashes while installing...
Hi couple of months ago I purchased this new PC and installed iTunes on this, also purchased a new laptop HP Pavillon 4000 series with which iTunes came preinstalled. Now some time back I used system restore on both (PC + Laptop) and when after it I
-
.bundle files...can I change them?
Hi, I have a file that is a .bundle file...I would like to change its contents...is this possible and how do I change it? Thank you in advance...
-
App Store changed country from USA to Germany
All of a sudden I cannot buy apps from the App Store because it tells me that I am in the German store. How do I change it over using the same email address?
-
Hi I have added an applet to the jsp. When I ran the applet, It loaded up for the first time. But when I ran it the second time, the applet shows up but the contents aren't being painted. I have attached the applet files but avoided posting the whole
-
Simple Question about 'Monitor Clients' on WCS
Hello When I use WCS and go the 'Clients' tab on the Home page and then click 'Associated Clients' it shows me a whole list of usernames/MAC adresses/ip addresses/ etc. One of these column titles is 'Protocol'. On some of my entries there is an AP wi