How to extract the Fast Formula Body through database?
Hi All
The Oracle fast formulas are stored in the ff_formulas_f table under the column formula_text having the datatype long. I want to extract the formula text through back end. When I use the statement, Select formula_text from ff_formulas_f, I am getting only the first line.
How to extract the full formula text?
Regards
Rahman
Here's a unix shell script to do it for you based on the info given by the other posters.
#!/bin/sh
if \[ "$1" == "" \]; then
echo Syntax: $0 FAST_FORMULA_NAME
exit 1
fi
ffname=`echo $1|tr \[:lower:\] \[:upper:\]`; export ffname
sqlplus -silent $ORAUSER/$ORAPASSWD <<END
set define off serveroutput on format wrapped linesize 512 pagesize 0 feedback off verify off heading off echo off pause off long 100000
column formula_text format a512;
select formula_text from ff_formulas_f where formula_name = '$ffname';
exit;
END
Also this will list the formula names given a substring:
#!/bin/sh
if \[ "$1" == "" \]; then
echo Syntax: $0 FAST_FORMULA_NAME
exit 1
fi
ffname=`echo $1|tr \[:lower:\] \[:upper:\]`; export ffname
sqlplus -silent $ORAUSER/$ORAPASSWD <<END
set define off serveroutput on format wrapped linesize 512 pagesize 0 feedback off verify off heading off echo off pause off long 5000
select formula_name from ff_formulas_f where formula_name like '%$ffname%';
exit;
END
Similar Messages
-
How to extract the historical data from R/3
hi
I am extracting data from R/3 through LO Extraction. client asked me to enhance the data source by adding field. i have enhanced the field and wrote exit to populate the data for that field.
how to extract the historical data into BI for the enhanced field. already delta load is running in BI.
regardsHi Satish,
As per SAP Standard also the best way is to delete whole data from the cube and then load the data from set up tables as you have enhanced the data source.
After data source enhancement it is supported to load normally because you don't get any historical data for that field.
Best way is to take down time from the users, normally we do in weekends/non-business hours.
Then fill the set-up tables; if the data is of huge volume you can adopt parallel mechanism like:
1. Load set-up tables by yearly basis as a background job.
2. Load set-up tables by yearly basis with posting periods from jan 1st to 31st dec of any year basis as a background job.
This can make your self easier and faster for load of set-up tables. After filling up set-up tables. You can unlock all users as there is no worries of postings.
Then after you can load all the data into BI first into PSA and then into Cube.
Regards,
Ravi Kanth. -
How to extract the details of the stored procedures in the database?
Dear all,
How to extract the details of them?
Bst Rgds,
EdwardHi Wa-Man Edward Chan,
Following is the PLSQL Block Which Will Give Package, Procedure, Function Source
set verify off
undefine which_object;
undefine which_line;
declare
Shows lines with context of:
VIEW
FUNCTION
PROCEDURE
TRIGGER
PACKAGE SPECIFICATION
PACKAGE BODY
The script uses to temporary tables ERROR_TABLE_TEMP and ERROR_CLOB_TEMP created with:
CREATE GLOBAL TEMPORARY TABLE ERROR_TABLE_TEMP(line number, text varchar2(4000));
CREATE GLOBAL TEMPORARY TABLE ERROR_CLOB_TEMP(TEXT CLOB);
v_offset number:= 5; -- Controls how many lines before and after the line in focus are to be shown
v_obj_name varchar2(100);
v_obj_type varchar2(100);
v_obj_type_new varchar2(100);
v_obj_line number;
v_counter number := 0;
v_text varchar2(32767);
v_subtext varchar2(1000);
v_from number;
v_len number;
v_marker varchar2(10);
v_found number;
v_line_from number;
v_line_to number;
v_long_text clob;
procedure ins_line (p_text in varchar2) is
begin
v_counter := v_counter + 1;
insert into error_table_temp(line,text)
values (v_counter,p_text);
end;
begin
delete error_table_temp;
select ltrim(rtrim(upper('&which_object'))), nvl(to_number('&which_line'),0)
into v_obj_name, v_obj_line
from dual;
begin
select decode(object_type,'PACKAGE','PACKAGE BODY',object_type)
into v_obj_type
from user_objects
where object_name = v_obj_name
and nvl(v_obj_line,0) > 0
and rownum = 1;
exception when no_data_found then
ins_line('ERROR: Object/line not found');
return;
end;
ins_line(v_obj_name||' ('||v_obj_type||')');
if v_obj_type in ('PACKAGE BODY','PACKAGE','FUNCTION','PROCEDURE') then
v_obj_type_new := v_obj_type;
ins_line('----------------------- PROGRAM LISTING -------------------------');
for code in (select trim(text) text, lpad(line,4,' ')||' '||decode(line,v_obj_line,'>>>>> ',' ') marker, type
from user_source
where name = v_obj_name
and line between v_obj_line-v_offset and v_obj_line+v_offset
order by decode(type,v_obj_type,1,2),line) loop
if v_obj_type_new != code.type then
ins_line(null);
v_obj_type_new := code.type;
v_counter := -100000; -- In order to show specification before body
ins_line(v_obj_name||' ('||v_obj_type_new||')');
ins_line('----------------------- PROGRAM LISTING -------------------------');
end if;
ins_line(code.marker||code.text);
end loop;
elsif v_obj_type = 'VIEW' then
select text
into v_text
from user_views
where view_name = v_obj_name;
v_line_from := v_obj_line-v_offset;
v_line_to := v_obj_line+v_offset;
v_obj_line := v_obj_line -1;
ins_line('------------------------------- PROGRAM LISTING -------------------------------');
for i in v_line_from..v_line_to loop
begin
if i = v_obj_line then
v_marker := '>>>>> ';
else
v_marker := ' ';
end if;
if i = 0 then
v_from := 0;
v_len := instr(v_text,chr(10));
else
v_from := instr(v_text,chr(10),1,i);
v_len := instr(v_text,chr(10),1,i+1) - v_from;
end if;
v_subtext := substr(v_text,v_from+1,v_len-1);
if v_len > 0 then
ins_line(lpad(to_char(i+1),4,' ')||' '||v_marker||v_subtext);
end if;
exception when others then
null;
end;
end loop;
elsif v_obj_type = 'TRIGGER' then
ins_line('----------------------- PROGRAM LISTING -------------------------');
delete error_clob_temp;
execute immediate 'insert into error_clob_temp (text) '||
'select to_lob(trigger_body) '||
'from user_triggers ' ||
'where trigger_name = '''||v_obj_name||'''';
select text
into v_long_text
from error_clob_temp;
v_obj_line := v_obj_line-1;
v_line_from := v_obj_line-v_offset;
v_line_to := v_obj_line+v_offset;
for i in v_line_from..v_line_to loop
begin
if i = v_obj_line then
v_marker := '>>>>> ';
else
v_marker := ' ';
end if;
if i = 0 then
v_from := 0;
v_len := dbms_lob.instr(v_long_text,chr(10));
else
v_from := dbms_lob.instr(v_long_text,chr(10),1,i);
v_len := dbms_lob.instr(v_long_text,chr(10),1,i+1) - v_from;
end if;
v_subtext := dbms_lob.substr(v_long_text,v_len-1,v_from+1);
if v_len > 0 then
ins_line(lpad(to_char(i+1),4,' ')||' '||v_marker||v_subtext);
end if;
exception when others then
null;
end;
end loop;
end if;
if v_counter = 0 then
ins_line('*********** NO CODE FOUND ***********');
else
ins_line(null);
end if;
exception when others then
ins_line('*********** ERROR: NOT POSSIBLE TO SHOW THE CODE ***********');
ins_line(' FEJL: '||sqlerrm);
end;
set linesize 4000
set heading off
set feedback off
set verify on
select text
from error_table_temp
order by line;
set linesize 80
set heading on
set feedback on
Prashant -
How to Extract the Freq List, Cycles per Freq and Samples per Cycles of sweep waveform
How to Extract the Freq List, Cycles per Freq and Samples per Cycles of sweep waveform
I want to extract the freqency distribution, cycles per freqency, and samples per cylce of swept waveform, in order to output the same of swept waveform with I have acquired by NI DAQ card, tks!
owen wan
Attachments:
Untitled 1.vi 2333 KBLook inside the palette called Signal Processing - Waveform measurements. There are a lot of functions here that you can use to get the information you desire. For instance, the Extract Tones function will output an array of clusters, with each cluster element giving the frequency, amplitude, and phase of the signal component. Go through the entire arry to see each frequency component of the complex waveform.
Also, in the Waveforms palette there is the Get Waveform Components function that will give you t0, dt, and Y components of the waveform. 1/dt should give you the sample rate. See attached VI.
- tbob
Inventor of the WORM Global
Attachments:
WfmInfo.vi 4658 KB -
How to extract the column width in ALv report if its executed in background
I am executing an ALV report in background , in front end i am getting data properly, in back end for some columns some of the digits are missing.For example if PO no is of 10 digits it will display only 8 becos column size is like that , how to extract coulmns in back ground.
I have executed in background and checked the spool and for some of the columns width is not sufficient to display comeplete data so please suggest how to extract the columns sizes if executed inj background for an ALVHi Deepthi,
you can try with the above mentioned suggestions ,if its worked its fine ,
If not use Docking container instead of custom container, For ALV in back ground jobs, its suggest to use docking container instead of custom container , below you can find the declaration for docking container and code to use docking and custom container in your program for fore and back ground.
or you can use docking container alone for both operations.
Data : G_DOCK1 TYPE REF TO CL_GUI_DOCKING_CONTAINER,
IF CCON IS INITIAL. (ccon is container name )
*Check whether the program is run in batch or foreground
IF CL_GUI_ALV_GRID=>OFFLINE( ) IS INITIAL.
*Run in foreground
CREATE OBJECT CCON
EXPORTING
CONTAINER_NAME = 'CON1'.
CREATE OBJECT GRID1
EXPORTING
I_PARENT = parent_1.
ELSE.
*Run in background
CREATE OBJECT GRID1
EXPORTING
I_PARENT = G_DOCK1.
ENDIF.
ENDIF.
B&R,
Saravana.S -
How to Extract the data from R/3 Genric extractor to BW ?
How to Extract the data from R/3 Genric extractor to BW ?
hi,
step by step procedure for generic extraction delta
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33
Refer:
/people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
http://help.sap.com/saphelp_nw04/helpdata/en/3f/548c9ec754ee4d90188a4f108e0121/content.htm
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33
Generic Extraction via Function Module
/people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
Extractions in BI
https://www.sdn.sap.com/irj/sdn/wiki
New to Materials Management / Warehouse Management?
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1b439590-0201-0010-ea8e-cba686f21f06
Ramesh -
How to Extract the Highlight Text in PDF File
Hi Scripters,
i want know, how to extract the hightlight text in pdf files for text only format for (*.txt) file extension save.
regards
babyHi,
Okay i'll try do best.
thanks for your reply.
Regards
Baby -
How to extract the content of a mail message?
Friends,,,
How to extract the content of a mail message?
the message does not contain any attachments or images.
its just a plain text..
if i use message.getContent(), in addition of the content it returns headers information also...
but i need only the content of that message...
if i write code like this:
String content = (String) message.getContent();
it gives cast exception...
if the message contains only plain text, no multipart, then which method is useful to extract only the content?
please tell me friends..
thanks in advannce,
regards,
Venkata NaveenMessage.getContent() does not return headers for a simple text/plain
message. If you're getting headers, something else is wrong.
Also, casting the result to String should work.
Most likely the message really isn't a simple text/plain message.
Provide more details and we'll help you figure out what you're
doing wrong.
Also, please read the msgshow.java demo program included with JavaMail. -
how to extract the audio of a zip file? if it helps I'm trying to add this album zip to my library
Let's say you have a zipped audio collection (audio.zip) containing mp3 files. And you are at a Terminal prompt.
List the files in the zip archive
unzip -l audio.zip (that is ell)
Extract all mp3 audio files into a new home directory folder called mymusic
unzip -d ~/mymusic audio.zip \*.mp3
Variations of the above will depend the zip contents, and internal structure. If the zipped audio collection was gzipped, or someone used rar on it, then the extraction process will be different. -
How to extract the senders IP address of an email?
How to extract the senders IP adress of an email using applescript ??
Maybe this will help.
Extract email addresses from email header - Sender (From) - Mail -
How to extract the signal out from the waveform by my designated power level?
Dear all,
How can I extract the signal from the waveform accroding to the power level? I read the Trigger&Gate.vi, but this vi extract signal according to the duration time. I want to extract signal according to power level.
As shown in the following figures, the signal I want to process is between 130000 to 140000, if I zoom in, I can see the the useful signal is between 135400 to 138200. The question is how to extract the signal in the zone?
I tried the sub_NoiseEst_And_Chop_Shell.vi in the Packet_based_link example too, but this subvi seemed to be a little slow. Can anybody give me better advice? Thanks in advance!
Solved!
Go to Solution.I was working on something similar but haven't had time to fully develop it.
My idea was to use an envelope detector (low pass filter) and then use an energy detection VI on the envelope.
Here's where I left off
Anthony F.
Product Marketing Engineer
National Instruments
Attachments:
test.vi 331 KB -
How to extract the date value of IBOR date="12/12/2009"
I have the following query, but do not get the date value out:
WITH ibors AS (
SELECT xmltype('<?xml version="1.0" encoding="utf-8"?>
<IBOR date="12/12/2009">
<LIBOR currency="USD">
<OneYear>1.38875</OneYear>
</LIBOR>
</IBOR>
') ibor_xml
FROM dual
SELECT i.ibor_date, i.ibor_oneyear
FROM ibors,
XMLTABLE(
'//IBOR'
PASSING ibors.ibor_xml
COLUMNS ibor_date VARCHAR2(20) PATH '/IBOR/date',
ibor_oneyear VARCHAR2(20) PATH '/IBOR/LIBOR/OneYear'
) i;
How to extract the date value of <IBOR date="12/12/2009">?Hi,
The date is an attribute of element IBOR. So you must use "@date" in the xpath expression :
WITH ibors AS (
SELECT xmltype('<?xml version="1.0" encoding="utf-8"?>
<IBOR date="12/12/2009">
<LIBOR currency="USD">
<OneYear>1.38875</OneYear>
</LIBOR>
</IBOR>
') ibor_xml
FROM dual
SELECT i.ibor_date, i.ibor_oneyear
FROM ibors,
XMLTABLE(
'//IBOR'
PASSING ibors.ibor_xml
COLUMNS
ibor_date VARCHAR2(20) PATH '/IBOR/@date',
ibor_oneyear VARCHAR2(20) PATH '/IBOR/LIBOR/OneYear'
) i; -
How to extract the smtp response code
Hi,
I am trying to get the server response by SMTPTransport.getLastServerResponse(),
and getting the response as "250 2.0.0 OK 1201842889 c39sm4983397anc.25", in case of success.
This response would differ in case of failure.
Could please guide me as how to extract the response code from the result.
Thanks!!It's time to read the SMTP spec.
Also, read the javadocs for the com.sun.mail.smtp
package to see how to get an Exception even for
success that includes the detailed response codes.
The smtpsend.java demo program will show you how
to interpret the exception. -
How to extract the xcontrol output
I created one xcontrol for pressure sensors . I am able to display the output correctly but i could not able to use the output for other inputs .
how to extract the xcontrol output
for clear understanding please see the attached vi testing .
Attachments:
testing.vi 9 KB
Pressure sensors.zip 96 KB
testing.vi 9 KBI always measure velocity in furlongs per fortnight
Units are very powerful, and like any great magic, can result in serious unintended circumstances.
I've tried them a couple of times and decided they were more difficult to use than the value provided. Maybe it's better now, but I'm still on LV 8.6
http://forums.ni.com/t5/LabVIEW/Why-do-very-few-programmers-use-LabVIEW-unit-labels/td-p/1119746
Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.
"You are what you don't automate"
Inplaceness is synonymous with insidiousness -
How to extract the R/3 Contracts data to CIF format
HI,
Please help me out for how to extract the R/3 Contracts data to CIF format.
Regards,
VenkatHi,
Thanks for the reply.
We do not have any APO system, our aim is to send the all R/3 contracts should be extracted as CIF and further need to be send to third part system(Quadrem).
Any inputs plz..for our new requirement
Regards,
Venkat
Maybe you are looking for
-
Can I use AVG anti virous with the new download
I run AVG free anti-virus , with some new Firefox upgrades the AVG got disabled or just wouldn't work
-
"backup disk not available" since moving to 5GHz
Dear Community, I am getting "Backup Disk Not Available" since switching to the 5GHz band. I've have to leave the 2.4GHz because it's simply too congested round here. All the neighbours have wireless and I kept getting dropout and slow streaming of
-
Excel and CASE statement.
Hello Experts, I am using a CASE statement on CHAR column as follows: CASE WHEN Sales.Ret='Y' THEN 'Returning' ELSE 'New' END It gives an error: Odbc driver returned an error (SQLExecDirectW). Whereas when I use another CASE statement with Numrical c
-
WebDynpro ABAP - issue adding scrollbar to table UI element.
Hi WebDynPro experts, i have an requirement where in table UI element in one of my VIEW requires SCROLLBAR to appear. i did try setting in 'Webdynpro Application' under the parameters tab, new parameter 'WDTABLENAVIGATION' from the F4. However t
-
I have the code to pass to the value of the list<cfset OrgCodeList_assign = ValueList(orgAccess.OrgCode)> and this list gave me AA,AB,AC. I passed those value to the next page and I got AA,AB,AC. I need these value on the next page for my query but I