Submit reports (with parameters) from TabStrip.
Hi,
I have this target:
I have two programs (A and B) called by two different transactions.
Now I had to use a single transaction that calls a screen with two TabStrips.
In the first, I must include the parameters of report A and in the second
the parameters of report B.
I can't modify report A and B.
Is it possible ? ..And how I can obtain this goal ?
Does anybody have a good example?
I Thank You in advance. Regards,
Valerio.
In the submitted program, the fields on the tabs are uniquely defined, so when using the SUBMIT statement you simply need to address the parameters that you want to pass. Take this example. Here we have two tabs, one parameter on each, we what to execute this program and pass "X" to P_FLD2 on the 2nd tab.
report zrich_0001.
selection-screen begin of screen 101 as subscreen.
selection-screen begin of block b1 with frame title text-001.
parameters: p_fld1 type c.
selection-screen end of block b1.
selection-screen end of screen 101.
selection-screen begin of screen 102 as subscreen.
selection-screen begin of block b2 with frame title text-002.
parameters: p_fld2 type c.
selection-screen end of block b2.
selection-screen end of screen 102.
selection-screen begin of tabbed block one for 20 lines.
selection-screen tab (15) name1 user-command ucomm1
default screen 101.
selection-screen tab (17) name2 user-command ucomm2
default screen 102.
selection-screen end of block one.
initialization.
name1 = 'Tab 1'.
name2 = 'Tab 2'.
start-of-selection.
write:/ 'Value of P_FLD1 is', p_fld1.
write:/ 'Value of P_FLD2 is', p_fld2.
So when submitting this program just pass the value to the parameter
submit zrich_0001
with p_fld2 = 'X' and return.
Regards,.
Rich Heilman
Similar Messages
-
Deploying forms and reports with parameters from portal
hi , how do i build forms and reports from database limiting them with parameters from the login details on the portal on my application server.
I had the same problem.
I resolve with a new third party tool:
RunDev
I've found it on:
solutionmarketplace.oracle.com
searching "rundev".
James -
Discoverer report with parameters and functions
I am new to Discoverer. Is there a way to create a report (with parameters) of one line per customer such that the following data will be displayed for each customer?
Among the parameters is: from_date (month & year) ,to_date
The basic query gives totals for each date (month & year) for every customer.
Among the fields displayed:
1-customer_id,
2-balance until from_date,
3-total activity between from_date and to_date
I have a function to calculate the total balance until from_date, but then I cannot get the total activity on the same line. I tried using another function and I tried using a total calculation but to no success.
Is this possible?
Thanks.Hi Markus
You need to determine whether you can in fact call a Discoverer report using a URL before linking it in Portal. You need to run the report in Viewer first and then see copy the URL from the address line of the browser. Then you open another browser and paste the URL. You may well be prompted for a username and password but hopefully the correct report with the right parameters will then execute.
Assuming this works you then paste the same URL link into Portal and you should be able to get the report to run.
Best wishes
Michael -
How to call PDF Report with parameters in jdeveloper 10.1.3
Hi all,
how to call PDF Report with parameters in jdeveloper 10.1.3
for example I have Report name is repdept.pdf with parameter as deptno
and I want call this Report from JSP page ?
thanks
frankHi all,
how to call PDF Report with parameters in jdeveloper 10.1.3
for example I have Report name is repdept.pdf with parameter as deptno
and I want call this Report from JSP page ?
thanks
frank -
Submit report with dynamic selections
Hi All,
I am trying to Submit a report with dynamic selections. I am using the option SUBMIT REPORT WITH FREE SELECTIONS.
But the dynamic selections are not getting passed.
Request you to kindly provide some inputs
My code is
DATA: trange TYPE rsds_trange,
trange_line LIKE LINE OF trange,
trange_frange_t_line LIKE LINE OF trange_line-frange_t,
trange_frange_t_selopt_t_line LIKE LINE OF trange_frange_t_line-selopt_t,
texpr TYPE rsds_texpr.
trange_line-tablename = 'PA0002'.
*trange_frange_t_line-tablename = 'PA0002'.
trange_frange_t_line-fieldname = 'GBJHR'.
trange_frange_t_selopt_t_line-sign = 'I'.
trange_frange_t_selopt_t_line-option = 'EQ'.
trange_frange_t_selopt_t_line-low = '1987'.
trange_frange_t_selopt_t_line-high = '1987'.
APPEND trange_frange_t_selopt_t_line TO trange_frange_t_line-selopt_t.
APPEND trange_frange_t_line TO trange_line-frange_t.
APPEND trange_line TO trange.
CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX'
EXPORTING
field_ranges = trange
IMPORTING
expressions = texpr.
submit RPCADVQ0
VIA SELECTION-SCREEN
WITH SELECTION-TABLE rspar_tab
WITH FREE SELECTIONS it_texpr
and returN.
Kindly provide your inputs
Regards
ReshmaHi Reshma,
Use the FM - RS_REFRESH_FROM_DYNAMICAL_SEL before FREE_SELECTIONS_RANGE_2_EX.
data: trange type rsds_trange,
g_repid type sy-repid.
g_repid = 'RPCADVQ0'.
call function 'RS_REFRESH_FROM_DYNAMICAL_SEL'
exporting
curr_report = g_repid
mode_write_or_move = 'M'
importing
p_trange = trange
exceptions
not_found = 1
wrong_type = 2
others = 3.
if sy-subrc eq 0.
" Do the changes to the trange
CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX'
EXPORTING
field_ranges = trange
IMPORTING
expressions = texpr.
submit RPCADVQ0
VIA SELECTION-SCREEN
WITH SELECTION-TABLE rspar_tab
WITH FREE SELECTIONS it_texpr
and returN.
endif.
Cheers,
Kothand -
How to call a AM method with parameters from Managed Bean?
Hi Everyone,
I have a situation where I need to call AM method (setDefaultSubInv) from Managed bean, under Value change Listner method. Here is what I am doing, I have added AM method on to the page bindings, then in bean calling this
Class[] paramTypes = { };
Object[] params = { } ;
invokeEL("#{bindings.setDefaultSubInv.execute}", paramTypes, params);
This works and able to call this method if there are no parameters. Say I have to pass a parameter to AM method setDefaultSubInv(String a), i tried calling this from the bean but throws an error
String aVal = "test";
Class[] paramTypes = {String.class };
Object[] params = {aVal } ;
invokeEL("#{bindings.setDefaultSubInv.execute}", paramTypes, params);
I am not sure this is the right way to call the method with parameters. Can anyone tell how to call a AM method with parameters from Manage bean
Thanks,
San.Simply do the following
1- Make your Method in Client Interface.
2- Add it to Page Def.
3- Customize your Script Like the below one to Achieve your goal.
BindingContainer bindings = getBindings();
OperationBinding operationBinding = bindings.getOperationBinding("GetUserRoles");
operationBinding.getParamsMap().put("username", "oracle");
operationBinding.getParamsMap().put("role", "F1211");
operationBinding.getParamsMap().put("Connection", "JDBC");
Object result = operationBinding.execute();
if (!operationBinding.getErrors().isEmpty()) {
return null;
return null;
i hope it help you
thanks -
Problem with SUBMIT report [ WITH SELECTION-TABLE ] or [ IN range ]
Hello Everybody,
I am trying to call transaction F.80 for mass reversal of FI documents by using SUBMIT sentence and its parameters like this:
LOOP AT i_zfi013 INTO wa_zfi013.
PERFORM llena_params USING 'BR_BELNR' 'S' 'I' 'EQ' wa_zfi013-num_doc ''.
range_line-sign = 'I'.
range_line-option = 'EQ'.
range_line-low = wa_zfi013-num_doc.
APPEND range_line TO range_tab.
endloop.
Line: -
SUBMIT sapf080
WITH br_bukrs-low = p_bukrs
WITH SELECTION-TABLE it_params [ same problem with - WITH BR_BELNR IN range_tab]
WITH br_gjahr-low = p_an1
WITH stogrd = '05'
WITH testlauf = ''
AND RETURN.
My problem is that when the report is executed the BR_BELNR only delete one document of the all the inputs in the selection criteria from the loop. if I add the statement [ VIA SELECTION-SCREEN] in the SUBMIT if open the multiple selection criteria in the screen I can check that all the documents are set in it from the ABAP code in the loop from it I just need to push F8 to copy them and run the program processing all the documents normally .
Can some one help me with this? is there a way to execute the transaction BY the SUBMIT with the multiple selection criteria for the Document Number working well?
Thank for you time and help.This is my code:
TYPES: BEGIN OF T_ZFI013,
BUKRS TYPE BUKRS,
GJAHR TYPE GJAHR,
MONAT TYPE MONAT,
ANLN1 TYPE ANLN1,
ANLN2 TYPE ANLN2,
NUM_DOC TYPE BELNR_D,
DATE TYPE DATUM,
TIME TYPE UZEIT,
USER TYPE SYUNAME,
END OF T_ZFI013.
DATA: I_ZFI013 TYPE STANDARD TABLE OF T_ZFI013,
WA_ZFI013 TYPE T_ZFI013,
DATA: br_belnr TYPE BELNR_D,
rspar_tab TYPE TABLE OF rsparams,
rspar_line LIKE LINE OF rspar_tab,
range_tab LIKE RANGE OF br_belnr,
range_line LIKE LINE OF range_tab."range_tab.
LOOP AT i_zfi013 INTO wa_zfi013.
range_line-sign = 'I'.
range_line-option = 'EQ'.
range_line-low = wa_zfi013-num_doc.
APPEND range_line TO range_tab.
ENDLOOP.
SUBMIT sapf080
WITH br_bukrs-low = p_bukrs
WITH br_belnr IN range_tab
WITH br_gjahr-low = p_an1
WITH stogrd = '05'
WITH testlauf = ''.
This is the RANGE_TAB table before submit:
1 I EQ 1001xxxxxx
2 I EQ 1002xxxxxx
3 I EQ 1003xxxxxx
4 I EQ 1004xxxxxx
5 I EQ 1005xxxxxx
6 I EQ 1006xxxxxx
7 I EQ 1007xxxxxx
8 I EQ 1008xxxxxx
I think this wont work for some reason so I will start to do this by a BDC.
Many thanks for your help. -
Submit report to spool, from page 2?
Dear experts,
I need to send a report to spool via the "submit" command through my program, but I want to print pages from 2 to the end.
SUBMIT rls10020 WITH s1_lgnum = lrf_wkqu-lgnum
WITH s1_lgtyp IN r_lgtyp
WITH s1_lgpla IN r_lgpla
WITH p_vari = disvariant-variant
TO SAP-SPOOL
DESTINATION pri_params_pdest
IMMEDIATELY 'X'
WITHOUT SPOOL DYNPRO
AND RETURN.
there seem to be no parameter available to send my request "FROM PAGE = 2".
although if i send it to spool and go from sp01 to pint with changed parameters I can do it.
Please help. Is there any parameter available for this?
Thank you,
Roxani AthousakiHi,
use this code:
DATA: number TYPE tbtcjob-jobcount,
name TYPE tbtcjob-jobname VALUE 'JOB_TEST',
print_parameters TYPE pri_params.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = name
IMPORTING
jobcount = number
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
IF sy-subrc = 0.
SUBMIT submitable TO SAP-SPOOL
SPOOL PARAMETERS print_parameters
WITHOUT SPOOL DYNPRO
VIA JOB name NUMBER number
AND RETURN.
IF sy-subrc = 0.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = number
jobname = name
strtimmed = 'X'
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
OTHERS = 8.
IF sy-subrc <> 0.
ENDIF.
ENDIF.
ENDIF.
From jobnumber you obtain the spool number. -
How to call discoverer report with parameters over http link?
Hi!
I'm using oracle application server 9.0.4 (incl. discoverer).
I have an oracle portal report where I want to call a discoverer report for each line over a http link. It is always the same discoverer report - with each line I want to pass parameters to my discoverer report.
How can I pass parameters to the report? Is there another way rather than using GET parameters?
Thanks
MarkusHi Markus
You need to determine whether you can in fact call a Discoverer report using a URL before linking it in Portal. You need to run the report in Viewer first and then see copy the URL from the address line of the browser. Then you open another browser and paste the URL. You may well be prompted for a username and password but hopefully the correct report with the right parameters will then execute.
Assuming this works you then paste the same URL link into Portal and you should be able to get the report to run.
Best wishes
Michael -
SSRS cube report with parameters...and more
Hi,
I have created some basic SSRS reports in the past with parameters, but I was just given the following project by my manager and I would like to find out 2 things:
1. Can this be accomplished using SSRS
2. If yes, what are the High-Level steps needed to get this accomplished
First off, the SSRS report(s) will be connecting to an SSAS cube, so there will be some MDX involved. The cube is fairly simple, 1 measure group and 3 dimensions.
The main piece of this project will be 4 parameters that will be displayed to the user; Quarter, Division, Operations, and ReportList.
The Quarter is just the Quarter that the user wants to run the report for (Q1-2012, Q1-2013, etc..). This will come from the Date Dimension The Division will be a list of all of our internal divisions that we have setup in our Client Dimension
table (Eastern Division, Western Division, etc...). The Operations will be list of operations for each division selected in the Division parameter (Boston Ops, NY Ops, etc...). This list will also come from the Client Dimension. The ReportList
will be a list of all reports that are related to the Division and Operations Selected. For example, Eastern Division and Boston Ops could have 3 reports, Western Division and San Francisco Ops has 5 reports, etc...
The final piece to this is that when the user selects the reports to be generated, they will have to be created into 1 report. This way the user can convert the report to 1 single PDF file or print the report. So if 3 reports were selected, each
report would be a separate page and could then be converted to a single PDF file or printed.
I know that SSRS has the ability to create cascading parameters, so that should take care of dynamically generating the Operations parameter drop down as well as the REportList drop down. Of course, using MDX to accomplish this will tricky since I
haven't done much with MDX.
I guess my last concern is how to generated multiple reports given the parameters selected and have them be combined into 1 report? I was thinking subreports, but not sure if that would work.
Any feedback or concerns/ideas on how this can be accomplished using SSRS?
**Using SSRS 2012
thanks
ScottDo you have a question? The title doesn't provide sufficient information what you are after.
-
Submit report with internal table
Hi Experts !
I have a requirement where report is showing output in ALV1. Based user action I need to process further in background mode.
I have developed a report which I am submitting for this background mode.
I am opening a Job sumbitting created report with return. Job close.
This created report is in scheduled status in SM37. I have to go there and release it.
To pass parameters to newly created report I have used WITH field names with developed report name. But I am not getting parameters at new report. Similarly used import/export --- set/get but still not getting parameters at submitted report.
Is it because it is in background mode? If so how can I achieve this functionality. Can anybody suggest me something ?Hi,
IMPORT and EXPORT from memory doesn't work here.
Have a look into the SAP documentation:
When the program is scheduled in the background task, the selections specified by the user or in the additions for filling the selection screen are stored in an internal variant. When the program is executed in the background request, it is processed fully but the selection screen is processed in the background. The system triggers all events, including that for selection screen processing. The variant stored internally is transferred to the selection screen between the INITIALIZATION and AT SELECTION SCREEN OUTPUT events.
The transfer of the parameters should work, if you don't have any statements that clear those parameters. Maybe parameters with SET/GET parameters also will cause a problem. But it should work with this internal variants. Before you start the jov, please have a look in those generated variants, whether the parameters have the right values.
Regards,
Klaus
Edited by: Klaus Babl on Feb 8, 2011 6:58 AM -
SUBMIT Report with return values
Hi,
I am using the SUBMITE REPORT STATEMENT as
SUBMIT RVV50R10C WITH st_ledat-LOW = s_vstel-LOW
WITH st_ledat-HIGH = s_vstel-HIGH
AND RETURN EXPORTING LIST TO MEMORY.
For the report RVV50R10C the o/p is an hierarchical display.
So when i am exporting list to memory. how exactly are the values populated and,
if i want two fields from the o/p of the report t be populated in another internal table, how can i get it.
initially i am calling FM LIST_FROM_MEMORY and getting values in to a itab of type abaplist.
how the values will be populated into this table.Hi,
Hope this wud help u...
Once the program report has been accessed, the list stored there in the ABAP Memory is read by means of function modules and inserted in the current list.
DATA list_tab TYPE TABLE OF abaplist.
SUBMIT report EXPORTING LIST TO MEMORY
AND RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = list_tab
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc = 0.
CALL FUNCTION 'WRITE_LIST'
TABLES
listobject = list_tab.
ENDIF.
Keerthi. -
Batch Scheduling of reports with parameters
I've been searching the doc and have come up empty so far on this -- how do I take a Discoverer workbook/sheet that accepts a customer account parameter and set it up as a scheduled report?
The trick here is that I want to schedule 100s of these things so that reports are generated for a large number of customer accounts, but not all customer accounts (there are many thousands of customer accounts).Hi,
Yah! this looks good. Other way would be to use the Schedule command line parameter itself. For example you can have a form application taking the user parameter for individual user plus they can enter the schedule parameters also or you can hardcode them . Then you send this request to Report server which run the jobs at schedule time.
FYI, in report 9i there is a new feature called event triggers also. You can run a report with any event trigger from the database. This may be useful for the solution you have suggested, suppose you wish to run the report as soon as user updates data in database, this even t triggers can be used.
Hope this helps!
Thanks,
Rohit -
Link to a crystal report with prompt from xcelsius dashboard
Hi
How can we make a link to a crystal reports with a country promt?
If I named the prompt ContryParam in Crystal.
And I want to open this crystal report by sending f.eks UK as countryname to this report.
What will the link be seeing as in xcelsius?
How will the connection be made from xcelsius to this spesific crystal report`?
BR
SadafHey Sadaf,
This example uses prompt# to pass "CA" as a value to the first parameter:
http://<servername>:<port>/CrystalRe
ports/viewrpt.cwr?id=1152&prompt0=CA
search for follwing document title for further reading
Viewing Reports and Documents using URLs -
Calling DB2 Stored procedure(with parameters) from powershell
Hi
I am trying to call a DB2 stored procedure that has parameters from Powershell scrip and I am not able to can some one help me here?
$ServerName = 'XXXX'
$dbalias='XXXXX'
$conn_string = "Provider=IBMDADB2;DBALIAS=$dbalias;Uid=;Pwd=;"
$conn = new-Object system.data.Oledb.OleDbconnection
$conn.ConnectionString = $conn_string
$conn.open()
$query="CALL DBID_CONTROL.GET_TABLE_MAINT_CTL(?,?,?,'MSAS','DATABASE_CONNECTIONS_CUBE','CUBE_PARTITION');"
$cmd = new-Object system.data.Oledb.OleDbcommand($query,$conn)
$ds=New-Object system.Data.DataSet
$da=New-Object System.Data.OleDb.OleDbDataAdapter($cmd)
$da.Fill($ds) [int]$cur_utc_date_key = $ds.Tables[0].Rows[0][0]
$cur_utc_date = $ds.Tables[0].Rows[0][1]
###list current date key & current date values
write-output "current date key value is $cur_utc_date_key"
write-output "current date value is $cur_utc_date"
write-output " "
ThanksHi
This is the error message i get when i run the script
Exception calling "Fill" with "1" argument(s): " CLI0100E Wrong number of parameters. SQLSTATE=07001"
At line:45 char:10
+ $da.Fill <<<< ($ds)
+ CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : DotNetMethodException
Maybe you are looking for
-
Mapping Multiple Nodes ?
Hi Guys, Request Structure - Node - occurs 0 - unbound Target Structure - Node - occurs 0 - unbound If there are 3 transactions coming from the reguest structure then i need to generate only 2 node structures on the target side. can anybody expla
-
When I open Bridge in CS3 (ver. 2.1.1.9) no preview or thumbnails appear. When I try to change folders, Bridge immediately freezes up and I have to use Windows Task Manager to end the program. I can see photos in other viewers (Lightroom) so the phot
-
I'm going on vacation and would like to have some movies rented for the flight. I won't have wifi so can i download rented movies?
-
Black screen, Sun Ray DTUs
Users have complained that if they stop typing or moving the mouse the screen goes black within 30 secs or so. I verified that SUNWxscreensaver-hacks-gl and SUNWxscreensaver-hacks were removed from the Solaris 10 U7 OS. All sessions are set for Sun R
-
Different values when in highlight execution mode.
I am running a vi which does a bunch of math on scalars and floating point images. When I run the vi, the output images are filled with "Not a Number" but when I go throught the vi in highlight execution mode the numbers come out as what they should