Query in dialoque programming
Hi friends,
I have 4 fields in the table with F4 values from internal tables.
My flow logic looks like:
PROCESS ON VALUE-REQUEST.
FIELD istock-field1 MODULE f4_field1.
FIELD istock-field2 MODULE f4_field2.
FIELD istock-field3 MODULE f4_field3.
FIELD istock-field4 MODULE f4_field4.
FIELD istock-field5 MODULE f4_field5.
Now the query is if at runtime if i did not get any values in internal table for
any one of the fields then user should able to input any value in the field.
Thanks & regards,
Praveen Lobo
Mobile: 9892612459
Hi Praveen,
If the Select query does not return anything, then show an information message 'No data found for help'. and set a flag.. like no_data = 'X'.
In the PBO of the screen, Check this flag and if the flag is 'X',
LOOP AT SCREEN.
IF screen-name = <your field name>.
screen-input = 0.
MODIFY screen.
ENDIF.
ENDLOOP.
CLEAR no_data.
Thanks and Best Regards,
Vikas Bittera.
Similar Messages
-
How to know , that an index is used in query in the program
Hi All
I have found a SELECT query within a program , which needs to be tuned. I need to justify client of my change. He wants to know how many indexes are there used in the select , as well as which indexes are partially used and how we can optimize use of indexes,
I did an trace analysis of program using ST05, however I am not getting to know which index is used in this trace analysis.
I need help on these points from you all.
Thanks in Advance
AmolHi
After clicking DDIC information
I am getting 3 buttons on the top, and below I am getting
Overview of View WB2_V_MKPF_MSEG2
Obj. name WB2_V_MKPF_MSEG2
SQL Object WB2_V_MKPF_MSEG2
Table Type VIEW
Buffering Buffering not allowed
Short Text Data Selection from Material Documents (without WBGT)
Classification Other
Other
Trading Execution Workbench
Author SAP
Last Changed By Not Found
NametabRec.Length 2436 Byte
Last DB Analysis 00/00/0000
No. of records 0
All Table Indexes of View WB2_V_MKPF_MSEG2
Name Description Created by Unique
Indexes of MKPF
0 Primary key SAP X
BUD Index for posting date SAP
Y Fiscal Year, Posting date and Doc. number AJOSHI
Indexes of MSEG
0 Primary key SAP X
M Material documents for material SAP
R Material docs for reservation SAP
S Reversal documents for mat. document SAP
However from above I am not getting which index is being used or not. OR which is used fully or partially .. like that,
I need to know these details
Thanks in Advance
Amol -
Query getting /crystal/ Program SYNTAX ERROR.
Hi All,
I connected to SAP BEX Query using MDX driver. when i execute query getting /crystal/ Program SYNTAX ERROR.
I imported these crystal transports R21900741,786,695,754,780 .
but got error for R71K900087 .
MY SAP BW system version is SAP BW701 SP10 , Please suggest.
Thanks,
JosephThanks Mohammed. But our application is trying to pass a parameter which contains user data like section numbers....
So when we pass the value 123.1(a) , here what is happening behind the scene of CR viewer
webSource0.AddParameter "promptex-NAMEOFPARAMETER", "123.1%28a%29"
and it throws up the error
"The syntax of the value for prompt 'NAMEOFPARAMETER' is incorrect. Please correct the syntax and try again"
I have no idea why it is throwing up this errror.... -
Hi,
I wanted to know how to find out which SAP query uses this program. AQ10MM==========Z6============
I tried with SQ01/02 but was unable to get it. Can you please help.
Regards,
Mukund SIn my installation , it is usually AQZZ"usergroup"========QUERYNAME======
You could see if you have a user group 'MM' or '10MM' in SQ03 and set the user group if available.. then in SQ01, see if you have a query called Z6
Also try out this function module RSAQ_DECODE_REPORT_NAME to see if it would give you the user group and query name... -
SAP Query: Transport tool(program: RSAQR3TR)
Does the SAP Query: Transport tool(program: RSAQR3TR) transport addtional fields and code in Extras of an InfoSet from one system to another?
TKS in advance.Hello,
Yes the ABAP query transports the whole Infoset.
Goto Transaction SQ02
Goto Environment -> Query areas -> Select teh Standard area.
Select Environment -> Transports -> Import radio Button
Check the Overwriting allowedand teh remove the check for Test Run
Select the Transport Infosets and queries radiobutton
Fill in the Infoset and teh Query with the corresponding names and the Import option with Transport Request Number
Execute
Regards -
Get query name by program name
Hi experts,
Someone built a query A, and generated it to program B.
Now I need update query A, but I only know program B. How to get the query name by program name?
Many thanks.Check the page 14 in [this document>>|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40bec8da-4cd8-2910-27a9-81f5ce10676c?quicklink=index&overridelayout=true]
-
Hi Experts,
Could you tell the difference in creating report in Query and Z Program....
Thanks in Advance
Regards
Vijai JainHi Vijai,
The main difference with the select queries.
in the Query the all the select querys will be internally generateda as the SELECT.......ENDSELECT....
which is most performce issue.
but in the Z-Programs we usually write the selct queries as SELECT......
hope this small info will helps you.
Thanks -
Converting SAP Query to Report Program
Hello Experts,
I'm stuck up with an issue.
I want to convert SAP query into a report program as the things which I need to implement is not possible with SAP Query anymore.
So I need to convert SAP query to Report program.
I'm very much aware about the SQ01--> Query --> More functions --> Display Report Program
But this Report Program generates is AQ..................... but if you see the code there will be buch of dynamic calls not as clear as ABAP code and not much flexibility to modify...
Please Provide a solution to this.
Regards,
TitikshaHi Bhange,
Glen Anthony has said very well and I support him. Even I suggest you to ignor the report generated with Query and develop a new report with the required business logic.
Regards,
Vijay -
How to call SAP query in a program
Hi experts
I have created a query in SQVI its gives a result. Now i want this query to be used in my program. Is there any FM which gets the quary name and populates the result in iternal table. So that i can use that result.
I know without query you can write using the tables you can fetch the records but i just want to explore a new way to do things. If any body done such type let me know and also give some sample code or process how to achieve it.
Regards
VijayHi Siva
My final option is that only. That you can do any how. But my intension is to learn something new way. How to do copy the query and where to inject the code is there any example in wiki or artical for that. I want to something new. Old way of creating a report program is possible i want to do this way. If some body could help me out.
@ karthik
I have generated the SAP query and i got the program but when i view the code i dont find any select statment or where storing my input data. How to identity that i did in debug mode but am not sure where it pulls the data and where it put in internal table. Can you throw some light with example code or an article.
Regards
Vijay -
RRi for query using ABAP program
For a report, we are using RRI (jump to target) functionality to see invoices in R/3 system using an ABAP program. I do not have much idea on R/3 systems how invoices are setup in R/3 Dev, test and prod. The ABAP report is done by a backend person. I need to place that in RSBBS. Here, my doubt is that do we need to follow the same procedure for this to move it to production system i.e, first create that RRI and ABAP in respective dev systems and transport both to test and then to Prod? Could anyone please explain me the steps on how this will work in real-time?
Points will be assigned.
ThanksHi,
I am not able to find how the two reports are conncted.
You can check in RSBBS t-code. RRI will be defined here to jump from One Query yo another and many more options.
My work is to copy the parent query a nd do some modification to it. Please let me know how to check and achieve that.
You can do this BEx Query Designer itself.
Regards,
Suman -
How to execute this SQL Query in ABAP Program.
Hi,
I have a string which is the SQL Query.
How to execute this sql Query (SQL_STR) in ABAP Program.
Code:-
DATA: SQL_STR type string.
SQL_STR = 'select * from spfli.'.
Thanks in Advance,
VinayHi Vinay
Here is a sample to dynamically generate a subroutine-pool having your SQL and calling it.
REPORT dynamic_sql_example .
DATA: BEGIN OF gt_itab OCCURS 1 ,
line(80) TYPE c ,
END OF gt_itab .
DATA gt_restab TYPE .... .
DATA gv_name(30) TYPE c .
DATA gv_err(120) TYPE c .
START-OF-SELECTION .
gt_itab-line = 'REPORT generated_sql .' .
APPEND gt_itab .
gt_itab-line = 'FORM exec_sql CHANGING et_table . ' .
APPEND gt_itab .
gt_itab-line = SQL_STR .
APPEND gt_itab .
gt_itab-line = 'ENDFORM.' .
APPEND gt_itab .
GENERATE SUBROUTINE POOL gt_itab NAME gv_name MESSAGE gv_err .
PERFORM exec_sql IN PROGRAM (gv_name) CHANGING gt_restab
IF FOUND .
WRITE:/ gv_err .
LOOP AT gt_result .
WRITE:/ .... .
ENDLOOP .
*--Serdar -
Declarations in SAP QUERY generated ABAP Programs
hi,
i had created a ABAP Program through ABAP Query (SQ01,SQ02,SQ03) but i have a issue that when i transport it to the PRD server i got the run time error. The Z program which i had created is the copy of the SQ01 generated program and i had done all the includes declarations in this program. but there is a problem that it is consist of the declarations of the structures,quries .
I want to know is it necessary to always transport the Infoset and user group and the structure which is present in the program generated .
Please provide me guidelines for this problem .
Edited by: ricx .s on Jul 6, 2009 5:31 AM
Edited by: ricx .s on Jul 6, 2009 8:07 AMhi,
i had copied the program bcoz i want to chekc that it is really necessary to transport the user group and infoset so that it can achieve functionality similar to the SAP QUERY.
is there any other way without whichi can ahieve the functionality of SAP QUERY generated program and take it into the ABAP Porgram? -
Hi gurus,
i am using a RSCRM_BAPI_REMOTE program to get the output of my query...
will this program has the limitation of 65000 records output only like we have in our bex explorer..(MS EXCEL)
if yes how to handle this situation.
thanks n regards
neelhi Neel,
i think no, for rscrm limitation try check oss note 841635- RSCRM - overcome the 1'000'000 cell limit
.. ODBO has the limit that it can only return 1'000'000 key figure values ...
hope this helps.
Symptom
RSCRM makes use of BWs ODBO interface. ODBO has the limit that it can only return 1'000'000 key figure values even it supports more internally. For instance with one structure which is on the columns this number is the number of active key figures times the number of return rows.
The error might occur in all application which uses the RSCRM interface to execute queries like TA RSCRM_BAPI, CRM Segment Builder, TA KELR or the Analyseprozess Designer.
In general ODBO was not made for mass data. If a query execution dumps because of memory exhaust this note won't help! In this case the query needs to get split up into smaller queries or the packaging functionality should be used which does this automatically. But packaging is not always available.
Other terms
RSCRM; RSCRM_BAPI; APD; RSANWB; Analyseprozess Designer; Analysis Process Designer
Reason and Prerequisites
Restrictions of ODBO
Solution
This solution requires manual steps. As it is a little bit complex you should better import the according support package.
The correction does three things. Mainly a new function RSCRMBW_GET_CELL_DATA_BAPI is introduced. As this function uses a parameter with a new type this type RSCRM_BAPI6111CD_LARGE_T is also introduced in type pool RSCRM. At last this functions needs to get called that's why method CL_RSCRMBW_BAPI->GET_CELL_DATA_V2 is modified.
Unfortunately this correction cannot be automatically implemented. The functions must be created manually. Therefore you need to implement the new type first.
1st) Download this note and try to apply it to your system. Only the type pool RSCRM and the method GET_CELL_DATA_V2 will work. Activate only the type pool in transaction SE80.
2nd) Create the function RSCRMBW_GET_CELL_DATA_BAPI in function group RSCRMBW_TOOLS. (You could also create a function module in a customer function group. It does not depend on anything. But then you will need to modify its call within method GET_CELL_DATA_V2.)
The interface should look as follows:
IMPORT:
I_DATASETID LIKE BAPI6111GEN-OBJ_HANDLE
I_START_CELL TYPE INT4
I_END_CELL TYPE INT4
I_NO_TEXTS TYPE C 'X' (pass value, optional)
TABLES:
E_T_CELL_BAPI TYPE RSCRM_BAPI6111CD_LARGE_T
E_T_RETURN LIKE BAPIRET2 (optional)
Afterwards fill the function module with the coding of the correction instruction or from the attached file via copy n paste. Applying the instruction within SCWB won't work unfortunately.
Now you should be able to activate the function module and the method. -
i am a functional developer and i am just trying to get the fields in structure FAGL_S_RFSSLD00_LIST to use in this query. Is it possible.
If yes what is the way to do it.
I have the program generated like this when i created the infoset
REPORT RSAQDVP_TEMPLATE .
declarations
(insert your declarations in this section)
data:
FAGL_S_RFSSLD00_LIST type FAGL_S_RFSSLD00_LIST ,
it_data type standard table of FAGL_S_RFSSLD00_LIST .
field-symbols: <struc> type FAGL_S_RFSSLD00_LIST .
selection screen statements
(define your selection-screen here)
!! the following comment MUST NOT BE CHANGED !!
*<QUERY_HEAD>
read data into IT_DATA
(select your data here into internal table IT_DATA)
output of the data
(this section can be left unchanged)
loop at it_data assigning <struc>.
move-corresponding <struc> to FAGL_S_RFSSLD00_LIST .
!! the following comment MUST NOT BE CHANGED !!
*<QUERY_BODY>
I just need to know what i should fill in the query head and body if I need all the fields in the structure to be selected for the QueryHello Krishna,
The structure FAGL_S_RFSSLD00_LIST should be available in data dictionary (SE11).
REPORT RSAQDVP_TEMPLATE .
declarations
(insert your declarations in this section)
TABLES: FAGL_S_RFSSLD00_LIST "<----
inserted.
DATA: it_data type standard table of FAGL_S_RFSSLD00_LIST .
field-symbols: <struc> type FAGL_S_RFSSLD00_LIST .
selection screen statements
(define your selection-screen here)
!! the following comment MUST NOT BE CHANGED !!
*<QUERY_HEAD>
read data into IT_DATA
(select your data here into internal table IT_DATA)
example:
SELECT <your list of fields>
FROM <your table name>
INTO TABLE IT_DATA
WHERE <Your filter criteria based on selection screen>.
output of the data
(this section can be left unchanged)
loop at it_data assigning <struc>.
move-corresponding <struc> to FAGL_S_RFSSLD00_LIST .
!! the following comment MUST NOT BE CHANGED !!
*<QUERY_BODY>
ENDLOOP. "<----
inserted
In SQ02 create the info sets with 'program' options. provide the program name and the
Structure name FAGL_S_RFSSLD00_LIST also in SQ02.
generate the infosets and in SQ01 create the query with the fields you want to display in the list .
Message was edited by:
Amarjit Singh -
BEX Query error at Program SAPLRSDU_UTIL_DB2 - 'Table Does not Exist'
Hello all,
My BEX Query was running fine till yesterday in QAS system, but today when i try to execute either in RSRT/Analyzer i am seing this error:
Runtime Errors RAISE_EXCEPTION
Date and Time 10/26/2011 14:03:44
What happened?
The current ABAP/4 program encountered an unexpected
situation.
Error analysis
A RAISE statement in the program "SAPLRSDU_UTIL_DB2" raised the exception
condition "TABLE_DOES_NOT_EXIST".
Since the exception was not intercepted by a superior
program, processing was terminated.
Short description of exception condition:
For detailed documentation of the exception condition, use
Transaction SE37 (Function Library). You can take the called
function module from the display of active calls.
Trigger Location of Runtime Error
Program SAPLRSDU_UTIL_DB2
Include LRSDU_UTIL_DB2U35
Row 41
Module type (FUNCTION)
Module Name RSDU_GET_PARTITIONING_TYPE_DB2
Any suggestion?
I would really appreciate you help!
Thanks,
DCThanks you all for your response!.
Checked the Info providers, Tranformations - All are active.
Couple of reports which are based out of same MultiProvider are giving the same issue.
I could figure out where the problem is!
There is a RKF (in all the error giving queries) and 'GL Account' has been restricted with a Heirarchy 'ZZ21430 in it - but this restricted hierarcy is missing in 'RSH1'.
Dev system - 'ZZ21430' doesnt exist in RSH1 and query doesnt give any error, is running fine.
QAS system - 'ZZ21430' doesnt exist RSH1 and query is giving error!
What could be the reason for this?
I would appreciate your help!
Thanks,
DC
Maybe you are looking for
-
I responded to the invitation to update to the latest version of iCal but part way through the update my screen background was changed to a version from 2009 and the sync ran for over two hours but failed to produce any data in my mobileme version of
-
A landscape file opens in landscape on one machine, portrait on another
My wife made some invoices using Pages 09 on her iMac in landscape mode. Now, when she opens the file, it loads in portrait mode (screwed up, obviously). However, if I grab that file and open on my MBPro running Pages 09, the file opens and prints ju
-
Dear All, We have SAP on Oracle 9i. There is also a DRServer on our remote site. I that i have restore whole database offline backup from my production server. Now i want to know that .. 1. where i can find the latest log of restore. 2. In that DR se
-
Paying for calls to my skype to go numbers
WHY IS NO ONE REPLYING TO THESE **bleep**IN TEXES I HAVE A PROBLEM WITH MY SKYPE TO GO NUMBERS ON MY MOBILE AS IT TAKING MY MINUTES FROM MY VODAPHONE PLAN AND THIS MONTH THEY HAVE CHARGED ME $25 DOLLARS I HAVE A $20 CREDIT WITH SKYPE SOME ONE PLEA
-
Document numbering - how to make this alphanumeric
Hi All, I'm sure this is an incredibly rookie question; how do I set document numbers to be alphamumeric? I tried this under document settings but was recieving an error message so, if you could lay it out in step by step instructions, that would be