3.5 Web report. Save Selection screen and navigation state??
Hi,
When we use BEx Analyzer, using excel, we have these two features:
1. If query have selection screen, we can save variants, as in SAP R/3.
2. If in the query results we perform drilldown, filters, and so on, we can save this as a new workbook.
Now, I am using Web access. I use 0ADHOC web template. I have modified to ask always for variables.
For feature 1, is there any possibility of saving the selection screen? Any property of web template?
For feature 2: I can save a view in the standard template, but there are no button to recover it. Modifying this template is too hard for me. I have seen an object to select query view, but I have to specify queries and views, and I need an open solution.
Is there any template or easy way for offering the user the possibility of saving a navigational state for any query and after recovering any of this states (as a workbook in excel).
I don't know if views are the only option.
Thanks a lot.
Santi,
Did you look into Bookmarks?
http://help.sap.com/saphelp_nw04/helpdata/en/5d/53213c51febb2be10000000a11402f/content.htm
This will solve your second issue at least.
Regards,
Gilad
Similar Messages
-
Webi Report User selection screen
I need to create a selection screen with check box and radio button like custom selection screen. Whenever the report run, user must fill the information in selection screen and then report should show. How can i get custom selection screen?
Hi,
Create a "'Input Control" for user custom selection. Below is the link on further steps
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/9057beb9-2844-2e10-ff8f-c78ca3f87f7c&overridelayout=true
Thanks,
Jothi -
Run alv report without selection screen in background
Hello Every body,
i programmed a ALV Report without selection screen, and i want to create a job for this alv report.
Any help?
Thank u.
Ouail.Hi Steve,
Can you tell me where i have to put your code?
this is my abap code:
START-OF-SELECTION.
p_filref = '\\SAPSERVER\f\SAFT\ivat\FI_Extract_1000_20140709_102346_910.XML'.
PERFORM copy_from_xml_to_itab TABLES it_ref_file
ref_xml_data
USING p_filref.
**Begin Extraction File
SUBMIT ZZ_FI_IVAT_EXTRACTOR
WITH p_bukrs EQ '1000'
WITH p_gjahr EQ '1998'
WITH filepath EQ '\\SAPSERVER\f\SAFT\iVAT_Extractie\'
WITH cldata eq space
AND RETURN.
DATA: FILE_TABLE TYPE TABLE OF SDOKPATH,
DIR_TABLE TYPE TABLE OF SDOKPATH.
CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'
EXPORTING
DIRECTORY = '\\SAPSERVER\f\SAFT\iVAT_Extractie\'
FILTER = '*.*'
TABLES
FILE_TABLE = FILE_TABLE
DIR_TABLE = DIR_TABLE
EXCEPTIONS
CNTL_ERROR = 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.
"get file name
LOOP AT FILE_TABLE INTO p_filref.
ENDLOOP.
CONCATENATE '\\SAPSERVER\f\SAFT\iVAT_Extractie\' p_filref INTO path.
PERFORM copy_from_xml_to_itab TABLES t_ext_file
ext_xml_data
USING path.
PERFORM fill_xml_tab_in .
perform build_fieldcatalog.
PERFORM compare_data_ref_ext.
PERFORM send_email.
perform display_alv_report.
PERFORM delete_extraction_file.
in the perform copy_from_xml_to_itab TABLES it_ref_file......, i use this code:
CREATE OBJECT gcl_xml.
*Upload XML File
CALL METHOD gcl_xml->import_from_file
EXPORTING
filename = p_filref
RECEIVING
retcode = gv_subrc.
IF gv_subrc = 0.
CALL METHOD gcl_xml->render_2_xstring
IMPORTING
retcode = gv_subrc
stream = gv_xml_string
size = gv_size.
IF gv_subrc = 0.
REFRESH gt_xml_data[].
* Convert XML to internal table
CALL FUNCTION 'SMUM_XML_PARSE'
EXPORTING
xml_input = gv_xml_string
TABLES
xml_table = gt_xml_data
return = gt_return.
ENDIF.
ENDIF. -
How to create a report with selection screen that can run in background
Sorry to ask these basic questions but I am knew to ABAP Programming.
To keep it simply, I am attempting to create a report that has a simple parameter driven selections screen with one field. That field takes in a folder path from the user. The user executes the report. The report creates a simply BDC that goes into SE16, gathers data from a table, and exports the results to a text file using the folder path provided. I created a variant for the folder path field in the selection screen hoping to use it while executing the report in the background. The report is not exporting the file as it did when run in the foreground for some reason.
I am wondering what event is triggered when a report is executed in the background. In the foreground (or when I execute the program via SE38->Execute->With Variant) the user needs to execute the program by hitting the execute button once the variant has populated the folder path field. It works then, so I am trying to get the same to work in the background. I am thinking I didn't put the program together correctly to accommodate the running in the background. How can you create a report that can accept user input via variant into a selection screen and then run in the background?
Please, any information would be greatly appreciated.
Thanks you all for reading this!!!Ok, finally I understand what you're doing. Initially you lost me with the SE16 reference...
Not sure what you're trying to achieve overall, but apart from the fact that you cannot export/download a file to a user's PC via background job (unless you have a mapped network share on the server or something like an FTP server on the user's PC, but both are pretty hypothetical scenarios and unlikely to occur).
Also, the BDC approach to get data via SE16 is pretty awkward. Note that SE16 is guarded by some authorization checks and often users won't have access in production (which might not matter if you intend to always run your program in background via dedicated batch user). However, I have no clue why you wouldn't want to use [open SQL|http://help.sap.com/abapdocu_70/en/ABENOPEN_SQL_READING.htm] to read the data. You could then save it on the application server or if you really have to get it to the user you can consider e-mailing the file (extracts should be compressed before sending). For the latter you'll find plenty of references here, basically it's the [business communication services|http://help.sap.com/saphelp_nw2004s/helpdata/en/2d/1c5d3aebba4c38e10000000a114084/frameset.htm] that you'd need to look at. -
Background Processing, Selection Screens and Variants
Hi All,
I am having a little trouble Background Processing with Selection Screens and Variants.
When a user runs my report and selects the option of background processing, then they select a checkbox. Once this is checked, they should go and fill in details, press Execute and voila a background process is created. However what is happening is that when i execute it then it asks for a variant. I do not want this to happen. I want the values in the selection screens to be used as default. Here is my code for background processing
FORM START_BACKGROUND_PROCESSING.
CALL FUNCTION 'BP_JOBVARIANT_SCHEDULE'
EXPORTING
TITLE_NAME = 'End Customer Report '
JOB_NAME = 'customer_report'
PROG_NAME = 'ZSE_SD_SALES'
EXCEPTIONS
NO_SUCH_PROGRAM = 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.
ENDFORM. "START_BACKGROUND_PROCESSING
After the background process is started, all teh data is collated then written to the app server. this is the order
ELSEIF R2 EQ 'X' AND SY-BATCH EQ 'X'.
PERFORM INITIALIZE_DATA.
PERFORM SELECT_DATA.
PERFORM PROCESS_DATA.
PERFORM GET_END_CUSTOMER_DATA.
PERFORM WRITE_TO_APP_SERVER.
Any ideas? Points given to those who are helpfuldone myeslf
-
Hi all,
in my program i use PNP logical database, so system create automatically selection screen. Nice.
When user fill selection screen event start-of-selection is launched and i do GET PERNR for read data from PNP.
But my customer want to add field in selection screen. Ok, i did that. Well, now he want that when a user fills new fields the PNP is not read i.e GET PERNR shouldn't be launched, so i my program i write this :
if myfield is initial.
GET PERNR.
else.
PERFORM get_data.
endif.
But when i compile program i can't do that and i don't know how to make this and if it's possible.
Regards,Hi tafkap,
1. u have created a z report and
u are using PNP logical database.
2. u say,
, now he want that when a user fills new fields the PNP is not read i.e GET PERNR shouldn't be launched
suppose this is achieved, then how
are u going to fetch the data
and show the report ?
3. If u already have the logic for
getting information from database and showing
to the user,
then do not use GET event.
(It is not compulsory in a ldb)
4. Instead use START-OF-SELECTION
event
and do the normal programming.
5. In such case,
the selection screen (and ur extra field(s))
will be displayed as usual
and your own code will get triggered
at start-of-selection.
I hope it helps.
regards,
amit m. -
What is a Selection Screen and how to make it ?
What is a Selection Screen and how to make it ? Please explain the process.
Best regards,
RyanSelection Screen are used for the program reports. These allows you to input some values that are required to show the desired output.
for example : you want to show the list of sales orders between 1000 to 1999, you would write a select query as this (to make u understand better)
select vbeln from vbak into it_vbeln
where vbeln GE 1000 " greater than or equal to
and vbeln LE 1999. " less than or equal to
now if you wnat to do it dynamically, you need a selection screen
tables : vbak. " declaration
selection-screen : begin of block block1 with frame title text-003.
select-options : so_vbeln for vbak-vbeln. " selection range from __ to __
selection-screen : end of block block1.
now you can write the same select query as
select vbeln from vbak into it_vbeln
where vbeln in so_vbeln.
Hope this is clear now
Regards
Gopi -
SUBMIT via selection screen and return gives dump
Hi Guys,
When i have used SUBMIT via SELECTION SCREEN and RETURN, it gave me the selection screen and subsequent report is executed properly without an error and when i pressed back button, it went to selection screen without any issues but the problem is when i press back from the selection screen it gives me a dump. Could you guys think of what would be the probelm.
Thanks in Advance.
Santosh.Hi Santhosh,
What is the dump u r getting? I tried like this and is working file.
Report1
REPORT Z75694TEST1.
PARAMETERS po_1 TYPE c.
WRITE po_1.
SUBMIT Z75694_TEST VIA SELECTION-SCREEN AND RETURN.
Report2
REPORT Z75694_TEST .
PARAMETERS: po_2 TYPE c.
WRITE po_2.
Thanks,
Vinod. -
Prob in Submit Report via Selection screen.
Hi,
I have to submit a report via selection screen.
The report name is detemined at run time.
This i am able to handle easily as we can use SUBMIT (V_PROG)...
WHERE V_PROG contains the name of the report that i get at runtime...
Now the issue :::::::
I have to also populate a select-options on the called report on submit.
usually this is done by :
SUBMIT (V_PROG)
name of select-option in itab...
However in my case the name of the <name of select-option> is also detemined at runtime say PNPPERNR.
Now if i use any variable / field symbol for the name of the select - option (like for the called program), it does not work (the called report does not have the values i populate in ITAB for the particular select-option)
I have also tried Macro but cant find solution...
ANY IDEAS ??Hi Anuj,
When you are getting the report name in runtime, you can also get the report selection screen information during runtime.
Now how are you going to decide which values you will move to which selection screen variables of which report? If you have a way to determine this, then here is a program that works on that assumption.
REPORT ztest1 .
DATA: i_seltab TYPE TABLE OF rsparams WITH HEADER LINE,
i_selections_info TYPE TABLE OF selinfo WITH HEADER LINE.
DATA: v_report LIKE sy-repid,
v_matnr LIKE mara-matnr.
PARAMETERS: p_rep1 RADIOBUTTON GROUP rad DEFAULT 'X',
p_rep2 RADIOBUTTON GROUP rad.
SELECT-OPTIONS: s_matnr FOR v_matnr.
START-OF-SELECTION.
IF p_rep1 = 'X'.
*-- some criteria to determine the name of the report
v_report = 'ZTEST2'.
ELSE.
v_report = 'ZTEST4'.
ENDIF.
*-- get the parameters for the report
CALL FUNCTION 'RS_SELECTIONS_DESCRIPTION'
EXPORTING
report = v_report
TABLES
selections_info = i_selections_info
EXCEPTIONS
no_selections = 1
report_not_existent = 2
subroutine_pool = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
LOOP AT i_selections_info WHERE name = 'S_MATNR'.
*-- some criteria based on which, move the values from this program
* to the called program
CLEAR i_seltab.
i_seltab-selname = i_selections_info-name.
i_seltab-kind = i_selections_info-kind.
i_seltab-sign = 'I'.
i_seltab-option = 'EQ'.
i_seltab-low = s_matnr-low.
i_seltab-high = s_matnr-high.
APPEND i_seltab.
ENDLOOP.
IF NOT i_seltab[] IS INITIAL.
SUBMIT (v_report) VIA SELECTION-SCREEN
WITH SELECTION-TABLE i_seltab .
ENDIF.
If this works for you, please reward and close the post.
Regards,
Srinivas -
Add custom fields on selection screen and ouput in Transaction QM11
Hi All,
i have the requirement to enhance the transaction qm11( Report : RQMELL10) to add the custom fields on the report selection screen and in the report output.
i tried to add the fields on selection screen by copy the standard program RQMELL10 to custom one. and tried to add the fields above to the coding tab but i am not able to display the text for those fields of select-options. can any one help me is it the right way to copy the standard program to custom program and adding the custom fields and how to get the text element for the custom fields which we are going to add it. i tried to add the text element in program text elements but it is not appering on the report.
please requeting the help asap if it is possible.Have a glance in below thread.
Enhancing transaction QM10
Also, there are some more threads available in enhancing the QM10 / QM11. Please search those as well. -
Hi friends
Can any one tell me which event triggers first and the order of event triggering when both selection screen and dialog program is used..Also tell me which event wont fire.
Regards
Suresh.AHere is the Sequence.
1. First Load-of-Program event is triggred by default when you execute any report.
2. Inisilization.
3. At-selection Screen output.
4. At selection Screen.
5. Start-of-selection.
6. end-of-selection.
if you are calling screen in your report you will be doing so in Start-of-selection
then after start-of-selection.
Process before output
Process after input
(if you add POH, and POV, these event will trigger when you press F1 or F4)
End-of-selection.
Thanks & regards -
Hi,
I am developing one report. My customer is requested me he needs Selection-screen and Output of the report both need in the same screen i.e upper part is selection screen below is the Output..
Is it possible?
If YES could you please help me..........?
Thank you advance.......Hi Kishore,
It is possible create the upper block using selection-screen this will be screen 1.Then create the another block and use INCLUDE to include the upper block.Hope your query resolves.
An example to create selection-screen.
SELECTION-SCREEN BEGIN OF BLOCK SEL1 WITH FRAME TITLE TIT1.
PARAMETERS: CITYFR LIKE SPFLI-CITYFROM,
CITYTO LIKE SPFLI-CITYTO.
SELECTION-SCREEN END OF BLOCK SEL1.
SELECTION-SCREEN BEGIN OF SCREEN 500 AS WINDOW.
SELECTION-SCREEN INCLUDE BLOCKS SEL1.
SELECTION-SCREEN BEGIN OF BLOCK SEL2
WITH FRAME TITLE TIT2.
PARAMETERS: AIRPFR LIKE SPFLI-AIRPFROM,
AIRPTO LIKE SPFLI-AIRPTO.
SELECTION-SCREEN END OF BLOCK SEL2.
SELECTION-SCREEN END OF SCREEN 500.
We can use loop at screen to make it active or inactive at user command.That is enter or F8 whatever user chooses.
Have a best day ahead. -
Call a report with selection screen as subscreen.
Hi all,
i need to Submit And Return a Report having some parameters and Select options, from a Function Module.
all i want that the Selection Scrren of Report should appeared as Subscreeen, so that Calling Screen sould be visible in Background.
Is this Possible , if yes then How ?
thanks in advance,
NitinRunning new report means opening new internal session. This can't be embeded within the current internal session where your function group (function module specifically) runs. So there is no such a way which you could run a report inside a subscreen area.
If you however want only selection screen of the report to be embeded inside your subscreen area (not run) you can use
"report Z_SUBSCREEN_REPORT
SELECTION-SCREEN BEGIN OF SCREEN 0200 as SUBSCREEN.
PARAMETERS pa type c.
SELECTION-SCREEN end of SCREEN 0200.
"main screen's flow logic in function group with subscreen area
PROCESS BEFORE OUTPUT.
call SUBSCREEN area INCLUDING 'Z_SUBSCREEN_REPORT '0200'.
Regards
Marcin -
Submitting of report using selection screen
Hi,
My requirement is iam having one report so it is executed when we r given site and date it gives one excel file data so now iam having 150 sites so now I want to write the report as date as selection screen and I want to submit that report in this one (new report) so it wants to take the sites automatically from werks (t001w table) and it wants to execute in a loop upto 150 times then it gives 150 excel files so now how can I pass the sites and date to the submitting selection screen date as same for all but only the site wants to varry in the submitting report pls provide the coding ..
Thanks & Regards,
Mohan Reddy.Hello Mohan Reddy,
I think we can try in this way
data: y_v_rspar_line LIKE LINE OF y_v_rspar_tab,
y_v_rspar_tab TYPE TABLE OF rsparams,
y_lk_parm3 TYPE char5 VALUE 'SPERR'. " Selection screen variable name
y_v_rspar_line-selname = y_lk_parm3.
y_v_rspar_line-kind = y_k_p.
y_v_rspar_line-sign = y_k_i.
y_v_rspar_line-option = y_k_eq.
y_v_rspar_line-low = y_k_e. "Excel file site value.
APPEND y_v_rspar_line TO y_v_rspar_tab.
SUBMIT Program name USING SELECTION-SCREEN '1000'
WITH SELECTION-TABLE y_v_rspar_tab AND RETURN.
But try in 2different ways i.e
1) Keep the submit program in the loop of the excel file internal table
and take the site value in the variable and pass the value to this y_v_rspar_line-low
and call submit program.
2) Sort the excel file internal table then pass all the values to y_v_rspar_line-low and use the append statement in the same way and then call the SUBMIT program outside the loop. -
Getting all webI reports in a folder and its sub-folders using java sdk.
hi,
I need a java code to get the Id of all webi reports in a folder and recursive sub folders .
Is there any sample code or tutorial available for It?
regards,
nitinI didn't test this but it should work. Import required packages.
<%
String username = "administrator";
String password = "<password>";
String cmsname = "<cmsname>";
String authtype = "secEnterprise";
IEnterpriseSession oEnterpriseSession = CrystalEnterprise.getSessionMgr().logon(username, password, cmsname, authtype);
IInfoStore oInfoStore = (IInfoStore)oEnterpriseSession.getService("","InfoStore");
getWebi(oInfoStore,0,out);
oEnterpriseSession.logoff();
%>
<%!
public void getWebi(IInfoStore oInfoStore, int sourceFolderID, javax.servlet.jsp.JspWriter out)
try
String query = "select * from ci_infoobjects where si_kind='webi' and si_instance =0 and si_parentid =" + sourceFolderID ;
IInfoObjects oInfoObjects = oInfoStore.query(query);
for(int i=0;i< oInfoObjects.size(); i++)
IInfoObject oInfoObject = (IInfoObject) oInfoObjects.get(i);
out.println(oInfoObject.getID() + " " + oInfoObject.getTitle() +"<br>");
String query = "select * from ci_infoobjects where si_kind='folder' and si_parentid = " + sourceFolderID ;
oInfoObjects = oInfoStore.query(query);
for(int i=0;i< oInfoObjects.size(); i++)
IInfoObject oInfoObject = (IInfoObject) oInfoObjects.get(i);
getWebi(oInfoStore, oInfoObject.getID(), out);
catch(SDKException e)
out.println(e.toString());
%>
Maybe you are looking for
-
Activating data in DSO got dump SAPSQL_EMPTY_TABNAME after BW system copy
Hi all, We had an issue after system copy. After a system copy the data in the standard DSOs(all of them) cannot be activated. The DOSs themselves are active, the transformations are active but if one attempts to load data and activate u2013 it does
-
I've downloaded CS6 Master Collection but only see The Photoshop icon. I can't seem to find the other programs, except on "uninstall programs" How do I open and run the others?
-
IPhone Retina Screen, Digitizer, and Glass Destroyed
Hi All, So the sad, simple, and short version of my story is that my iPhone 4 was run over by a car last night. As you can imagine, it is not in pretty shape. The glass is cracked (so bad that small shards of glass are falling out) and the Retina s
-
Configuration of Leave Encashment Method in ESS
Hi, We are implementation ESS for our client, Here in ESS i am not getting dropdown values for Time Account & Leave Encasement Method. How can i configure? Thanks & Regards Kishore Jagarlamudi
-
Problem with Table Sapce PSAPSR3
hello all, i have a error inn data load in Bi which says PSAPSR3 tablespace is filled..i deleted some of the data in PSA and freed some space...but i need to figure out the data growth in this Tablespace.. is there any way that i can see the actual f