Problem in Report selection screen
Hi friends,
I have a requirement to change the selection screen dynamically .
My actual requirement is, i have there radio buttons in the selection screen ,
based on the click of the radio button the input blocks should get changed.
I am able to achieve that by looping the screen in the event of selection screen output.
My problem is if i execute the report defaultly the first radio button is selected ,
so my first selection screen block should display but this is not displaying.
If i write code in initilization event , this works , but this event is triggering every time
so i am unable to use this event and i am unable to set flags also to solve this .
Kindly Provide me a solution.
Thanks & Regards,
Arun.
Hi Arun,
I think may be you have misssed the part user command which is to be used as follows:
PARAMETERS RAD1 RADIOBUTTON GROUP RAD
DEFAULT 'X' USER-COMMAND flag.
If its already there, kindly copy and paste your code here so that we can help you...
Similar Messages
-
RE: HR ABAP Multiple selection problem on input selection-screen
hi friends,
I AM Facing one problem in HR abap report selection-screen , in my report employee details data getting based on payroll area
of selection-screen. Here iam SELECTION-SCREEN declarations made in program level NOT created REPORT CATEGORY FOR
PNP LDB.
ACTUAL MY PROBLEM IS IF I SELECT SINGLE PAYROLL AREA IN SELECTION-SCREEN IT GETTING DATA PERFECTLY FOR THAT
PAYROLL AREA
EX. ZA - PAYROLL AREA IF I SELECT IN SELECTION SCREEN IT FETCHING THAT PAYROLL AREA DATA PERFECTLY, PROBLEM
IS IF I SELECT MULTIPLE PAYROLL AREAS IN SELECTION-SCREEN PAYROLL AREA FIELD ZA AND ZB PAYROLLS IT FETCHING
ONLY ZA -PAYROLL DATA ONLY IT IS NOT FETCHING DATA FROM ZB PAYROLL AREA.MY REQUIREMENT IS IT SHOULD FETCH
BOTH PAYROLL DATA AND SHOWING .
HERE IAM GIVING MY SELECTION SCREEN DECLARATION SYNTAX.
SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS:
S_ABKRS FOR P0001-ABKRS NO INTERVALS," NO-EXTENSION, " PAY ROLL AREA
S_PERSA FOR P0001-WERKS NO INTERVALS," NO-EXTENSION, " PERS.AREA
SELECTION-SCREEN END OF BLOCK B2 .
PLEASE Any body knows solution for this selection give me reply.
regards,
gopalIf you are using Logical DB PNP why are you coding Selection Fields for ABKRS and WERKS? Both of these fields are defined in the PNP Selection Screen and if you use those fields then SAP will handle filtering the data.
-
Problen in report selection screen
Hi ,
I had a problem in the report.In the report selection screen user asking to keep page no option.So when they select the page no in the selection screen,so from that page number report out put should display.
how to do this.
Thanks,If you generating the LIST using the classical approch you cah use the SCROLL LIST keyword for this purpose.
Like:
DATA: L_PAGENO TYPE I.
L_PAGENO = 3.
START-OF-SELECTION.
DO 100 TIMES.
WRITE: / SY-ABCDE.
ENDDO.
SCROLL LIST INDEX 0 TO: PAGE L_PAGENO.
TOP-OF-PAGE.
WRITE: 'Top-of-page'.
Regards,
Naimesh Patel -
Problem with the selection screen in submit program
Hi Friends,
i am facing the problem wih the selection screen in submit program. in my Module pool program i am using the submit program statement, When i execute the program , The module program display the submit program selections creen.
I have implemented the code same as below.
submit ztest with tknum =p_tknum and return.
Can you pleaes help me how to avoid the submit program selection screen.
Thanks,
CharanHi Charan,
You have to give the selection screen values when you submit a job.
Press F1 on submit and you will see more details.
Here is an example from ABAP Documentation.
Program accessed
REPORT report1.
DATA text(10) TYPE c.
SELECTION-SCREEN BEGIN OF SCREEN 1100.
SELECT-OPTIONS: selcrit1 FOR text,
selcrit2 FOR text.
SELECTION-SCREEN END OF SCREEN 1100.
Calling program
REPORT report2.
DATA: text(10) TYPE c,
rspar_tab TYPE TABLE OF rsparams,
rspar_line LIKE LINE OF rspar_tab,
range_tab LIKE RANGE OF text,
range_line LIKE LINE OF range_tab.
rspar_line-selname = 'SELCRIT1'.
rspar_line-kind = 'S'.
rspar_line-sign = 'I'.
rspar_line-option = 'EQ'.
rspar_line-low = 'ABAP'.
APPEND rspar_line TO rspar_tab.
range_line-sign = 'E'.
range_line-option = 'EQ'.
range_line-low = 'H'.
APPEND range_line TO range_tab.
range_line-sign = 'E'.
range_line-option = 'EQ'.
range_line-low = 'K'.
APPEND range_line TO range_tab.
SUBMIT report1 USING SELECTION-SCREEN '1100'
WITH SELECTION-TABLE rspar_tab
WITH selcrit2 BETWEEN 'H' AND 'K'
WITH selcrit2 IN range_tab
AND RETURN.
Regards,
Jovito. -
Table Control on a report selection screen -not a dialog transaction screen
Hi
Does anyone know of a way to have table control functionality on a report selection-screen? The program needs to be able to run as a background job (ie cannot be a dialog transaction) and we need to be able to save variants with the selection-screen values.
Any help would be appreciated.
The key point is we want to allow the user to enter a dynamic number of rows of table data on the selection-screen, save a variant containing that data and execute the program with the variant as a background job.
Thanks
Nicole KnightHi Nicole,
The main problem is how to persist the data. If you are not able to create a couple of tables then you could always utilise TVARV instead. On a similar line to my original post you could have the button call a dialog transaction. In here you could do your normal GUI table control. When saving the data simply transpose each column into a separate select-option held on TVARV keyed by the 'variant name' + fieldname. Then retrieve and transpose this back when executing the report.
Other methods could be storing the data in cluster xy (see EXPORT TO DATABASE command).
This seems a bit overkill for what would be a couple of maintenance dialogs.
Cheers,
Pete
PS. The view cluster is just a way of hierarchically performing table maintenance across multiple related tables. It offers a good UI for this purpose (header and item config tables) and is utilised extensively in the IMG. -
Hiding Screen fields in a Report selection screen
Hi Experts,
I have a requirement to hide/disable screen fields in a report selection screen when the user clicks on some radio buttons .
Here is the scenario,
1) There are 4 radio buttons four radiobuttons in one group on the selection screen:--
Block no:1
PARAMETER: r_not TYPE c RADIOBUTTON GROUP a1 DEFAULT 'X'.
PARAMETER: r_prgs TYPE c RADIOBUTTON GROUP a1.
PARAMETER: r_remv TYPE c RADIOBUTTON GROUP a1.
PARAMETER: r_noresp TYPE c RADIOBUTTON GROUP a1.
2) Based on the user clicking/selecting the radio buttons no.2,3 nad 4 i need to hide some fields in the other selection block
in the selection screen.The parameters are as follows:
Block no:2( These fields need to be hidden/disabled)
PARAMETER: r_occ(3) TYPE c OBLIGATORY DEFAULT '1'.
PARAMETER: r_and TYPE c RADIOBUTTON GROUP g1.
PARAMETER: r_or TYPE c RADIOBUTTON GROUP g1.
PARAMETER: r_days(3) TYPE c OBLIGATORY DEFAULT '1'.
ThanksContd.....
AT SELECTION-SCREEN.
CASE SSCRFIELDS-UCOMM.
"When Customer button is clicked set flag 1
WHEN 'FC01'.
L_FLAG = '1'.
"When Sales Order button is clicked set flag 2
WHEN 'FC02'. "Sales order
L_FLAG = '2'.
"When Execute button is clicked set flag 4
WHEN OTHERS.
L_FLAG = '4'.
ENDCASE.
AT SELECTION-SCREEN OUTPUT.
CASE L_FLAG.
WHEN '1'. "When Customer button is clicked
LOOP AT SCREEN.
"Set the Production and Customer Block as inactive
IF SCREEN-GROUP1 = 'BL1' OR SCREEN-GROUP1 = 'BL3'.
SCREEN-ACTIVE = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
WHEN '2'. "When Sales Order button is clicked
LOOP AT SCREEN.
"Set the Production and Customer Block as inactive
IF SCREEN-GROUP1 = 'BL1' OR SCREEN-GROUP1 = 'BL2'.
SCREEN-ACTIVE = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
WHEN '3'. "When Refresh button is clicked
LOOP AT SCREEN.
"Set the all Blocks as active
IF SCREEN-GROUP1 = 'BL2' OR SCREEN-GROUP1 = 'BL3' OR SCREEN-GROUP1 = 'BL1'.
SCREEN-ACTIVE = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
WHEN OTHERS."When Execute button is clicked
"Set the Sales order and Customer Block as inactive
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'BL2' OR SCREEN-GROUP1 = 'BL3'.
SCREEN-ACTIVE = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDCASE.
ENDFORM. -
How can we read the screen field values from the report selection screen wi
Hi expart,
How can we read the screen field values from the report selection screen with out having an ENTER button pressed .
Regards
Razzuse this code...
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_posnr.
**Read the Values of the SCREEN FIELDs
CALL FUNCTION 'DYNP_VALUES_READ' -
Add a button in report selection screen
Hi Experts,
I want to add a userdefined button in report selection screen....so far i have written code like this,...
TABLES : sscrfields.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-010.
PARAMETERS: P_ID LIKE ZBAPITABLE-ID,
P_NM LIKE ZBAPITABLE-NAME.
SELECTION-SCREEN END OF BLOCK B1.
SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-020.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT (11) TEXT-001 FOR FIELD R1.
PARAMETERS: R1 RADIOBUTTON GROUP G1.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT (10) TEXT-002 FOR FIELD R1.
PARAMETERS: R2 RADIOBUTTON GROUP G1.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT (10) TEXT-003 FOR FIELD R1.
PARAMETERS: R3 RADIOBUTTON GROUP G1.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT (10) TEXT-004 FOR FIELD R1.
PARAMETERS: R4 RADIOBUTTON GROUP G1.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK B2.
SELECTION-SCREEN: FUNCTION KEY 1.
MOVE 'SAVE' TO sscrfields-functxt_01.
If i use code like this button was added in application tool bar
but in my selection screen i have two blocks ....in first block i have input fields, and in second there is set of radio buttons...Just below that i want to put one button ....how it is possible...
can anyone plz help me?
Regards,
veena.Here's th docu link:
[Pushbuttons on the Selection Screen|http://help.sap.com/saphelp_nw70/helpdata/en/9f/dba81635c111d1829f0000e829fbfe/frameset.htm]
Regards,
Clemens -
Problem in AT selection screen validation
Hi,
I am having problem in AT SELECTION SCREEN Validation.
I have 2 radiobutton and 6 parameter. if i click first radio button all the 6 radiobutton should enable and take the user input, that is working fine for me.
if i click second radiobutton , out of 6 , 3 parameter should disable and remaining 3 should enable. thats also working fine.
My problem is program has written the validation for this 3 parameter in the AT SELECTION SCREEN.
For first radioutton all the validation working fine, for second validation as soon as i press the radiobutton it will display error message. Based on 2 parameter user is filling value for 3 rd parameter.
I want the same validation to be done for second radio button after user pressing enter.
PARAMETER: p_single RADIOBUTTON GROUP rad1 DEFAULT 'X' USER-COMMAND f1,
p_multi RADIOBUTTON GROUP rad1.
PARAMETERS: s_pwwrk LIKE plaf-pwwrk.
PARAMETERS: p_lgort LIKE plaf-lgort.
PARAMETERS: p_kostl LIKE cobl-kostl.
here is my code:
AT SELECTION SCREEN.
CLEAR t001w.
CLEAR t001k.
CLEAR marv.
SELECT SINGLE * FROM t001w WHERE werks EQ s_pwwrk.
IF sy-subrc NE 0.
MESSAGE e999 WITH 'Plant' s_pwwrk 'does not exist'.
ELSE.
SELECT SINGLE * FROM t001k WHERE bwkey EQ t001w-bwkey.
SELECT SINGLE * FROM marv WHERE bukrs EQ t001k-bukrs.
IF p_budat0(4) NE marv-lfgja OR p_budat4(2) NE marv-lfmon
IF marv-xruem IS NOT INITIAL.
IF p_budat0(4) NE marv-vmgja OR p_budat4(2) NE marv-vmmon.
MESSAGE e999 WITH p_budat4(2) p_budat0(4)
'is closed.
Please try again.'.
ENDIF.
ELSE.
MESSAGE e999 WITH p_budat4(2) p_budat0(4)
'is closed.
Please try again.'.
ENDIF.
ENDIF.
ENDIF.For your Case ,
If i understand clearly,You can do the validation when you want on AT SELECTION SCREEN ON WP_FIELD.
If you say your validation to be done only for Selection of Second Radio Button, then..
AT SELECTION SCREEN.
if p_multi eq 'X'. "<- Make Validation to be done only if user select Second Button
CLEAR t001w.
CLEAR t001k.
CLEAR marv.
SELECT SINGLE * FROM t001w WHERE werks EQ s_pwwrk.
IF sy-subrc NE 0.
MESSAGE e999 WITH 'Plant' s_pwwrk 'does not exist'.
ELSE.
SELECT SINGLE * FROM t001k WHERE bwkey EQ t001w-bwkey.
SELECT SINGLE * FROM marv WHERE bukrs EQ t001k-bukrs.
IF p_budat+0(4) NE marv-lfgja OR p_budat+4(2) NE marv-lfmon
IF marv-xruem IS NOT INITIAL.
IF p_budat+0(4) NE marv-vmgja OR p_budat+4(2) NE marv-vmmon.
MESSAGE e999 WITH p_budat+4(2) p_budat+0(4)
'is closed.
Please try again.'.
ENDIF.
ELSE.
MESSAGE e999 WITH p_budat+4(2) p_budat+0(4)
'is closed.
Please try again.'.
ENDIF.
ENDIF.
ENDIF.
endif. -
Object text not coming in report selection screen
Hi,
i have an object task type for which text has been loaded.this is included in one reports selection screen.But in F4 only kee is displayed and not text.If check button is pressed text is displayed besides key.Also text doesnt come after report is executed.
please help.
Thanks,
Prasanna N.Hi Prasanna,
In the Query Designer goto the properties of the required object that you want to display key and text for it, Select the Key and Text Display option. Then you can see in report key and text for that object.
Hope this helps.
Veerendra. -
ECCS : custom characteristics into standard report selection screen
Hello guys,
I have added a custom characteristic which is also a subasignment to the EC-CS module.
This field now appears into the standard report selection screen as expected.
I want to define this field as a mandatory selection field, do you know if this is possible? (exemple of standard report CX34A)
Thank you in advance for your help
best regards
Pascal.Hi Thereza,
This field is already flaged
I have found the following solution : create a variant and assign it to the standard transcation with transaction SE93..
Best regards -
Call report selection screen in module pool program with tab strip control
Hi,
Could anyone explain in detail to call report selection screen in module pool program with tab strip control.
Thanks
ManoHi,
Refer std program:
demo_sel_screen_in_tabstrip.
demo_sel_screen_with_tabstrip.
Call your program with SUBMIT stmt form module program.
Reward points if this Helps.
Manish -
Problem in passing selection screen values using CALL TRANSACTION.
Hi All
I am facing problem in transfering selection screen values to the called transaction. I am trying to pass the path of the transaction filer but to no avail. The variable for filepath is not empty.
Below is my code:
DATA: lt_bdcdata TYPE TABLE OF bdcdata,
wa_bdcdata TYPE bdcdata,
opt TYPE ctu_params.
CLEAR wa_bdcdata.
wa_bdcdata-program = 'RFBASM00'.
wa_bdcdata-dynpro = '1000'.
wa_bdcdata-dynbegin = 'X'.
APPEND wa_bdcdata TO lt_bdcdata.
CLEAR wa_bdcdata.
wa_bdcdata-fnam = 'BDC_CURSOR'.
wa_bdcdata-fval = 'RFPDO1-FEBUMSF'.
APPEND wa_bdcdata TO lt_bdcdata.
CLEAR wa_bdcdata.
wa_bdcdata-fnam = 'RFPDO1-FEBUMSF'.
wa_bdcdata-fval = gv_filepath.
APPEND wa_bdcdata TO lt_bdcdata.
CLEAR wa_bdcdata.
wa_bdcdata-fnam = 'BDC_OKCODE'.
wa_bdcdata-fval = 'PASS'.
APPEND wa_bdcdata TO lt_bdcdata.
CLEAR wa_bdcdata.
opt-dismode = 'E'.
opt-updmode = 'S'.
CALL TRANSACTION 'FF_5' USING lt_bdcdata OPTIONS FROM opt.
Please help.
HarshHi Harsh,
I think you have entered wrong main program for tcode 'FF_5' and wrong screen field for the file name. Use the below code instead of yours.
DATA: lt_bdcdata TYPE TABLE OF bdcdata,
wa_bdcdata TYPE bdcdata,
opt TYPE ctu_params,
gv_filepath type char128 value 'C:\testfile.txt'.
CLEAR wa_bdcdata.
wa_bdcdata-program = 'RFEBKA00'.
wa_bdcdata-dynpro = '1000'.
wa_bdcdata-dynbegin = 'X'.
APPEND wa_bdcdata TO lt_bdcdata.
CLEAR wa_bdcdata.
wa_bdcdata-fnam = 'BDC_CURSOR'.
wa_bdcdata-fval = 'UMSFILE'.
APPEND wa_bdcdata TO lt_bdcdata.
CLEAR wa_bdcdata.
wa_bdcdata-fnam = 'UMSFILE'.
wa_bdcdata-fval = gv_filepath.
APPEND wa_bdcdata TO lt_bdcdata.
CLEAR wa_bdcdata.
*wa_bdcdata-fnam = 'BDC_OKCODE'.
*wa_bdcdata-fval = 'PASS'.
*APPEND wa_bdcdata TO lt_bdcdata.
*CLEAR wa_bdcdata.
opt-dismode = 'A'.
opt-updmode = 'S'.
CALL TRANSACTION 'FF_5' USING lt_bdcdata OPTIONS FROM opt.
Thanks.
Regards,
Jey -
BEx web report selection screen entries retain when closing and opening the report again
Hello all,
please help me in the below query.
Till last month the entries we made in BEx web report selection screen are retained in the selection screen even when we close the web report and open it again from portal without logging off. But recently this functionality is missing and the entries in selection screen are not remembered when we close and open the same report again. It is a good feature for the users. Have you come across this issue?No...I think i can reframe the question very clearly......For ex: we are opening a Bex Web report...so initally we would be prompted by the variable selection screen...in which we have to give the entries(Values) for those variables like Cal month, Sales org, Company code, etc.....Later on the report will get open based on the values we have given......
Now if we close the particular report without logging off then if i try to open the same report that selected values are missing.....earlier it used to remember the values we have given until we log off....But now that functionality is missing....It was very useful feature.....Can you please tel me what can be done to resolve this??
I hope the explanation would be clear now. -
Number of Entries icon should come on report selection screen
Hi,
In my requirement, I want Number of Entries icon on my report selection screen.
Means when i insert the required selection parameter's, then i want to see the total number of entries, which is come after the execution of my report.
Please let me know that how can i do it...
Regards..HI.
Check the link display number of line items in my report at the title bar
I have extract the part from the above link.
if u want to display the no of line items, as shown in SE16, u create a SET STATUS with a push button with name No of Entries on the report screen.For that status, u write the code as to display no of lines in ur table by using either
DESCRIBE TABLE itab LINES lin.
lin gives the no of line items.
or
select count(*) from vbap.
write sy-dbcnt.
U got require output, when ur pressing No of entries button, then this will display on the output screen.
Thanks and Regards
Sachin Sharma
Maybe you are looking for
-
How to change delivery priority in stock transfer schedule agreements.
Hi Experts, we have an issue, the delivery priority is changed in the customer master recently and the deliveries created for the old schedule agreements pick the old delivery priority. we need to change the delivery priority in schedule agreements.
-
SSL cert error on exchange 2013.
Hi, Can I please have some help to avoid the following two error messages appears on opening outlook 2013 on windows 7 connected directly to the server 2012 domain. Godaddy SSL cert is installed on mail.domain.com and firewall forwarding is properly
-
How to validate Compnay Codes entered through PFCG Transaction
Hi friends, I am uploading EXCEL File containing company codes for different combinations of Role and Organization elements.Now I have to validate these compnay codes with those entered into System through the PFCG Transaction .Gor Eg.I
-
Source of the Australia's Address Dictionaries
Which is the source for the Australia Address Cleanse month directory files? The Australia Post? Thanks.
-
How do I burn songs to a CD from iTunes?
Okay so basically I bought an album on iTunes and want to burn it to a cd, anytime I try its saying disc burner or software are not found, I've absolutely no clue what to do and would appreciate any help at all. Also I accidently deleted the album I