INFOSET QUERY & SAP QUERY
Hi masters
wt's the difference between infoset query& sap query/
& pls discribe both....
Hi,
Both are same.
U can Access infoset by RSISET and SAP by RSQ01
Similar Messages
-
Adding Fields to Custom Infotype Using Custom Infoset in SAP QUERY
Hi All,
We have a requirement to add fileds to a custom infotype for querying Custom Infoset in SAP Query.
We are facing problem as the added field is not getting displayed in the Query set so that we can select and display it in the Basic List along with the other filds.
Kindly suggest a solution.
Full points will be rewarded.
Thanks in Advance
KumarHi Salman,
Thank you for your valuable information. I haven't Configured Dynamic Actions yet. Is it simple to write the Logic for Dynamic Actions. Is this the only way to solve this Issue?
I tried by adding the standard fields, but they are not populating the values; but just appearing as Input Fields with Input help option.
Please let me know if you have any suggestion in this direction?
Regards,
Hems. -
Issue with Infoset of sap query
Hi All,
There is an existing 'z' Sap query and the inofet is created using the data source 'Data retreival by program'(Data structure:BAPIEXPLOSIONLIST).
I got the requirement to add onemore radiobutton(for Costing Run) to the selection screen of exsiting query and when the radio button is clicked on, it should display two more fields (Costing Run name and Costing Run date).So,I have added the below lines in the existing Infoset.
1.Under the extras button and in data read program tab,I have added the below code for radio button and the two fields for selection.
PARAMETERS p_cstrun LIKE jest-inact RADIOBUTTON GROUP cost.
SELECT-OPTIONS sp_kaid FOR keko-kalaid MODIF ID s1.
SELECT-OPTIONS sp_kadt FOR keko-kaladat MODIF ID s1.
2.Under the extras button and in code tab and in at seletion-screen output,I have added the below logic to enable those fields dynamically.
LOOP AT SCREEN.
IF p_CSTRUN EQ 'X' AND SCREEN-GROUP1 EQ 'S1'.
screen-invisible = 0.
screen-active = 1.
MODIFY SCREEN.
elseif p_CSTRUN NE 'X' AND SCREEN-GROUP1 EQ 'S1' .
screen-invisible = 1.
screen-active = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
After adding this,the existing selection-screen format has been changed.Please look at the below changes.
->Actually,there are two blocks in the existing screen with block titles.Now they are replaced with some different text
->And one more block for output format and under that the layout field selection was there in previous selection screen.Now this layout field text is changed to 'Sap Listviewer' and some butto has also come additionaly in the output format.
How to retreive the old selection-screen with previous texts and formats.
Can any one suggest to resolve the issue?
Thanks in advance!!
Best Regards,
MounikaThis is the complete code of selection-screen
SELECTION-SCREEN BEGIN OF BLOCK issel
WITH FRAME TITLE text-S01.
SELECTION-SCREEN SKIP.
PARAMETERS p_cstcur LIKE jest-inact USER-COMMAND ex DEFAULT 'X' RADIOBUTTON GROUP cost .
PARAMETERS p_cstfut LIKE jest-inact RADIOBUTTON GROUP cost.
PARAMETERS p_cstprv LIKE jest-inact RADIOBUTTON GROUP cost.
*Begin of Insert CBDK972000
PARAMETERS p_cstrun LIKE jest-inact RADIOBUTTON GROUP cost.
SELECT-OPTIONS sp_kaid FOR keko-kalaid MODIF ID s1.
SELECT-OPTIONS sp_kadt FOR keko-kaladat MODIF ID s1.
*End of Insert CBDK97200
SELECTION-SCREEN SKIP.
PARAMETERS p_niv_g LIKE jest-inact DEFAULT 'X'.
PARAMETERS p_niv_a LIKE jest-inact DEFAULT ''.
PARAMETERS p_niv_f LIKE jest-inact DEFAULT ''.
SELECT-OPTIONS sp_disgr FOR marc-disgr MEMORY ID lev NO-DISPLAY.
SELECTION-SCREEN SKIP.
PARAMETERS p_newfil LIKE jest-inact DEFAULT ''.
SELECTION-SCREEN END OF BLOCK issel.
SELECTION-SCREEN BEGIN OF BLOCK csel
WITH FRAME TITLE text-s02.
SELECT-OPTIONS sp_mtart FOR mara-mtart OBLIGATORY
NO INTERVALS NO-EXTENSION MEMORY ID mta.
SELECT-OPTIONS sp_werks FOR mbew-bwkey OBLIGATORY
NO INTERVALS NO-EXTENSION MEMORY ID bwk.
SELECT-OPTIONS sp_matnr FOR mara-matnr MEMORY ID mat.
SELECTION-SCREEN END OF BLOCK csel. -
Hi ,
I want to change infoset name in sap query sq01.
I dont want to create new query to change infoset name.
Any other option?
Regards,
Satyen TrivediDear Satyen,
Go to menu Edit-->Other user group, choose the user group, where u have assigned the infoset no give the name of ur query and press create button, it will display all the infosets those are assigned with that user group. Now select ur infoset and start developing the query.
see useful tips:
10 Useful Tips on Infoset Queries
Regards,
Abbas. -
Tarnsport infoset and SAP Query
Hi All,
I have created infoset and SAP quesry and user group.
When i created user group it asked me the transport request.IT has been tarnsported to dev to QA.
But infoset and query are not moved to QA.
It is not asking me for create transport reuest.
Please let me know how to tarnsport infoset(SQ02) and Query(SQ01).
ThanksHi all,
Thanks for u r reply.
My query is in global area not in standard area.
Any way i solved the problem but how to transport the variant.
When i read the documentation it is saying that we have create the system variant then only we can transport.
IS it so pleas let me know.
Thanks, -
Hello.
I would like to ask about using sap query to extract data from table in infoset. Is it possible to write an abap code and get data from certain table? I ask because I do not have any experience in that. Tried to find any examles, but nothing find.
My question is simple- how to extract data using simple abap program, then creatу an infoset with this query and then how to create attribute list based on infoset?
Thanks a lot.Hi Aryat,
Yes it is possible to include code in infoset and fetch data from database tables.
Go to tcode- SQ02, and change query area from global->standard and click change.
Now click on Extras,it will enable all the custom fields on right hand side.
Now select the field from the row and click coding for addition symbol as mentioned in below screen shot, it will take you to the program line screen and you can code here.
After completing coding save and generate the infoset and adjust the query again otherwise new changes will not reflect.
Hope it will solve your issue. -
ABAP QUERY (SAP QUERY) Coding problem?
Hi experts,
Can anyone tell me how to find what is the final internal table in SAP QUERY? I want to delete some unwanted records from my final internal table but I am unable to find it. please do help. Its urgent I am strugling from 3 days, to day I have to finish this task...
Help !!!!!HI,
It is not the the internal tables but the structures have been filled for the tables you have declared in SAP QUERY
or defined using EXTRAS option.
in the application tool bar there is a button 'CODE' by using the 'Record Processing' event of this you can clear the fields you want.
REgards -
Hi there. I made a copy of 01 Query from /SAPQUERY/AM usergroup.
But now I've got a problem because there is still a /SAPQUERY/AM01 InfoSet seen as source of new query.
Where can I change that source InfoSet to my own InfoSet? I'd be thankful for help. Greetings. P.Hi,
Sorry to say that its not possible. You can change your query after copying from the standard one. But the the infoset assigned to the query cannot be changed.
Regards,
Soumya. -
Infoset Coding (SAP Query)
Hi, I need a field in a Query that required programming. I hope someone can help me.
I need to get the first character that is in the header note of the purchasing requisition (ME53N). So I am trying to create a Local field in the infoset with some coding that help me to pull that information for any purchasing requisition.
If any of you guys have and example, please help me.
Regards,
FranciscoHi Aryat,
Yes it is possible to include code in infoset and fetch data from database tables.
Go to tcode- SQ02, and change query area from global->standard and click change.
Now click on Extras,it will enable all the custom fields on right hand side.
Now select the field from the row and click coding for addition symbol as mentioned in below screen shot, it will take you to the program line screen and you can code here.
After completing coding save and generate the infoset and adjust the query again otherwise new changes will not reflect.
Hope it will solve your issue. -
Extracting SAP Query,Infoset Data from VB Application
Hi,
I need to get all SAP Queries,Infosets and SAP Query Group data from a VB application.
I have found a Remote Enabled Function called IQAPI_READ_QUERY_CATALOG.
But when I call the Function from a VB application ,the call is not successful and even I am not getting any exception.
The call is getting false with null exception .
Can anyone please guide me.
Or is there any other function module /procedure / table to extract SAP Query ,Infoset,SAP Query Group data??
Thanks in Advance.http://stackoverflow.com/questions/3765373/how-do-i-do-a-select-distinct-using-a-sap-infoset-query
-
SAP Query-for Reporting how to create and use it
Hi SAP Gurus,
i need your help. in my project, client is asking to create queries to generate reports, i am not familiar with queries, so would appreciate it if any one can guide me and tell me the procedure for writing and creating queries soon.
also if you have any study material on steps on How to write and create queries for PP module
thank you very muchHi
Please refer below document
http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_Introduction.asp
Also refer below
How to Create Infoset Query (SAP Query)
Steps on how to proceed to create a Query:
ADHOC QUERY
A query can be created to extract information from master records i.e Infotypes. For example, by creating a query , the data relating to an employee contained in various Infotypes can be extracted.
Proceedure :
Decide on the various Infotypes we want to make the query. Decide on the area where we want to query i.e Global area or Standard area. Standard area is client specific and globel area will include all clients.
Menu : HR PM Admn - Information System - Adhoc Query
Select area standard and select the user group already created
Creation of new query :
TC SQ03 - Select Environment Select Standard Area - Enter -- If new user group is to be created, enter name of the user group, click on create and enter necessary information and exit after saving
TC SQ02 - Enter name of the Infoset Create enter name of Infoset - Data source -- > Table join by basis table give name of table e.g pa0000 - Enter - Click on insert table if we want to include more tables give name of table one by one and after finishing, place cursor on the joining lines and right click to delete unwanted relationships - check - and go back - field groups - include all table fields - click on generate button - go out
TC SQ03 - Select user group - eg. Payroll
Infoset - Enter name of newly created Infoset
Assign users and Infosets - Assign infosets - put tick on payroll - save and go back
TC PAAH - Expand the nodes and put tick on relevant fields depending upon necessity
Save the query by giving the same name as infoset for easyness..
For executing a query which is already created
1. Go to SQ01 transaction
2. Go to Environment menu->query areas->std areas
3. Then choose the user group where the query is created
4. It will display all the queries created for the group.choose the query you want to executeand click execute.
5. will take to the initial screen
6. Enter the required parameters and execute
Regards
Ranga
Message was edited by:
Ranganathan Srinivasamurthy -
How to write ABAP Logic in SAP Query to fetch records from many Tables
Hi Expert,
I have one requirement, want to display all BOM (Equipment BOM, Function Location BOM and Meterial BOM) from a particular plant.
List of tables as below:
EQST: Equipment to BOM Link
TPST: Link Between Functional Location and BOM
MAST: Material to BOM Link
STPO:BOM item
Requirement: When user enters Plant then SAP Query should execute and fetch all BOMs (as mentioned above) from STPO Table.
I have done so far is as follows:
I create User Group, Infoset and SAP Query.
While creating INFOSET, i used 4 tables (EQST,TPST,MAST & STPO) and link between then is as follows:
STPO-STLNR ---> EQST-STLNR : Left Outer Join
STPO-STLNR ---> TPST-STLNR : Left Outer Join
STPO-STLNR ---> MAST-STLNR : Left Outer Join
Now its showing all BOM from all plants though I enter one Plant value.
Please advise me to write SAP Query and Logic to fetch all BOM from selected Plant Value.
Thanks,
Jay.
Edited by: jaykrishna007 on Jul 29, 2011 11:41 AMHi FCannavo,
Thanks for your quick reply.
See, now I changed my Infoset design.
I added one Plant Table (T001W) and then
T001W-WERKS--->EQST-WERKS
T001W-WERKS--->MAST-WERKS
T001W-WERKS--->TPST-WERKS
and then
EQST-STLNR--->STPO-STLNR
MAST-STLNR--->STPO-STLNR
TPST-STLNR--->STPO-STLNR
on selection screen, user will enter Plant Value.
Now its showing some records, but i dont think so i would be correct output or not, please guide me whether it is correct or not?
Thanks,
Jay. -
Hi, Guys!
I'm trying to create a SAP Query, which should display the old and the new position of employee.
The problem is that the SAP Query generates 2 lines for each position, the employee had.
We need a report that display in two or tree a column for each position the employee had. And we have one line for each employee.
Can we do this in SAP Query? Or will we need a development for this report?
Regards,If it is just an addition of previous/old position, I would recommend creating a new field and field group within the infoset of SAP query framework. You may also have to write a small piece of code within the infoset to populate the field value.
If your business scenario is getting complex it is better to have a simple ABAP report rather than enhancing the SAP query.
Thanks
Ravikumar -
SAP QUERY/INFOSET with OUTER JOIN
Hi,
I have created an infoset (SQ02) using two tables for SAP query.
Table: AGR_TEXTS. Fields: AGR_NAME, SPRAS, LINE, TEXT.
TABLE: AGR_FLAGS. Fields: AGR_NAME, FLAG_TYPE, FLAG_VALUE.
Joined these two tables using outer join. Defined the join condition as AGR_NAME = AGR_NAME. Saved and Generated the infoset.
Created SAP Query (SQ01) using the above created infoset.
In the basic list,
Marked AGR_NAME (AGR_TEXTS), TEXT, FLAG_VALUE as listed fields.
Marked AGR_NAME (AGR_TEXTS), SPRAS, LINE, FLAG_TYPE as selection fields.
Save the query. When execute the query provided the inputs for all the selection fields in the selection screen as given below:
AGR_NAME=Z*
SPRAS=E
LINE=00000
FLAG_TYPE=LICENSE_01
Executed the Query.
Got the results only the matched records as per the selection field FLAG_TYPE.
But I want all the records from table AGR_TEXTS and matched records from table AGR_FLAGS.
I want the report (output) as below,
_AGR_NAME TEXT FLAG_VALUE_
ZCA_BASIC_ACCESS_GLOBAL Non-critical basic access for all users. 53
ZCA_BASIC_ENDUSER_ACCESS UK:CA Basic Enduser Access
ZCA_BASIC_ENDUSER_ACCESS_UK UK:CA Basic Enduser Access UK 52
ZCA_BASIC_ENDUSER_SU52_UK UK:CA Basic Enduser Access to change Parameter ID's
But I got the report (output) as below,
_AGR_NAME TEXT FLAG_VALUE_
ZCA_BASIC_ACCESS_GLOBAL Non-critical basic access for all users. 53
ZCA_BASIC_ENDUSER_ACCESS_UK UK:CA Basic Enduser Access UK 52
Apprecited your help. Thanks.
Code Formatted by: Alvaro Tejada Galindo on Dec 30, 2009 2:20 PMIdentify a KF for which there are non-zero values for all accounts in the cube.
Create the query with Account (from MP coming from both IO and cube) and this KF. KF will have 0 values for accounts not existing in the cube. Create a condition to show only the 0 value for the KF. This should show you all the accounts in the IO which are not in the cube. -
At line-selection in SAP Query ( Infoset ) code
Hi all ,
Here is one for you : can I put somehow the following code in a Sap Query ( at infoset level of course ) :
at line-selection.
set parameter id 'BUK' field XXX-bukrs.
set parameter id 'BLN' field XXX-belnr.
set parameter id 'GJR' field XXX-gjahr.
call transaction 'FB03' and skip first screen.
(In other words I would like to see the documents behind a line in the list)
Some explains : my query's output would be ABAP list , the bukrs, belnr, gjahr fields are on the lines of my resulting list, and my problem is with those XXX 's - I don't know where are stored the lines of my ABAP list.
I'm pretty new at ABAP so any idea and explains about the generated SAP Query code
is appreciated . I looked at the final code but seemed very complex for my level.
Please guide me in this area ( I know the basic things like writing pretty simple reports )
Thanks !
Best of all
ZoliHi,
You need to add extra piece of code as below:
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = gd_repid
i_callback_top_of_page = 'TOP-OF-PAGE'
I_callback_user_command = 'USER_COMMAND' "see FORM
is_layout = gd_layout
it_fieldcat = fieldcatalog[]
i_save = 'X'
tables
t_outtab = it_ekko
exceptions
program_error = 1
others = 2.
* FORM USER_COMMAND *
* --> R_UCOMM *
* --> RS_SELFIELD *
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
* Check function code
CASE r_ucomm.
WHEN '&IC1'.
* Check field clicked on within ALVgrid report
IF rs_selfield-fieldname = 'EBELN'.
* Read data table, using index of row user clicked on
READ TABLE it_ekko INTO wa_ekko INDEX rs_selfield-tabindex.
* Set parameter ID for transaction screen field
SET PARAMETER ID 'BES' FIELD wa_ekko-ebeln.
* Sxecute transaction ME23N, and skip initial data entry screen
CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
ENDIF.
ENDCASE.
ENDFORM.
"For further information please refer the link below :
http://www.sapdev.co.uk/reporting/alv/alvgrid_ucomm.htm
Thanks,
Sriram Ponna.
Maybe you are looking for
-
Hi Experts, I am facing issue with huge files while fetching from source, so please suggest me, what is a maximum file size range PI file adapter can poll from source ? Is ther any range and limitation ? . Regards Raja
-
Deluge: not showing anything BUT its transmitting!
Deluge all of a sudden just stopped showing my torrents and torrent data....I can tell its transmitting....but nothing in the gui.... here is some output File "/usr/lib/python2.6/site-packages/deluge/core/core.py", line 440, in get_filter_tree return
-
Flight List App - RFC_ERROR_SYSTEM_FAILURE
Hi all, I have the following message when clicking on the 'Search' button of the Flight List WD application : 'See RFC trace file or SAP system log for more details, error key: RFC_ERROR_SYSTEM_FAILURE'. The JCO destinations work fine (metadata and a
-
Why do I receive internal server error (#IS6532) when I Get Messages?
When I "Get Messages" in TB, I receive one of three messages: ● Sending of password for user [email protected] did not succeed. Mail server pop.mail.yahoo.com responded: internal server error (#IS6532) ● The mail server responded: From address not ve
-
i followed that directions of how to erase everything on the iphone 4 before selling it and i sold it before 7 days yesterday i connected my new i phone 5s to my laptop or itunes that i used to sync with it the i phone 4 today the friend i sold conta