Butterworth filter is not filtering data properly
Hello,
I am trying to use a low-level Butterworth filter to filter some data. I am sampling the data at 100 samples per second so I have been using this as the sampling frequency. I have also initialized the filter so that it will theoretically work continuously. After playing around with different cut off levels, to no success, I wanted to see if my data was simply passing through the filter correctly... which it isn't. I have read related postings on "High Pass Filter Settings [NEW]" and I am thinking that my sample rate is not passing correctly to my filter.
Does anyone have any idea why this would be the case... or how to fix my problem. Eventually I would like to differentiate this data...
I've included my LabView VI (the filter is in the first while loop). I am using LabView 7.1 with PC-CARD DAS16/16AO
Thanks
Jenna
Attachments:
ALL CHANNELS AND AOUT - instantaneous voltage change.vi 249 KB
Hi Lynn,
The purpose of my LabView program is to read in a variable sine wave (which represents a swinging leg), measure the torque, position and angles over time and be able to adjust a motor on the fly. My purpose in filtering is to allow for a smoothly differentiated signal. If I differentiate without a filter… my signal is a mess. The nominal waveshape is a sine wave and the frequencies and magnitudes of the signal vary with each trial. Generally though, the frequency of the signal is 1.5 Hz or less. The peak to peak amplitude for the analog out channel from an optical encoder (which measures the leg angle) is approximately 70 degrees (1.94V). It is necessary to have the differentiated and filtered “angular velocity” in sync with the other channels to know the effect of the change in the motor speed at different points in the cycle. I will be analyzing this data mainly after it has been collected, so the precision on the charts while it is running is not too important.
I’ve tried modifying my VI so that you will be able to see it, but since my signal is continuous “making the current values default” freezes my VI at one point in time... so my simplified VI doesn’t run as the more complete one did.
I have also briefly looked into a Savitzky Golay filter that differentiates and filters simultaneously, but I haven’t had much luck getting it to work.
Any suggestions?
Thanks
Jenna
Similar Messages
-
How does digital filter order influnce filtered data , the higher the better?
Seems that higher order filter has better filter effect ofcut-off frequnecy is set to be constant.
So filter order the higher the better?
is there any side effects for higher order? such as phase delay?fenny,
The main effect of a higher filter order is that the roll-off is much quicker (i.e., there are fewer frequencies between the pass band and the stop band). Depending on the type of filter that you use, there may be more phase delay with higher orders. Some filters are designed for phase delay (I think elliptical and Chebyshev are phase delay filters), but some filters will not give anymore phase delay with higher orders (e.g. a Butterworth filter). But there aren't really any "side effects" to having higher orders other than possibly longer processing times. I hope this answers your questions!
Tyler S -
'select expert' option is not filtering data in CR, in VS2012
,Hi,
We have a VB VS2005 crystal report application , is working good with ' select expert ' option for filtering data in side crystal report. When we are migrated the application to VS2012, the application is not filtering the data inside crystal report. I could see the 'select expert ' options and Formula editor code in VB 2012 exactly same as VB 2005. But, there is no data filtering in Crystal Report. Please help. We are using Crystal report developer version for VS2012. My formula editor code inside CR 'select expert' is {REPORT.CODE} in ["3102", "4010"]Hi George
Please see if KBA 1204895 - Selection formula is ignored when using Crystal Reports 2008 and VS .NET 2005 helps to resolve the issue.
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow me on
Twitter -
I have an InfoPath Forms Library in which I need to filter some views. The first one being Client Status, which is a drop down box with the choices of Open, Suspended, Warrant, and In Custody.
I created a view that I want to only show the Open items. First I used the Filter to say show only the items that Client Status is equal to Open. This brought back zero results. I did a copy & paste so I know Open is correct & no
hidden spaces, etc.
Then I tried to do the opposite and filtered if Client Status is NOT equal to Suspended, Warrant, and In Custody using the AND as well as th OR options. This filter brought back everything, filtering nothing.
Can someone please help? Thanks, JeannieHello Jeannie,
Where you are putting filter (in infopath form or in form library view)? If you are setting filter in form library then what is value of that column. I mean could you tell us the form library columns name and their values.
I suspect that there is mismatch in column value that's why filter is not working.
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help -
Problem between SSMS and Report ! Filter query not showing data or showing wrong data
Hi all,
In short: I have a report with multiple values such as name of shop, postal code etc. The parameters have no default value and act as "like". If someone enters "krant" he'll get all the shop names that contain "krant" in their
name etc.
Same goes for postal code, if someone enters 2550 he'll get all data for 2550. The problem although is that if a user start with postal code as parameters and leaves the shop name empty, the shop name is not shown in my report! The other way around it works,
when I enter shop name i'll get all shops + postal code in my report.
I know this is because POS name cannot be shown in report because it's left blank, but I want my MDX query to be able to give me the POS names even if I only enter postal code.
Can someone please please look at my query below? I need to add 4 more parameters this way later on too!
SELECT
[Measures].[Sales amount]
ON COLUMNS, NON EMPTY
Filter(
[Point of sale].[POS name].AllMembers,
InStr(
[Point of sale].[POS name].CurrentMember.MEMBER_CAPTION,
@PAR_POSName
) > 0
*Filter(
[Point of sale].[POS postal code].AllMembers,
InStr(
[Point of sale].[POS postal code].CurrentMember.MEMBER_CAPTION,
@PAR_POSTAL_CODE
) > 0
*[Point of sale].[Client id].[Client id]
*[Point of sale].[POS id].[POS id]
*[Point of sale].[POS street].[POS street]
*[Point of sale].[POS town].[POS town]
*[Point of sale].[POS housenumber].[POS housenumber]
ON ROWS
FROM [mycube]You have to use
StrToMember (MDX) /
StrToSet (MDX) /
StrToTuple (MDX) to convert the Parameter; see
Parameterized Reporting Services Reports with Analysis Services as a Data Source
Olaf Helper
[ Blog] [ Xing] [ MVP] -
Saved PDF does not restore data properly when reopened
I have a simple PDF I created in Livecycle Designer where I fill in some input fields and save the PDF. The problem I am having is when I save the PDF, and then reopen it, the data in the input fields are no longer where I originally typed them in.
The PDF is saved as a version 8 Dynamic PDF and the Form properties is set to 'Automatic' (that is, not manual). If anyone can help me, I would be so appreciative.
My PDF can be downloaded at:
https://share.acrobat.com/adc/document.do?docid=bcb8f652-f468-4c81-b221-65a5e397c89dI think I figured this out. The code to add subforms called sect is executing on the initialize event of the P1 subform. The initialize event is running twice (once on the server (pdf creation) and once on the client inside of acrobat when it is rendered. If you move that code to the Doc Ready event the form will display correctly. I put a textfield on the form this populated when the initialization script is run. This tells me how many times it runs.
Now back to your original problem.
If I run your script to populate the rooms and re-open it is getting messed up again because the Doc Ready event is running each time you open the form. Instead of trying to initialize the form programatically if you use the Initial count on the binding tab of the subform all of this initiazation problems go away.
Are you intending on having multiple rooms subforms per section or will it always be one to one? if there is a one to one mapping change the checkbox on the binding tab that indicates that multiple subforms are available. -
Cap 4 Quiz Results page not restoring data properly
I'm testing a Quiz built in Captivate 4 SCORM 1.2 which allows 5 attempts to achieve a passing score of 100. If the user fails, exits on the Quiz Results page, and then relaunches (bookmarked back to the Results page), the values displayed (score, number of questions correct, number of attempts) are not correct. Score is 1 or 4 or a random number, attempts goes back to 1. I am able to analyze the saved cmi data to see that the correct data has indeed made it to the LMS. And if the user clicks Retake for another attempt, the Results page will then update and show the correct number of attempts. So Captivate is reading in the saved number of attempts. But it seems like Captivate displays the Results page before it has fully retrieved the cmi data. Has anybody else had this issue? Any work-arounds?
Thanks in advance!added these into pagdef (A/B)
Refresh="prepareModel"
RefreshCondition="${sessionScope.Loans != null && adfFacesContext.postback == true}" into your <iterator ............../> -
URGENT!! Reporting Agent not filtering data on dataproviders
I am having problems with Reporting Agent web template settings. I have a query that uses a pre-query for MANAGER. I also have a query view for this query (I also tried using just the query in the web template). I created a reporting agent setting on the web template and used the pre-query as the control query. I have 80 MANAGER's, so I expect 80 dataproviders with each dataprovider having the data for 1 MANAGER. I get the 80 dataproviders, but each dataprovider has data for all 80 MANAGERs.
The dataproviders are then emailed using an ABAP program.
I would use Information Broadcaster, but the managers are not necessarily BW users and the manager list is fluent, so I don't want to create a separate setting for each manager.
We are on BW 3.5 SP18.
Many thanks!
GinnyHi Calc Man,
Have you actually downloaded and installed the Service Fix 8866755 ( 11.1.1.3.03 )? I tried to install it but I keep getting the following error:
Oracle Home : D:\Hyperion
Central Inventory : C:\Program Files\Oracle\Inventory
from : n/a
OPatch version : 10.2.0.4.5
OUI version : 10.2.0.4.0
OUI location : D:\Hyperion\oui
Log file location : D:\Hyperion\cfgtoollogs\opatch\opatch2009-10-01_14-39-54PM.l
og
Patch history file: D:\Hyperion\cfgtoollogs\opatch\opatch_history.txt
ApplySession applying interim patch '8866755' to OH 'D:\Hyperion'
List of Homes on this system:
Home name= OraClient10g_home1, Location= "c:\oracle\product\10.2.0\client_1"
OPatchSession cannot load inventory for the given Oracle Home D:\Hyperion. Possi
ble causes are:
No read or write permission to ORACLE_HOME/.patch_storage
Central Inventory is locked by another OUI instance
No read permission to Central Inventory
The lock file exists in ORACLE_HOME/.patch_storage
The Oracle Home does not exist in Central Inventory
ApplySession failed: ApplySession failed to prepare the system. OracleHomeInvent
ory gets null oracleHomeInfo
System intact, OPatch will not attempt to restore the system
OPatch failed with error code = 73 -
URGENT!! Reporting Agent Web Template not filtering data on dataproviders
I am having problems with Reporting Agent web template settings. I have a query that uses a pre-query for MANAGER. I also have a query view for this query (I also tried using just the query in the web template). I created a reporting agent setting on the web template and used the pre-query as the control query. I have 80 MANAGER's, so I expect 80 dataproviders with each dataprovider having the data for 1 MANAGER. I get the 80 dataproviders, but each dataprovider has data for all 80 MANAGERs.
The dataproviders are then emailed using an ABAP program.
I would use Information Broadcaster, but the managers are not necessarily BW users and the manager list is fluent, so I don't want to create a separate setting for each manager.
We are on BW 3.5 SP18.
Many thanks!
GinnyI am having problems with Reporting Agent web template settings. I have a query that uses a pre-query for MANAGER. I also have a query view for this query (I also tried using just the query in the web template). I created a reporting agent setting on the web template and used the pre-query as the control query. I have 80 MANAGER's, so I expect 80 dataproviders with each dataprovider having the data for 1 MANAGER. I get the 80 dataproviders, but each dataprovider has data for all 80 MANAGERs.
The dataproviders are then emailed using an ABAP program.
I would use Information Broadcaster, but the managers are not necessarily BW users and the manager list is fluent, so I don't want to create a separate setting for each manager.
We are on BW 3.5 SP18.
Many thanks!
Ginny -
Multiple levels in hierarchy is not showing data properly in AWM
I may have to create a hierarchy like this :
Cluster name -> Trunk Type -> Trunk name.
A cluster can have many trunk types, say T1, T2 etc and each trunk can have many names.
For example, this is my data :
C1, T1, c1T1_1
C1, T1, c1T1_2
C1, T2, c1T2_1
C2, T1, c2T1_1
C2, T1, c2T1_2
But I see that all the data to be shown for c2 and T1 is shown in C1, T1 itself.
I see that the issue, is that as T1 is not distinct, it is causing this issue.
How can i fix this ?This sounds like the same problem that has been recently posted.
hierarchy problem in awm
You cannot have the single member, T1, report into both C1 and C2. You need to make the member name unique in some way. Here is a simple example following the pattern you have already set.
C1, c1T1, c1T1_1
C1, c1T1, c1T1_2
C1, c1T2, c1T2_1
C2, c2T1, c2T1_1
C2, c2T1, c2T1_2 -
Junk filter is not working properly
I have been using the Junk mail filter successfully for years. Lately Mail is marking messages as Junk but still leaving some of them in my Inbox, though it is supposed to send all junk to the Junk mailbox. Also it is sending some messages to the Junk mailbox, even when they are in my Address Book and even some emails from Apple and .Mac. Why is this happening?
17 PowerBook G4-1.5Ghz DVD/R Mac OS X (10.4.8)Hi, I'm having the same problem! If I send myself a test message it comes back as junk and my name is in my address book. I have my preferences set for anyone who is in my address book is ok and the rest is junk.
I read this and did all that was written below yet my mail program still thinks my own test message is junk. Does anyone have another suggestion?
This forum is awesome, thanks.
Martha
Why? The junk filter itself knows nothing about
Apple. When you set up Mail anew, there is only one
custom rule called “News From Apple” that, if active,
would prevent those messages from being marked as
junk. If you’ve removed or disabled that rule (I
have), then messages coming from Apple are treated
like messages coming from anyone else, as it should
be.
Or is it because "Apple Discussion Forums" isn't in
my address book?
Well, that’s one possibility. Another is that the
junk filter still isn’t working properly, and the
more thorough cleanup procedure I mentioned in my
previous post may be necessary.
Note also that having Sender of message is in my
Previous Recipients OFF in Preferences > Junk
Mail may contribute to some messages being
incorrectly marked as junk.
The junk filter cleanup procedure, in case you want
to try it, would be as follows:
1. Quit Mail.
2. In the Finder, go to ~/Library/Mail/.
3. Locate LSMMap2 and move it to the Trash.
This file stores information about what does and
doesn’t constitute junk, and allows the junk filter
to learn. Deleting this file is what Preferences >
Junk Mail > Reset does. The file was called
LSMMap in early versions of Mail; delete that
as well if you see it.
4. Locate DefaultCounts and move it to the
Trash. This file keeps statistics about the number of
messages that have been marked as junk, either
automatically by the junk filter or manually by the
user.
5. Locate MessageRules.plist and/or
MessageSorting.plist and move it to the
Desktop. The former is used by Mail 2.x, the latter
by Mail 1.x. This is where Mail stores all the rules,
including the rule that governs what the junk filter
does. There is probably also a
MessageRules.plist.backup and/or
MessageSorting.plist.backup file there; move
it to the Desktop too.
6. Look for the account folders. The name of each
account folder starts with the account type (POP,
IMAP, Mac), followed by the account username and the
incoming mail server. Open each of the account
folders, locate the Junk.mbox or
Junk.imapmbox folder within it, and move it to
the Trash if present.
7. Go to ~/Library/Mail/Mailboxes/. Locate any
Junk.mbox mailboxes there (their name may
include the account name in parenthesis), and move
them to the Trash.
Note: Messages in Junk mailboxes with an
.mbox suffix are stored locally and will be
lost forever as a result of doing steps 6 and 7. If
there is a chance that you have legit messages there
that you want to preserve, either move the messages
to another mailbox in Mail first, or move
Junk.mbox to the Desktop (to be imported back
later) instead of to the Trash. Junk mailboxes with
an .imapmbox suffix aren’t a concern because
they are stored on the server and Mail will rebuild
them automatically.
8. Open Mail. As a result of removing the rules file,
the junk filter will be disabled now. You may want to
either tell Mail to go offline immediately after
opening it, or shut down the Internet connection
before opening Mail, to prevent it from downloading
anything until the junk mail filter has been enabled
again.
9. Go to Mail > Preferences > Junk Mail,
enable junk filtering, and configure it however you
wish.
10. Go online again if you went offline in step 8.
If the above solves the problem and you don’t have
any rules you’d like to preserve or recreating them
is not a daunting task, just trash the rules files
that were moved to the Desktop and be done with it.
Note: For those not familiarized with the
~/ notation, it refers to the user’s home
folder. You can easily locate any of the folders
referred to in this post by copying the folder path
here, doing Go > Go to Folder in the Finder,
and pasting the folder path there.
eMac G4 Mac OS X (10.4.6) -
Problem in alv grid display (it is not filtering the data in print preview)
Hi Every One,
Its very urgent for me to deliver this report ....
I applied sort criteria on my final internal table which is pupulated and then i passed to the function module...
when i execute the program it is showing me the perfect output..when i take a print preview it is not filtering the data instead it is showing me the normal uotput i.e..,without sort criteria...
here is the code plz go thru it and tell me were i am doing wrong...
i thank u one and all ...and plz debub the code on the system and let me know....
REPORT tracking-quotation NO STANDARD PAGE HEADING MESSAGE-ID zrv_message LINE-COUNT 65 LINE-SIZE 110.
Includes
This include contains declarations
INCLUDE ZMM_TRACKING_QUOTATION_T.
This include contains code for the performs
INCLUDE ZMM_TRACKING_QUOTATION_F.
AT SELECTION SCREEN *
AT SELECTION-SCREEN.
This perform will validate the fields
PERFORM f_validate_sel_screen.
Start-Of-Selection
START-OF-SELECTION.
This perform will read the values from the database.
PERFORM selection.
This perform will build the field catalogue
PERFORM f_build_catalogue.
This perform will build the sort
PERFORM f_event_sort.
This perform will build the layout
PERFORM f_build_layout.
This perform will build the event
PERFORM f_event_build.
This perform will build the comment
PERFORM f_comment_build.
This perform will display the list
PERFORM f_list_display.
End-Of-Selection
END-OF-SELECTION.
*& Include ZMM_TRACKING_QUOTATION_T *
T a b l e s D e c l a r a t i o n s *
TABLES: eban,
ebkn,
ekko,
eket,
lfa1,
ekpo.
Selection Screen Declaration
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-100.
SELECT-OPTIONS: bednr FOR eban-bednr,
ps_psp FOR ebkn-ps_psp_pnr,
kostl FOR ebkn-kostl,
erdat FOR ebkn-erdat.
SELECTION-SCREEN END OF BLOCK b1.
Type Pools D e c l a r a t i o n s *
TYPE-POOLS: slis.
V a r i a b l e s *
DATA : rt_fieldcat TYPE slis_t_fieldcat_alv,
i_layout TYPE slis_layout_alv,
i_event TYPE slis_t_event,
i_listheader TYPE slis_t_listheader,
l_sort TYPE slis_t_sortinfo_alv,
wa_sort TYPE slis_sortinfo_alv.
I n t e r n a l T a b l e s *
DATA: BEGIN OF i_final_tab OCCURS 0,
name1 LIKE lfa1-name1,
banfn LIKE eban-banfn,
badat LIKE eban-badat,
bnfpo LIKE eban-bnfpo,
txz01 LIKE eban-txz01,
menge LIKE eban-menge,
bednr LIKE eban-bednr,
frgdt LIKE eban-frgdt,
lfdat LIKE eban-lfdat,
ps_psp_pnr LIKE ebkn-ps_psp_pnr,
bwbdt LIKE ekko-bwbdt,
aedat LIKE ekko-aedat,
lifnr LIKE ekko-lifnr,
ihran LIKE ekko-ihran,
ebeln LIKE ekpo-ebeln,
ebelp LIKE ekpo-ebelp,
plifz LIKE ekpo-plifz,
eindt LIKE eket-eindt,
END OF i_final_tab.
DATA: BEGIN OF itab OCCURS 0,
name1 LIKE lfa1-name1,
banfn LIKE eban-banfn,
badat LIKE eban-badat,
bnfpo LIKE eban-bnfpo,
txz01 LIKE eban-txz01,
menge(17),
bednr LIKE eban-bednr,
frgdt LIKE eban-frgdt,
lfdat LIKE eban-lfdat,
ps_psp_pnr LIKE ebkn-ps_psp_pnr,
bwbdt LIKE ekko-bwbdt,
aedat LIKE ekko-aedat,
lifnr LIKE ekko-lifnr,
ihran LIKE ekko-ihran,
ebeln LIKE ekpo-ebeln,
ebelp LIKE ekpo-ebelp,
plifz LIKE ekpo-plifz,
eindt LIKE eket-eindt,
END OF itab.
*& Include ZMM_TRACKING_QUOTATION_F *
**& Form FIELDCAT_INIT
text
-->P_GT_FIELDCAT[] text
FORM f_build_catalogue.
DATA : ls_fieldcat TYPE slis_fieldcat_alv.
CLEAR ls_fieldcat.
ls_fieldcat-fieldname = 'BANFN'.
ls_fieldcat-tabname = 'itab'.
ls_fieldcat-seltext_m = 'PR Number'.
ls_fieldcat-ref_tabname = 'EBAN'.
ls_fieldcat-fix_column = ''.
ls_fieldcat-emphasize = ''.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
ls_fieldcat-tabname = 'ITAB'.
ls_fieldcat-fieldname = 'BNFPO'.
ls_fieldcat-ref_tabname = 'EBAN'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
ls_fieldcat-tabname = 'ITAB'.
ls_fieldcat-fieldname = 'BADAT'.
ls_fieldcat-ref_tabname = 'EBAN'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
ls_fieldcat-tabname = 'ITAB'.
ls_fieldcat-fieldname = 'TXZ01'.
ls_fieldcat-ref_tabname = 'EBAN'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
ls_fieldcat-tabname = 'ITAB'.
ls_fieldcat-fieldname = 'MENGE'.
ls_fieldcat-ref_tabname = 'ITAB'.
ls_fieldcat-seltext_l = 'Quantity'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
ls_fieldcat-tabname = 'ITAB'.
ls_fieldcat-fieldname = 'PS_PSP_PNR'.
ls_fieldcat-ref_tabname = 'EBKN'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
ls_fieldcat-tabname = 'ITAB'.
ls_fieldcat-fieldname = 'BEDNR'.
ls_fieldcat-ref_tabname = 'EBAN'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
ls_fieldcat-tabname = 'ITAB'.
ls_fieldcat-fieldname = 'FRGDT'.
ls_fieldcat-ref_tabname = 'EBAN'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
ls_fieldcat-tabname = 'ITAB'.
ls_fieldcat-fieldname = 'LFDAT'.
ls_fieldcat-ref_tabname = 'EBAN'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
ls_fieldcat-tabname = 'ITAB'.
ls_fieldcat-fieldname = 'EBELN'.
ls_fieldcat-ref_tabname = 'EKPO'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
ls_fieldcat-tabname = 'ITAB'.
ls_fieldcat-fieldname = 'EBELP'.
ls_fieldcat-ref_tabname = 'EKPO'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
ls_fieldcat-tabname = 'ITAB'.
ls_fieldcat-fieldname = 'AEDAT'.
ls_fieldcat-ref_tabname = 'EKKO'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
ls_fieldcat-tabname = 'ITAB'.
ls_fieldcat-fieldname = 'LIFNR'.
ls_fieldcat-ref_tabname = 'EKKO'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
ls_fieldcat-tabname = 'ITAB'.
ls_fieldcat-fieldname = 'NAME1'.
ls_fieldcat-ref_tabname = 'LFA1'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
ls_fieldcat-tabname = 'ITAB'.
ls_fieldcat-fieldname = 'IHRAN'.
ls_fieldcat-ref_tabname = 'EKKO'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
ls_fieldcat-tabname = 'ITAB'.
ls_fieldcat-fieldname = 'EINDT'.
ls_fieldcat-ref_tabname = 'EKET'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
ls_fieldcat-tabname = 'ITAB'.
ls_fieldcat-fieldname = 'PLIFZ'.
ls_fieldcat-ref_tabname = 'EKPO'.
APPEND ls_fieldcat TO rt_fieldcat.
ENDFORM. " FIELDCAT_INIT
*& Form selection
text
--> p1 text
<-- p2 text
FORM selection .
SELECT
lfa1~name1
eban~banfn
eban~badat
eban~bnfpo
eban~txz01
eban~menge
eban~bednr
eban~frgdt
eban~lfdat
ebkn~ps_psp_pnr
ekko~bwbdt
ekko~aedat
ekko~lifnr
ekko~ihran
ekpo~ebeln
ekpo~ebelp
ekpo~plifz
eket~eindt
FROM lfa1 INNER JOIN ekko ON ( lfa1lifnr = ekkolifnr )
INNER JOIN ekpo ON ( ekkoebeln = ekpoebeln )
INNER JOIN eket ON ( ekpoebeln = eketebeln
AND
ekpoebelp = eketebelp )
INNER JOIN eban ON ( ebanbanfn = eketbanfn
AND
ebanbnfpo = eketbnfpo )
INNER JOIN ebkn ON ( ebanbanfn = ebknbanfn
AND
ebanbnfpo = ebknbnfpo )
INTO TABLE i_final_tab WHERE eban~bednr IN bednr AND
ebkn~ps_psp_pnr IN ps_psp AND
ebkn~kostl IN kostl AND
ebkn~erdat IN erdat AND
ekko~bstyp <> 'F'.
LOOP AT i_final_tab.
itab-name1 = i_final_tab-name1.
itab-banfn = i_final_tab-banfn.
itab-badat = i_final_tab-badat.
itab-bnfpo = i_final_tab-bnfpo.
itab-txz01 = i_final_tab-txz01.
itab-menge = i_final_tab-menge.
itab-bednr = i_final_tab-bednr.
itab-frgdt = i_final_tab-frgdt.
itab-lfdat = i_final_tab-lfdat.
itab-ps_psp_pnr = i_final_tab-ps_psp_pnr.
itab-aedat = i_final_tab-aedat.
itab-lifnr = i_final_tab-lifnr.
itab-ihran = i_final_tab-ihran.
itab-ebeln = i_final_tab-ebeln.
itab-ebelp = i_final_tab-ebelp.
itab-plifz = i_final_tab-plifz.
itab-eindt = i_final_tab-eindt.
APPEND itab.
CLEAR itab.
ENDLOOP.
ENDFORM. " selection
*& Form f_event_build
text
--> p1 text
<-- p2 text
FORM f_event_build .
DATA wa_event TYPE slis_alv_event.
CLEAR: wa_event,
i_event.
*read event top-of-page
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = i_event.
IF sy-subrc <> 0.
ENDIF.
*Prepare event table
READ TABLE i_event WITH KEY name = 'TOP_OF_PAGE' INTO wa_event.
IF sy-subrc EQ 0.
MOVE 'TOP_OF_PAGE' TO wa_event-form.
APPEND wa_event TO i_event.
ENDIF.
ENDFORM. " f_event_build
*& Form f_comment_build
text
--> p1 text
<-- p2 text
FORM f_comment_build .
DATA: wa_listheader TYPE slis_listheader.
CLEAR wa_listheader.
wa_listheader-typ = 'H'.
wa_listheader-info = 'Tracking Of Quotation For Purchase Requisition'.
APPEND wa_listheader TO i_listheader.
CLEAR wa_listheader.
wa_listheader-typ = 'S'.
wa_listheader-info = 'SMS-DEMAG Pvt. Ltd.'.
APPEND wa_listheader TO i_listheader.
CLEAR wa_listheader.
wa_listheader-typ = 'S'.
wa_listheader-info = 'R1- Nehru Enclave'.
APPEND wa_listheader TO i_listheader.
CLEAR wa_listheader.
wa_listheader-typ = 'S'.
wa_listheader-info = 'New Delhi - '.
APPEND wa_listheader TO i_listheader.
ENDFORM. " f_comment_build
*& Form f_build_layout
text
--> p1 text
<-- p2 text
FORM f_build_layout .
CLEAR i_layout.
i_layout-colwidth_optimize = 'X'.
i_layout-zebra = 'X'.
i_layout-totals_text = 'Total'.
ENDFORM. " f_build_layout
*& Form f_list_display
text
--> p1 text
<-- p2 text
FORM f_list_display .
*sort itab by name1
banfn
badat
bnfpo
txz01
menge
bednr
frgdt
lfdat
ps_psp_pnr
bwbdt
aedat
lifnr
ihran
ebeln
ebelp
plifz
eindt.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
is_layout = i_layout
it_fieldcat = rt_fieldcat
it_events = i_event
it_sort = l_sort
TABLES
t_outtab = itab.
IF sy-subrc <> 0.
ENDIF.
ENDFORM. " f_list_display
*& Form TOP_OF_PAGE
text
--> p1 text
<-- p2 text
FORM top_of_page.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = i_listheader
i_logo = 'ENJOYSAP_LOGO'.
ENDFORM. "TOP_OF_PAGE
*& Form f_event_sort
text
--> p1 text
<-- p2 text
FORM f_event_sort .
wa_sort-spos = 1.
wa_sort-up = 'X'.
wa_sort-tabname = 'i_final_tab'.
wa_sort-fieldname = 'BANFN'.
wa_sort-subtot = ' '.
APPEND wa_sort TO l_sort.
CLEAR WA_SORT.
wa_sort-spos = 5.
wa_sort-up = 'X'.
wa_sort-tabname = 'i_final_tab'.
wa_sort-fieldname = 'MENGE'.
wa_sort-subtot = ' '.
APPEND wa_sort TO l_sort.
*CLEAR WA_SORT.
wa_sort-spos = 2.
wa_sort-up = 'X'.
wa_sort-tabname = 'i_final_tab'.
wa_sort-fieldname = 'BNFPO'.
wa_sort-subtot = ' '.
APPEND wa_sort TO l_sort.
*CLEAR WA_SORT.
wa_sort-spos = 3.
wa_sort-up = 'X'.
wa_sort-tabname = 'i_final_tab'.
wa_sort-fieldname = 'BADAT'.
wa_sort-subtot = ' '.
APPEND wa_sort TO l_sort.
*CLEAR WA_SORT.
wa_sort-spos = 4.
wa_sort-up = 'X'.
wa_sort-tabname = 'i_final_tab'.
wa_sort-fieldname = 'TXZ01'.
wa_sort-subtot = ' '.
APPEND wa_sort TO l_sort.
*CLEAR WA_SORT.
wa_sort-spos = 7.
wa_sort-up = 'X'.
wa_sort-tabname = 'i_final_tab'.
wa_sort-fieldname = 'BEDNR'.
wa_sort-subtot = ' '.
APPEND wa_sort TO l_sort.
*CLEAR WA_SORT.
wa_sort-spos = 6.
wa_sort-up = 'X'.
wa_sort-tabname = 'i_final_tab'.
wa_sort-fieldname = 'PS_PSP_PNR'.
wa_sort-subtot = ' '.
APPEND wa_sort TO l_sort.
*CLEAR WA_SORT.
wa_sort-spos = 8.
wa_sort-up = 'X'.
wa_sort-tabname = 'i_final_tab'.
wa_sort-fieldname = 'FRGDT'.
wa_sort-subtot = ' '.
APPEND wa_sort TO l_sort.
*CLEAR WA_SORT.
wa_sort-spos = 9.
wa_sort-up = 'X'.
wa_sort-tabname = 'i_final_tab'.
wa_sort-fieldname = 'LFDAT'.
wa_sort-subtot = ' '.
APPEND wa_sort TO l_sort.
*CLEAR WA_SORT.
CLEAR wa_sort.
wa_sort-up = 'X'.
wa_sort-tabname = 'i_final_tab'.
wa_sort-spos = 10.
wa_sort-fieldname = 'EBELN'.
wa_sort-subtot = 'X'.
APPEND wa_sort TO l_sort.
*CLEAR WA_SORT.
CLEAR wa_sort.
wa_sort-up = 'X'.
wa_sort-tabname = 'i_final_tab'.
wa_sort-spos = 11.
wa_sort-fieldname = 'EBELP'.
wa_sort-subtot = ' '.
APPEND wa_sort TO l_sort.
*CLEAR WA_SORT.
CLEAR wa_sort.
wa_sort-up = 'X'.
wa_sort-tabname = 'i_final_tab'.
wa_sort-spos = 12.
wa_sort-fieldname = 'AEDAT'.
wa_sort-subtot = ' '.
APPEND wa_sort TO l_sort.
*CLEAR WA_SORT.
CLEAR wa_sort.
wa_sort-up = 'X'.
wa_sort-tabname = 'i_final_tab'.
wa_sort-spos = 13.
wa_sort-fieldname = 'LIFNR'.
wa_sort-subtot = ' '.
APPEND wa_sort TO l_sort.
*CLEAR WA_SORT.
CLEAR wa_sort.
wa_sort-up = 'X'.
wa_sort-tabname = 'i_final_tab'.
wa_sort-spos = 14.
wa_sort-fieldname = 'NAME1'.
wa_sort-subtot = ' '.
APPEND wa_sort TO l_sort.
*CLEAR WA_SORT.
CLEAR wa_sort.
wa_sort-up = 'X'.
wa_sort-tabname = 'i_final_tab'.
wa_sort-spos = 15.
wa_sort-fieldname = 'IHRAN'.
wa_sort-subtot = ' '.
APPEND wa_sort TO l_sort.
*CLEAR WA_SORT.
CLEAR wa_sort.
wa_sort-up = 'X'.
wa_sort-tabname = 'i_final_tab'.
wa_sort-spos = 16.
wa_sort-fieldname = 'EINDT'.
wa_sort-subtot = ' '.
APPEND wa_sort TO l_sort.
*CLEAR WA_SORT.
*sort l_sort by spos.
CLEAR wa_sort.
wa_sort-spos = 1.
wa_sort-fieldname = 'BANFN'.
wa_sort-down = 'X'.
wa_sort-tabname = 'itab'.
wa_sort-subtot = ' '.
APPEND wa_sort TO l_sort.
wa_sort-spos = 5.
wa_sort-down = 'X'.
wa_sort-tabname = 'itab'.
wa_sort-fieldname = 'MENGE'.
wa_sort-subtot = ' '.
APPEND wa_sort TO l_sort.
*CLEAR WA_SORT.
CLEAR wa_sort.
wa_sort-spos = 2.
wa_sort-fieldname = 'BNFPO'.
wa_sort-down = 'X'.
wa_sort-tabname = 'itab'.
wa_sort-subtot = ' '.
APPEND wa_sort TO l_sort.
wa_sort-spos = 3.
wa_sort-down = 'X'.
wa_sort-tabname = 'itab'.
wa_sort-fieldname = 'BADAT'.
wa_sort-subtot = ' '.
APPEND wa_sort TO l_sort.
*CLEAR WA_SORT.
wa_sort-spos = 4.
wa_sort-down = 'X'.
wa_sort-tabname = 'itab'.
wa_sort-fieldname = 'TXZ01'.
wa_sort-subtot = ' '.
APPEND wa_sort TO l_sort.
*CLEAR WA_SORT.
wa_sort-spos = 7.
wa_sort-down = 'X'.
wa_sort-tabname = 'itab'.
wa_sort-fieldname = 'BEDNR'.
wa_sort-subtot = ' '.
APPEND wa_sort TO l_sort.
*CLEAR WA_SORT.
wa_sort-spos = 6.
wa_sort-down = 'X'.
wa_sort-tabname = 'itab'.
wa_sort-fieldname = 'PS_PSP_PNR'.
wa_sort-subtot = ' '.
APPEND wa_sort TO l_sort.
*CLEAR WA_SORT.
wa_sort-spos = 8.
wa_sort-down = 'X'.
wa_sort-tabname = 'itab'.
wa_sort-fieldname = 'FRGDT'.
wa_sort-subtot = ' '.
APPEND wa_sort TO l_sort.
*CLEAR WA_SORT.
wa_sort-spos = 9.
wa_sort-down = 'X'.
wa_sort-tabname = 'itab'.
wa_sort-fieldname = 'LFDAT'.
wa_sort-subtot = ' '.
APPEND wa_sort TO l_sort.
*CLEAR WA_SORT.
CLEAR wa_sort.
wa_sort-down = 'X'.
wa_sort-tabname = 'itab'.
wa_sort-spos = 10.
wa_sort-fieldname = 'EBELN'.
wa_sort-subtot = 'X'.
APPEND wa_sort TO l_sort.
*CLEAR WA_SORT.
CLEAR wa_sort.
wa_sort-down = 'X'.
wa_sort-tabname = 'itab'.
wa_sort-spos = 11.
wa_sort-fieldname = 'EBELP'.
wa_sort-subtot = ' '.
APPEND wa_sort TO l_sort.
*CLEAR WA_SORT.
CLEAR wa_sort.
wa_sort-down = 'X'.
wa_sort-tabname = 'itab'.
wa_sort-spos = 12.
wa_sort-fieldname = 'AEDAT'.
wa_sort-subtot = ' '.
APPEND wa_sort TO l_sort.
*CLEAR WA_SORT.
CLEAR wa_sort.
wa_sort-down = 'X'.
wa_sort-tabname = 'itab'.
wa_sort-spos = 13.
wa_sort-fieldname = 'LIFNR'.
wa_sort-subtot = ' '.
APPEND wa_sort TO l_sort.
*CLEAR WA_SORT.
CLEAR wa_sort.
wa_sort-down = 'X'.
wa_sort-tabname = 'itab'.
wa_sort-spos = 14.
wa_sort-fieldname = 'NAME1'.
wa_sort-subtot = ' '.
APPEND wa_sort TO l_sort.
*CLEAR WA_SORT.
CLEAR wa_sort.
wa_sort-down = 'X'.
wa_sort-tabname = 'itab'.
wa_sort-spos = 15.
wa_sort-fieldname = 'IHRAN'.
wa_sort-subtot = ' '.
APPEND wa_sort TO l_sort.
*CLEAR WA_SORT.
CLEAR wa_sort.
wa_sort-spos = 16.
wa_sort-fieldname = 'EINDT'.
wa_sort-tabname = 'itab'.
wa_sort-down = 'X'.
wa_sort-subtot = ' '.
APPEND wa_sort TO l_sort.
*CLEAR WA_SORT.
*sort l_sort by spos.
ENDFORM. " f_event_sort
*& Form f_validate_sel_screen
text
--> p1 text
<-- p2 text
FORM f_validate_sel_screen .
*Tracking number
SELECT SINGLE * FROM eban WHERE bednr IN bednr.
IF sy-subrc NE 0.
MESSAGE e013.
ENDIF.
*Wbs Element
SELECT SINGLE * FROM ebkn WHERE ps_psp_pnr IN ps_psp.
IF sy-subrc NE 0.
MESSAGE e014.
ENDIF.
*Cost center
SELECT SINGLE * FROM ebkn WHERE kostl IN kostl.
IF sy-subrc NE 0.
MESSAGE e015.
ENDIF.
*Date
SELECT SINGLE * FROM ebkn WHERE erdat IN erdat.
IF sy-subrc NE 0.
MESSAGE e012.
ENDIF.
ENDFORM. " f_validate_sel_screenHey Ravi,
As you said it is urgent to deliver the report, i will suggest you temporary solution while i debug the program.
In the FM "REUSE_ALV_GRID_DISPLAY", use layout to generate your sorted report for now as shown following:
<b>DATA: G_VARIANT LIKE DISVARIANT.</b>
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-REPID
IS_LAYOUT = I_LAYOUT
IT_FIELDCAT = RT_FIELDCAT
IT_EVENTS = I_EVENT
IT_SORT = L_SORT
<b>is_variant = g_variant</b>
TABLES
T_OUTTAB = ITAB.
IF SY-SUBRC <> 0.
ENDIF.
Where g_variant is your custom layout which you will make as default for output.
Hope this helps and let me know if you need more details.
In the mean time, i will look in to the program.
Regards,
Vicky
PS: Award points if helpful -
Copy and Paste does not work in filter statement of table data
I am using SQL Developer 3.0.04. I can not copy nor paste in the filter criteria when watching or editing table data. Is it a bug or do I have to change some settings?
Hi Sven,
I did a bit more research and now I hope we will be talking about the same thing. Bear with me and let me clarify. In terms of my prior comment about the process necessary to copy a value from a data cell into the clipboard, I was totally off-base. Once the focus is on a data cell, all one need do is Edit menu|Copy or ctrl-c. I have no idea why I had trouble with that yesterday.
Anyway, getting back to what's relevant with regard to your issue:
1) If something is in the clipboard, then both Edit menu|Paste and ctrl-v work for a data cell target.
2) If something is in the clipboard, then Edit menu|Paste fails for a data tab filter target.
3) If something is in the clipboard, then ctrl-v works for a data tab filter target.
So obviously conditions exist where pasting to the data tab filter can work. But here is a scenario where I found a problem similar to what you describe:
1) For the EMP table in SCOTT, display all employees in the data tab.
2) Apply a filter. For example, filter on JOB='SALESMAN'. Now 4 salesman, all in dept 30, are displayed.
3) Next you decide to view only employees in dept 30.
4) Copy the value 30 from the DEPTNO column. Carelessly put the focus on ENAME column in one of the data tab rows.
5) Next focus on data tab filter to blank out JOB='SALESMAN' predicate. Drop down to select DEPTNO. Append an = sign.
6) Finally Edit menu|Paste. Instead of seeing DEPTNO=30 in the filter, we see...
7) The filter contains nothing and is disabled (greyed out).
8) The ENAME column of the prior focus now contains the value 30 rather than the a salesman's name.
Your case may be different/more complex, but at least this simple case demonstrates in a repeatable fashion what I noticed but didn't describe very well yesterday. I have logged the following internal bug:
Bug 12753266 - EDIT MENU PASTE INTO DATA TAB FILTER DOES NOT WORK AND MAY DISABLE THE FILTER
Using the rollback button, blanking out any filter value and hitting enter displays all original employee rows.
Regards,
Gary -
OHS - Protocol (Periodic) Next due dates are not being captured properly
Protocol (Periodic) Next due dates are not being captured properly in the Planning Cockpit (EHSH_D_PCP) report nor the Protocol report (S_SH8_7200013). The Planned date is not resetting itself for the medical service sometimes.
Any idea what might be causing this issue?
Regards
NaveenHI Naveen
Have you overridden the std BADI for calculating Next due date?
Thanks
Jagdsh -
Having trouble with my filters in the filter gallery not all working on the image.
Bas relief filter is not adjusting all the layers. It is applying the filter to a white screen. The underlying image does not show through. I did this successfully yesterday - can't figure out what went wrong.
The image is in RGB color, 8 bit, and I've tried to do this in both TIFF and PSD formats.
I have been creating images by opening the image and then immediately going into the bas relief filter and applying the filter. This time, when i do that, the preview image in the filter panel goes completely white. I can see very, very faintly that there is the design in there, as though the design is hidden well behind a thick layer of white. I adjust the sliders, and it doesn't help.
To make matters worse, it's doing this for a few of the filters! Some of them work just fine, and some don't!
Where I used to be able to go through the entire filter gallery and see how every filter would love on an image, now many of them just show a white screen when I try to apply them, so I know that it's not only the bas relief filter.
I have a job to turn out - so I need to figure out what I've done wrong!
Thank you very much in advance for your help!OK - that is the problem! I can't thank you enough!!!
Another question - I have the other file that is exactly what I want to
duplicate. Is there a way that I can go into the other file and see the
color settings for foreground and background that existed prior to the
change and duplicate them?
I was working on several different files that look quite similar, as I was
adjusting the color to have lighter varations. They all started out the
same, though.
It looks like the File>Info shows the process of changes, and I would love
to know what the settings were before the changes- what the settings were
when I opened the file.
Again, I can't thank you enough!
Maybe you are looking for
-
Need a step by step guide - S-VIDEO Connection
I have concluded that the mini-DVI to S-VIDEO connection (from Apple) does not work with Mac Mini's of the 2009 vintage. So I am looking for help on the steps that I need to go through to connect a Mac Mini to 35" Sony Standard Definition TV, because
-
WRT54G v6 -- PCs' not able to enter encryption key?
Just bought a WRT54G, replacing an older Linksys wireless router (BEF.... something)... I set up the new router with an encryption key (128-bit key using WEP). My work PC, which for security reasons has the encryption key already built in, finds the
-
Exercise Details added via Windows 8.1 App not showing correctly in the HealthVault
Hi, I Add my Exercise details in the Windows 8.1 HealthVault App, but when I display the exercise details in the HealthVault most of the details are missing, but If I select the activity the details are displayed: However If I select an activity I se
-
I am looking to use my iPad for presentations and want to find a miniature, high quality projector that is compatible with Keynote and can be accessed using the iPad Dock Connector to VGA Adapter. Any suggestions?
-
Custom Numbered List Sequence (example: F, G, H, J, K)
Hey all, Is it possible to create a custom numbering sequence for a numbered list in InDesign? For example, rather than have my list go: F, G, H, I, J, K, we'd like to skip the I at every iteration and go straight to J. The reason for this is I work