Drop down list in report program
Hi all,
I am using the function module VRM_SET_VALUES to display the drop down list for a selection screen field for a report program. It works fine in foreground but in background mode the job is getting cancelled and the error log states 'Make an entry in all required fields'. If I remove this code for drop down list for a selection screen field then the program runs correctly in back ground mode. So i feel there is some problem with the function module. Can anyone suggest me an alternate function module or how to correct this error. I have used the condition if 'SY-BATCH' is initial only then to exceute the code for displaying the drop down list for a selection screen field. But even then the background job gets cancelled. The function module is called in the event AT SELECTION-SCREEN output.
Thank you.
Regards,
Sowmya.
Hi,
Easy! You are calling that function module in the wrong event. It should be called in :
at selection-screen on value-request for <field name>
This way it is only executed if the user presses F4 (dropdown help) on that field.
Therefore it will no longer cause a problem for your background job.
cheers
Paul Bakker
Hanabi Technology
Similar Messages
-
How to add a dynamic drop down list in RDLC reports in WPF
I have to Load an RDLC report in WPF application and need to include a drop down list in report.Based on the selection of drop down list different reports to be generated.I am using C# and WPF.
Eg: I have to list the details of employees in in RDLC report.There is a country drop down list, Based on the selection of country drop down list we need to display details of employees in the selected country.Looking good.
With rdlc I think you will have to use the windows report viewer control.
If this was SAP crystal reports there's a wpf report viewer.
I never actually tried that with rdlc and I suppose there is a small chance they turn out to be compatible.
If you have questions on rdlc specifically then you're probably better finding a forum specialises in that. Not sure where that would be but maybe in the sql server forums. It's a business intelligence thing and people who do the likes of ssis are
what you want really.
I do reporting myself but I think you'll find few others who do so here.
Good luck.
Hope that helps.
Recent Technet articles:
Property List Editing;
Dynamic XAML -
How to filter selection in drop down box in Report Builder 3.0
New to SQL reporting services -
what is the syntax for filtering the drop down list in Report Builder 3.0?
I have the following: =Parameters!ReportParameter1.value and =Fields!Store.value
my drop down shows the project name numerous times rather than just once.New to SQL reporting services -
what is the syntax for filtering the drop down list in Report Builder 3.0?
I have the following: =Parameters!ReportParameter1.value and =Fields!Store.value
my drop down shows the project name numerous times rather than just once.
Hi ,
If I understood your requirement clearly then you need distinct value in Parameter list.
In this case you need to select a distinct record in dataset that will be further used as Parameter input.
Lets say your pameter accept value from dataset1;
select 'Project1' pp
union all
select 'Project1'
union all
select 'Project1'
union all
select 'Project2'
union all
select 'Project2'
union all
select 'Project3'
so in this case your report parameter will show.
By selecting distinct record you will get ;
Thanks
Please Mark This As Answer or vote for Helpful Post if this helps you to solve your question/problem. http://techequation.com -
Drop Down list in a report program
Hi,
We have a requirement wherin we need to have three drop down lists( i.e., shirt size, color and neck type) and we need to select data from the different standard tables. It is to be done in a report.
Any pointers regarding this would be helpful.
Regards,
Amrita.Hi,
Check the following code:
TYPE-POOLS : vrm.
TABLES:vbak,vbap.
DATA : v(80) TYPE c.
DATA: wa_vbak TYPE vbak,
it_vbak TYPE vbak OCCURS 0 WITH HEADER LINE,
wa_vbap TYPE vbap,
it_vbap TYPE vbap OCCURS 0 WITH HEADER LINE.
DATA: l_name TYPE vrm_id,
li_list TYPE vrm_values ,
v_count TYPE i,
l_value LIKE LINE OF li_list.
PARAMETERS: p_test(20) AS LISTBOX VISIBLE LENGTH 60 MODIF ID DAT.
INITIALIZATION.
AT SELECTION-SCREEN OUTPUT.
PERFORM get_data.
LOOP AT it_vbak.
l_value-key = it_vbak-vbeln .
l_value-text = it_vbak-vbeln .
APPEND l_value TO li_list.
ENDLOOP.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'P_TEST'
values = li_list
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.
AT SELECTION-SCREEN ON P_TEST.
clear : li_list , li_list[].
SELECT vbeln
matnr
meins
FROM vbap
INTO CORRESPONDING FIELDS OF TABLE it_vbap
WHERE vbeln = p_test.
START-OF-SELECTION.
SELECT vbeln
matnr
meins
FROM vbap
INTO CORRESPONDING FIELDS OF TABLE it_vbap
WHERE vbeln = p_test.
LOOP AT it_vbap.
WRITE :/ it_vbap-vbeln, it_vbap-matnr,it_vbap-meins.
ENDLOOP.
*& Form get_Data
text
FORM get_data .
SELECT vbeln
FROM vbak
INTO CORRESPONDING FIELDS OF TABLE it_vbak.
ENDFORM. " get_Data
Regards,
Bhaskar -
Show the drop down list of variant on the selection screen in ALV reports
Hi,
i have a alv report when i execute this display will come and then i click display layout it save as a variant on the selection screen and when i go back to selection screen and press f4 on the display variant its show the drop down list of varient.
can u send me some code for this functionality...its very urgent.
thanks!
VipinHi,
try inserting this code apropietly in you program. (1 parameter + Initialization + At-selection-screen + 2 forms)
START HERE
PARAMETERS: pa_vari TYPE disvariant-variant.
INITIALIZATION.
g_repid = sy-repid.
CLEAR e_variant.
e_variant-report = sy-cprog.
e_variant-username = sy-uname.
CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
EXPORTING
i_save = 'A'
CHANGING
cs_variant = e_variant
EXCEPTIONS
not_found = 2.
IF sy-subrc = 0.
pa_vari = e_variant-variant.
ENDIF.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR pa_vari.
PERFORM alv_variant_f4 CHANGING pa_vari.
*& Form ALV_VARIANT_F4
FORM alv_variant_f4 CHANGING pa_vari.
DATA: l_exit(1) TYPE c.
CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
EXPORTING
is_variant = e_variant
i_tabname_header = 'ANYTHING'
i_save = 'A'
IMPORTING
e_exit = l_exit
es_variant = e_variant
EXCEPTIONS
not_found = 2.
IF sy-subrc = 2.
MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
IF l_exit = space.
pa_vari = e_variant-variant.
ENDIF.
ENDIF.
ENDFORM. " ALV_VARIANT_F4
END
Hope iy helps!
Alfonso -
How to add user command to drop down list in output screen for OALV Report
Hi Experts,
I have created a report by using OALV.
in Output screen i have added drop down for one filed with 2 values.
when i select value from the drop down list the program should trigger and the next field should be update.
so it is possiable to add a user command for the drop down list in output screen.
if so please help me .
Regards,
RathanHI,
Check the Demo program BCALV_EDIT_06 with having the DATA_CHANGED event still you can capture the changed data. This event will help you.
or you can go for this code..
data: it_f4 type lvc_t_f4,
wa_f4 type lvc_s_f4.
wa_f4-FIELDNAME = 'CONNID'.
wa_f4-REGISTER = 'X'.
wa_f4-GETBEFORE = 'X'.
wa_f4-CHNGEAFTER = 'X'.
append wa_f4 to it_f4.
"register F4 event
CALL METHOD g_alv_grid_ref->register_f4_for_fields
EXPORTING
it_f4 = it_f4.
"Once you try to pick the value HANDLE_DATA_CHANGED event will be triggered
"Definition
methods:
handle_data_changed FOR EVENT data_changed OF cl_gui_alv_grid
IMPORTING er_data_changed e_onf4 e_onf4_before e_onf4_after,
"Implementation
METHOD handle_data_changed .
DATA: ls_mod_cells TYPE lvc_s_modi.
IF e_onf4_before = 'X'.
MESSAGE 'Data changed before F4' TYPE 'I'.
ENDIF.
IF e_onf4 = 'X'. "if event triggered by F4
MESSAGE 'Data changed on F4' TYPE 'I'.
ENDIF.
IF e_onf4_after = 'X'.
MESSAGE 'Data changed after F4' TYPE 'I'.
ENDIF.
"here you know which cell was modified
LOOP AT er_data_changed->mt_mod_cells INTO ls_mod_cells.
"just example test case, here you can implement your code for modified cells
IF ls_mod_cells-value >=5.
CALL METHOD er_data_changed->add_protocol_entry
EXPORTING
i_msgid = 'SABAPDOCU'
i_msgty = 'E'
i_msgno = '888'
i_msgv1 = 'Only numbers below 5 are possibe'
i_msgv2 = 'Please correct'
i_fieldname = ls_mod_cells-fieldname
i_row_id = ls_mod_cells-row_id.
CALL METHOD er_data_changed->modify_cell
EXPORTING
i_fieldname = ls_mod_cells-fieldname
i_row_id = ls_mod_cells-row_id
i_value = space.
ENDIF.
ENDLOOP.
ENDMETHOD. "handle_data_changed
Edited by: sum_it2 on Nov 21, 2011 10:07 AM -
I need to be able to add in more options into my drop down list in Numbers at a later time, not only at the bottom but say in the middle of the list. Should I be using a different program that can allow this to work? Thank you!
This forum thread appears to point towards the problem.
Re: Unable to Switch Audio Sync Settings -
JSP HTML parameter form to call report - Dependent drop down list
I have a report parameter form developed using HTML & JSP to call oracle reports6i.
First parameter "STATES", Second Parameter "CITY"
I have a master-detail relation betwen STATE & CITY table.
I want the parameter form drop down lists dependant. ie if the user chang STATE value in the first drop down, the second drop down list CITY shoud
change automatically.
Please help
Thanks
VimalVimal,
This is not functionality that's available in the Reports generated parameter form. In order to do this you'll need to build the parameter form yourself as a true HTML form and code the javascript to link the fields.
Hope this helps,
Danny -
Populating the "Collections" drop down list in FEP reports
When an FEP Antimalware report (e.g., the Antimalware Activity Report) opens in Report Manager or the FEP console, I see a drop-down list labeled
Collection: from which I need to make a selection before the report can run. But on our site, this drop-down list is not populated, even though ConfigMgr shows that collections do exist on our site.
The report is running under credentials that should have full access to everything in the relevant databases, so I'm puzzled. Any suggestions?This old post and there are a lot of improvements in FEP's successor which is System Center Endpoint Protection (SCEP), you may try use SCEP and try reproduce the problem and if problem persist let us know.
Sometimes, it is issue due to SQL database , so check SQL and make sure it is working correctly and is fully updated. -
How to Generate a report based on a drop-down list?
Good Afternoon,
I am looking for a way to create a drop down list/select list with the values '2008' and '2009'. Based on the value selected in the list, data will be displayed from a table.
In the table, there is January to December for 2008 and January to December of 2009. So when selecting '2008', I would like January to December 2008 to be displayed.
Thank you.Hi,
Create a static LOV with the following source:
STATIC:2008,2009
Assuming your LOV is named P1_LOV your report SQL would look something like:SELECT * FROM TABLE WHERE DATE LIKE '%' || :P1_LOV || '%' -
Hi,
in my ssrs report i have two parameters, accounts and Manager ,there is a cascading between the accounts parameter and manager parameter, as per the cascading we will get managers names based on the account we selected in the accounts parameter,
my requirement is the first name in the mangers drop down list has to get selected as default value.
please help me with this, it is an urgent requirement.
Thanks in advance,
NaveenHi NaveenMSBI,
According to your description, you want to use cascading parameters in the report, if the accounts are selected when you preview the report, the first manager name will be selected from drop down list as the default value. If so, there can be two scenarios:
• If manager is single-valued parameter, we can get Available Values and Default Values from the same query as below. Then when the accounts are selected, the first manager name will be selected as default value.
SELECT managerName FROM table_name WHERE accounts IN (@accounts)
• If manager is multi-valued parameter, we need to use different query for Available Values and Default Values. In this case, please refer to Patrick’s solution.
For more information about Adding Cascading Parameters, please refer to the following document:
http://technet.microsoft.com/en-us/library/aa337498(v=sql.105).aspx
If you have any questions, please feel free to let me know.
Best Regards,
Wendy Fu -
Custom drop down list for the filter for BEX report
Hi, all:
I am writing a query for a BEX report that prompts the user to enter a value for a field "GL account". I would like to have the user select from a limited number of GL options rather than have the whole Chart of accounts show up. Is there a way to make a "custom" drop down list for the filter?
Thanks!
JennyYou need to make your GL account info object as an authorization object. And in the info object ,for BEx you need to select the option "only authorized values".
Create an analyis authorization on gl account and assign the restricted set of GL accounts to the user. Asign this analysis authorization to the user.In the query restrict this infoobject with an authorization variable. This would solve your purpose.user would be able to see only a selected set of GL accounts for which he is authorized. -
Pull New Report under Contract Management Drop-down list
Hi Experts ,
We have a requirement to create a new Report and pull into the drop-down list of Contract Management . I have created a new report , but guide me with steps to pull the report to the Drop-down list .
Regards,
TayiHi Tayi,
If you have done everything as you mentioned above then there is no reason that the query/report should not show up in the drop-down.
You might need to log-off and login again to see the changes you made.
Apart from that I don't see any particular reason why the system should behave differently.
Do let us know if you are able to arrive at your solution in some other way.
Thanks
Devesh -
Drop down list in module pool program.
Hi Experts,
Can any one tell me how to maintain values in dropdown list on screen of module pool.
I have ' z' module pool program in which i have screen for z tcode and i want to add new values in drop down list . please tell me where to do modification.
Regards,
Rahul SHi,
Check the below code.
TYPE-POOLS: VRM.
DATA:V_NUM TYPE I.
DATA:NAME TYPE VRM_ID,
LIST TYPE VRM_VALUES,
VALUE LIKE LINE OF LIST.
DATA:I_WORKPATTERN LIKE ZWORKPAT OCCURS 0 WITH HEADER LINE.
DATA:ZPATTXT(60).
MODULE WORKPATTERN_LISTBOX OUTPUT.
NAME = 'P9434-ZWORKPATTERN'. --> Screen Field
IF V_NUM IS INITIAL.
CLEAR I_WORKPATTERN.
REFRESH I_WORKPATTERN.
SELECT *
FROM ZWORKPAT --> List box contents from the z table
INTO TABLE I_WORKPATTERN.
IF NOT I_WORKPATTERN[] IS INITIAL.
LOOP AT I_WORKPATTERN.
VALUE-KEY = I_WORKPATTERN-ZWORKPATTERN.
VALUE-TEXT = I_WORKPATTERN-ZWORKPATTERN.
APPEND VALUE TO LIST.
ENDLOOP.
ENDIF.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = NAME
VALUES = LIST
EXCEPTIONS
ID_ILLEGAL_NAME = 1
OTHERS = 2.
IF SY-SUBRC 0.
CLEAR SY-SUBRC.
ENDIF.
V_NUM = V_NUM + 1.
ENDIF.
Regards,
Kumar Bandanadham
Edited by: Velangini Showry Maria Kumar Bandanadham on May 26, 2009 3:53 PM -
Following the instructions for reporting an issue with a purchase problem, when selecting "report a probelm", I am not provided with a drop down list, I am redirected to the help page instead.
Is there any other way to report an issue where the app owner has taken the funds twice for the same product at literally the same time?To Contact iTunes Customer Service and request assistance
Use this Link > Apple Support iTunes Store Contact
Maybe you are looking for
-
Application Exception using @Application not working
I'm trying to create 2 business application exception using the @Application annotation on my 2 java exception class. The first exception is a StarException class that extends java.lang.Exception (per ejb 3.0 spec). Below is snippet of the class. @Ap
-
HT3702 how can i get refund for a double charged app
how can i get refund for a double charged app
-
Hi I would like to create Read Only responsibility for administration purpose. As i have seen in this forum that, there are some read only resposibilities for AR, HR, AP etc. Like wise responsibility for administration purpose. I do not want to creat
-
59 Days and counting and Photo Stream still grayed out in iCloud C
59 Days and counting and Photo Stream still grayed out in iCloud CP since problem first discussed with Apple. No help, just reported to software engineers for investigation. Almost two months ago! So much forApples' superior products and customer ser
-
Connecting Remote Database in 8i
I have system in my house, windows 2000 is OS,Oracle as database I want to connect My freinds Database using the Modem. Do I require His IP ADDRESS. specifing his IP ADDRESS in listner can it possible.If any body having solution. pls reply