Can you help me with the WHERE clause? Any issue with this code block?
Hi,
I am looking for blogs or any document on how to implement a Lookup during data loads in BW.
The problem is that all those that I find on this site are mostly about u201CLookup in XIu201D
I have read bits and hints on different postings on this site and this is the best I could do for the scenario shown below:
I need to add the Chars: Char1, Char2, Char3 to CubeX
so that I can display the data for these 3 Chars in a report.
Char1 and Char2 are filled in ODS12 and Char3 is filled in Cube3.
Can you help me write a routine so that while loading data to CubeX, it will read Char1, Char2, Char3 from ODS12 and Cube3; and make them available in CubeX?
This is my attempt so far: continue:
u201C----
select /bic/Char1 from /bic/ODS12
select /bic/Char2 from /bic/ODS12
select /bic/Char3 from /bic/Cube3
into result
WHERE u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
and objvers = 'A' .
end select.
u201C----
1. What should be my WHERE clause?
2. In the select statement, by studying samples on this where should there be an u201CMu201D in front of the ODS? e.g. select /bic/Char1 from /bic/MODS12
If so, what is the significance and the other options?
3. Should this code be in the Start routing of CubeX? Or any other possible location? Also, in the start routine does it matter where within the start routine this code needs to be placed?
4. Can you please fix this code and add any lines I may be missing?
Is what I am looking to do refer to as u201Cdoing a lookupu201D?
Thanks
ok
Similar Messages
-
Can you help me interpret the following lines in UPDATE rule?
Hi,
Can you help me interpret the following lines in UPDATE rule?
1. What is the role of role of u201CCHANGING RESULT.u201D and u201CCHANGING lc_local_value.u201D?
2. What is the role of the CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY', in particular the Exporting and Importing parts?
3. Can I say that u201CCOMM_STRUCTURE-ORDER_VALu201D in the subroutine is passed to u201Clc_document_valueu201D in the u201CFORM loc_curr_convertu201D; and further passed to u201Cforeign_amountu201D in the u201CCALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'u201D?
4. Finally, what becomes of my original u201CActual Goods receipt quantityu201D( 0GR_QTY ) which I am writing the routine for? I donu2019t see any where in the code that it is being referred to? Do any of these codes affect the value of 0GR_QTY?
5. Also, if there are 3 different subroutines in the INCLUDE and I am making the change described in #4 above, how do I know which of the 3 subroutines to call?
===============================
===============================
So I am reviewing a transfer routine in for u201CActual Goods receipt quantityu201D and routine an INCLUDE statement: INCLUDE RS_BCT_MM_UPDATE_RULES.
The update rule also includes the following properties to run the following subroutine in the Include:
IF u2026..
perFORM LOC_CURR_CONVERT
USING COMM_STRUCTURE-ORDER_VAL
COMM_STRUCTURE-DOC_DATE
COMM_STRUCTURE-ORDER_CURR
COMM_STRUCTURE-LOC_CURRCY
COMM_STRUCTURE-EXCHG_RATE
CHANGING RESULT.
I verified in the INCLUDE (RS_BCT_MM_UPDATE_RULES) and the subroutine is as follows:
FORM loc_curr_convert
USING lc_document_value
lc_date
lc_document_currency
value(lc_local_currency)
lc_rate
CHANGING lc_local_value.
conversion of lc_rate from floating-point to decimal. Necessary for *
call of CONVERT_TO_LOCAL_CURRENCY.
data lc_rate_dec type p decimals 5.
lc_rate_dec = lc_rate.
IF lc_document_currency = lc_local_currency
no conversion necessary -> Main case 1
AND NOT ( lc_document_currency IS INITIAL
OR lc_local_currency IS INITIAL ) .
lc_local_value = lc_document_value.
ELSEIF NOT ( lc_document_currency IS INITIAL
OR lc_local_currency IS INITIAL OR lc_date IS INITIAL ) .
conversion necessary with lc_date -> Normally not possible
CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
EXPORTING
date = lc_date
foreign_amount = lc_document_value
foreign_currency = lc_document_currency
local_currency = lc_local_currency
rate = lc_rate_dec
IMPORTING
EXCHANGE_RATE =
local_amount = lc_local_value
EXCEPTIONS
NO_RATE_FOUND = 1
OVERFLOW = 2
NO_FACTORS_FOUND = 3
NO_SPREAD_FOUND = 4
DERIVED_2_TIMES = 5.
IF sy-subrc NE 0.
message a802 with lc_date lc_document_currency lc_local_currency
sy-subrc.
ENDIF.
ELSE.
if conversion not possible -> assign target values
lc_local_value = lc_document_value.
lc_local_currency = lc_document_currency.
ENDIF.
ENDFORM.HI,
Thanks so much the explanations.
I just verified again on our dev system and the update rule for 0GR_QTY (Actual goods receipt quantity) include the following:
perFORM QUANTITY_CONVERT
USING COMM_STRUCTURE-CPQUAOU
COMM_STRUCTURE-po_UNIT
COMM_STRUCTURE-base_uom
COMM_STRUCTURE-numerator
COMM_STRUCTURE-denomintr
CHANGING RESULT
Now, in the include, I also found:
FORM QUANTITY_CONVERT
USING QC_SOURCE_VALUE
QC_SOURCE_UNIT
VALUE(QC_TARGET_UNIT)
QC_UMREZ
QC_UMREN
CHANGING QC_TARGET_VALUE.
i. Does it mean it actually does quantity conversion?
ii. If you have access to the INCLUDE I will appreciate some hints on what the subroutine QUANTITY_CONVERT is doing. It does not appear do to be saying anything about quantity conversion; but it is supposed to be doing something with the parameters being passed from the update routine.
iii. In your response to #5, after all the computation in the INCLUDE, what comes back to the Update rule i.e. what comes back to become the value of 0GR_QTY?
Is it the u201CRESULT.u201D in the update rule or u201CQC_TARGET_VALUE.u201D in the subroutine in the INCLUDE.
iv. So, am to create an Update rule for 0PSTNG_DATE and the source is BUDAT; and I need to write a routine using the include INCLUDE RS_BCT_MM_UPDATE_RULES.
I looked through the INCLUDE and identified all the subroutines in this INCLUDE as follows:
QUANTITY_CONVERT
LOC_CURR_CONVERT
GET_WEEK
WEEK_DAY
QUARTER_DAY
--Does it mean that to use this subroutine, I can only use the USING parameters of one of these listed subroutines?
--Also, does it mean that because 0PSTNG_DATE is a date, I can only use one of
GET_WEEK
WEEK_DAY
QUARTER_DAY
--Or, are there other includes to be used for 0PSTNG_DATE
Thanks -
Can you help me understand the use of the word POSITION in TR and CFM?
Hi,
I am trying to have a view of typical BI reports in TR and TM/CFM so through my research I came to the following link:.
http://help.sap.com/saphelp_nw2004s/helpdata/en/62/08193c38f98e1ce10000000a11405a/frameset.htm
My problem on this link and other postings on this site seem to be the same. Can you help me understand the use of the word POSITIONS in these context:
1. Our client has asked for financial transaction reports in BW, such as position of Borrowings, Investments and Hedge Operations (TM data).
2. I have a requirement on, some reports related to Money Market (Fixed Term Deposits, Deposits at Notice) something on FSCM-Treasury and Risk Manager. These reports will be similar to that of Loans, i.e. Position statement, flow statement, etc.
3. The set of position values for a single position or a limited amount of positions can be reported by transactions TPM12 and TPM13 in R3.
4. 0CFM_C10 (Financial Positions Cube)
Do you have some simple report outputs to help clarify how the word POSITION is used in such environments?
Thanks
Edited by: AmandaBaah on Feb 15, 2010 4:39 PMIf I future buy 10 shares in company at £1 per share - at the end of the day my potential value is £10
The next day the shares drop tp £0.9 per share - I have a negative position - my shares are only worth £9
I haven;t bought them yet - but I have a negative position - ie if things stayed as they are - I am going to realise (ie end up with) a loss
Now you can use this for loans and foreign exchange banks as well... -
Can I use SYSDATE in the WHERE clause to limit the date range of a query
Hi,
Basicaly the subject title(Can I use SYSDATE in the WHERE clause to limit the date range of a query) is my question.
Is this possible and if it is how can I use it. Do I need to join the table to DUAL?
Thanks in advance.
SteliosAs previous poster said, no data is null value, no value. If you want something, you have nvl function to replace null value by an other more significative value in your query.<br>
<br>
Nicolas. -
Hi Team,
The customer with whom I m working is interested to share his story on SAP HANA and wanted to know if there is any forum to share the same?
Can you help me with the same?
Regards,
Krishna TanguduHi Team,
The customer with whom I m working is interested to share his story on SAP HANA and wanted to know if there is any forum to share the same?
Can you help me with the same?
Regards,
Krishna Tangudu -
Hi! I've a problem with my new program Itunes for Windows 7. I've Download the app ISuoneria and i followed the procedure to make my ringtone. But when i wont import the new file on my iphone, there isn't the option Ringtones. I've just download a new version of the Itunes, but don't change. Can you help me?
Thanx so much!!It's now called Tones. Go to iTunes menu EDIT/PRFERENCES under GENERAL tab, check the Tones Box under Library source to display Tones library in iTunes.
-
I would like to get the 3.6 version and uninstall the 4.0 version computer running slow
Here's the process to roll back:
First, I recommend backing up your Firefox settings in case something goes wrong. See [https://support.mozilla.com/en-US/kb/Backing+up+your+information Backing up your information]. (You can copy your entire Firefox profile folder somewhere outside of the Mozilla folder.)
Next, download and save Firefox 3.6 to your desktop for future installation. http://www.mozilla.com/firefox/all-older
Close Firefox 4.
You could install Firefox 3.6 over it (many have reported success) or you could uninstall Firefox first. If you uninstall, do not remove your personal data and settings, just the program.
Unless you have installed an incompatible add-on, Firefox 3.6 should pick up where you left off. If there are serious issues, please post back with details.
Note: I haven't actually tried this myself! -
hello anyone
i install oracle7.3.4 server
in Sun Sparcstation20 Solaris2.6 Japanese
everything is ok,
and i want to install ORACLE
WEB appliation server 3.0too
the installer is ok too,
i startup the serivce
>owsctl start wrb
>owsctl start admin
but when i open the netscape and
CRAETE and START a new LISTENER
there is something wrong.
**************************error message*******
OWS-05721: The Web Listener www failed to start:
Oracle Web Listener 3.0.1 Production (Export), Version 2.14FC1
Copyright 1997 Oracle Corp. All Rights Reserved.
Error: A failure occurred ( Permission denied ) when assigning a port ( domain: INTERNET01, address: 0.0.0.0, port: 80 ).
Error: Failed to start the server.
Error: The server could not initialize
Information: The server is exiting
OWS-08811: Unable to startup Oracle Web Listener `www'.
Oracle Web Listener Home Page
From here, you can do the following:
Create a new Oracle Web Listener to run on your machine by clicking the Create Listener... button.
Modify existing Oracle Web Listeners by selecting the Configure link below.
Start, Stop or Delete existing Oracle Web Listeners by selecting the appropriate link below.
can anyone help me , it is too difficult for me.
the startup file of Solaris is here
# @(#)cshrc 1.11 89/11/29 SMI
umask 022
set path=(/bin /usr/bin /usr/ucb /etc .)
if ( $?prompt ) then
set history=32
endif
setenv ORACLE_BASE /oracle/app/oracle
setenv ORACLE_HOME /oracle/app/oracle/product/7.3.4
setenv ORACLE_SID hlp3
setenv ORAWEB_HOME $ORACLE_HOME/ows/3.0
setenv ORAWEB_SITE www
setenv ORAWEB_BASE $ORACLE_HOME/ows
setenv ORAWEB_ADMIN $ORACLE_BASE/admin
setenv ORAWEB_CARTX $ORACLE_HOME/ows/cartx
setenv DEF_INSTALL TRUE
setenv ORA_CSM_MODE line
setenv LD_LIBRARY_PATH $ORACLE_HOME/lib:/usr/openwin/lib:/usr/dt/lib:
setenv ORACLE_TERM xsun5
setenv TMPDIR /var/tmp
setenv PATH .:$ORACLE_HOME/bin:$ORACLE_HOME/obackup/bin:/opt/bin:/usr/local/bin:/bin:/usr/bin:/usr/css/bin:/usr/openwin/bin:/usr/sbin:/usr/ucb:$ORAWEB_HOME/bin
setenv ORA_NLS32 $ORACLE_HOME/ocommon/nls/admin/data
setenv DEF_INSTALL TRUE
setenv MANPATH /opt/SUNWspro/man:/opt/SUNWste/licence_tools/man
# setenv LANG
# setenv TWO_TASK
set ORAENV_ASK = NO
source /opt/bin/coraenv
unset ORAENV_ASK
source /oracle/app/oracle/product/7.3.4/ows/3.0/install/owsenv_csh.sh
# @(#)local.login 1.3 93/09/15 SMI
stty -istrip
# setenv TERM `tset -Q -`
# if possible, start the windows system. Give user a chance to bail out
if ( `tty` == "/dev/console" ) then
if ( $TERM == "sun" | | $TERM == "AT386" ) then
if ( ${?OPENWINHOME} == 0 ) then
setenv OPENWINHOME /usr/openwin
endif
echo ""
echo -n "Starting OpenWindows in 5 seconds (type Control-C to interrupt)"
sleep 5
echo ""
$OPENWINHOME/bin/openwin
clear # get rid of annoying cursor rectangle
logout # logout after leaving windows system
endif
endif
setenv ORACLE_HOME /oracle/app/oracle/product/7.3.4
setenv PATH /bin:/usr/bin:/etc:/usr/etc:/usr/openwin/bin:/usr/ucb:/oracle/app/oracle/product/734/bin:$ORAWEB_HOME/bin
setenv NLS_LANG japanese_japan.ja16euc
setenv LANG japanese
setenv ORACLE_TERM xsun5
setenv ORAWEB_HOME $ORACLE_HOME/ows/3.0
setenv ORAWEB_SITE www
setenv TNS_ADMIN /oracle/app/oracle/product/7.3.4/network/admin
can anyone help me and tell me how to solve it or any aother way book doc to do it,
thank you
i am very nervious
my email address:
[email protected]
[email protected]see http://www.oracle.com/support/products/oas/sparc30/html/ows08811.html
-
Can You Help Me Install The OS 10.5.6 Update?
I receive the following error message when I attempt to install the OS 10.5.6 update: "The installer could not install some files in "/". Contact the software manufacturer for assistance." I have tried each of the following, without success:
* Using software update
* Downloading the update as a separate intaller file
* Repair permissions
* Rebuild directory (Disk Warrior)
* Use new admin account to download and install
* Download the update again
I have been running OS 10.5.5 without problem. Any ideas?You are aware that permissions repairs & disk repairs are not the same thing, right? The "Repair Disk" step in Disk Utility attempts to repair file system problems, not the permissions of files in the file system. Disk Warrior is also a disk (file system) repair utility, one that uses a different & more powerful method (rebuilding the file system directory from scratch) than Disk Utility does to fix the file system.
If neither utility can repair your file system, you must (as the instructions in the first few lines of Disk Utility's First Aid tab tell you) back up & erase the disk volume. This will recreate a fresh file system that should be free of problems & allow you to install the OS, restore your user files from backups, & apply any updates to create a trouble free system.
If this fails, the most likely cause is even more severe problems with your hard drive than erasing a volume can solve. The next step would be to reformat it, & if that fails to replace the drive.
Before you consider anything as drastic as erasing anything, make sure your problem is not just with permissions but with the disk -- IOW, with the file system. -
Can you please confirm that the MirrorLink app will work with the Z3 and my XAV-701BT ?
I have a Sony XAV701BT Head Unit and its currently compatible with the Z2's Mirror Link
I can not find any information regarding compatibility for the Z31
Close all iWork applications
2
Uninstall Keynote; this must be done with an application remover tool to delete the installation properly. Appcleaner is known to work correctly for this purpose, it is free and can be downloaded from here: Appcleaner Download
3
empty the trash
4
shutdown the Mac and restart. After the start up chime, hold down the shift key until the apple logo appears
let the Mac complete the start up procedure completely, it will take longer than usual as the hard drive is being repaired
5
Reinstall Keynote by logging into the Mac App Store using download / install -
My iphone seems to not want to turn on the screen stays black no matter what you do pressing the home and power button....and at times while it is on it locks up and cannot navigate and call out like the touch screen is in active you have to shut the phone down to get it to work as intended.
Hello djgslimm
Start with the article below to troubleshoot your iPhone for not responding.
iOS: Not responding or does not turn on
http://support.apple.com/kb/TS3281
Regards,
-Norm G. -
Can you use boolean function in where clause
Hi,
I have a boolean function. Is it possible to use it in where clause of query.
Eg;
is_prime(13) returns boolean
select 1 from dual where is_prime(13)What about something like this
Create or replace function boolret(id number) return boolean as
begin
If id <10 then
return true;
elsif id>10 and id<100 then
return false;
else
return null;
end if;
end;
1 declare
2 id_cat boolean;
3 begin
4 id_cat:= boolret(8);
5 dbms_output.put_line(id_cat);
6* end;
SQL> /
dbms_output.put_line(id_cat);
ERROR at line 5:
ORA-06550: line 5, column 2:
PLS-00306: wrong number or types of arguments in call to 'PUT_LINE'
ORA-06550: line 5, column 2:
PL/SQL: Statement ignored
It seems PL/Sql doesn't have any datatype like Boolean,But it handles Boolean like datatype.
Regards
Raj deep.A -
Dear Sir !
I have an account at TAGGED.com program since more than 2 years, I accustomed to log in from bookmarks.
The problem that now i did not found the TAGGED program in my bookmarks n I need to log in by e-mail n password..I forgot the e-mail I had registered 2 years before at Tagged, So I can not log in.
How Can I find my account again at the bookmark or history??
My Name on my profile page at Tagged is Dr.semsem666G
Many thanks in advanceThank you for replying. Yes I deleted the old email address..
-
How can I do?
Change/Verify Account https://forums.adobe.com/thread/1465499 may help
-Credit card https://helpx.adobe.com/x-productkb/policy-pricing/membership-subscription-troubleshooting -creative-cloud.html
-or by telephone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html -
OpSys = Windows XP
Browser full details = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.9) Gecko/20100824 Firefox/3.6.9That is the location for Internet Explorer favorites, you will need to import them into Firefox. For details on doing that see [[importing bookmarks and other data from Internet Explorer]].
Maybe you are looking for
-
hi got the following error when running a uccheck with static parts enabled: FORM DYNPRO_FUELLEN USING DBEGIN VALUE(FNAME) TYPE C VALUE(FWERT) TYPE C. DYNPROS-DYNBEGIN = DBEGIN.
-
I want to put SUN or JAVA wallpaper on my desktop, but can't find :(
-
Solaris 10 upgrade and zfs pool import
Hello folks, I am currently running "Solaris 10 5/08 s10x_u5wos_10 X86" on a Sun Thumper box where two drives are mirrored UFS boot volume and the rest is used in ZFS pools. I would like to upgrade my system to "10/08 s10x_u6wos_07b X86" to be able t
-
Hi All I need your advice immediately. We want to add two prompts in dashboard and both the prompts is of the same column. ie : Freeze Period , i am not able to add this prompt for the 2nd time , is there a way i can add it for the 2nd time? Please s
-
Creating even columns and rows in flash
I need to create a grid in flash using the drawing tools. The grid has multiple (10+) columns and rows. Other than using the ruler and guides is there a way to ensure even spacing with columns and rows?