Report select options similar to Query output options : Urgent !!!!!
Hi All,
I have developed a custom report . The output options of this report needs to be included in Selection screen like in SQ01 queries, there should be option to output the report results in different formats like List Viewer, ABAP List, Spread Sheet etc.,.
If some variant is selected then user will select whatever the format he want .
the output should display in that format .
How I can acomodate all these options to output a report .
How can I do this ..Pls help me its Urgent !!!!
Points for Sure !!!
Regards,
Varma
Hi,
Try this code,
at user-command.
case sy-ucomm.
when 'disp'.
write:....... "abap list
when 'buton1'
call function 'reuse_alv_list_display'.
endcase.
i hope it gives ur answer
Reward if it helps.
Similar Messages
-
Hi all,
I have a task - i have to use "SELECT-OPTIONS of one program into select statements of another program, Please solve my problem.
Thanks in advance
RanjithHi Ranjit,
Try using SUBMIT option with the addition SELTAB.
You can also pass the select options along with the SUBMIT statement. Take a look at the help.
Code used to populate 'select-options' & execute report
DATA: seltab type table of rsparams,
seltab_wa like line of seltab.
seltab_wa-selname = 'PNPPERNR'.
seltab_wa-sign = 'I'.
seltab_wa-option = 'EQ'.
* load each personnel number accessed from the structure into
* parameters to be used in the report
loop at pnppernr.
seltab_wa-low = pnppernr-low.
append seltab_wa to seltab.
endloop.
SUBMIT zreport with selection-table seltab
via selection-screen.
Cheers
VJ
Message was edited by: Vijayendra Rao -
Hi all,
I am new to ABAP ,while doing a report i have been given one task in which i have to take SALES DOCUMENT NUMBER range from the user through the selection screen through select options, the requirement is that while going for the F4 help in the select options only that Sales Document Number Should come which starts from 7or 7*.
Please do help me out in solving this issue.
Thanks in Advance.
syed.Hi Syed,
you can do like this:
Use this events:
AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_abc-low.
PERFORM fm_f4.
FORM fm_f4.
--> here u called this function F4IF_INT_TABLE_VALUE_REQUEST
--> put your own query for the F4 value (in you req sales doc begin with 7) and pass to the value_tab table.
ENDFORM.
Hope this help, cheers.
Victor. -
Multiple records in select options-Urgent help
Hi all,
Iam using the following function module to get the set values. I need to pass multiple values in select options(ie) select options with no intervals. to the function module parameter Shortname. I have declared the variable which has to be passed as
S_SETID FOR SETHEADER-SETNAME NO INTERVALS.
The problem is when i use S_SETID-LOW the value is passed to the function module , but if multiple data is entered in the input then how to pass all the data to the function module. Please Help.Hi,
Declare the Range in the Function module , then you can pass that Select-option fields to that ranges and use that in the Function module.
Or you can use the RANGE_C8 for the Select-optios in the Function module, you can declare the Internal table with the type of RANGE_C8 in the tables parameter, then pass the Select-option to this Internal table
If you want more length field then search based on RANGE_* then you will get all the Range Structure.
Regards
Sudheer -
Excel is not showing multiple Drill thru report selection option
We have created 3 drill thru reports in EIS, excel is not showing Select Drill-Through Report Dialog Box when tying to acess drill thru reports. It defaultly executes the first drill thru report, we want it to list the available reports so that we can select accordingly after view/launch is selected.
essbase 7.1.6 version SQl server 2000Hi,
This Prompt message would have been set in WAD(XHTML Coding section) in your old project. Now , you cross check your Web template for the same. Your issue will be resolved.
Regards,
Suman -
Help on the selection screen.....Select-options default values
Dear Friends,
We have one requirement,i.e. In Report program i am using select-option once will execute the program ALV report will be generated.In ALV Report we have one button like 'WM DATA'.Once click the WMDATA one pop-up is displaying...In that pop-up also same select-options are there upto here it's working fine...Now my problem is on pop-up select-options i have to display by default..... which i am using on report select-options values.
Please help on the same
Thank You.Do like this. Before calling your next screen assign the select option value or just assign the value in start of selection only.
tables
:lqua.
SELECT-OPTIONS:
s_lgnum FOR lqua-lgnum MODIF ID sc1 OBLIGATORY,
s_lgtyp FOR lqua-lgtyp MODIF ID sc1.
SELECTION-SCREEN BEGIN OF SCREEN 300 .
SELECT-OPTIONS : s_lgnum1 FOR lqua-lgnum OBLIGATORY,
s_lgtyp1 FOR lqua-lgtyp OBLIGATORY.
SELECTION-SCREEN END OF SCREEN 300.
START-OF-SELECTION.
s_lgnum1[] = s_lgnum[].
s_lgtyp1[] = s_lgtyp[].
call SELECTION-SCREEN 300. -
Changing field label for standard select option
Hi All,
I need to change the label for one of the standard select option for the custom report category.
the field is PNPSTAT1 - original label is - Customer-Specific Status - which i need to change as per customer requirement.
Can anyone tell me the way i can do it so that it can be viewed with correct label not only on the selection screen but in further selections mode as well.
Regards,
RaunakDear Raunak,
If you have standard select option for standard selection screen:
create a implicit enhancement for any standard program and wrote the below code at the end of the program and it is working..
INITIALIZATION.
%_s_PNPSTAT1%_app_%-text = 'ANY LABEL'.
If you have custom report select option, go to above Ravikiran's procedure.
Best of luck.
Regards,
Abbas. -
Want to See Selected Input Variables in the query output
Hi al
My client gives a requirment like they want to see selected variables in the query output. Like suppose if i am entering Profit center, controlling area, version, caldayas a input on the screen. Now they want to see only Profit center and version on the query result.
Please let me know if any one has this solution.
Regards,
Amit ShetyeHi
Can you please give us user requirement and according to ure requirement so we given replies . If ure requirement please explain detail
But it is not neccessary that we can put something in free char and all. Inspite of that they wanted to select the input variable as per their requirement. They dont want to restrict them in Free char. -
Adding Selection Options Fields in Report(Using Query)
Hi,
how can we add Selection Fields Options in Query Reports Which we create using SQ01. I need a default option by which we can add all the selection option given by user.
Anybody can help me..?
Regards
lijo JosephDo you have anything defined in the 'Calcs' section?
If so, any fields returned by the query that are not included in the calculation will be automatically added to the Group fields (using the same logic as required with calculations/group by in any SQL query). The fields won't be able to be removed from the Group list unless the Calc is also removed. -
Select Options, Report Painter
How can I create "Select Options" for a variable in the "General Data Selection" of the report painter screen.
Thank You.If you specify selection parameters for several years and periods in a
Report Writer or Report Painter report, the characteristics year and
period are taken into account independent of each other.
A report with the selections:
From-year : 1997
To-year : 1999
From-period : 003
To-period : 008
will hence select all the following data:
003/1997 .. 008/1997, 003/1998 .. 008/1998, 003/1999 .. 008/1999
This is the standard behavior of Report Writer and Report Painter
reports.
However, reports which directly display the data for the period
003/1997 ............................................. 008/1999
are required in some cases.
You can achieve this in the report definition using the following
procedure.
Additional key words
several years several periods GS274
rolling periods, rolling
SUPPORTGUIDE 20010330131459
REPORTWRITER, SGRW_DOCU_CONS_NOTE,
SGRW_OM SGRW_PS SGRW_PC SGRW_SL SGRW_PCA SGRW_EC SGRW_LIS
Cause and prerequisites
This is a standard behavior of the Report Writer.
Solution
A procedure is described below to implement the selection over a period
of several years and periods. This is merely an example which should
serve as a support for experienced users of the Report Painter and
Report Writer when defining their own reports.
1. Definition of auxiliary column 1: 'All-periods'
Period: 0 ... 17
Year: From-year .. To-year
000/1997.....................................................017/1999
Definition of auxiliary column 2: 'Periods before'
Period: 0 ... From-period - 1
Year: From-year
000/1997..002/1997
Definition of auxiliary column 3: 'Periods after'
Period: To-period + 1 .. 17
Year: To-year
009/1999..017/1999
Definition of the formula column:
Formula = 'All-periods' - 'Periods before' - 'Periods after'
000/1997.....................................................017/199
9
000/1997..002/1997
009/1999..017/1999
003/1997............... 008/1999
Hide the three auxiliary columns. The formula column now correctly
shows the required period
003/1997............... 008/1999
Note:The new reporting table RWCOOM is also available as of Release 4.0
for reports which were, up to now, defined in table CCSS. RWCOOM
contains the characteristic FISCPER which represents a combination of
year and period. You can directly define reports over several years and
periods using characteristic FISCPER without having to follow the
procedure described above.
Please take into account that you cannot call reports via report
Interfaces in the formula columns (see Note 98187).
If you have any query, you may reach me
Dr. Ravi Surya Subrahmanyam, PhD Finance,
SAP FICO Consultant,
Answerthink (India) Limited,
Hyderabad. AP. India
Phone : +91 9848550024
Email : [email protected] -
ABAP list report, multiple selections - select-options
I have written a very simple ABAP list report, that contains a single select-option. On the selection screen, I have the option of entering multiple values, with each new value being displayed directly underneath the old, but I am only getting the first value entered on the screen displayed. Does anyone have any sample code for me?
Hi Daniel,
Select_Options consists of 4 parameters, in with the range consists in eg...
Select-options s_vbeln for vbak-vbeln.
then s_vbeln-low, s_vbeln-high are the range values...
So whne you write select query.
write vbeln in s_vbeln
instead of vbeln eq s_vbeln
Hope this solves your problem.
Thanks & Regards,
Dileep .C -
How to set default value in select option for ABAP query
Hi experts,
What is the way to set up default values for select-options in ABAP query.
e.g.
I have one field 'Year' in my ABAP query selection screen.
I want value of current year to be appeared here whenever user execute report
Thanks in Advance
-HarkamalHi Harkamal,
execute your Query via SQ01. On Selection-Screen
goto save Variant. Mark your field
as selection variable an press Button election variable.
Take variable from TVARV and use it.
Than save the Variant.
Look at TVARV if the 'Year' is updated to the actualYear!
regards, Dieter -
Select-options in Infoset Query
Hello experts,
I'm working on a report in SAP HR and using infoset query.
I want to use select-options in my selection screen but without interval. In normal abap report we do this using 'NO INTERVALS' but how to achieve same in infoset query ?
please help.
regards,
siddheshHello experts,
I'm working on a report in SAP HR and using infoset query.
I want to use select-options in my selection screen but without interval. In normal abap report we do this using 'NO INTERVALS' but how to achieve same in infoset query ?
please help.
regards,
siddhesh -
Alternative for "check select-options" for select query.
hi all,
my report is using a "GET" syntax, followed by "check select-options".
My senior told me to replace the Get syntax with select query.
Now, my program also has dynamic selection screen.
the dynamic selection screen almost has all the fields of database table.
so, what is the way to replace this check select-options while applying select query?
can you tell me how dynamic selection screen fields are populated? are they stored in some internal table?
thanks for help.HI
Here is some points about LDB.
Logical databases are special ABAP programs that retrieve data and make it available to application programs. The most common use of logical databases is still to read data from database tables by linking them to executable ABAP programs.
However, from Release 4.5A, it has also been possible to call logical databases using the function module LDB_PROCESS. This allows you to call several logical databases from any ABAP program, nested in any way. It is also possible to call a logical database more than once in a program, if it has been programmed to allow this. This is particularly useful for programs with type 1.
Logical databases contain Open SQL statements that read data from the database. You do not therefore need to use SQL in your own programs. The logical database reads the program, stores them in the program if necessary, and then passes them line by line to the application program or the function module LDB_PROCESS using an interface work area
For further on LDB's refer to this link.
[http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/content.htm]
Hope this will help.
Reward if helpful.
Sumit Agarwal -
Check box before select option in a report program.
Hi All..
I have a report program with select options..I want to put a checkbox before the select option, aligned with it...Is it possible..
Regards
RudraHi Rudra,
Take the below help program. In the below program I am disabling the text fields....
Take the refrence and do it will fix the problem
&***************************Reward Point if helpful***************************&
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-003.
PARAMETERS: P1 RADIOBUTTON GROUP G1 DEFAULT 'X' USER-COMMAND Z1.
SELECT-OPTIONS: S_PMNUX FOR S076-PMNUX MODIF ID MI1.
PARAMETERS: P_WENUX LIKE S076-WENUX MODIF ID MI1.
PARAMETERS: P5 TYPE CHAR15 AS LISTBOX VISIBLE LENGTH 15 MODIF ID MI1.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN POSITION 7.
PARAMETERS: P3 RADIOBUTTON GROUP G2 MODIF ID MI1.
SELECTION-SCREEN COMMENT 10(10) TEXT-001 MODIF ID MI1.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN POSITION 7.
PARAMETERS: P4 RADIOBUTTON GROUP G2 MODIF ID MI1.
SELECTION-SCREEN COMMENT 10(10) TEXT-002 MODIF ID MI1.
SELECTION-SCREEN END OF LINE.
PARAMETERS: P_FILE TYPE RLGRAP-FILENAME MODIF ID MI1.
PARAMETERS: P2 RADIOBUTTON GROUP G1.
SELECT-OPTIONS: S_PMNUX1 FOR S076-PMNUX MODIF ID MI2. " Product Group
PARAMETERS: P_WENUX1 LIKE S076-WENUX MODIF ID MI2. " Plant
PARAMETERS: P6(15) TYPE C AS LISTBOX VISIBLE LENGTH 10 MODIF ID MI2.
*PARAMETERS: P_EMAIL(255) TYPE C MODIF ID MI2.
PARAMETERS: P_EMAIL TYPE SOMLRECI1-RECEIVER. " Email Address
SELECTION-SCREEN END OF BLOCK B1.
* AT SELECTION-SCREEN OUTPUT *
AT SELECTION-SCREEN OUTPUT.
IF P1 = 'X'.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'MI2'.
SCREEN-INVISIBLE = 0.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 1.
SCREEN-OUTPUT = 1.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 = 'MI2'.
SCREEN-INVISIBLE = 0.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 1.
SCREEN-OUTPUT = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ELSEIF P2 = 'X'.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'MI1'.
SCREEN-INVISIBLE = 0.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 1.
SCREEN-OUTPUT = 1.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 = 'MI1'.
SCREEN-INVISIBLE = 0.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 1.
SCREEN-OUTPUT = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ELSE.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'MI2'.
SCREEN-INVISIBLE = 0.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 1.
SCREEN-OUTPUT = 1.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 = 'MI1'.
SCREEN-INVISIBLE = 0.
SCREEN-INPUT = 0.
SCREEN-ACTIVE = 1.
SCREEN-OUTPUT = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
Maybe you are looking for
-
Hello Gents, I cought into weird situation after upgrade VMware ESXi 5.0 to 5.1 on UCS C200M2. Before upgrade I have had server with configured static adapter-fex VNICS and floating/dynamic vm-fex interfaces working perfectly in DirectPathIO mode for
-
Mac mini vs Dual 2.5ghz G5
So I currently have a G5 running at 2.5ghz with 2gb ram and a 250gb hard drive (I think it runs at 10,000rpm) a 128mb ATI Radeon 9600 XT GPU card I run FCP 5, Motion 2, and idvd for my video projects. I also would consider myself a gamer, and I've be
-
Analysis Authorization - Strange behaviour clarification
Hi, Need to understand whether this is expected behaviour. Scenario : User1 -> Authorized to only see Q1/2008 data. The Query contains 2 restricted key figures -> Q2 Balance and Q1 Balance. When the report is run is does not fail with "No Authorizati
-
Hi, My requirement is I have to read the files from different ftp locations and put them in database. When ever there is a new record in the database I have to Extract the record and store in the XML. then I Have to move this file to multiple FTP loc
-
Why can I not access my talktalk mail account on my iPad but can do so on my MacBook Pro?
When I try to access my talktalk account on either my iPad or iPhone I cannot get past the login, however I have no difficulty on my macbookpro. I am sure I was able to do so on my iPhone before I upgraded to os6 but I have only just purchased an iPa