Define selection screen for ldb_process
Hi I'm using the call function ldb_process for KDF(lfa1, lfb1, bsik), the trouble is that the information its different than if i do it on a normal report defining the logical database kdf and selection screen 903.
I find that the difference is because the selection screen, this is because the default selection screen for the kdf database is 1000, and this selection has the "Open items at key date" selection with the current date.
The question is:
How can i define the selection screen 903 using the call function ldb_proces?
Thanks
Pablo Santos
Hi,
You cannot define screen version 903 using function LDB_PROCESS. Instead use table "SELECTIONS" of the function module .
Cheers.
Similar Messages
-
User defined Selection screen for Logical database
hi all,
can we display a user defined selection screen instead of the default selection screen in LDB . eg pnp
cheers
senthilHi,
to my knowledge, the selection screen of a logical database can only be changed (versions!) in the logical database itself.
What you can do is, write a program with your own selection screen an then either call another program that uses the LDB or - much better - you call the LDB from your program with function module LDB_PROCESS!
Example taken from the example library (TA ABAPDOCU):
<b>REPORT demo_logical_database.
DATA wa_spfli TYPE spfli.
SELECT-OPTIONS s_carr FOR wa_spfli-carrid.
DATA: callback TYPE TABLE OF ldbcb,
callback_wa LIKE LINE OF callback.
DATA: seltab TYPE TABLE OF rsparams,
seltab_wa LIKE LINE OF seltab.
callback_wa-ldbnode = 'SPFLI'.
callback_wa-get = 'X'.
callback_wa-get_late = 'X'.
callback_wa-cb_prog = sy-repid.
callback_wa-cb_form = 'CALLBACK_SPFLI'.
APPEND callback_wa TO callback.
CLEAR callback_wa.
callback_wa-ldbnode = 'SFLIGHT'.
callback_wa-get = 'X'.
callback_wa-cb_prog = sy-repid.
callback_wa-cb_form = 'CALLBACK_SFLIGHT'.
APPEND callback_wa TO callback.
seltab_wa-kind = 'S'.
seltab_wa-selname = 'CARRID'.
LOOP AT s_carr.
MOVE-CORRESPONDING s_carr TO seltab_wa.
APPEND seltab_wa TO seltab.
ENDLOOP.
CALL FUNCTION 'LDB_PROCESS'
EXPORTING
ldbname = 'F1S'
variant = ' '
TABLES
callback = callback
selections = seltab
EXCEPTIONS
ldb_not_reentrant = 1
ldb_incorrect = 2
ldb_already_running = 3
ldb_error = 4
ldb_selections_error = 5
ldb_selections_not_accepted = 6
variant_not_existent = 7
variant_obsolete = 8
variant_error = 9
free_selections_error = 10
callback_no_event = 11
callback_node_duplicate = 12
OTHERS = 13.
IF sy-subrc <> 0.
WRITE: 'Exception with SY-SUBRC', sy-subrc.
ENDIF.
FORM callback_spfli USING name TYPE ldbn-ldbnode
wa TYPE spfli
evt TYPE c
check TYPE c.
CASE evt.
WHEN 'G'.
WRITE: / wa-carrid, wa-connid, wa-cityfrom, wa-cityto.
ULINE.
WHEN 'L'.
ULINE.
ENDCASE.
ENDFORM.
FORM callback_sflight USING name TYPE ldbn-ldbnode
wa TYPE sflight
evt TYPE c
check TYPE c.
WRITE: / wa-fldate, wa-seatsocc, wa-seatsmax.
ENDFORM.</b> -
How to define our own selection screen for logical database in abap-hr?
Hi Friends,
Can u please help me
How to define your own selection screens for logical database.
we use to do like(goto->attributes-HRReportcatagerious ).but How to desin using customer table like t599c, t599f and how to add to my logical database?
Thanks in advance
charancheck out this online help
http://help.sap.com/saphelp_erp2004/helpdata/en/9f/dba65c35c111d1829f0000e829fbfe/frameset.htm
Regards
Raja -
Problem with user defined selection-screens
Hi,
in my case, i have a default selection screen and a user defined selection screen. Now, after selecting a radio button in default selection screen, the user defined selection screen is called. after executing it report output is displayed. now if i press f3 (back) it is going to default selection screen. here my requirement is, when i press f3 it should go to the user defined selection.
Can u plz help me solve this.
bye n regards
sreeAny modifications to screen 1000 will be lost the next time the program is generated.
When the user hits the back key from the report output, your ABAP is restarted just like when you originally started it. That is why you are getting the default selection screen again.
Use the AT USER-COMMAND event. When BACK is hit from the report, use the SUBMIT command to re-execute the program, passing it the selections from the default selection screen. Leave out the RETURN option.
For help on filling the selection screen during SUBMIT, help is available at
http://help.sap.com/saphelp_470/helpdata/en/9f/dba51a35c111d1829f0000e829fbfe/frameset.htm -
Transporting user defined selection screen from one server to another
How to transport a user defined selection screen (0100) from one server to another.
PBO and PAI modules written in PBO and PAI events for the selection screen are
not transported.
How to transport the modules in the events for the selection screen.Hi,
Krishna, <b>All</b> the Objects(prms,classes,tables,stru...) will be transported thru Transport Objects only..
Check Utilities->version->Version Mgt -> Here u will have the Transport number(if it's created under trnasportable obj).If you do not find TP no,then u would hav saved that as a Local Object.
Then Relase the TP no from SE10 Trnx.
Rgds,
Jothi.P -
Hi, In my program i used a default seelction screen and 5 user defined selection screen. Based on the selections made in default selection screen, it should go to the corresponding user defined screen.
and the problem iam getting if i press enter jey insted of F8.
""Selection screen ZP2I_MASSCHANGE_TEMP1 1000 was
not called using CALL SELECTION-SCREEN"""
the code is as follows.
A T S E L E C T I O N-S C R E E N
*AT SELECTION-SCREEN.
AT SELECTION-SCREEN ON RADIOBUTTON GROUP rgp1.
CHECK SY-UCOMM EQ 'ONLI' OR SY-UCOMM EQ 'CRET' .
Download
IF r_dwnld = c_check.
Material Screen Call
IF r_matplt = c_check.
CLEAR p_werks7.
sree = 'A'.
CALL SELECTION-SCREEN 170.
ENDIF.
Material Storage Screen Call
IF r_matstr = c_check.
CLEAR p_werks1.
sree = 'B'.
CALL SELECTION-SCREEN 110.
ENDIF.
Material Handling Screen Call
IF r_mathan = c_check.
CLEAR p_werks2.
sree = 'C'.
CALL SELECTION-SCREEN 120.
ENDIF.
Material Pick/Up Delivery Screen Call
IF r_pcdt = c_check.
CLEAR p_werks3.
sree = 'D'.
CALL SELECTION-SCREEN 130.
ENDIF.
Material Inboundlogistics Screen Call
IF r_inlogs = c_check.
CLEAR p_werks4.
sree = 'E'.
CALL SELECTION-SCREEN 140.
ENDIF.
Material Packaging Screen Call
IF r_pkng = c_check.
CLEAR p_werks5.
sree = 'F'.
CALL SELECTION-SCREEN 150.
ENDIF.
ENDIF.
Upload Screen Call
IF r_upld = c_check.
IF ( r_matplt = c_check OR
r_matstr = c_check OR
r_mathan = c_check OR
r_pcdt = c_check OR
r_inlogs = c_check OR
r_pkng = c_check ).
CLEAR p_uload.
sree = 'G'.
CALL SELECTION-SCREEN 160.
ENDIF.
ENDIF.
s T A R T - O F - S E L E C T I O N
START-OF-SELECTION.
DOWNLOAD
CASE sree.
WHEN 'A'.
Select Material Details
PERFORM get_material_data.
IF NOT tbl_matplt[] IS INITIAL.
IF p_dalv7 = c_check.
Display list in ALV
PERFORM setup_alv_report.
ELSE.
Download Storage data into local file
PERFORM download_file USING p_matdet.
ENDIF.
ELSE.
MESSAGE s020.
ENDIF.
CALL SELECTION-SCREEN 170.
Select Material storage data
WHEN 'B'.
PERFORM get_storage_data.
IF NOT tbl_matstr[] IS INITIAL.
IF p_dalv1 = c_check.
Display list in ALV
PERFORM setup_alv_report.
ELSE.
Download Storage data into local file
PERFORM download_file USING p_matstr.
ENDIF.
ELSE.
MESSAGE s020.
ENDIF.
CALL SELECTION-SCREEN 110.
Select Material Handling data
WHEN 'C'.
PERFORM get_materialhandling.
IF NOT tbl_mathand[] IS INITIAL.
IF p_dalv2 = c_check.
Display list in ALV
PERFORM setup_alv_report.
ELSE.
Download Material Handling data into local file
PERFORM download_file USING p_mathan.
ENDIF.
ELSE.
MESSAGE s020.
ENDIF.
CALL SELECTION-SCREEN 120.
Select Pick/Up DayTime data
WHEN 'D'.
PERFORM get_pickup_delivery.
IF NOT tbl_pcdel[] IS INITIAL.
IF p_dalv3 = c_check.
Display list in ALV
PERFORM setup_alv_report.
ELSE.
Download Pick/Up DayTime data into local file
PERFORM download_file USING p_pcdt.
ENDIF.
ELSE.
MESSAGE s020.
ENDIF.
CALL SELECTION-SCREEN 130.
Select Inbound Logistics data
WHEN 'E'.
PERFORM get_inboundlogistics.
IF NOT tbl_inlog[] IS INITIAL.
IF p_dalv4 = c_check.
Display list in ALV
PERFORM setup_alv_report.
ELSE.
Download Inbound Logistics data into local file
PERFORM download_file USING p_inlogs.
ENDIF.
ELSE.
MESSAGE s020.
ENDIF.
CALL SELECTION-SCREEN 140.
Select Packaging data
WHEN 'F'.
PERFORM get_packaging.
IF NOT tbl_pkng[] IS INITIAL.
IF p_dalv5 = c_check.
Display list in ALV
PERFORM setup_alv_report.
ELSE.
Download Packaging data into local file
PERFORM download_file USING p_pkng.
ENDIF.
ELSE.
MESSAGE s020.
ENDIF.
CALL SELECTION-SCREEN 150.
WHEN 'G'.
Material Details data upload
IF r_matplt = c_check.
Free memory IDs corresponding to upload tables
PERFORM free_memory.
Upload Material details from local file
PERFORM load_file USING p_uload.
Prepare data
PERFORM prepare_mat_data.
Get actual Material Details from ZP2_MATPLT
PERFORM get_old_material_data.
Validate new data against database entries
PERFORM validate_material_data.
Check Plant authorization
Move plants to itab.
REFRESH tbl_plts.
LOOP AT tbl_matplt.
tbl_plts-werks = tbl_matplt-werks.
APPEND tbl_plts.
CLEAR tbl_plts.
ENDLOOP.
DELETE ADJACENT DUPLICATES FROM tbl_plts
COMPARING werks.
Check authoriztions
PERFORM check_plant_authorization1 TABLES tbl_plts.
REFRESH tbl_plts.
IF p_trun IS INITIAL.
Modify material data
PERFORM modify_zp2_matplt.
ENDIF.
Material Storage data upload
IF r_matstr = c_check.
Free memory IDs corresponding to upload tables
PERFORM free_memory.
Upload material storage data from local file
PERFORM load_matstr_data USING p_uload.
PERFORM load_file USING p_uload.
Get the material storage data from database
PERFORM get_old_storage_data.
Get material plant data for the corresponding
Storage data.
PERFORM get_matplt_data_storage.
Get data from table fields
PERFORM get_tblfld_values.
Validate data against database entries
PERFORM validate_storage_data.
Check Plant authorization
Move plants to itab.
REFRESH tbl_plts.
LOOP AT tbl_matstr.
tbl_plts-werks = tbl_matstr-werks.
APPEND tbl_plts.
CLEAR tbl_plts.
ENDLOOP.
DELETE ADJACENT DUPLICATES FROM tbl_plts
COMPARING werks.
Check authoriztions
PERFORM check_plant_authorization1 TABLES tbl_plts.
REFRESH tbl_plts.
IF p_trun IS INITIAL.
Modify material storage data
PERFORM modify_zp2matstr_table.
ENDIF.
ENDIF.
Material Handling data upload
IF r_mathan = c_check.
Free memory IDs corresponding to upload tables
PERFORM free_memory.
Upload material Handling data from local file
PERFORM load_file USING p_uload.
Get the material Handling data from database
PERFORM get_old_materialhandling.
Get material plant data for the corresponding
handling data.
PERFORM get_matplt_data_handling.
Validate data against database entries
PERFORM validate_handling_data.
Check Plant authorization
Move plants to itab.
REFRESH tbl_plts.
LOOP AT tbl_mathand.
tbl_plts-werks = tbl_mathand-werks.
APPEND tbl_plts.
CLEAR tbl_plts.
ENDLOOP.
DELETE ADJACENT DUPLICATES FROM tbl_plts
COMPARING werks.
Check authoriztions
PERFORM check_plant_authorization1 TABLES tbl_plts.
REFRESH tbl_plts.
IF p_trun IS INITIAL.
Modify material handling data
PERFORM modify_zp2mathand_table.
ENDIF.
ELSEIF sy-ucomm = c_s.
LEAVE SCREEN.
ENDIF.
Material Pick/Up DayTime data upload
IF r_pcdt = c_check.
Free memory IDs corresponding to upload tables
PERFORM free_memory.
Upload Pick/Up DayTime file data from local file
PERFORM load_file USING p_uload.
Get the Pick/Up DayTime data from database
PERFORM get_old_pickup_delivery.
Get Inbound logistics data corresponding to handling
PERFORM get_inlogs_pcdel.
Validate data against database entries
PERFORM validate_pcdel_data.
Check Plant authorization
Move plants to itab.
REFRESH tbl_plts.
LOOP AT tbl_pcdel.
tbl_plts-werks = tbl_pcdel-werks.
APPEND tbl_plts.
CLEAR tbl_plts.
ENDLOOP.
DELETE ADJACENT DUPLICATES FROM tbl_plts
COMPARING werks.
Check authoriztions
PERFORM check_plant_authorization1 TABLES tbl_plts.
REFRESH tbl_plts.
IF p_trun IS INITIAL.
Modify Pick/Up DayTime table
PERFORM modify_zp2pcdt_table.
ENDIF.
ELSEIF sy-ucomm = c_s.
LEAVE SCREEN.
ENDIF.
Material Inbound Logistics data upload
IF r_inlogs = c_check.
Free memory IDs corresponding to upload tables
PERFORM free_memory.
Upload Inbound Logistics file data from local file
PERFORM load_file USING p_uload.
Get the Inbound Logistics data from database
PERFORM get_old_inboundlogistics.
Get data from table fields
PERFORM get_tblfld_values.
Get Vendor data
PERFORM get_vendor_inlog.
Get material plant data for the corresponding
Inboundlogistics data.
PERFORM get_matplt_data_inlog.
Validate data against database entries
PERFORM validate_inlog_data.
Check Plant authorization
Move plants to itab.
REFRESH tbl_plts.
LOOP AT tbl_inlog.
tbl_plts-werks = tbl_inlog-werks.
APPEND tbl_plts.
CLEAR tbl_plts.
ENDLOOP.
DELETE ADJACENT DUPLICATES FROM tbl_plts
COMPARING werks.
Check authoriztions
PERFORM check_plant_authorization1 TABLES tbl_plts.
REFRESH tbl_plts.
IF p_trun IS INITIAL.
Modify Inbound Logistics table
PERFORM modify_zp2inlog_table.
ENDIF.
ENDIF.
Packaging data upload
IF r_pkng = c_check.
Free memory IDs corresponding to upload tables
PERFORM free_memory.
Upload Packaging file data from local file
PERFORM load_file USING p_uload.
Get the Packaging data from database
PERFORM get_old_packaging.
Get material plant data for the corresponding
Packaging data.
PERFORM get_matplt_data_pkng.
Get Vendor data
PERFORM get_vendor_pkng.
Get data from table fields
PERFORM get_tblfld_values.
Load Primary container reference data
PERFORM primary_container_data.
Validate data against database entries
PERFORM validate_packaging_data.
Check Plant authorization
Move plants to itab.
REFRESH tbl_plts.
LOOP AT tbl_pkng.
tbl_plts-werks = tbl_pkng-werks.
APPEND tbl_plts.
CLEAR tbl_plts.
ENDLOOP.
DELETE ADJACENT DUPLICATES FROM tbl_plts
COMPARING werks.
Check authoriztions
PERFORM check_plant_authorization1 TABLES tbl_plts.
REFRESH tbl_plts.
IF p_trun IS INITIAL.
Modify Packaging data
PERFORM modify_zp2pckg_table.
ENDIF.
ENDIF.
ENDIF.
IF p_trun = c_check.
Display the Error list
PERFORM display_result.
CALL SELECTION-SCREEN 160.
ENDIF.
ENDCASE.
Another problem is If i press BACK on the report output, it is coming to the default selection screen. and my requirement is, it should come to the corressponding user defined selection screen and not the default selection screen.
PLz help me in this regard.. Iam breaking my heading, but could not able to solve it.
Thanks in advance
sreeHello,
You must have defined user command for the radio button. This is not required. Just try putting it in at selection screen. AT SELECTION-SCREEN ON RADIOBUTTON GROUP rgp1.
the moment the user clicks the radio button it will go to this event and call the screen. Just use AT SELECTION-SCREEN.
Regards,
Shekhar Kulkarni -
Selection screen for custom table
We have developed a custom table and user want to have a selection selection screen similar to SE16. There are 9 fields in the table and user can enter data to the selection screen with any combination. My question is how do I filter based on the user input ? DO I need to write multiple SQL for different combination of selection screen parameter within IF ELSEIF statement ? If so then there will be huge number of SQL within IF & ELSEIF statment for 9 selection parameter. Please suggest if you have any better ideas.
Even after using select-option along with IN statement in where clause , it did not work.
I used following selection screen defination :
SELECTION-SCREEN: BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
SELECT-OPTIONS: P_PCBUS FOR MARA-ZZPC_BUSINESS NO-EXTENSION NO INTERVALS,
P_PCBUS1 FOR MARA-ZZPC_BUS_SUB1 NO-EXTENSION NO INTERVALS,
P_PLNFMT FOR MARA-ZZPLNG_FORMAT NO-EXTENSION NO INTERVALS,
P_PRDB FOR MARA-ZZPROD_BRAND NO-EXTENSION NO INTERVALS,
P_SEASCD FOR MARA-ZZSEASON_CODE NO-EXTENSION NO INTERVALS,
P_SNP FOR MARA-ZZSUP_NET_PATH NO-EXTENSION NO INTERVALS,
P_MAT_DC FOR MARA-MATNR NO-EXTENSION NO INTERVALS,
P_MAT_MG FOR MARA-MATNR NO-EXTENSION NO INTERVALS.
SELECTION-SCREEN: END OF BLOCK B2.
and SQL statement :
SELECT ZZPC_BUSINESS
FROM ZTB_RTL_TO_WHS
INTO TABLE TA_ZZPCBUS
WHERE ZZPC_BUSINESS = P_PCBUS
AND ZZPC_BUS_SUB1 IN P_PCBUS1
AND ZZPROD_BRAND IN P_PRDB
AND ZZPLNG_FORMAT IN P_PLNFMT
AND ZZSEASON_CODE IN P_SEASCD
AND ZZSUP_NET_PATH IN P_SNP
AND ZZD_MATNR IN P_MAT_DC
AND ZZM_MATNR IN P_MAT_MG.
While executing program, I only enterd value for the field P_PCBUS. Though record present for that value, I rcvd SY-SUBRC = 4.
ANy Idea?
Edited by: J. Bakshi on Jul 14, 2009 10:17 AM -
How to get One Selection Screen for all queries?
Hi Experts,
I have three queries having selection screens. All the selection screen have the same variables, but the reports are different.
I have created a workbook having these three queries. Each time when the workbook opens, the three selection screen pops up one after the another. Same values are entered in all the selection screens.
Now the user wants only one selection screen for all the three reports. Is it possible? I tried but I do not see any way.
I think there should be some way of getting it done.
Waiting for your inputs,
With kind regards,
ShreeemHi
If a workbook contains multiple queries that use the same variable, you are prompted to enter the variable values again for each query. To avoid this, set the Display Duplicate Variables Only Once flag.
Goto Workbook Settings>Under Variables Tab>select Display Duplicate Variables only Once
http://help.sap.com/saphelp_nw70ehp1/helpdata/EN/54/a493f7256b43698191a2623e5a0532/frameset.htm
Hope this helps,
Aparna Duvvuri -
Problem with ALV and user defined selection screen. please help!
Hi Experts,
I have program which has a user defined selection screen 9001. On executing the selection screen i call a ALV using resuse_alv_grid function module.
What problem I am facing is that when I press back button from ALV page it goes to the se38 editor instead of selection screen.
How to resolve this?
Thanks
GopalHi,
This might be due to LEAVE TO TRANSACTION statement. You might be running the program from SE38. Try to run the program using Z-TCode assigned to it.
Thanks and Regards,
Bharat Kumar Reddy.V
Message was edited by: Bharat Reddy V -
Change Layout in Selection Screen for OO ALV-Grid
Hello everyone,
I got a problem regarding layouts for objectoriented ALV Grid. I want to make it possible that user can take the layout for ALV he wants to on the selection screen. So far thats no problem and it works. But there are some little problems which I do not know how to fix them. But first the facts:
(1) I got my parameter for layout
PARAMETER: p_vari TYPE disvariant-variant.
(2) I fill my global layout structure in initialization
INITIALIZATION.
* Variante vorbelegen
gs_variant-username = sy-uname.
gs_variant-report = sy-repid.
* Layout holen
CALL FUNCTION 'LVC_VARIANT_DEFAULT_GET'
EXPORTING
i_save = 'A'
CHANGING
cs_variant = gs_variant
EXCEPTIONS
wrong_input = 1
not_found = 2
program_error = 3
OTHERS = 4.
IF sy-subrc = 0.
p_vari = gs_variant-variant.
ENDIF.
(3) I got my handling for F4-value help on variant parameter
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_vari.
CALL FUNCTION 'LVC_VARIANT_F4'
EXPORTING
is_variant = gs_variant
i_save = 'A'
IMPORTING
es_variant = gs_variant
EXCEPTIONS
not_found = 1
program_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE text-m01 TYPE 'S'.
ELSE.
p_vari = gs_variant-variant.
ENDIF.
(4) I give back my parameters content into the variant structure at start of selection
START-OF-SELECTION.
gs_variant-username = sy-uname.
gs_variant-report = sy-repid.
gs_variant-variant = p_vari.
This works all fine but I got some problems when using default variants/layouts. For example I got a default variant only for me. When starting the selection screen it works fine that the default layout was written. It is displayed automatically in the variant parameter. But I want that if i I empty the content (blank it out) from my variant parameter, that report should start with "normal" layout how it was written in the report and NOT with default layout.
When I clear the gs_variant it works like I want it, but then the alv layout button looks like (without functions for layout), because I do not have the reference to my report.
So what to do? :-)
Regards
MichaelWow that was fast, works great, thanks :-)
I did not use this parameter in set table method but now I fill it dynamically.
Ok next problem, one step harder ;-)
Now I have one selection screen for one ALV-Grid, but four radio buttons which control with which data the ALV gets filled (four different fieldcats, data tables and so on). Each Grid got an own HANDLE so that the layouts can be separated in four categories.
Now I want that by changing the radio button the individual standard layout for the chosen alv grid is getting filled.
This works fine when using it in selection screen output.
AT SELECTION-SCREEN OUTPUT.
CLEAR gs_variant.
* Layout-Handles individuell für Klausel-Radiobuttons setzen
IF p_py IS NOT INITIAL.
gs_variant-username = sy-uname.
gs_variant-report = sy-repid.
gs_variant-handle = 'KLPY'.
ELSEIF p_rh IS NOT INITIAL.
gs_variant-username = sy-uname.
gs_variant-report = sy-repid.
gs_variant-handle = 'KLRH'.
ELSEIF p_aj IS NOT INITIAL.
gs_variant-username = sy-uname.
gs_variant-report = sy-repid.
gs_variant-handle = 'KLAJ'.
ELSEIF p_sr IS NOT INITIAL.
gs_variant-username = sy-uname.
gs_variant-report = sy-repid.
gs_variant-handle = 'KLSR'.
ENDIF.
* Layout holen
CALL FUNCTION 'LVC_VARIANT_DEFAULT_GET'
EXPORTING
i_save = 'A'
CHANGING
cs_variant = gs_variant
EXCEPTIONS
wrong_input = 1
not_found = 2
program_error = 3
OTHERS = 4.
IF sy-subrc = 0.
p_vari = gs_variant-variant.
ELSE.
CLEAR p_vari.
ENDIF.
But unfortunately selection screen output is getting passed by EACH changing in the selection screen. This means when I try to clear the default layout in my parameter field, it gets refilled automatically with default layout. If I do a condition around the filling (only if not initial) the default value filling does not work fine in every case, e.g. when clearing the parameters field and then change the radiobutton -> then it does not get filled automatically. -
Selection Screen for crystal report ?
Hi to all,
Is it possible to create selection screen using Crystal report designer alone ?
I came to know that we can give selection parameteres using SELECT EXPERT option in desginer.
Can we create selection screen for user input like we have in abab (selection screen) ?.
Is it possible to check authorization using Crystal report designer ?
If anyone knows anything .... remotely connected with the question I asked please reply.
Waiting for reply.
Regards,
Surya.Surya,
To do what you are wanting, you will want to do the following:
1) Create parameters. Open the Field Explorer > right click Parameter Fields > fill in the necessary fields o create the desired parameter.
2) Add the parameter to the Select Expert.
2a) If you are using a SQL Command to generate your data set you will need to add the parameter name to the Parameter List of the Command and add it the selection criteria of the SQL statement.
Something like this:
WHERE f.FieldName = {?ParameterName}
HTH,
Jason -
Modify selection screen for Logical Database 'SDF'
Hi
I need to make a section of the standard selection screen for logical database 'SDF' invisible. I have tried the differet selection screen options of the report attributes, but none of the provided ones give me what I want.
How can I find the name of the screen group for the "Line Item Selection" block of the selection screen so that I can make it invisible when the selection screen is displayed?
Thanks,
ThomasI tried to do this:
Loop at screen.
if screen-group4 = '026'
or screen-group4 = '027'
or screen-group4 = '028'.
screen-invisible = 1.
modify screen.
endif.
endloop.
This removed the selection text for these fields, but the Line Item Selection block is still visible, and the actual input fields are also visible. They now look like password input fields with all ***** in them.
What am I doing wrong?
Thanks for your help!
Thomas -
Variants on tabbed selection screen for ALV reports
Scenario: We use a tabbed selection screen for an ALV report. We create a variant, make a selection field on the second tab mandatory & save it without a value. When we run the report with the saved variant it does not check that the required field on the second tab is populated before it executes.
Question: How can I code such a check?
Edited by: Alridge Tom on Jul 4, 2008 3:43 PMHi,
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 -
Cannot enter value in selection screen for Hierarchy variable.
Hi All,
I have a hierarchy variable on the selection screen for Org unit.
When i execute the report via Bex or RSRT i am able to enter the value directly into the selection screen input field without going for F4 help and then selecting the value.
But when the same query is used in web template and executed the input field for the variable on the selection screen is greyed out and doesnt allow to type in the value. Only way to fill in the value is via F4 help.
Can anyone tell why is this happening and is there any way this can be changed?
Thanks in advance.
-RJHi Prakash,
I am not able to select or click on the input field of the selection screen before and after selecting the value
CTRL+K doesnt work for me.
The display field is populated only when i select a node from the F4 help screen.
When executed from RSRT the field is highlighted and i am able to enter the value unlike when executed on web browser.
The variable is Mandatory multiple single value readu for input.
I found an article saying that for hierarchy node variables the values are forced by F4 value help as the values that are entered manually might not be unique.
This is the link
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/15839190-0201-0010-adb1-d2edd9857b0a
I would like to know if there is a work around or setting that can be made to make it work?
-RJ -
User presses F4 on the selection screen for the field ''Transport Request"
Dear ALL,
I want to build up a functionality in my report where if the user presses F4 on the selection screen for the field ''Transport Request", then it will display all the Transport Requests involving that particular User...
What I mean is the normal process that is provided by SAP on saving an object in a package & assigning it to TR...
How do we Achieve it ?Hi.
First we need to give the client after that client number related requestes display in second parameter F4 help for that purpose i used two function modules.First for read the client no dynamically after that pass the client number second function module.
then u can get all the request for that client.
DFIELD-FIELDNAME = 'P_MANDT'.
APPEND DFIELD.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = 'Y9EZ_TR_COPYCLIENT'
dynumb = SY-DYNNR
tables
dynpfields = DFIELD
READ TABLE DFIELD INDEX 1 ."WITH KEY DFIELD-FIELDVALUE = 'P_MANDT'.
V_MANDT = DFIELD-FIELDVALUE.
CALL FUNCTION 'TR_F4_REQUESTS'
EXPORTING
IV_USERNAME = SY-UNAME
IV_TRKORR_PATTERN =
IV_TRFUNCTIONS =
IV_TRSTATUS = 'RNDL'
IV_FROM_DATE =
IV_TO_DATE =
IV_CLIENT = V_MANDT
IV_PROJECT =
IV_TITLE =
IV_VIA_SELECTION_SCREEN = 'X'
IV_COMPLETE_REQUESTS = 'X'
IT_EXCLUDE_REQUESTS =
IMPORTING
EV_SELECTED_REQUEST = S_TRKORR-LOW.
ES_SELECTED_REQUEST =
'TR_F4_REQUESTS' This function module for request
Regards
muralii
Maybe you are looking for
-
How to move text in a text box
Please help me put to move text inside a text box to move smoothly If anybody can provide me with the code, I will be thankful to him.
-
Preparing files for printer - no CM requested, image resizing
Using InDesign CS3 504, on Mac OSX 10.6. I'm approaching the end of preparing a 40pp A4 magazine for a client. In about one week I'll be submitting my file to the printers who are UK based (I am UK based, too). I'm looking for the best set up to he
-
Connecting Apple TV to Livebox network
I'm trying to connect Apple TV to and Orange Livebox wireless router. It sees the router , I enter the WEP key but it can't log onto the network. I'd really appreciate any tips on getting this sorted.
-
HT1430 ipod touch not resetting
I have an Ipod Touch 3rd Gen that is stuck. When you power on the "slide to unlock" does not work. I tried to reset by pressing both sleep and wake at the same time for more than 10 sec but that didn't work. How can I reset the Ipod and get it uns
-
Rebate Agreement (VBOF)
Hello Experts, I have a standard Rebate Scenario. I have Rebate Agreement created for a recepient. I also have some invoices for the same. But when I check Invoices they are not updated with the Rebate Conditions. When I tried to run VBOF it did not