Standard variant of SAP query is loaded automatically
Hi!
I have created SAP query and standard variant via SQ01.
When I run my query (via transaction) values of variant are loaded automatically in a selection screen and in my case I need empty selection screen at the beginning and values should appear in a selection screen only after choosing a variant, but not before this.
Probably it is something about attributes of variant? Any ideas?
<b><REMOVED BY MODERATOR></b>
Mindaugas.
Message was edited by:
Alvaro Tejada Galindo
Hi,
What type of custom transaction code did you create?
Was Dialog Transaction or Report Transaction?
For your purpose, you can create with dialog transaction with specifying program name and screen number. If you want to execute with specific variant then choose report transaction.
Regards,
Ferry Lianto
Similar Messages
-
Transport standard variant of SAP Query
Hey,
I made a SAP Query with SQO1. Within the attributes of the query, I defined a standard variant.
How can I transport this variant.
When I go to maintain variant, I can click to program RSTRANSP.
When I try to execute, I get the following message "Function not possible for local/private objects". In the help it says that I have to create a transport for my program.
But my query is in a transport. I already transported the query to QAS and it works fine.
Do I have to put the program also in a transport? The program is SAP generated code with the following name "AQZZZISU========CP_METERS=====". I haven't transported the program but it is available in QAS. So I think I don't need to transport it.
Does anyone how I can transport my variant?
Thanks
StevenI have attached the sap Query based on your idea. But I geting small probelm. Please help me on this.
The varient is created as Protected by default. I can't able to create the varient unprotected. Can you tell me how to create unprotected varient for SAP Query? becuase other user can't able to change the varient it is giving the error message with my user name as " No authorization to change the varient <varient name> Protected by <my user name>".
Please could you help me how to fix it. this issue? -
How i can keep my code after %dba standard table in sap query
hi expert,
how i can keep my code after %dba standard table in sap query..
add 1 to %count-VBRP.
%linr-VBRP = '01'.
extract %fg01.
%linr-VBRP = '02'.
extract %fg02.
%linr-VBRP = '04'.
extract %fg04.
%linr-VBRP = '05'.
extract %fg05.
%ext-VBRP05 = 'X'.
extract %fgwrVBRP05.
endselect.
i want keep my code after filling the standard table generated by sap abap query
Thanks & regards
Sajad AhmadHi,
the above code is excuted succesfully, but if i have
return "Navigation" ;
it is not working
any idea why?????????? -
Sap query and additional fields.
Hello guys.
ABAP it's not my strong skill, but i need to develop some report.
What i need:
input: material, SLED, plant
output: material, SLED, plant, values from characteristic field.
I have created sap query with additional field type c.
Below my code:
TYPES: BEGIN OF charast,
ATNAM(50) TYPE c,
ATWTB(8) TYPE n,
X(50) TYPE n,
C(50) TYPE n,
ATINN(50) TYPE n,
END OF charast.
DATA: char TYPE TABLE OF charast WITH HEADER LINE.
CALL FUNCTION 'VB_BATCH_GET_DETAIL'
EXPORTING
MATNR = MCH1-MATNR
CHARG = MCH1-CHARG
GET_CLASSIFICATION = 'X'
TABLES
CHAR_OF_BATCH = char.
LOOP AT char into TEST (This is an additional field type C.
ENDLOOP.
Questions:
1. How i can return internal table into standard abap type, because i can create additional field only with standart types.
2. Need i fetch exporting parameters before calling FM? Or sap query do it automatically, based on given values on selection screen of the report?
3. How i can return only needed field from FM output? Now, when i'm executing FM via SE37 it's show desired result, but when i'm getting it from code i see strange values.
4. If i don't know exactly return by an FM values, how i can fill structure dynamically?
5. How i can return result of a program not only to additional field but to layout?
Sorry for noob questions and thank you in advance guys!Well, seems like it work fine for me.
Below my crappy, but working code:
DATA: material TYPE MCHB-MATNR,
batch TYPE MCHB-CHARG,
plant TYPE MCHB-WERKS,
sloc TYPE MCHB-LGORT,
gtdt TYPE STANDARD TABLE OF clbatch,
gtdit TYPE clbatch.
SELECT MATNR INTO material FROM MCHB
WHERE MATNR = MCHB-MATNR.
ENDSELECT.
SELECT CHARG INTO batch FROM MCHB
WHERE CHARG = MCHB-CHARG.
ENDSELECT.
SELECT WERKS INTO plant FROM MCHB
WHERE WERKS = MCHB-WERKS.
ENDSELECT.
SELECT LGORT INTO sloc FROM MCHB
WHERE LGORT = MCHB-LGORT.
ENDSELECT.
CALL FUNCTION 'VB_BATCH_GET_DETAIL'
EXPORTING
MATNR = material
CHARG = batch
WERKS = plant
GET_CLASSIFICATION = 'X'
TABLES
CHAR_OF_BATCH = gtdt.
READ TABLE gtdt INTO gtdit
WITH KEY atnam = 'BATCH_SHELF_LIFE_EXPIRY_DATE'.
GTD = gtdit-ATWTB. -
How to set up standard variant in ABAP report
Hi,
I would like to create a standard variant for running ABAP report so that users don't have to select the variant each time.
I know we can specify the variant name as a standard variant on changing query by SQ01 but is there any way to give the function in ABAP report?
Does anybody know how to code or set up to do that?
Thank you very much in advance.
Best regards,
Miki
Edited by: Miki Komatsu on May 20, 2011 9:46 AMUse the RS_VARIANT_CONTENTS FM
CALL FUNCTION 'RS_VARIANT_CONTENTS'
EXPORTING
report = sy-repid
variant = 'PRUEBA' "Your Variant
* MOVE_OR_WRITE = 'W'
* NO_IMPORT = ' '
EXECUTE_DIRECT = 'X'
* IMPORTING
* SP =
tables
* L_PARAMS =
* L_PARAMS_NONV =
* L_SELOP =
* L_SELOP_NONV =
valutab = VALUE_TAB
* OBJECTS =
* FREE_SELECTIONS_DESC =
* FREE_SELECTIONS_VALUE =
EXCEPTIONS
VARIANT_NON_EXISTENT = 1
VARIANT_OBSOLETE = 2
OTHERS = 3 .
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
The variant Reports are in VARI Table -
Hi,
I'm looking for the best way to automate the results of an SAP query (Quickviewer) to Oracle. The query would run nightly. I searched all SND forums but did not find much. I also looked at the SAP application help for Quickviewer.
Regards,
JohnDavid,
Just an FYI the error message that you have found is not connected to your BLS transaction but rather the default IDoc listener trying to connect to something that doesn't exist. This listener will automatically start each time xMII starts, as a result you can set it up to connect to an RFC destination or delete the default configuration and it will go away.
Now onto your issue; How many Production Orders are being returned from the BAPI? How are you loading each of them into Oracle? How much memory is allocated to ServletExec vs. How much is available on the machine? By default xMII will limit all SQL/Tag queries to their <b>RowCount</b> with a max at 250k rows but this does not apply to the JCo call.
My suggestion here is to look for the other error message that pertains to your transaction which may reside in the ServletExec logs and not xMII, they can be found on your xMII machine here: http://localhost/servletexec/admin/login.jsp
Hope this helps.
Sam -
we have done a query in sq01.i have downloaded it from production to development.
now i am trying to execute the query , but it is sowing a dialog box to select the variant.
i am selecting variant as standard.after executing the query it is giivng message like variant does not exist. please tell me how to solve this.goto SQ01, select the query, Goto> Maintain variant as STANDARD and save.
-
Delete the variants of a query from SAP GUI
Hi all,
We have migrated queries from 3.5 to 7.0, and now we are migrating their variants also.
But while migrating variants we got a situation where some variants got copied but not activated in 7.0.
so now we want to delete those variants and migrate it again as they are not being over written.
so, my question is how can we delete variants for a query in one shot from SAP GUI.
plzz....help asap.Hi,
note : 1003481... makes the point that...
But the variant cannot be migrated when a variant with same technical name already exists in 'new' variant storage
would it be possible that the variant that you are trying to migrate shares a tech name with one already on the system?
to check variant tables for tech names used twice....
tx: se16
a)rsrvariant, (3x variants)
c)rsrparametrizat(bi 7 made variants)
variants that appear in rsrvariant (3x) will not migrate if the same
tech name appears already in rsrparametrizat (new storage area for bi7).
Delete the variant please refer the thread:
How to delete the Variants?.
Delete multiple variant
Thanks,
Venkat -
Class to run standard SAP Query
Hi,
Could you help me with finding standard SAP class to run query created in SQ01?
Thank youHi,
You can create the TCode for the Sap Query and use to run query.
refer the links to create tcode for sap query..
how to create a tcode for abap query
tcode for sap query -
Hi,
i want the details of automate sap query?
what is the use of this ?where it is using in query ?
regards,
goodyear...Hi dear,
I'm not sure if you are searching for this, but here there is all the info related to SAP query:
http://help.sap.com/saphelp_erp2004/helpdata/en/05/2b1df9209411d6b1d500508b6b8b11/content.htm
(do you want to periodically schedule it in background?)
http://help.sap.com/saphelp_erp2004/helpdata/en/d2/cb4070455611d189710000e8322d00/content.htm
Hope it helps!
Bye,
Roberto -
How to edit a standard SAP Query
I need to do authority check for satndard SAP Query....How to do it
If you put code similar the following in the Infoset ---> Extras -> Code -> Start of Selection it should work
CALL FUNCTION 'SD_ORGDATA_AUTHORITY_CHECK'
EXPORTING
I_VKORG = P_VKORG
* I_VTWEG =
* I_SPART =
I_ACTVT = '01'
EXCEPTIONS
NO_AUTHORITY = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
So, if the user does not have the proper authorization, it will exit the program. You will need to check with your Security administrator to verify what value to use for the Activity Code. -
Hi guys,
I need to modify the transaction ME80FN, which is a SAP Query. I want to make a clone of the SAP Query, if isn't possible to modify the program AQZZ/SAPQUERY/MEME80FN========. I haven't deal with SAP Queries before. Can anyone please tell me the steps to accomplish this?
Thanks,
RaulieHaven't worked with queries, but I think you should be able to make a copy on SQ01...anyway, querys are still ABAP programs, so you could the copy the code of AQZZ/SAPQUERY/MEME80FN======== paste it on a Z program and make the needed modifications...
Greetings,
Blag. -
Hello there,
I am looking for a way to generate program of sap query in one go. There are hundreds of sap queries are used in our system and programs are lost after system upgrade.
So I am wondering if there is a standard program to do it automatically.
Any input is welcome.
Regards,
Kazuya ImabayashiDear Mathias,
You have to do the step with the RFC Destination created. Did you select the load type as Initial Download? (Edited to contain the word Download)
Did you check out the following notes for SP07: 1263664, 1268773. Please make sure that you apply all the compulsory notes.
Also try restarting the server and trying the step again.
Also, just as a confirmation, are you doing it from the client you created or client 000. Are the general post installtion stms, initial profiles done?
Regards,
Veera
Edited by: Veeraraagavan R on Jan 9, 2009 9:05 PM -
SAP Query (SQ01) - create and save queryies
Hi Expert;
We wanted to implement SAP query reporting (SQ01) tool, and already developed custom HR infoset and user groups and transported to QAS. We experienced the problem that we can not directly "save" any queries in SQ01. We pretty much have the client opened up and set at "Changes without automatic recording". But keep getting a "transport object create" dialog upon "save" query. But in Adhoc (PQAH), we don't encounter same problem. We wanted our users be able to create and save any queries directly without creating any local objects. Is there another setting that needs to be set?
Thanks for any information that you can provide. Points will be awarded.
HelenHello Helen,
in SQ01 you can save queries like in HR Ad Hoc Query (or Infoset query as it is called outside HR).
However this is only possible in the "Standard Area" not in the "Global Area". However as Ad Hoc Query is based on the SQ0x basics it only hides this effect.
If you are doing HR specifics you should consider the documetnation on the special HR switches:
http://service.sap.com/~form/sapnet?_SHORTKEY=01200252310000076208&
In general if you are new to the topic you should consider the courses BC407 for Query Basics and HR580 for reporting in HR.
Also to get a feeling for the different types of reporting with the InfoSet Query you can look at the following documentation:
http://help.sap.com/saphelp_erp2005vp/helpdata/en/a8/2e7237a323427ee10000009b38f8cf/frameset.htm
HR Reporting Tools -> Sap Query -> InfoSet Query -> Calling InfoSet Query.
Or you can book a special training if you need a contact let me know your email adress
Best regards,
Michael -
How to transport SAP Query SQ01??
Hi All,
I am faced with a proble regarding the transportation of SAP query from the development system to the Production system.The following were the steps that I had taken:
Step 1. Run RSAQR3TR in 'old' system. Select EXPORT and specify the
objects to be transported.
(System includes these in an automatically created transport request)
Step 2. Release this transport and request it be transported to 'new'
system.
(This results in the entries being populated in transport table AQTDB
in 'new' system).
Step 3. Run RSAQR3TR in 'new' system. Select IMPORT and tick the
Overwrite checkbox. Specify the transport number in the field labelled
'dataset with imports'.
After I had done all these ,the changes were not reflecting in the test system.
Is there any steps missed ou in the transportation process or is there any other way of transporting the same???
Thanks and regards,
RupeshHi Rupesh
run the program one emore time with
specifying Copy Standard Area -> Global Area.
regards
kishore
Maybe you are looking for
-
Hi, I have a MacBook Pro 13" laptop with Mac OSX Version 10.6.8 Processor 2.26GHz Intel Core 2 Duo. Memory 2GB 1067 MHz DDR3. After looking at the recomended steps to take prior to downloading Lion I now discovered the App Store.app application will
-
How to attach files using an applet
hi, i want to know how can i use an applet to upload or attach files in my application help me
-
Scrollbar in PCUI from the right to the left side in the screen
Hi, does anybody know if it is possible to move the scroll bar in PC-UI from the right screen side to the left screen side ? Is it also psooible to move the page-navigation buttons from the right to the left screen side ? For the user navigation it w
-
Can I pair iPhone to iMac to utilise Bluetooth function?
Hi everyone, I currently own one of the first iMacs built in 2006 that were originally built for the education sector. This model doesn't have a Bluetooth card so obviously I can't use any wireless peripherals with it. But my question is whether I ca
-
Problems with WFAttributeAccessor
Hello, We are having problems when using WFAttributeAccesor class from a client that is trying to manage an activylist readed from a process engine (Integration Server EAI Edition 3.0.1): The sequence of actions are: 1.- GetActivityList 2.- For each