*REC statement not working
Hi I have the code as below.
I want to write to a version members which have a property value of Active = Y.
*XDIM_MEMBERSET COMPANY_CODE = <ALL>
*XDIM_MEMBERSET COST_CENTER = <ALL>
*XDIM_MEMBERSET COST_ELEMENT = <ALL>
*XDIM_MEMBERSET CUSTOMER_TYPE = <ALL>
*XDIM_MEMBERSET PROFIT_CENTER = <ALL>
*XDIM_MEMBERSET P_DATASRC = INPUT
*XDIM_MEMBERSET RPTCURRENCY = LC
//*XDIM_MEMBERSET TIME = <ALL>
*XDIM_MEMBERSET USER_LEVEL = 01,02
*XDIM_FILTER TIME = [TIME].PROPERTIES("CURRENTMO") = "Y"
*XDIM_FILTER VERSION = [VERSION].PROPERTIES("ACTIVE")="Y"
*XDIM_ADDMEMBERSET VERSION = WV
*WHEN COST_ELEMENT.ACCTYPE
*IS $ACCTPRPTYFROM$
*WHEN P_DATASRC
*IS "INPUT"
*WHEN RPTCURRENCY
*IS "LC"
*WHEN VERSION
*IS "WV"
*WHEN USER_LEVEL
*IS $DATATYPEFROM$
//*WHEN TIME.CURRENTMO
//*IS "Y"
*REC(FACTOR=1,USER_LEVEL=$DATATYPETO$,RPTCURRENCY="LC",P_DATASRC="INPUT",VERSION=VERSION.ACTIVE)
//I want to write the record to
*ENDWHEN
//*ENDWHEN
*ENDWHEN
*ENDWHEN
*ENDWHEN
*ENDWHEN
*COMMIT
Hi,
There are few duplicate filters in your code, which can be instantly removed. You can remove either of them
1.
*XDIM_MEMBERSET P_DATASRC = INPUT
or
*WHEN P_DATASRC
*IS "INPUT"
2.
*XDIM_MEMBERSET RPTCURRENCY = LC
or
*WHEN RPTCURRENCY
*IS "LC"
You are using the statement
*XDIM_MEMBERSET USER_LEVEL = 01,02
This will filter only based on 01, and 02.
Though you tried to use the statement,
*WHEN USER_LEVEL
*IS $DATATYPEFROM$
For your purpose, try to get all the versions in a variable. Then for each of these variables, you can use *REC expression.
Hope this helps.
Similar Messages
-
hi to all,
I am trying to write use inner joining . here is code
DATA:tabname LIKE dd02L-tabname,
table_disc LIKE dd02t-ddtext.
SELECT dd02ltabname dd02tddtext INTO (tabname,table_disc)
FROM dd02l INNER JOIN dd02t on dd02ltabname = dd02ttabname
WHERE dd02tddlanguage = 'E' AND dd02ltabclass = 'TRANSP'
AND dd02L~tabname = 'ZANKI*'.
endselect.
write : tabname.
I also checked in tables dd02t and dd02l for the table zanki* and data available in both table . but here select statement not working .do u have any idea about this. thank youHi,
I executed the ur inner join conditin by commenting 'z*' it's working fine.
I think where condition is not getting satisfied so u r not getting any data.
Please conform in where condition you need * 'AND'* or OR
I change decalration as below.
DATA:tabname type TABNAME,
table_disc type AS4TEXT.
SELECT dd02l~tabname
dd02t~ddtext INTO (tabname, table_disc)
FROM dd02l INNER JOIN dd02t on dd02l~tabname = dd02t~tabname
WHERE dd02t~ddlanguage = 'E' AND
dd02l~tabclass = 'TRANSP'AND
dd02L~tabname = 'ZANKI*'.
endselect.
write : tabname.
Regards,
Pravin -
Case when statement not working
hi there, I am trying to work out how to get my case statement to work.
I have got the following code.
select pthproto.pthdbo.cnarole.tpkcnarole, pthproto.pthdbo.cnaidta.formataddr as formataddr, cnaidta.dateeffect as maxdate, isnull(cast (pthproto.pthdbo.cnaaddr.prefix1key as varchar (50)),'') + ' ' + isnull(cast (pthproto.pthdbo.cnaaddr.prefix2key
as varchar (50)),'')+ ' ' + isnull(cast (pthproto.pthdbo.cnaaddr.prefix3key as varchar (50)),'') + ' ' + isnull (cast (pthproto.pthdbo.cnaaddr.houseidkey as varchar (100)),'') + ' ' + isnull (cast (pthproto.pthdbo.cnaaddr.component1
as varchar (100)),'') + ' ' + isnull (cast (pthproto.pthdbo.cnaaddr.component2 as varchar (100)),'') + ' ' + isnull (cast (pthproto.pthdbo.cnaaddr.component3 as varchar (100)),'') + ' ' + isnull (cast (pthproto.pthdbo.cnaaddr.component4
as varchar (100)),'') + ' ' + isnull (cast (pthproto.pthdbo.cnaaddr.component5 as varchar (100)),'') as mailaddress, row_number() over(partition by pthproto.pthdbo.cnarole.tpkcnarole order by cnaidta.dateeffect desc) as rn into #address from pthproto.pthdbo.cnarole
inner join pthproto.pthdbo.cnaidty on cnarole.tfkcnaidty =cnaidty.tpkcnaidty inner join pthproto.pthdbo.cnaidta on cnaidty.tpkcnaidty = cnaidta.tfkcnaidty inner join pthproto.pthdbo.cnaaddr on cnaidta.tfkcnaaddr = cnaaddr.tpkcnaaddr order by cnaidta.dateeffect
select *, case when mailaddress is not null then mailaddress else formataddr end as test from #address where tpkcnarole = '18306695'
The case when statement is struggling with how i have created the column mailaddress. As it does seem to understand when it is null. In the example I have got there is no value in any of the columns to create
the mailaddress. Hence why I am referencing it from elsewhere. Due to having a way on the system where it picks up data from 2 different places. The mailaddress is always correct if there is one, hence why
trying to reference that one first. So how do i change this case when statement to work ?It's ok I have fixed my own problem
when
(mailaddress
is
null
or mailaddress
=
then formataddr
else mailaddress
end
as test
case -
Active state not working in scrolling site (with anchor links)
I'm design a scrolling site with anchor links and an horizontal menu on the top.
when i publish the site and click on the menu buttons the site scrolling to the place of the anchor but the active state in the menu is not working.
now... when i leave the main page (were the scrolling site is) and then return back to it all active states are working perfectly
anyone have this bug? or any one know how to fix it ?Hmmm...I've just been playing around, and I think I got the Active State to work correctly. I think my problem was not understand what Active State means.
To answer your question, I was changing the Font Color and Box Fill Color of the Active State.
I did not understand that Active State means the look of the Menu Item when the PAGE is active. I thought it meant the look of the Menu item when the cursor is scrolling down the Menu (i.e. when the MENU is Active, not the page).
Look at this page for an example of what I'm trying to achieve...
http://www.pgavdestinations.com
When you hover over the "Work" menu item, and move the cursor down the menu, the state of "Work" remains changed until you move the cursor off of that menu column. It does NOT return back to it's Normal state until you are off of that menu column.
Is there a way to achieve this with the menu states in Muse?
Thanks for the replies!
Dave. -
SELECT INTO ( variable ) STATEMENTS NOT WORKING FOR SYBASE TABLE AS VIEW
Dear Experts,
We have connected our 9i db with Sybase db using Hs connectivity.
and then we have create the view in oracle db for SYBASE_TABLE as SYBASE_TABLE_VIEW.
ALL THE INSERT, UPDATE AND DELETE COMMANDS ARE WORKING BUT THE
select Into (variable) is not working.
Please help to resolve the select into statment which is in BOLD in the below routine
PLEASE NOTE! FORM WAS COMPILED SUCCESSFULLY AND FORM IS RUNNING BUT SELECT INTO COMMAND IS NOT WORKING.
Thanks & Regards
Eidy
PROCEDURE SRBL_INSERT IS
CURSOR SRBL IS
SELECT impno,impcod,impnam
from oracle_table1 a, oracle_table2 b
WHERE a.impcod=b.empcod
v_srpcod varchar2(5);
BEGIN
FOR rec in SRBL loop
begin
select "im_code" into v_impcod
from SYBASE_TABLE_VIEW
where "im_code"=rec.impcod;
exception when no_data_found then
v_srpcod:=null;
end;
END LOOP;
END;
Edited by: Eidy on Aug 16, 2010 11:28 AMhellow
try this.
select "im_code" into v_impcod
from SYBASE_TABLE_VIEW
where "im_code"=rec.impcod;
v_srpcod := v_impcod ;
........ -
Import/Export statement not working..
Hi all,
I want to export some data from BADI & Import it back in user exit.
I wrote following line of code in BADI
export P1 FROM xstr to memory id 'ZABHI'.
& following line of code in User Exit
import P1 to xstr FROM memory id 'ZABHI'.
After export sy-subrc becomes 0 hence export statement is working fine but when aftr import xstr remains blank.(sy-subrc = 4)
I tried to execute same code in single ztest abap program & it works fine there.
Thanks in advance.hi abhijeet,
you are most welcome....
to delete, use
** deletes the data to save wastage of memory
delete from database indx(xy)
client sy-mandt
id 'ZABHI'.
you need to delete it coz, its available to all programs in the R/3
server via the ID and you don't want anybody to view the data u are
sending into memory.
the statement that u used earlier was program specific and hence
not accessible to the user exit.
Regards,
Samson Rodrigues. -
Hi experts,
i am using hide statement but it is not working..The problem with it is that after line selection the variable on which i have used hide is carrying the last value of internal table always..<< Removed >>
Regards,
Raman
Edited by: Rob Burbank on Jun 30, 2009 10:41 AMI am sending a test program with same problem...iin this after line selection the field variable emp-name is displayin only last entry of internal table...
*& Report ZBASICX12
REPORT ZBASICX12.
INITIALIZATION.
DATA: BEGIN OF ITAB OCCURS 0,
EMPID TYPE ZTEMP-EMPID,
EMPNAME TYPE ZTEMP-EMPNAME,
END OF ITAB.
START-OF-SELECTION.
SELECT EMPID EMPNAME FROM ZTEMP INTO TABLE ITAB.
SORT ITAB BY EMPID.
LOOP AT ITAB.
WRITE: / ITAB-EMPID HOTSPOT.
HIDE ITAB-EMPID.
ENDLOOP.
END-OF-SELECTION.
AT LINE-SELECTION.
CASE SY-LSIND.
WHEN 1.
WRITE: ITAB-EMPNAME.
ENDCASE. -
Hi,
I want to modify the record of PA0009 .I want to change the enddate of personnel No.
UPDATE PA0009 SET ENDDA = '30.10.2009'
WHERE PERNR = '1'
AND BEGDA = '01.09.2008'.
The above statement is not working. How to modify the enddate which is part of key table.
Please guide.
Thanks and Regards
K SrinivasHello,
Set the data format to the internal date format (YYYYMMDD), so in the set and the where clause pass '20091030' as ENDA which is to be changed and BEGDA in the where clause as 20080901. Also if the after the changes if the key combination results in dupicate records then the update will faiil. Just make sure that the combination of PERNR,SUBTY,OBJPS,SPRPS,ENDDA, BEGDA and SEQNR remains unique, if a record exists with this combination then sy-subrc will be 4 and the record will not be updated.
Regards,
Sachin -
Hi,
My collect statement is not working. Kindly let me know what is the other way to add one filed in the loop.
thanks
Moderator message - Please ask a specific question - post locked
Edited by: Rob Burbank on Nov 19, 2009 9:24 AMSame thing i faced few days ago --. i have resolved this using following logic ... try this it will workout
CLEAR: wa_mkpf_mseg, w_werks, w_matnr, w_lgort, w_bwart.
LOOP AT t_mkpf_mseg INTO wa_mkpf_mseg.
IF wa_mkpf_mseg-werks EQ w_werks AND wa_mkpf_mseg-matnr EQ w_matnr AND wa_mkpf_mseg-lgort EQ w_lgort AND wa_mkpf_mseg-bwart EQ w_bwart.
CLEAR: wa_p_coi.
READ TABLE t_p_coi INTO wa_p_coi WITH KEY werks = wa_mkpf_mseg-werks matnr = wa_mkpf_mseg-matnr lgort = wa_mkpf_mseg-lgort bwart = wa_mkpf_mseg-bwart.
IF sy-subrc = 0.
wa_p_coi-Avg Days = wa_p_coi-Avg Days + wa_mkpf_mseg-Avg Days.
MODIFY t_p_coi FROM wa_p_coi TRANSPORTING Avg Days .
CLEAR: wa_p_coi, wa_p_coi.
endif.
ELSE.
wa_p_coi-werks = wa_mkpf_mseg-werks.
wa_p_coi-matnr = wa_mkpf_mseg-matnr.
wa_p_coi-bwart = wa_mkpf_mseg-bwart.
wa_p_coi-lgort = wa_mkpf_mseg-lgort.
wa_p_coi-Avg Days = wa_mkpf_mseg-Avg Days .
APPEND wa_p_coi TO t_p_coi.
CLEAR: wa_p_coi.
ENDIF.
w_werks = wa_mkpf_mseg-werks.
w_matnr = wa_mkpf_mseg-matnr.
w_lgort = wa_mkpf_mseg-lgort.
w_bwart = wa_mkpf_mseg-bwart.
CLEAR: wa_mkpf_mseg.
ENDLOOP. -
MDX simple case statement not working?
hi all - any idea what is wrong with this MDX statement? it is returning blank. I am trying to add a calculated measure using the below code but it is not working. thanks for the help.
CASE WHEN [Accounts].[Account Name].CURRENTMEMBER = "Cash" THEN
([Dates].[Hierarchy].currentMember.lastChild, [Measures].[Measures].[Amount]) ENDIf you are checking for the 'Cash' member of the Account Name hierarchy, do you need to do something like this?
CASE WHEN [Accounts].[Account Name].CURRENTMEMBER IS [Accounts].[Account Name].[Cash] THEN([Dates].[Hierarchy].currentMember.lastChild, [Measures].[Measures].[Amount]) END
Regards,
MrHH -
SQL Statement not works using functions or subqueries-MAXDB
Hello All,
I created an ABAP program to select information about country(table: T005) with the country names (Table: T005T). I tried to create a sql query with a sql subquery to select everything but for some reason that I don't know it doesn't work. Please find the query below.
DATA:
resu TYPE REF TO cl_sql_result_set ,
stmt TYPE REF TO cl_sql_statement ,
qury TYPE string .
qury = `SELECT land1, spras, `
&& `(SELECT landx `
&& `FROM SAPNSP.T005T `
&& `WHERE mandt = '` && sy-mandt && `' `
&& `AND spras = 'EN' `
&& `AND land1 = ? ), `
&& `(SELECT natio `
&& `FROM SAPNSP.T005T `
&& `WHERE mandt = '` && sy-mandt && `' `
&& `AND spras = 'EN' `
&& `AND land1 = ? ) `
&& `FROM SAPNSP.T005 `
&& `WHERE mandt = '` && sy-mandt && `' `
&& `AND land1 = ? `
&& `GROUP BY land1, spras` .
resu = stmt->execute_query( qury ) .
Well, the query above works but the fields LANDX and NATIO are in blank in ALL THE CASES, even with information registred in table T005T.
So, exploring the SDN forum and after read some documents regarding ADBC, I create a function to handle this sql select and get the correctly the missing informations, but, still don't work. Please find the function below:
CREATE FUNCTION select_landx (land1 CHAR(3)) RETURNS CHAR(15)
AS
VAR landx CHAR(15);
DECLARE functionresult CURSOR FOR
SELECT spras, land1, landx
FROM SAPNSP.t005t
WHERE spras = 'EN'
AND land1 = :land1;
IF $count IS NULL THEN <- | $count is always 0, my SELECT
BEGIN it's not work but I don't know why
CLOSE functionresult;
RETURN NULL;
END
ELSE
SET $rc = 0;
WHILE $rc = 0 DO
BEGIN
FETCH functionresult INTO :landx;
END;
CLOSE functionresult;
RETURN landx;
Calling the function in a SQL statement:
DATA:
resu TYPE REF TO cl_sql_result_set ,
stmt TYPE REF TO cl_sql_statement ,
qury TYPE string .
qury = `SELECT land1, spras, select_landx(?) landx `
&& `FROM SAPNSP.T005 `
&& `WHERE mandt = '` && sy-mandt && `' `
&& `AND land1 = ? `
&& `GROUP BY land1, spras` .
resu = stmt->execute_query( qury ) .
Any comments ?
Best regards,
Arthur SilvaHello,
Thank's a lot, it works. It's funny because the given solution works using only abap codes.
It may be happens because the abap interpretor send the sql statement to the db interface that handle the code in the another way.
Thanks again, it was driving me crazy.
Best regards,
Arthur Silva -
Merge statement not working over db link
I have a merge statement that works fine when it's run against a local table, but when I try to run it against a table over a database link, I get the following error.
ERROR at line 1:
ORA-01008: not all variables bound
ORA-02063: preceding line from REPOS
ORA-06512: at "DBADMIN.PING_DB", line 6
ORA-06512: at line 1
Here is the code:
create or replace procedure ping_db
as
begin
merge into availability@repos A
using (select trunc(sysdate) from dual)
on (trunc(A.day) = trunc(sysdate))
when matched then update set A.uptime = A.uptime + 1
when not matched then insert (hostname,dbname,day,uptime) values
(utl_inaddr.get_host_name,sys.database_name,trunc(sysdate),1);
commit;
end;
/Code compiles fine, but gets the error when it's executed. Any help would be appreciated.9.2.0.x is the version (9.2.0.4,.5 and .6)
-
Balance Sheet Statements not working
Hello,
I have deployed the standard scenario for the Balance Sheet statement, but unfortunately when I execute the query, the balance dependencies in the FS hierarchy are not working. They don't appear in the hierarchy nodes. I have a difference in my balance sheet due to these missing financial statements.
I have activated 0figl_vc1, 0figl_c01 and the flow before the cubes.
Any idea about what is happening?
Best regards
SérgioHello Sérgio,
In that program are you using in the "Financial statement version" parameter the same one that you're using in BW?
Be sure of that.
Also compare with others "Financial statement version" (but always comparing the same between systems) to see if the result is ok.
You should be comparing the totals and not the subtree. If the totals are ok, the hierarchy is constructed different between systems. Compare the hierarchy.
Also for the most detailed difference you'll find compare with the data in cube 0FIGL_C01 and not the 0FIGL_VC1 to see if there the data is ok.
Diogo. -
I am using Adobe Muse CC (up-to-date) and tried to troubleshoot the following: Menu button's active state is not working, both on preview and after publishing. I tried many ways to place menu-designed buttons myself using photoshop and used widgets library (buttons, compositions, menus,etc.). Lastly, in regards to buttons, one of my menu buttons appear clear and crisp (psd button) and all others are blurry (though designed,saved and imported the same way);what could be the problem? Can anyone help?Thanks.
That line is for pop up message?You would typically use a tool tip for that.
The "Accessibility" features are different and I believe you need additional software to take advantage of them:
http://java.sun.com/j2se/1.5.0/docs/guide/access/index.html -
Object state not working on android
Hope someone can help.
We use a + sign to indicate there is more information, using object states to move between these 2 elements, however whilst these work fine on iOS devices, when the same files are built for Android these states do not work.
Press one of the + signs and it just vanishes, without going to the new content.
Any clues, please.Are you using the legacy AIR viewer or the native Android viewer? Try the new native Android viewer instead. https://helpx.adobe.com/digital-publishing-suite/help/building-android-apps.html
Neil
Maybe you are looking for
-
How do I transfer my playlist from an old computer to a new computer?
I just got a new computer and I'm moving my files over. I saved the entire iTunes folder from my last computer, but I can't figure out how to get my new computer's itunes to load my old playlists. Thank you!
-
'Unable to convert pdf; invalid page range or conversion setting parameters'
Hello, I keep getting this error anytime I try to convert any type of ms 2003 file to pdf. I've tried to reinstall my acrobat 8 professional twice and even ran a repair with no fix. It almost just freezes. I can say this: this error started when
-
Best way to manage images on jsp web application
Hi, Am developing a jsp web application, in that project, the user will upload the image files, now I created an image directory in the context root and when the image is uploaded by the user it is saved in the /images directory and the image path is
-
My imac is running very slowly, what can i do?
my imac is running very slowly, what can i do?
-
Hello, I have a unique situation here. I have a byte array of a pdf document. I want to display it in a frame on a JSP. Is there any way to do this? Any suggestions?