Transport of sap queries report with variants
We created an ABAP Query report (it is system generated report). We created Z transactions to which we attached generated report. We added Z transaction, User group & infoset in transport & transported same to quality system.
For some transactions report is transported for some it is not. why so?
Also we created variants for these transactions & mentioned same while creating transaction. These variants are also not transported. I checked that these programs are generated by system as local obj. & when i tried to add variants in transport request using program RSTRANSP system gave me message that cant add variants for local objects.
Can you please let us know how can we transport Transactions created by ABAP query report with variants?
Hi
To use the variants in the other systems, you have to create System Variants. While creating a variant provide the name of the variant starting with CUS& and include the same in request number.
For transporting the Query, User group and Info set use the Query Transport tool program - RSAQR3TR
~~~Ganesh Kumar K.
Similar Messages
-
Connecting SAP Crystal Report with EHP6 FOR SAP ERP 6.0
Hello Everyone!
I have downloaded SAP Crystal Report demo 30 days and we have an IDES for "EHP6 FOR SAP ERP 6.0", how can I make some reports and train myself with crystal report?
I don't understand how to make the connection to our SAP DB, can you help me?
Thank you!
DenisOk solved.
- I assure where is the saplogon.ini (in my case: %appdata%\SAP\Common\saplogon.ini)
- I open the saplogon.ini with notepad and set the UTF format and than save it replacing the original one if it was not in UTF format
- I go to : control panel>system>advanced>environment variables>system variables and I create a new one with name "SAPLOGON_INI_FILE" and path "C:\Users\....\AppData\Roaming\SAP\Common\saplogon.ini";
- Open SAP Crystal Reports 2013 (in my case) > VIEW > Preferred Viewing Locale > (here I set the language of the SAP System I am going to log on with crystal report, in my case was in english so I set English)
- (within SAP Crystal Reports 2013) > FILE > Log On or Off Server... > Create New Connection > SAP Table, Cluster, or Function > (now it shows me all the different SAP Systems that are also in the SAP GUI Logon, choose one, set the client-username-password and then finish)
Thank you,
Closed. -
Reports with varying number of variables
Hi all
I am new to the Forum. I have already searched the db for answers to my question but was unsucessful so far.
I want to create a report in html which I open in Excel for my colleagues to edit. One report contains a varying number of variables, such as years. I want to be able to order the records by the years in different blocks, i.e. blocks of projects which are carried out in 2006, 2007, etc. Is there a way of generating such a report with a dynamic number of years without using pl/sql?
Thanks for any help!
Cheers.do you mean you want to use plain sql and sqlplus?
you can maybe try something like
set feedb off head off
break on year skip 1
col year nopri
select ename, hiredate, extract(year from hiredate) year from emp order by year;
SMITH 17.12.80
WARD 22.02.81
JONES 02.04.81
MARTIN 28.09.81
BLAKE 01.05.81
ALLEN 20.02.81
CLARK 09.06.81
FORD 03.12.81
JAMES 03.12.81
KING 17.11.81
TURNER 08.09.81
MILLER 23.01.82
ADAMS 23.05.87
SCOTT 19.04.87 -
Connecting SAP standard report with Crystal report
Hi all,
I've a SAP standard report S_ALR_87012284 using which I need to develop a dashboard using Xcelsius but before that I need
to build that report in Crystal reports.
Now is there any way to connect directly to SAP standard report from Crystal report ??
Thanks
JohnHi John
I am not sure about the link to a standard Report. I don't think it is possible, As far as I can work out the closest you will get to what you want in CR2008 is a link to Data Clusters, Data Dictionary and Function Modules CR. Perhaps someone with more experience than me can offer more insight though.
If your goal is to utilize CR2008 just for the ability to link to Xcelcius you should check out the following site, as it may help you approach your goal differently. This shows a great method for linking directly from Xcelcius to SAP.
http://enterprisegeeks.com/blog/2009/02/18/abap-freak-show-february-18-2009/
regards
Phillip -
Hi all,
I want to develop a query based report that takes in a parameter and runs different queries based on the value of the parameter. How can I accomplish this?
-VatsaHi Ron,
I selected PL/SQL block returning query and put the following in the source, but I am getting an error saying the SQL cannot be parsed..
declare
v_sql varchar(4000):= NULL;
BEGIN
IF upper(:P_STATUS) = 'UNRESOLVED' THEN
v_sql:= 'SELECT Identifier, Engineer_id, SEVERITY, COMMENTS FROM DEFECTS WHERE PROJECT ='|| :P_PROJECT||' AND RELEASE = '||
:P_RELEASE ||' AND RECORD_TYPE = ''PTR'' AND FEATURE = '|| :P_FEATURE ||' AND status in (''A'', ''O'', ''N'', ''U'', ''L'');';
return v_sql;
ELSIF upper(:P_STATUS) = 'RESOLVED' THEN
v_sql:= 'SELECT Identifier, Engineer_id, SEVERITY, COMMENTS FROM DEFECTS WHERE PROJECT ='|| :P_PROJECT||' AND RELEASE = '||
:P_RELEASE ||' AND RECORD_TYPE = ''PTR'' AND FEATURE = '|| :P_FEATURE ||' AND status in (''W'', ''T'', ''I'', ''V'');' ;
RETURN v_sql ;
ELSIF upper(:P_STATUS) = 'CLOSED' THEN
v_sql:= 'SELECT Identifier, Engineer_id, SEVERITY, COMMENTS FROM DEFECTS WHERE PROJECT ='|| :P_PROJECT||' AND RELEASE = '||
:P_RELEASE ||' AND RECORD_TYPE = ''PTR'' AND FEATURE = '|| :P_FEATURE ||' AND status in (''C'');' ;
RETURN v_sql ;
END IF;
EXCEPTION
WHEN others THEN
return 'Nothing' ;
END; -
Shortcut for transaction/report with variant?
Hi!
Is there a possibility to create a shortcut for a report/variant and a specific variant for that transaction?
I do not know, how to implement the variant into a shortcut.
E.g. I want to use the shortcut to call up the transaction CNS47 with the variant ORDERS.
Thanks,
Stefanhi,
afaik, it is not possible to assign multiple variant in a tcode using SE93, cmiiw.
but an idea is copying original CNS47 into ZTcode (customize) : ZCNS47a, ZCNS47b, ZCNS47c and so on, and then assign each (different) variant to ZCNS47a, ZCNS47b, ZCNSc and so on.
not a great idea, but may resolve your issue.
rgds,
alfonsus guritno -
Alv report with varying number of columns
hi all,
I am new to abap. I am writing this to get a brief idea of what i wanted to do in system.
I have to do a report using alv. The format of the report looks like this.
acc no acc. name amt_sum_april amt_sum_may amt_sum_june. ............. total_months
the colum amt_sum_ depends on user input period(month interval).
if the user selects 4 to 6 = 3 columns ,if the user selects 4 to 10 = 7 columns
so on.......
Anyone have idea how to do it, because in the
initial structure or itab, the number of columns depends on the user input.. i am stucking here ...
pls help.
thanks and regards
joseHi friend,
It's very complicated to do that, I'm sure there's a way to do it but I really don't know it. Once I had a similar requirement and I did something else that solved my problem without making a fussy complicated code. I added a colum MONTH or PERIOD (depending on your requirement) and then I make a subtotal by that column. So you need:
acc no acc. name amt_sum_april amt_sum_may amt_sum_june. ............. total_months
Now you would have:
acc no acc. name month amount
In the SORT table, in the sorting condition by MONTH you specify SUBTOTAL = 'X'. So the output will be:
acc no acc. name month amount
123123 John 2 100.00
123124 Paul 2 200.00
Month 2 300.00
123123 John 3 300.00
123124 Paul 3 400.00
123125 Jane 3 100.00
Month 3 800.00
123123 John 4 123.54
Month 4 123.54
Total 1223.54
You can change the subtotal text for a more adequate one (if you want). Also if you only need the subtotals you can specify in the layout that only those lines are to be output.
I hope I've helped, I you have any question let me know!
Regards,
Pablo -
SAP - B1 Reporting with PLD Currency
Dear experts,
I´d like to avoid the currency in the fields. E.g. colsum(F_128) is always "123.1200 EUR".
I want it so: "123.1200"
Thanks in advance.
bye
VolkerDear Volker,
To get rid of the currency in PLD, you can add a formula as follows:
In your example, instead of ColSum("F_128"), use Amount(ColSum("F_128")). This will show only the amount part of the value.
I hope this helps.
Regards,
Nat -
Execute report RMMVRZ00 with variants
Hi Experts,
Could someone explain how to execute report RMMVRZ00 with variants.
Report RMMVRZ00 is similar to transaction MM60.
I am checking how to execute this report with variants.
Thank youThe following link would help in creating variants
[Creating Report Variants|http://help.sap.com/saphelp_45b/helpdata/en/73/69ee7d55bb11d189680000e829fbbd/content.htm]
If you have any specific requirement with variant, please post again -
How to generate report with dynamic variable number of columns?
How to generate report with dynamic variable number of columns?
I need to generate a report with varying column names (state names) as follows:
SELECT AK, AL, AR,... FROM States ;
I get these column names from the result of another query.
In order to clarify my question, Please consider following table:
CREATE TABLE TIME_PERIODS (
PERIOD VARCHAR2 (50) PRIMARY KEY
CREATE TABLE STATE_INCOME (
NAME VARCHAR2 (2),
PERIOD VARCHAR2 (50) REFERENCES TIME_PERIODS (PERIOD) ,
INCOME NUMBER (12, 2)
I like to generate a report as follows:
AK CA DE FL ...
PERIOD1 1222.23 2423.20 232.33 345.21
PERIOD2
PERIOD3
Total 433242.23 56744.34 8872.21 2324.23 ...
The TIME_PERIODS.Period and State.Name could change dynamically.
So I can't specify the state name in Select query like
SELECT AK, AL, AR,... FROM
What is the best way to generate this report?SQL> -- test tables and test data:
SQL> CREATE TABLE states
2 (state VARCHAR2 (2))
3 /
Table created.
SQL> INSERT INTO states
2 VALUES ('AK')
3 /
1 row created.
SQL> INSERT INTO states
2 VALUES ('AL')
3 /
1 row created.
SQL> INSERT INTO states
2 VALUES ('AR')
3 /
1 row created.
SQL> INSERT INTO states
2 VALUES ('CA')
3 /
1 row created.
SQL> INSERT INTO states
2 VALUES ('DE')
3 /
1 row created.
SQL> INSERT INTO states
2 VALUES ('FL')
3 /
1 row created.
SQL> CREATE TABLE TIME_PERIODS
2 (PERIOD VARCHAR2 (50) PRIMARY KEY)
3 /
Table created.
SQL> INSERT INTO time_periods
2 VALUES ('PERIOD1')
3 /
1 row created.
SQL> INSERT INTO time_periods
2 VALUES ('PERIOD2')
3 /
1 row created.
SQL> INSERT INTO time_periods
2 VALUES ('PERIOD3')
3 /
1 row created.
SQL> INSERT INTO time_periods
2 VALUES ('PERIOD4')
3 /
1 row created.
SQL> CREATE TABLE STATE_INCOME
2 (NAME VARCHAR2 (2),
3 PERIOD VARCHAR2 (50) REFERENCES TIME_PERIODS (PERIOD),
4 INCOME NUMBER (12, 2))
5 /
Table created.
SQL> INSERT INTO state_income
2 VALUES ('AK', 'PERIOD1', 1222.23)
3 /
1 row created.
SQL> INSERT INTO state_income
2 VALUES ('CA', 'PERIOD1', 2423.20)
3 /
1 row created.
SQL> INSERT INTO state_income
2 VALUES ('DE', 'PERIOD1', 232.33)
3 /
1 row created.
SQL> INSERT INTO state_income
2 VALUES ('FL', 'PERIOD1', 345.21)
3 /
1 row created.
SQL> -- the basic query:
SQL> SELECT SUBSTR (time_periods.period, 1, 10) period,
2 SUM (DECODE (name, 'AK', income)) "AK",
3 SUM (DECODE (name, 'CA', income)) "CA",
4 SUM (DECODE (name, 'DE', income)) "DE",
5 SUM (DECODE (name, 'FL', income)) "FL"
6 FROM state_income, time_periods
7 WHERE time_periods.period = state_income.period (+)
8 AND time_periods.period IN ('PERIOD1','PERIOD2','PERIOD3')
9 GROUP BY ROLLUP (time_periods.period)
10 /
PERIOD AK CA DE FL
PERIOD1 1222.23 2423.2 232.33 345.21
PERIOD2
PERIOD3
1222.23 2423.2 232.33 345.21
SQL> -- package that dynamically executes the query
SQL> -- given variable numbers and values
SQL> -- of states and periods:
SQL> CREATE OR REPLACE PACKAGE package_name
2 AS
3 TYPE cursor_type IS REF CURSOR;
4 PROCEDURE procedure_name
5 (p_periods IN VARCHAR2,
6 p_states IN VARCHAR2,
7 cursor_name IN OUT cursor_type);
8 END package_name;
9 /
Package created.
SQL> CREATE OR REPLACE PACKAGE BODY package_name
2 AS
3 PROCEDURE procedure_name
4 (p_periods IN VARCHAR2,
5 p_states IN VARCHAR2,
6 cursor_name IN OUT cursor_type)
7 IS
8 v_periods VARCHAR2 (1000);
9 v_sql VARCHAR2 (4000);
10 v_states VARCHAR2 (1000) := p_states;
11 BEGIN
12 v_periods := REPLACE (p_periods, ',', ''',''');
13 v_sql := 'SELECT SUBSTR(time_periods.period,1,10) period';
14 WHILE LENGTH (v_states) > 1
15 LOOP
16 v_sql := v_sql
17 || ',SUM(DECODE(name,'''
18 || SUBSTR (v_states,1,2) || ''',income)) "' || SUBSTR (v_states,1,2)
19 || '"';
20 v_states := LTRIM (SUBSTR (v_states, 3), ',');
21 END LOOP;
22 v_sql := v_sql
23 || 'FROM state_income, time_periods
24 WHERE time_periods.period = state_income.period (+)
25 AND time_periods.period IN (''' || v_periods || ''')
26 GROUP BY ROLLUP (time_periods.period)';
27 OPEN cursor_name FOR v_sql;
28 END procedure_name;
29 END package_name;
30 /
Package body created.
SQL> -- sample executions from SQL:
SQL> VARIABLE g_ref REFCURSOR
SQL> EXEC package_name.procedure_name ('PERIOD1,PERIOD2,PERIOD3','AK,CA,DE,FL', :g_ref)
PL/SQL procedure successfully completed.
SQL> PRINT g_ref
PERIOD AK CA DE FL
PERIOD1 1222.23 2423.2 232.33 345.21
PERIOD2
PERIOD3
1222.23 2423.2 232.33 345.21
SQL> EXEC package_name.procedure_name ('PERIOD1,PERIOD2','AK,AL,AR', :g_ref)
PL/SQL procedure successfully completed.
SQL> PRINT g_ref
PERIOD AK AL AR
PERIOD1 1222.23
PERIOD2
1222.23
SQL> -- sample execution from PL/SQL block
SQL> -- using parameters derived from processing
SQL> -- cursors containing results of other queries:
SQL> DECLARE
2 CURSOR c_period
3 IS
4 SELECT period
5 FROM time_periods;
6 v_periods VARCHAR2 (1000);
7 v_delimiter VARCHAR2 (1) := NULL;
8 CURSOR c_states
9 IS
10 SELECT state
11 FROM states;
12 v_states VARCHAR2 (1000);
13 BEGIN
14 FOR r_period IN c_period
15 LOOP
16 v_periods := v_periods || v_delimiter || r_period.period;
17 v_delimiter := ',';
18 END LOOP;
19 v_delimiter := NULL;
20 FOR r_states IN c_states
21 LOOP
22 v_states := v_states || v_delimiter || r_states.state;
23 v_delimiter := ',';
24 END LOOP;
25 package_name.procedure_name (v_periods, v_states, :g_ref);
26 END;
27 /
PL/SQL procedure successfully completed.
SQL> PRINT g_ref
PERIOD AK AL AR CA DE FL
PERIOD1 1222.23 2423.2 232.33 345.21
PERIOD2
PERIOD3
PERIOD4
1222.23 2423.2 232.33 345.21 -
While Creating Trasnsaction not taking variant in 'Start With Variant'
I am trying to create a transaction for report with variant created through se38 (while creating report). but when I give variant name in 'Start with Variant '.
and try to save it, it gives message 'No System Variant chosen for nonlocal objects'.
How can I create transaction with variantHI
I have created a Tcode in SE93 as u sain using the varints.
in clint 300
1.in se93 main screen ihanve enter ZXX_TEST name then pressed create button.
2. then next screen i have selected the 2nd radiobutton(program and selection screen).
3.In Program filed I hve given program name.
4. in START with variant I have given variant name AA.. this is existed in Clint 320, but not existed in Clint 300).
5. if i run this in clint 300 it gives me error because variant AA is not existed in the Clien 300.
6. If i run this in Client 320.. then it is runnig with variant AA.
The variant u r using is not existed...
Check the Vairint is existed or not.. where u r running this.
Please Close this thread.. when u r problem is solved
Reward if Helpful
Regards
Naresh Reddy K -
Call program using submit with variant that changing value
Hi All,
I need to call a report with variant and abstract the data back to my current program.
so far,
i use following method
SUBMIT RFITEMAR USING SELECTION-SET 'XXX'
EXPORTING LIST TO MEMORY
AND RETURN.
DATA list_tab TYPE TABLE OF abaplist.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = list_tab
EXCEPTIONS
not_found = 1
OTHERS = 2.
DATA: L_ABAPLIST LIKE ABAPLIST OCCURS 0.
DATA: BEGIN OF L_ASCITAB OCCURS 0,
LINE(2048),
END OF L_ASCITAB.
CALL FUNCTION 'LIST_TO_ASCI'
EXPORTING
LIST_INDEX = -1
TABLES
LISTASCI = L_ASCITAB
LISTOBJECT = list_tab
EXCEPTIONS
EMPTY_LIST = 1
LIST_INDEX_INVALID = 2
OTHERS = 3.
However, the problem is that i need to get some value from variant 'XXX' and keep changing it.
I have try function module "RS_VARIANT_VALUES_TECH_DATA" to get the variant details.
But, it just doesn't get me back all the details of the variants.
Are there any way i could read the variants in detail? i even try to read LRAW data from table vari. but there are no function module to convert the LRAW to either char or STRING.
Thanks.
Edited by: simplekx on Jun 20, 2011 4:43 PMYou can use the FM "RS_CHANGE_CREATED_VARIANT" to change the variant values for already created variant and the FM "RS_VARIANT_CONTENTS" to get the variant values. Instead of changing the variant values and then passing to the Submit, you can directly pass the values to the Submit through..WITH SELECTION-TABLE seltab or ... WITH p IN sel variant of the Submit.
-
Using MSS Reporting Workset with SAP Queries
Hi,
we have created a number of SAP Queries and added them to the reporting tree shown in the MSS Reporting Workset.
We have created these queries to "Execute only with variant" and created the variant STANDARD for them to be run with.
If we then subsequently run the reports from the portal the variant is ignored. Does anyone know if this is the way it's supposed to work? and if there's a way to get the reporting workset to look at variants?
Many Thanks,
PaulWhich I agree with. I think it provides limited formatting feature. But in cases where you need ad-hoc report which needs minimal formatting. This is a good way.
Coming to Cross-tabs I noticed the difference here that. In OLAP Grid I got the hierarchy in a cross tab with expand and collapse feature.I am not able to do that in cross-tab. This is a kind of limitation for me as my requirements need that kind of a layout wherein you have a hierarchy in a cross-tab like layout. Is there a way that I can achieve that in cross-tab report using MDX.
Regards
Varun -
Allow direct file extraction from SAP queries and YTRAN report
To feed transportation planning macro, we use 2 SAP queries under user group
YUGKO0001SIG,YQRYLO00002SIG,YQRYSD055SIG
--User created variants for each query to extract with file store option to automatically transfer the extract file to the network.
--User would like to set up a batch job via SM36 to extract the files and make them available in back ground, which is not possible in todays process
--Also user need similar functionality for YTRAN report, being able to run it in background and generate a file on the net workHi
u cannot get file in presentation server.. in background..
if you are scheduling any background jobs it should be out of any gui interface.. like gui_dowload , gui_upload// ur need to replace then with cl_gui_fronend_services Class
or u have a option of writing file to application server in background using open dataset syntax. -
Copying Queries from one infoset to the other with variants
Hello Gurus,
I have two infosets (A & B) based on logical database PNPCE. Infoset A & B are exactly the same. Now, I want to copy the queries of infoset A to infoset B.
I am unable to copy the queries with variants. And I am getting following message:
Error when copying query report XXXXXXX= with variants. Error when importing query
FYI, I am able to copy the queries without variants successfully, using 'Sap Query: Special Copy Functions'.
Any help on this would be much appreciated.
Thanks,
IkramI think you are right. I see now that I am overcomplicating things.
To answer your question, no I do not add any color adjustments to the individual compound clips. I double click into the compound clips and make color adjustments to each of the angles from the multicam clip. When copying a clip made from the same multi cam clip from one project to another, any color adjustments made to the angles of that multicam clip that was copied over from the other project, does not carry over to the same multicam clips to the new project it was copied to - even if you break the compound clip apart to just the multicam clip, at least that's what I've noticed.
But as you said, the easier thing to do, and this makes total sense now, would be create your multicam clip, and use keywords to label the parts in the browser, then drag the clips to the timeline as you need them. I'm assuming that the color corrections you apply to the angles on the timeline will be automatically applied to new keyword clips you drag to the timeline? Also, to name those multicam clips on the timelines, would you use markers? Is this correct?
I really need to watch a few online tutorials on compound clips, but what Luis said has really cleared things up for me.
Thanks so much for your help and patience guys!
Maybe you are looking for
-
I have 2 ipod minis and 1 comp
I have 2 ipod minis and only one computer. They both share the same songs. but now it wont let my ipod be reconized, and it says "Another user is loged in plz ask them to sign out." how can i get my computer to reconize them both again?
-
PO ACCRUALS AND ACCOUNTING에 관해 자주하는 질문과 답변
제품 : MFG_PO 작성날짜 : 2004-02-11 PO ACCRUALS AND ACCOUNTING에 관해 자주하는 질문과 답변 ========================================== PURPOSE PO를 생성하고 Receipt를 하는 과정에서 Accruals Accounting이 발생하게 되나 이 Accruals Accounting의 의미를 정확히 모르는 경우가 많다. 이 note를 통해 Accruals Accounti
-
Cannot drop old undo tablespace. Cause: active rollback segment
dear all. db: oracle 10.2.0.1 os: rhel as version 5 64 bits. This is a testing database. And my database is online and open. But i can free the external usb disk that contains my ols undotbs. I want to drop old undo tablespace but this is not possibl
-
My daughter just got a 32mg ipad mini and is unable to watch a tv show she bought. She pushes play and the show starts but then immediately stops and won't play. I thought that if she bought a show from itunes then she would be able to watch it anyw
-
After Effects CS6: Cache and Reload Footage Problem
After Effects CS6: Cache and Reload Footage Problem I am having trouble getting my footage to update in an AE project. In an existing project, there is an image sequence in a composition. I have saved and closed AE, modified the footage (same dimen