How to restrict records in Infoset query
Hi Friends,
I have created an Infoset & a query based on this infoset. I would like to restrict certain records being displayed, based on field value, say if field A = 'Blank' I do not want to see this record on the Bex report.
Please let me know if this is possible at all.
Thanks,
JB
Hi,
if you want to restrict a report based on a characterristic value you have to:
1)Open the query in design mode
2)Insert the characteristic in your report (in this example field "A")
3)Double clikc in the characteristic
4)You will see 2 tabshett, here you have the option to restrict in a estatic (using a fix value) or dinamic value (usign variable)
5)For example use static value, select the desire value and then OK
6)Save
7)Execute.
Regards
Asign points if useful please
Similar Messages
-
How to display records from a query into non-database field
Hi
I a have a problem:
I have a query with many tables and 6 column(select a,b,c,d,e,f from x,y,z,t,s,g where conditions) and I use 3 parameters.
I create 3 parameters :datai,:dataf and :partener and a button with a trigger when button is pressed.
Then a create a manualy block with six field non-database a1,b1,c1,d1,e1,f1.
Now I want to display all the records from my query into a1,b1,c1,d1,e1,f1 where a1=a,b1=b,etc. and all the records (if I have 20 record, it will display 20 records in non-database field) when I press the button.
How I made:
I create a cursor with query then
begin open cursor
loop
fetch cursor into :a1,:b1,:c1,:d1,:e1,:f1;
end loop;
close cursor;
end;
It display one record in a1,b1,c1 only and it have to display 100 records and are date for all the fields.
Can somebody help me in this problem?
Thanks.
Edited by: 928437 on Oct 1, 2012 2:55 AMCreating a view, and querying that into a database block is an excellent solution.
To use the non-database block:
You're missing the all-important Next_Record; command.
<pre> Begin
Go_block('X'); -- block X is the non-database block
Clear_Block(No_Validate);
open cursor X1;
loop
If :System.Record_status != 'NEW' then
Next_Record;
End if;
fetch X1 into :a1,:b1,:c1,:d1,:e1,:f1;
Exit when X1%NOTFOUND;
end loop;
close X1;
end;</pre> -
SAP Query: How to filter records from SAP Query output before display
Hi Friends,
Can I delete records from an SAP query basic list before it is displayed?
For example I want to delte all the orders whose system status is "RELEASED" before the basic list of that SAP query is displayed.
I have gone through SAP help and found out that we can write some code in <b>END code</b> section which will execute before the basic list of the query is displayed. But I could not figure out how the code this...following is an excerpt form SAP help.
<b>"The END-OF-SELECTION code consists of two parts (Before list output and After list output). The first part is processed before the list is output and the second part afterwards."</b>
Can anybody help me?
Regards,
Bharat.
Message was edited by:
Bharat Reddy VTry this simple procedure. <b>Hope</b> this should work for you.
You do the slection of the status in the List-Processing. say your final field of status flag is GF_STATUS.
Immediatly after that use this within the List-Processing.
CHECK GF_STATUS EQ '<RELEASED STATUS>'
How it works:
SELECT <> "<-------Query processing(system code).
*< Your code put in the List processing
CHECK GF_STATUS EQ '<RELEASED STATUS>' "< --only released records passed.
*>
ENDSELECT "<-----Query endselect(system code).
Please let me know the result.
Regards,
A.Singh
Message was edited by:
Amarjit Singh -
How to restrict records entry in a tabular block.
Hi Guys,
I have created a tabular block on my form. Now for a certain condision i want to restrict user, so that s/he cant enter more then 2 records in a tabular block.
I want to implement this check either at the time of record save OR as soon as user navigate to the third record.
Pliz help to implement this check on a block.
Regadrs,
Imran BaigHello,
You could implement the test in the WHEN-CREATE-RECORD trigger
If Get_Block_Property( 'the_block_name', CURRENT_RECORD ) > 2 Then
End if -
Show distinct record in InfoSet query
Hello all.
I have a silly question about the InfoSet. I have a InfoSet joins the Sales Order OSD (ODS1) and Sales Schdule Line ODS (ODS2), using Sales Document number and Sales Document item.
If for 1 Sales Order there are 2 Schedule Lines, the query will show doubled Sales Order figures.
For example.
In ODS1
Sales Order #1, Qty = 5
Sales Order #2, Qty = 3
In ODS2
Sales Order #1, Schedule line 1, Confirmed qty = 3
Sales Order #1, Schedule line 2, Confirmed qty = 2
Sales Order #2, Schedule line 1, Confirmed qty = 1
Sales Order #2, Schedule line 2, Confirmed qty = 1
Sales Order #2, Schedule line 3, Confirmed qty = 1
Then in the query, it will show Sales Order Qty for #1 is 10, Sales Order Qty for #2 is 9.
I think this is because of the InfoSet join, when #1 is joined, totally we have 2 rows. When #2 is joined, totally we have 3 rows.
Is there any way to avoid this?
(In MultiProvider we can specify figures only came from a paritcular InfoProvider. But there's no such function in InfoSet)
Please help. Thanks a lot.Thanks Oscar.
I tried, but it does not help.
Since the minimum (or maximum) of each single row is the same, it's meaningless on this setting.
For example.
In ODS1
Sales Order #1, Qty = 5
In ODS2
Sales Order #1, Schedule line 1, Confirmed qty = 3
Sales Order #1, Schedule line 2, Confirmed qty = 2
After joining we have have below rows:
Sales Order #1, Qty=5, Schedule line 1, confirmed qty = 3
Sales Order #1, Qty=5, Schedule line 2, confirmed qty = 2
Min or Max qty is still 5.
Is there any other way? Thanks very much. -
How to restrict keyfigures in my bex query which is built of infosets?
Hi all,
How to restrict keyfigures in the query which is built of infosets?
the query display likes
cost taxamount units
1000 100 10
i want my report to be displayed like this
cost taxamount units
100 10 1.
I have used conditions by restricting using units. like
units equal to 1. but still it display like the above one.
can anyone help me on this??
thanxs
harithaHi Haritha,
Do u want to display units 10 as 1?????
If this is the requirement then u can write a new formula by using IF condition.
Khaja -
Select-options in Infoset Query
Hello experts,
I'm working on a report in SAP HR and using infoset query.
I want to use select-options in my selection screen but without interval. In normal abap report we do this using 'NO INTERVALS' but how to achieve same in infoset query ?
please help.
regards,
siddheshHello experts,
I'm working on a report in SAP HR and using infoset query.
I want to use select-options in my selection screen but without interval. In normal abap report we do this using 'NO INTERVALS' but how to achieve same in infoset query ?
please help.
regards,
siddhesh -
How to restrict the quantity in bex query?
Hi all,
i have created a query using infosets and it looks like this :
material cost tax amount units
madhb 21,693 1,443.42 99 each.
I want to restrict the query in such a way only one unit value need to be displayed.
How to restrict it by showing only single unit.
The expected result should be like this??
material cost tax amount units
madhb 293 144 1 ea
Can anyone let me know how to restict the quanity so the query will display the results only for one unit.
thanxs
harithaHi Pradiba santosh,
I have created a conditions and restricted the key figured.
zunit equal 1.
and i have saved and executed the query. But still it displayed for all the units. And it didnt display the query for one unit. Why is that so?
can you let me know what went wrong on it?
thanxs
haritha -
Hi,experts
Can anybody give me documents on infoset query and step by step showing how to create infosetquery. I will really greatful to you all.
Thanks
PreetiHi Preeti,
1. You can query the data using 'Listcube' transaction.
2. Instead of builing on tables, it sits on ODS (no need to worry about underlying tables).
3. Visible on the Bex 'info area' as like other infoproviders.
4. It generates additional key figure called 'Number of records' in the Bex. This will be useful for query.
5. No additional ABAP can be used. But in RSQ02, you can use piece of ABAP.
6. Queries created on data provider infoset can work like other queries including transport functionality.
Hope helps.
For more info check Re: Query on Infoset
Bye
Dinesh -
How to delete Infoset Query in R/3
Hi Gurus,
I created a Infoset using SQ02 in R/3 and generated the query. Now I need to delete that Infoset query. Please advice me how to delete infoset query from the functional group in R/3.
Thanks
LizaHi,
In SQ01 ,press shift+F7 then find your user group. then from infoset query tab ,select ur infoset.
and try to delete , I think, it should work.
Regards
CSM Reddy -
How to restrict the last record and not moving to next reocrd
1) how to restrict the last record and not moving to next reocrd.
2) Also for the F6 key(for new record).When you are on the last record, next-record will create a new one, so that my question is do you want to forbid new record creation.
Francois -
SAP Infoset Query Reporting Set Restriction by Org. Structure
Dear Experts,
I am giving some new users a demo on using Infoset Query on an IDES server.
I am using the user group Personnel Administration (PA) and the HRDATA infoset.
As per my understanding, I should be able to restrict the reporting set according to organizational structure as the infoset is based on logical database PNP. However I am only seeing "No. of hits" in the restrict by drop-down (as can also be seen in the screenshot).
What am I missing to be able to see the restrict by option of "Persons along organizational structure"?
All assistance in this regard is really appreciated.
Regards,
TalhaDear Azury,
Thankyou for your response.
Your solution is perfectly sound for fulfilling the purpose.
However, because I am conducting a demo, I thought a reporting set restriction on the main screen would be more appealing, than an additional selection screen.
In a demo screenshot I have seen that the restrict by option "Persons along organizational structure", is listed right under "No. of hits" like in my screen shot. Can you shed some light on that. I am attaching the demo screenshot I am talking about for reference as well
Thanks,
Talha -
How to restrict the number of Records into the Table?
Is there any way that I can restrict the number of records can be entered into the table?
For example I have created a table TAB1 with size category 0( zero).
User dont want to enter more than 100 values, How to restrict the number entries? Whether Basis can do it?
Regards,
PrathapHi Prathap,
You can write a code in table maintenance events to restrict the number of Records added into the Table to constant.
Solution:
Se11 -> enter table name (TAB1) -> F6 -> Utlities -> Table maint. generator -> Envirnment -> modification -> events -> write here the form routine name.
Double click on routine name. You will get into include section of the code. Write here code like:
IF current_rec_num > 100.
messgae error 'Entry restriceted to 100'
ENDIF.
Somewhat this way you can achieve your target.
Regards,
Sachin -
How we can restrict record in CTL file on the basis of other table ?
Hello all,
How we can restrict record in CTL file on the basis of other table ?
Eg.
I have following control file to load the records in the table through the sql loader.
LOAD DATA
INTO TABLE THIST APPEND
FIELDS TERMINATED BY "|" TRAILING NULLCOLS
LNUM POSITION(1) Char "substr(:LOAN_NUM, 4, 13)",
TSRNUM Char "rtrim:TRAN_SR_NUM)" ,
TPROCDT Char "to_char(to_date rtrim:TRAN_PROC_DT), 'MMDDYYYY'), 'YYYYMMDD')"
I have another table c all TFILE in which I have LNUM. I want to import only those records from input text file using the control file and sql loader in which LNUM is exist in the TFILE.
So how i can restrict it in the Control File.
Thanks
Kamlesh Gujarathi
[email protected]Hello Satyaki De.
Thank you very much for your suggestion but my Private information is totally apart from this question & I already I have changed each and every information from the question.
Thanks
Kamlesh Gujarathi
[email protected] -
Infoset Query - Filter Records
Dear Experts,
Please help me in defining in-built filter (by field values) in an Infoset query.
Regards
Jogeswara RaoThanks Venu,
This I am following already.
But this is not totally fool-proof. If someone uses his own selection screen variant then the setup disturbs.
If you are referring to ALV layout variant, that does not solve my problem. Because the output just filters the records, but the records are selected, this selection gives rise to a problem here (in some calculations)
In-fact the filter word in my query, is meant towards Not selecting OR Deleting records of certain field values
So I want this to be in-built either in Infoset itself or query design.
(of course, I prefer a way free of code)
Regards
Jogeswara Rao
Any inputs Expers?
Kind Regards
Jogeswara Rao
Edited by: K Jogeswara Rao on May 22, 2011 9:22 AM
Maybe you are looking for
-
How to put movies on a ipod video (mac computer)
Hi everyone i am new to the wonderful wold of mac's and ipods. I just picked one up yesterday and would like to put my own movies on it. I did a quick search but it looks like most people are using pc for there ipod. Can someone give me detailed inst
-
It would be super convenient to be able to purchase the gift certificate via email option from the iPhone using the iTunes app or even the Apple Store app so the recipient receives immediately but I don't see that this is possible. I also can't see
-
It's possible that Addon without addon identifier can run in SAP 2005?
i have registered the ADDON in a client with SBO 2005. I have installed and executed the addon and all it has worked correctly. it's possible??? Thank
-
Clarification regarding Shared services and essbase security
Hi, Sorry for the silly doubt. We have shared services to manage security, essbase v 9 1. to assign calc access for users, do i assign calc scripts under databases in group security and assign users to groups in shared services or do it via access co
-
I have followed Mozilla recommendations for migration, MacRumors recommendations, and others as well. Even the Apple store was unsuccessful. Everything I read suggests that this is straightforward. What am I missing? I have copied my xxx.default file