SAP ABAP Select Statement/ Queries
Hi.
select * from mver where matnr= itab-matnr
and werks = itab-bwkey
and perkz = 'P'
and gjahr = gjahr1.
there are option like 'P' and 'M' i need to select both of them like 'P/M'.
how can u do tht.
both "m" and "P" period buckets shd be populated with data and need to be added together to pull the zm001127.
Hi,
Create a range and then append both the value 'P' and 'M' to the internal table and use the range in the where clause.
data: r_range type range of mver-perkz with header line.
r_range-sign = 'I'.
r_range-option = 'EQ'.
r_range-low = 'P'.
APPEND R_RANGE.
r_range-sign = 'I'.
r_range-option = 'EQ'.
r_range-low = 'M'.
APPEND R_RANGE.
select * from mver where matnr= itab-matnr
and werks = itab-bwkey
and perkz IN R_RANGE
and gjahr = gjahr1.
Similar Messages
-
ABAP select statements takes too long
Hi,
I have a select statement as shown below.
SELECT * FROM BSEG INTO TABLE ITAB_BSEG
WHERE BUKRS = CO_CODE
AND BELNR IN W_DOCNO
AND GJAHR = THISYEAR
AND AUGBL NE SPACE.
This select statement runs fine in all of R/3 systems except for 1. The problem that is shown with this particular system is that the query takes very long ( up to an hour for if W_DOCNO consists of 5 entries). Sometimes, before the query can complete, an ABAP runtime error is encountered as shown below:
<b>Database error text........: "ORA-01555: snapshot too old: rollback segment
number 7 with name "PRS_5" too small?"
Internal call code.........: "[RSQL/FTCH/BSEG ]"
Please check the entries in the system log (Transaction SM21). </b>
Please help me on this issue. However, do not give me suggestions about selecting from a smaller table (bsik, bsak) as my situation does not permit it.
I will reward points.dont use select * ....
instead u declare ur itab with the required fields and then in select refer to the fields in the select .
data : begin of itab,
f1
f2
f3
f4
end of itab.
select f1 f2 f3 f4 ..
into table itab
from bseg where ...
. this improves the performance .
select * is not advised .
regards,
vijay -
ABAP Select statement performance (with nested NOT IN selects)
Hi Folks,
I'm working on the ST module and am working with the document flow table VBFA. The query takes a large amount of time, and is timing out in production. I am hoping that someone would be able to give me a few tips to make this run faster. In our test environment, this query take 12+ minutes to process.
SELECT vbfa~vbeln
vbfa~vbelv
Sub~vbelv
Material~matnr
Material~zzactshpdt
Material~werks
Customer~name1
Customer~sortl
FROM vbfa JOIN vbrk AS Parent ON ( Parentvbeln = vbfavbeln )
JOIN vbfa AS Sub ON ( Subvbeln = vbfavbeln )
JOIN vbap AS Material ON ( Materialvbeln = Subvbelv )
JOIN vbak AS Header ON ( Headervbeln = Subvbelv )
JOIN vbpa AS Partner ON ( Partnervbeln = Subvbelv )
JOIN kna1 AS Customer ON ( Customerkunnr = Partnerkunnr )
INTO (WA_Transfers-vbeln,
WA_Transfers-vbelv,
WA_Transfers-order,
WA_Transfers-MATNR,
WA_Transfers-sdate,
WA_Transfers-sfwerks,
WA_Transfers-name1,
WA_Transfers-stwerks)
WHERE vbfa~vbtyp_n = 'M' "Invoice
AND vbfa~fktyp = 'L' "Delivery Related Billing Doc
AND vbfa~vbtyp_v = 'J' "Delivery Doc
AND vbfa~vbelv IN S_VBELV
AND Sub~vbtyp_n = 'M' "Invoice Document Type
AND Sub~vbtyp_v = 'C' "Order Document Type
AND Partner~parvw = 'WE' "Ship To Party(actual desc. is SH)
AND Material~zzactshpdt IN S_SDATE
AND ( Parentfkart = 'ZTRA' OR Parentfkart = 'ZTER' )
AND vbfa~vbelv NOT IN
( SELECT subvbfa~vbelv
FROM vbfa AS subvbfa
WHERE subvbfavbelv = vbfavbelv
AND subvbfa~vbtyp_n = 'V' ) "Purchase Order
AND vbfa~vbelv NOT IN
( SELECT DelList~vbeln
FROM vbfa AS DelList
WHERE DelListvbeln = vbfavbelv
AND DelList~vbtyp_v = 'C' "Order Document Type
AND DelList~vbelv IN "Delivery Doc
( SELECT OrderList~vbelv
FROM vbfa AS OrderList
WHERE OrderList~vbtyp_n = 'H' ) "Return Ord
APPEND WA_Transfers TO ITAB_Transfers.
ENDSELECT.
Cheers,
ChrisI am sending u some of the performance isuues that are to be kept in mind while coding.
1.Donot use Select *...... instead use Select <required list>......
2.Donot fetch data from CLUSTER tables.
3.Donot use Nested Select statements as. U have used nested select which reduces performance to a greater extent.
Instead use views/join .
Also keep in mind that not use join condition for more for more than three tables unless otherwise required.
So split select statements into three or four and use Select ......for all entries....
4.Extract the data from the database atonce consolidated upfront into table.
i.e. use INTO TABLE <ITAB> clause instead of using
Select----
End Select.
5.Never use order by clause in Select ..... statement. instead use SORT<itab>.
6.When ever u need to calculate max,min,avg,sum,count use AGGREGATE FUNCTIONS and GROUP BY clause insted of calculating by userself..
7.Donot use the same table once for Validation and another time for data extraction.select data only once.
8.When the intention is for validation use Select single ....../Select.......up to one rows ......statements.
9.If possible always use array operations to update the database tables.
10.Order of the fields in the where clause select statement must be in the same order in the index of table.
11.Never release the object unless throughly checked by st05/se30/slin.
12.Avoid using identical select statements. -
HELP FOR ABAP SELECT STATEMENT
I am writing below query and getting below current result which is four rows. i would like to have result mentioned below in expected result which is single row.. any idea how can i do that? It can be easily done in sql-plus using decode or union clause. but please suggest how to do it in abap.
select distinct
qmsm~qmnum
qmel~qmtxt
qmsm~mncod
qmsm~pster
qmsm~peter
ihpa~parvw
ihpa~parnr
from qmsm
inner join qmma
on qmsmqmnum = qmmaqmnum
inner join qmel
on qmmaqmnum = qmelqmnum
inner join ihpa
on qmelobjnr = ihpaobjnr
into table ztstnotifications
where
qmel~qmnum = '000100000166'
and qmma~material = wa_material
and qmsm~mncod in ('2','4')
and ihpa~parvw in ('1A','ZY')
order by qmsm~qmnum
qmel~qmtxt
qmsm~mncod
qmsm~pster
qmsm~peter.
current result
100000166 will it work 2 22.10.2009 31.10.2009 SP 1000688
100000166 will it work 2 22.10.2009 31.10.2009 ZY AE001
100000166 will it work 4 01.01.2010 15.01.2010 SP 1000688
100000166 will it work 4 01.01.2010 15.01.2010 ZY AE001
expected result
100000166 will it work 2 22.10.2009 31.10.2009 4 01.01.2010 15.01.2010 SP 1000688 ZY AE001
ThanksI doubt you'll be able to do so in a straight way. I would try to use some imaginative ways, like define an addition internal table with the key fields of your query, and a "long string" field, where I'll add the returned rows.
Or something like that. if you know the max number of rows this kind of join will return, add that number times the fields needed (parvw1, parnr1, parvw2, parnr2....) and use a LOOP to populate it. -
Hi all
I want to extract data from three fields. among these three fields, two fields are from standard table and one is from ztable and how can i put it select statement.
Plz tell
Regards
Monahi,
use innerjoin...
Select afield1 afield2 b~field into table itab from dbtable as a innerjoin ztable as b on dbtable-field = ztable-field.
Regards
SYed A -
Urgent , abap select statement error VBPA ...
hi gurus,
please tell me what is the wrong in the following select statment:
it returns 4 dispite that the data is there in the table VBPA
like this :
VBPA
Cl. : 200
Document : 0010002449
Item :
Funct : PE
Pers.No. : 100820
SELECT SINGLE
pernr
INTO w_pernr
FROM vbpa
WHERE VBELN EQ '0010002449'
and kunnr EQ 'PE'.hi
good
wrong one ->
SELECT SINGLE
pernr
INTO w_pernr
FROM vbpa
WHERE VBELN EQ '0010002449'
and kunnr EQ 'PE'.
SELECT SINGLE
pernr
INTO w_pernr
FROM vbpa
WHERE VBELN EQ 0010002449
and kunnr EQ PE.
change like this and check the difference.
thanks
mrutyun^ -
Urgent , abap select statement error ...
Hi all ,
here i attached my code , has anyone can tell me where is the error ???
when i active this code , it showed :
"comma without preceding colon(after select?)"
thanks a lot !
SELECT LIPSERDAT LIPSVBELN LIPSPOSNR LIPSVGPOS LIPS~LFIMG
LIPSVRKME LIKPWADAT_IST LIKPKUNAG LIKPKUNNR LIKP~VBELN
VBAPVBELN VBAPMATNR VBAPNETWR VBAPWAERK VBAPMWSBP VBAPNETPR
VBAPPOSNR VBUPKOSTA VBUPWBSTA VBUPFKSTA VBUPPOSNR VBUPVBELN
VBPAPARVW VBPAVBELN VBUKCMGST VBUKVBELN VBAKAUART VBAKVBELN
INTO (
WASTATUS-ERDAT , WASTATUS-VBELN , WASTATUS-POSNR ,
WASTATUS-VGPOS , WASTATUS-LFIMG , WASTATUS-VRKME ,
WASTATUS-WADAT_IST , WASTATUS-KUNAG ,WASTATUS-KUNNR ,
WASTATUS-LIKPVBELN , WASTATUS-VBAPVBELN , WASTATUS-MATNR ,
WASTATUS-NETWR , WASTATUS-WAERK , WASTATUS-MWSBP ,
WASTATUS-NETPR , WASTATUS-POSNR , WASTATUS-KOSTA , WASTATUS-WBSTA ,
WASTATUS-FKSTA , WASTATUS-VBUPPOSNR , WASTATUS-VBUPVBELN ,
WASTATUS-PARVW , WASTATUS-VBPAVBELN , WASTATUS-CMGST ,
WASTATUS-VBUKVBELN , WASTATUS-AUART , WASTATUS-VBAKVBELN )
FROM ( LIPS inner join LIKP
on LIKPVBELN = LIPSVBELN
inner join VBAP
on VBAPVBELN = LIPSVGBEL
and VBAPPOSNR = LIPSVGPOS
inner join VBUP
on VBUPPOSNR = LIPSPOSNR
and VBUPVBELN = LIPSVBELN
inner join VBPA
on VBPAVBELN = LIPSVBELN
inner join VBUK
on VBUKVBELN = LIPSVBELN
inner join VBAK
on VBAKVBELN = VBAPVBELN )
WHERE
LIPS~VBELN in P_SVBELN
and LIPS~ERDAT in P_ERDAT
and LIKP~KUNAG in P_KUNAG
and LIKP~KUNNR in P_KUNNR
and VBAP~VBELN in P_PVBELN
and VBUP~KOSTA in P_KOSTA
and VBUP~WBSTA in P_WBSTA
and VBUP~FKSTA in P_FKSTA
and VBPA~PARVW in P_PARVW
and VBUK~CMGST in P_CMGST .sorry all ,
i already removed the space on my code like that :
but it still displayed the error .
SELECT LIPS~ERDAT
<b>*LIPSVBELN LIPSPOSNR LIPSVGPOS LIPSLFIMG
*LIPSVRKME LIKPWADAT_IST LIKPKUNAG LIKPKUNNR LIKP~VBELN
*VBAPVBELN VBAPMATNR VBAPNETWR VBAPWAERK VBAPMWSBP VBAPNETPR
*VBAPPOSNR VBUPKOSTA VBUPWBSTA VBUPFKSTA VBUPPOSNR VBUPVBELN
*VBPAPARVW VBPAVBELN VBUKCMGST VBUKVBELN VBAKAUART VBAKVBELN</b> FROM ( LIPS inner join LIKP
on LIKPVBELN = LIPSVBELN
inner join VBAP
on VBAPVBELN = LIPSVGBEL
and VBAPPOSNR = LIPSVGPOS
inner join VBUP
on VBUPPOSNR = LIPSPOSNR
and VBUPVBELN = LIPSVBELN
inner join VBPA
on VBPAVBELN = LIPSVBELN
inner join VBUK
on VBUKVBELN = LIPSVBELN
inner join VBAK
on VBAKVBELN = VBAPVBELN )
INTO (WASTATUS-ERDAT)
<b>*WASTATUS-VBELN, WASTATUS-POSNR, WASTATUS-VGPOS,WASTATUS-LFIMG)
*WASTATUS-VRKME,
*WASTATUS-WADAT_IST, WASTATUS-KUNAG,WASTATUS-KUNNR,
*WASTATUS-LIKPVBELN, WASTATUS-VBAPVBELN, WASTATUS-MATNR,
*WASTATUS-NETWR, WASTATUS-WAERK, WASTATUS-MWSBP,
*WASTATUS-NETPR, WASTATUS-POSNR, WASTATUS-KOSTA, WASTATUS-WBSTA,
*WASTATUS-FKSTA, WASTATUS-VBUPPOSNR, WASTATUS-VBUPVBELN,
*WASTATUS-PARVW, WASTATUS-VBPAVBELN, WASTATUS-CMGST,
*WASTATUS-VBUKVBELN, WASTATUS-AUART, WASTATUS-VBAKVBELN )</b> WHERE
LIPS~VBELN in P_SVBELN
and LIPS~ERDAT in P_ERDAT
and LIKP~KUNAG in P_KUNAG
and LIKP~KUNNR in P_KUNNR
and VBAP~VBELN in P_PVBELN
and VBUP~KOSTA in P_KOSTA
and VBUP~WBSTA in P_WBSTA
and VBUP~FKSTA in P_FKSTA
and VBPA~PARVW in P_PARVW
and VBUK~CMGST in P_CMGST . -
ABAP select statement !!
Hi All,
I want to write a query on SOOD table like:
SELECT OBJTP OBJYR OBJNO OBJDES OWNNAM FROM SOOD INTO TABLE IT_SOOD
WHERE OBJDES LIKE 'String%' AND
( SDDAT BETWEEN LV_LASTRUN AND SY-DATUM ) AND
( SDTIM BETWEEN LV_LASTTIM AND SY-UZEIT ).
but this is not returning me data between the last run date/ last run time and current date/ time.
Can anybody suggest how to modify the above query in order to fetch correct data.
Thanks in Advance !!
Vivek>
vivek kulkarni wrote:
> Hi All,
>
> I want to write a query on SOOD table like:
>
> SELECT OBJTP OBJYR OBJNO OBJDES OWNNAM FROM SOOD INTO TABLE IT_SOOD
> WHERE OBJDES LIKE 'String%' AND
> ( SDDAT BETWEEN LV_LASTRUN AND SY-DATUM ) AND
> ( SDTIM BETWEEN LV_LASTTIM AND SY-UZEIT ).
>
> but this is not returning me data between the last run date/ last run time and current date/ time.
>
> Can anybody suggest how to modify the above query in order to fetch correct data.
>
> Thanks in Advance !!
> Vivek
If the last run date was 01.09.2009 and the last run time was 11:00, this code will pick up data for all dates from 01.09.2009 but only if the time value is > 11:00; so if there was a run at 09:00 on 03.09.2009 you won't pick up that record - and I'm assuming that you would want to pick up that record.
I think you should only be applying the time check to records where the date = LV_LASTRUN and for later records you should just be checking the date. Something like:
WHERE ( ( sddat = lv_lastrun
AND sdtim > lv_lasttim )
OR ( sddat > lv_lastrun ) -
Hi,
In an ABAP select statement, how to do operations on two columns of a dictionary transparent table(say division or multiplication on two column values) ?
Reward points will be awarded .
TIA
Regards,
Aninditahi,
see the below link
i hope it will useful for u .
http://help.sap.com/saphelp_nw04/helpdata/en/62/10a423384746e8bf5f15ccdd36e8b1/content.htm
SELECT AVG(salary) FROM employees
SELECT COUNT(*) FROM employees
SELECT COUNT(DISTINCT employee_name) FROM employees
SELECT employee_name, salary + benefit
FROM employees
WHERE salary < 0.8 *
( SELECT MAX( salary ) FROM employees )
Arithmetic Expressions. For all employees that have a salary not exceeding 80% of the salary of the maximum salary of all employees, this query returns the name of the employee and the sum of its salary and its benefit.
reward if its useful
Edited by: p541399 on Feb 28, 2008 5:49 PM -
Can we use is null in our select statement in ABAP program
hi,
I want to use 'is nul' or 'not null' in select statement of my ABAP program for any field. I have written below query but I am getting sy-subrc = 4 and getting no data. Can anyone resolve this.Hi,
I think you've posted your question on the wrong forum. This is the SAP Business One development forum which is not part of ERP and doesn't include any ABAP or Netweaver programming.
For a list of forums please see here:
http://forums.sdn.sap.com/index.jspa
Kind Regards,
Owen -
Nodes statement in payroll in SAP ABAP hr Report
hi,
i am working in sap abap hr report for payroll.i am using nodes statement in that report.it is showing error that ""PERNR" is not a node of the logical database __S".how can i solve this error.in this report.
NODES pernr .
INFOTYPES: 0000, 0001, 2001.
TABLES: t554s, pcl1, pcl2.
INCLUDE rpclst00.
INCLUDE rpc2rx09. "Payroll results datadefns-Intl.
INCLUDE rpc2rxx0. "Payroll results datadefns-Intl.
INCLUDE rpc2rgg0. "Payroll results datadefns-GB
INCLUDE rpcfdcg0. "Payroll results datadefns-GB
INCLUDE rpcdatg0.
INCLUDE rpc2cd00. "Cluster Directory defns.
INCLUDE rpc2ps00. "Cluster: Generierte Schematas
INCLUDE rpc2pt00.
INCLUDE rpcfdc10.
INCLUDE rpcfdc00.
INCLUDE rpppxd00.
INCLUDE rpppxd10.
INCLUDE rpcfvp09.
INCLUDE rpcfvpg0.
INCLUDE rpppxm00.
TYPES: BEGIN OF t_salrate,
seqnr TYPE pc261-seqnr,
begda TYPE p2001-begda,
endda TYPE p2001-endda,
split(2) TYPE c,
val TYPE p DECIMALS 2,
END OF t_salrate.
DATA: it_salrate TYPE STANDARD TABLE OF t_salrate INITIAL SIZE 0,
wa_salrate TYPE t_salrate.
*Selection screen
SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME TITLE text-001.
SELECT-OPTIONS: so_awart FOR p2001-awart.
SELECTION-SCREEN END OF BLOCK block1.
*START-OF-SELECTION.
START-OF-SELECTION.
GET pernr.
get payroll results data
rp-init-buffer.
CLEAR rgdir. REFRESH rgdir.
CLEAR rt. REFRESH rt.
CLEAR: rx-key.
set key to current pernr
MOVE pernr-pernr(8) TO cd-key-pernr.
retrieves payroll results for specific pernr(personnel number)
rp-imp-c2-cd.
IF rp-imp-cd-subrc = 0. "rgdir success
rx-key-pernr = pernr-pernr.
SORT rgdir BY seqnr ASCENDING.
CLEAR rgdir.
ENDIF.
SORT rgdir BY fpbeg fpend ASCENDING seqnr DESCENDING.
RGDIR the table where all payroll results periods are stored
LOOP AT rgdir WHERE abkrs IN pnpabkrs "pay area
AND srtza EQ 'A'
AND void NE 'V'.
IF sy-subrc NE 0.
set key to specific payroll results period(current RGDIR loop pass)
UNPACK rgdir-seqnr TO rx-key-seqno.
Retrieves data for specific payroll results period (current RGDIR
loop pass)
rp-imp-c2-rg.
Loop at wpbp data for specific payroll results period
LOOP AT wpbp.
wa_salrate-seqnr = rgdir-seqnr.
wa_salrate-begda = wpbp-begda.
wa_salrate-endda = wpbp-endda.
wa_salrate-split = wpbp-apznr.
loop at rt data for specific payroll results period
LOOP AT rt WHERE lgart EQ '/010' AND "wage type
apznr EQ wpbp-apznr. "payroll split
wa_salrate-val = ( rt-betpe * ( wpbp-adivi / wpbp-kdivi ) ).
APPEND wa_salrate TO it_salrate.
ENDLOOP.
ENDLOOP.
Process BT table
LOOP AT BT.
ENDLOOP.
Process NIPAY table
LOOP AT NIPAY.
ENDLOOP.
etc................
ENDIF.
ENDLOOP.
*END-OF-SELECTION.
END-OF-SELECTION.Hi,
Have you put a Logical Database in the attributes of the program that you have created ?
Regards,
Samson Rodrigues. -
Problems with Hints in abap code to use an index in a Select statement
Hi,
I want to use an especific index in a select statement but I can´t get it. I use de next statement:
SELECT ltaklgnum ltaktanum ltakvbeln ltaptapos ltapnltyp ltappvqui
FROM ltak AS ltak INNER JOIN ltap AS ltap
ON ltaktanum = ltaptanum
AND ltaklgnum = ltaplgnum
INTO TABLE l_t_tanum_silo
WHERE ltap~lgnum EQ ip_lgnum
AND ltap~pquit EQ ' '
AND ltak~lgnum EQ ip_lgnum
AND ltak~kquit EQ ' '
AND ltak~queue EQ ip_queue
%_HINTS DB2 ''.
We have DB2 for Linux Unix and Windows 9.5 as DB system.
How can I fix this?
Thanks a lot.
RegardsThe DB2 for Linux Unix and Windows is coded DB6 for SAP and not DB2
Look at the following OSS notes
- [Note 129385 - Database hints in Open SQL|https://service.sap.com/sap/support/notes/129385]
- [Note 150037 - Database hints in Open SQL for DB6 (DB2 for LUW)|https://service.sap.com/sap/support/notes/150037]
- [Note 1270314 - DB6: DB2 9.5 Perf. degrad. for queries with INLIST clause|https://service.sap.com/sap/support/notes/1270314]
- [Note 868888 - DB6: Optimization Guidelines|https://service.sap.com/sap/support/notes/868888]
You should use a
SELECT ltak~lgnum ltak~tanum ltak~vbeln ltap~tapos ltap~nltyp ltap~pvqui
FROM ltak AS ltak INNER JOIN ltap AS ltap
ON ltak~tanum = ltap~tanum
AND ltak~lgnum = ltap~lgnum
INTO TABLE l_t_tanum_silo
WHERE ltap~lgnum EQ ip_lgnum
AND ltap~pquit EQ ' '
AND ltak~lgnum EQ ip_lgnum
AND ltak~kquit EQ ' '
AND ltak~queue EQ ip_queue
%_HINTS DB6 '<IXSCAN TABLE=''LTAP'' INDEX=''"LTAP~M"'' />'.
In note 868888 there is a sample for a join.
SELECT A~TABSPACE
FROM TADB6 AS A
JOIN IADB6 AS B ON A~TABART = B~TABART
%_HINTS DB6 '<NLJOIN><IXSCAN TABLE=''IADB6'' />'
DB6 '<IXSCAN TABLE=''TADB6'' /></NLJOIN>'.
Regards -
Does BOBJ support OR select statement against SAP BW
Hello,
We are looking at BOBJ for reporting against SAP BW, and I was wondering if BOBJ supports select OR statements and select AND statements in the same report.
For example.
We have three select parameters:
Company Code
Document Type
Vendor
The business would like to run the following select statements:
Company Code = 1010 AND
Document Type = WE OR
Vendor = 123123
or from the same query, run the report this way:
Company Code = 1010 AND
Document Type = WE AND
Vendor = 123123
Is this possible? If yes, what options do we have.Hi Bill,
there are several options to achieve this:
In the BI Query you have a parameter type that is called "selection option" which allows the end-user to create very complex selection.
In Crystal Reports you can create your own filter / parameters but you would have to pay attention to make sure that the parameters are being send down to the server.
in Web Intelligence / a Universe you could do the same like in CR.
Ingo -
How to use 'is null' in select statement of ABAP program
hi,
I want to use 'is nul' or 'not null' in select statement of my ABAP program for any field. I have written below query but I am getting sy-subrc = 4 and getting no data.
SELECT * FROM mara INTO TABLE it_mara
WHERE volum IS NULL .
Can anyone resolve this.Hi PKB,
Check the below thread for NULL and Space value in ABAP . It will help you
NULL and Space value in ABAP
Regards,
Pawan -
Edit an object's select statement of OLAP universe SAP BW
Hi everybody
I am new at working with Olap Universes BW, and I have to edit one universe SAP BW, I don't know if I can to use substring function on a select statement, for example substring([0D_DIV].[LEVEL01],5,5), I try to use this function but I have a error,
Could you help me? I need to returns part of a string, is correct to do it on a universe or is better to do at BW.Hi,
First of all I recommend you read the documentation that gives you information about OLAP universes and especially SAP BW universes.
I also recommend to download documents related to SAP universes deployment, administration and customization:
[OLAP Universes - how to samples and recommendations |https://wiki.wdf.sap.corp/wiki/display/globalregions/OLAPUniverses-howtosamplesand+recommendations]
[SAP Integration |https://wiki.wdf.sap.corp/wiki/display/globalregions/SAP+Integration]
Now you can customize expression using MDX in OLAP universes. MDX expressions must be enclosed with <EXPRESSION></EXPRESSION> XML tags.
Unfortunately SAP BW MDX does not support calculations that return string or date values.
The onlyway to return string is to use NAME or UNOIQUENAME attribute.
See answers I already in the forum: [Forum answer |Re: Create new dimension on top of SAP BW data]
Regards
Didier
Maybe you are looking for
-
My mac will not turn on. there is a white screen with a spinning wheel
my imac will not turn on. It will power up but just a blank screen with a spinning wheel appears
-
Accessing the binding variables
Hi, i have the following attribute entry in the page definition file. <attributeValues IterBinding="RenewalPolicyTermVOIterator" id="PolicyNum"> <AttrNames> <Item Value="PolicyNum"/> </AttrNames> </attributeValues> I am getting Null Pointer exception
-
Pre-checks for cluster services setup
Hi Expert, During the pre-checks for cluster services setup, I have got this error for Checking node connectivity.. How can I resolve this problem. The error is as follow as I enter "runcluvfy.sh stage -pre crsinst -n db-a,db-b" command. If the Check
-
Hello.... I want to get the last date of the month. For example, the last date of Jan is 31. How can I get the last date of the particular month and year ???? Thanks for help. Gloria
-
Reformatted. Lost CC/Photoshop what's the process for reinstalling?
My macbook died. Reinstalled OS. How do I access my CC account to reinstall? Thanks Drew