Adding 2 columns in BEX
Hi friends,
i have a requirement to add 2 columns in a query, i know there are some posts regarding this issues but i did not found any suitable answer for this, this will be solved by using some macros in BEX, can any one pls send coding for that.
points will be awarded,
thanks,
pavan,
>i need to add two char info objects in query please tell me >how?pls gurus solve my problem.
If the object exists in the data provider then, there is nothing you really need to do except to drag and drop them in the column. But if the objects are not in the data provider and you need to add some logic to it, then you need to create some calculated key figure or Restricted Key figure or Formula to put your logic in and if it is CKF or RKF then drop it in the column section. Everything depends on the availability of the InfoObject in the data provider.
thanks.
Wond
Similar Messages
-
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 -
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 -
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 -
Display Parent node in a separate column in BEx
Hi all,
I have a requirement to display parent node of a node in a separate column in BEx.
For e.g. If 'a' and 'b' belong to the parent node 'c,' I need to display 'c' in a separate column whenever 'a' or 'b' occur in the report.
Any ideas how I can accomplish this? I already have a hierarchy enabled in the report. The client
still wants to display the parent node in a separate column
Thanks and points will be assigned.Hi Claus,
You can use the following as table cell editor:
1. Image -- just displays plain image
2. Caption -- dislays image along with text or image only (or text only).
3. LinkToAction -- same as caption, however provides you a way to have something like "onClick" action.
Regards,
VS -
Concatenate out put of 2 or more columns in BEX Report in to one column
Hi,
I am working on service order report in BEX, and i would like to Concatenate out put of 2 or more columns in BEX Report in to one column.
Please share me if any scenarios.
Thank
NeniHi Ashutosh,
Thanks for your reply,
Actually in my report 4 different columns belongs to service orders information from different departments, i want see all 4 columns information in to single column, those four are virtual characteristics.
As per your solution concatenate in workbook using function, can you please give me the steps how to do that.
Thanks for your help.
Thanks
Neni. -
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 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. -
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
Maybe you are looking for
-
Commit not allowed in Trigger then how to store the values in table
Hi, Database trigger not allowed to COMMIT in it (directly) or in procedure which is calling from the Trigger. it gives error. so my question is:- 1)How Database internally store the INSERT AND UPDATE value in table which is written in procedure with
-
Changing of reconcilation ledger account in vendor master
Hi Sap Experts, how to change Reconcilation ledger of a vendor and how would be the effect if i change this account in the middle of the financial year. How to carry forward the balance to the new recon account. Please help me to solve this. Thank yo
-
In FD33 for one of our customers, it is showing a big amount in 'Sales Value' and when drilling down to it, it shows the amount as 'Open Delivery'. According to users, we do not have any open delivery for this customer. Is there a report that will s
-
Clarification in Planning Statergies
Hi Friends, 1.Please explain about the Main Planning strategies and Alternative Planning strategies... 2.What is the need of Alternative planning strategies..?? 3.In what type of scenarios the alternative planning strategies is needed and who it will
-
Dear All, I face a problem while connecting my ipod to two different pc .It deletes all the previous library an replaces with new library.there is no other option to choose! Any way out ? Also can any one tell m how one can stop playing a song? Thes