Set Default Layout in Selection Screen of FBL3N
Dear All,
Here in FBL3N presently i we have a default layout is /balaji.
But now i want to change this as a standard layout 1sap.
I can try this in path SETTING->ADMINISTRATOR->SET DEFAULT LAYOUT.
But after done this and save this procedure when i run this Transaction again
no change effected.
Means my change is not effect in selection screen of FBL3N.
So can anybody tell me how can i change my default layout in selection screen of FBL3N .
Please kindly help me ....
Thanks
Keyur
Hi,
Try with below navigation
Run the report and go to the menu settings->Layout->Choose
and also go through this link
http://wiki.sdn.sap.com/wiki/display/ERPFI/Howtochange-setdefaultlayoutintransactionFBL1N%2CFBL3NandFBL5N
regards
kk
Similar Messages
-
Set default value to selection screen for report
Hi All,
I've a report selection screen which has 3 fields from the report category: PNPPERNR, PNPSTAT1, PNPBTRTL. My logical database is PNPCE.
How can I set the default value to the field PNPSTAT1? Means when I first display the selection screen, the value for this field will automatically display '3' in it.
Hope someone can help me on this.
Thanks.Hi All,
Thanks for reply. But I think I should declare my question clearer.
Actually it's not a parameter.
My problem is when using the logical database, if you define a TABLES: PERNR, then you can see the SAP standard report selection screen. So my selection screen has 3 standard fields which are PNPPERNR, PNPSTAT1, and PNPBTRTL.
I need to set the default value '3' to field PNPSTAT1.
Thanks. -
How to set default variant for selection screen
Hi,
I want to make one variant as default for selection screen for one user.
For eg., take COOIS. For the selection screen, i have 3 variants. But i want one variant to be default. Thsi is not for all users. Thsi is for particular user.
I am not seeing any way to do this. please help me..
Thanks
SriniHi,
If you are using Z program then you can ask your developer to get Variant name Runtime from Parameter ID.
This means you decide a Parameter ID name : ZVAR in your Z program and ask your developer to load variant each time your Z program loads.
Now, second step will be using SU01 transaction you can set value of ZVAR in Parameters tab for the user. This value will be the variant which you created for this user.
This will solve your problem and you can make n number of variants and assign it to different users.
Regards,
Arpit -
How can i set a layout for MIGO screen
Hello all,
How can i set a layout for MIGO screen. & make that layout default. Like i want to drag Requistioner column next to quantity in MIgo screen. temporarily I can drag but is there a way to save as layout & save it.Hi
First you arrange however you want and then go to table settings which is there in the right corner of the item details and create a variant and save.
Find a button with blue yellow and white at the top end above the vertical drag bar when put the cursor it will show you as Configuration.
After creating the variant tick the check box use as standard setting below the variant
Hope it helps
Edited by: Girish Adaviswamy on Mar 3, 2010 1:27 PM -
Symbol as default in a selection screen in alv
hi all,
how to bring GE(>=) symbol as default in a selection screen in alv report.
by
Ramesh.Hai Ramesh,
Create Pushbuttons in selection screen ,In pushbutton write the ' >=' instead of providing the text.
Try like this may be u will find the answer,
REPORT DEMO.
TABLES SSCRFIELDS.
DATA FLAG.
SELECTION-SCREEN:
BEGIN OF SCREEN 500 AS WINDOW TITLE TIT,
BEGIN OF LINE,
PUSHBUTTON 2(10) BUT1 USER-COMMAND CLI1,
PUSHBUTTON 12(10) TEXT-020 USER-COMMAND CLI2,
END OF LINE,
BEGIN OF LINE,
PUSHBUTTON 2(10) BUT3 USER-COMMAND CLI3,
PUSHBUTTON 12(10) TEXT-040 USER-COMMAND CLI4,
END OF LINE,
END OF SCREEN 500.
AT SELECTION-SCREEN.
CASE SSCRFIELDS.
WHEN 'CLI1'.
FLAG = '1'.
WHEN 'CLI2'.
FLAG = '2'.
WHEN 'CLI3'.
FLAG = '3'.
WHEN 'CLI4'.
FLAG = '4'.
ENDCASE.
START-OF-SELECTION.
TIT = 'Four Buttons'.
BUT1 = 'Button 1'.
BUT3 = 'Button 3'.
CALL SELECTION-SCREEN 500 STARTING AT 10 10.
CASE FLAG.
WHEN '1'.
WRITE / 'Button 1 was clicked'.
WHEN '2'.
WRITE / 'Button 2 was clicked'.
WHEN '3'.
WRITE / 'Button 3 was clicked'.
WHEN '4'.
WRITE / 'Button 4 was clicked'.
WHEN OTHERS.
WRITE / 'No Button was clicked'.
ENDCASE.
This example defines four pushbuttons on a selection screen that is displayed as a dialog box. The selection screen is defined in a statement chain for keyword SELECTION-SCREEN.
If the text symbols TEXT-020 and TEXT-040 are defined as 'Button 2' and 'Button 4', the four pushbuttons appear as follows on the selection screen displayed as a dialog box.
CLI1, CLI2, CLI3 and CLI4 are used for <ucom>. When the user clicks one of the pushbuttons, the AT SELECTION-SCREEN event is triggered, and the FLAG field is set. The FLAG field can be further processed during subsequent program flow after the user has chosen Execute.
Refer the above code, and make change just to clear all the fields in the selection screen, when corresponding push button is clicked..
May be this answer is helpful to u.
Regards,
Skumari -
Setting pf-status on selection screen isue...
Hello Gurus,
I have a sample code as below. Now when I execute this one system automotically creates a default application tool bar, menu bar, etc.
Now, I have a requirement where I have to add a custom button in application toolbar but the other default stuff should work as it is like back buttin, variant button.
How can I do this ? I defined a pf-status creating anew program and tried to use as follows but it does not show the new pf-status.
SELECTION-SCREEN COMMENT /1(50) COMM1.
SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
parameters:
max_res(8) default '20'.
SELECTION-SCREEN END OF SCREEN 100.
SELECTION-SCREEN: BEGIN OF TABBED BLOCK tab_block FOR 5 LINES,
TAB (20) tab1 USER-COMMAND tabpush1
DEFAULT SCREEN 100,
END OF BLOCK tab_block.
start-of-selection.
set pf-status 'INDEXSCREEN' OF PROGRAM 'ZINDEX'.
Please help.
Regards,
Rajesh.hi,
In your program, just use
Set PF-STATUS 'TEST'.
Double click on TEST, it forward navigates to a new screen where you need to give values for function keys i.e. if any required application tool bar buttons, you have icons over there which show BACK , CANCEL and exit.
Just fill the blanks with the above values.
In your program use the statement AT USER-COMMAND.
check for sy-ucomm value using.
CASE sy-ucomm.
WHEN 'FC05'. " This is ex. function code you assign to a key in the application toolbar for custome button
PROCESS.
when 'BACK' OR 'CANCEL' OR 'EXIT'.
LEAVE TO SCREEN 0.
ENDCASE.
Thanks and regards
Sharath -
How to get default values on selection screen(multiple ranges)?
i want to know how to maintain default ranges in selection screen...like 2000 to 3000 and 7000 to 8000 and 11000 to 15000
all the above ranges must get by default how to provide those to selection screen by default...please give me idea...with example...Hi Suresh,
You can either use select-options or Ranges. If you want the selection screen to be displayed with allwoing user to enter values apart for the default ones use select options else use ranges. With ranges what ever values use hard code would be set and the end user will not be able to add any more values (or range of values).
Simply write the following code
tables : <name of the table from which the field belongs>
select-options <fieldname> for <tablename>-<fieldname>.
<fieldname>-sign = 'I'.
<fieldname>-option = 'BT'.
<fieldname>-low = '7000'.
<fieldname>-high = '8000'.
append <fieldname>..
similiarly add all the ranges that you need to include as default and in your select statement use the IN operator inthe where clause to include the range.
If using range replacethe select-option with the range statement.
Thanks. -
Default value for selection screen field
Hi all,
I am using LDB PNPCE. I want to give default value for field Personnel area on selection screen.
How can I do it?
Thanks
RahulHi Rahul,
In the INITIALIZATION event we can set the default values for selection screen fields.
INITIALIZATION.
loop at screen.
if screen-name = 'S_MATNR-LOW'.
CLEAR S_MATNR.
s_matnr-low = '1234'.
s_matnr-option = 'EQ'.
s_matnr-sign = 'I'.
append s_matnr.
CLEAR S_MATNR.
s_matnr-high = '5678'.
s_matnr-option = 'EQ'.
s_matnr-sign = 'I'.
append s_matnr
clear s_matnr.
endif.
endloop.
Hope it helps.
Mark if useful
Regards,
Saumya -
How to pass a default value in selection screen of logical database pnpce
Dear All,
Can any one tell me how to pass a default value in selection screen of logical database pnpce .
Regards
Rakesh SinghHi Rakesh,
Go to SE36 (logical database Builder).First enter PNPCE in Logical Database and press documentation,here you will get the details of exactly what is PNPCE and how it works.After that select selections in subojects in se36 only and enter display ,there you have the include from where you acn get the idea.
Regards,
Rahul -
Default value on Selection Screen
Hi experts,
I want to put sy-datum + 1 as a default value on selection screen.
I tried this but it didnt work. Please help me.
DATA : tarih like sy-datum.
initialization.
tarih = sy-datum + 1.
SELECTION-SCREEN BEGIN OF BLOCK 3 WITH FRAME TITLE TEXT-002.
parameters : h_tarih like sy-datum obligatory default tarih.
SELECTION-SCREEN END OF BLOCK 3.
ThanksHi,
Do it in INITIALIZATION event.
SELECTION-SCREEN BEGIN OF BLOCK 3 WITH FRAME TITLE TEXT-002.
parameters : h_tarih like sy-datum obligatory default tarih.
SELECTION-SCREEN END OF BLOCK 3.
INITIALIZATION.
h_tarih = sy-datum + 1.
In this case no need to have one more extra variable. U can directly assign to ur parameter.
In data declaration u can only default hard coded values. But not calculated values. This is because first selection screen will be triggered and later ur calculations. So at the time of selection screen is triggered ur variable dont have any value. Thats why it was not working. Change ur code to like above. It will work fine.
Thanks,
Vinod.
Edited by: Vinod Reddy Vemuru on Jun 27, 2008 12:37 PM -
How to set default values on the screen painter parameters?
Hello ABAP Gurus,
I would just want to ask how to set default values on the screen painter parameters.
Thank you for your replies.Hi,
To set default values for screen painter parameters initialize the field names with default values in the PBO module....
say u have the field name as f_field1....
in the PBO of that screen initialize it....
f_field1 = '100' "here 100 is the default value.
<b>reward points if useful.</b>
regards,
Vinod Samuel. -
Add certain field at dynamic selection screen in FBL3N transaction
Hello Expert,
I would like to add entry date field (BKPF-CPUDT) at dynamic selection screen in FBL3N transaction.
So, I went to SE36 transaction and changed something in selection view for SDF.
However, it didn't work.
Is there anyone who knows how to add a certain field at dynamic selection screen in FBL3N transaction?
Thanks in advance.
BR,
Chris KimHi
Refer to the following thread
Additional field selections in FB03
It talks about adding Header Text field
You should be able to add entry date similarly
Regards
Sach!n -
Set Default Layout in Reports in a Single Screen
Hi,
We have a report, with one screen. But is is divided into 2 parts. The upper report is showing different data compared to the data shown in the lower report.
We have used OO to display the output. However, when choosing the default layout for each of the section, since it is contained in a single screen, it will only retrieve one default layout for both report. Is it possible to set a default layout, each for the two sections of the report?
Thanks,
LouisseHi
If you're using ALV OO, you can manage several variants in the same report, that means a specific variant for every grid.
It needs to set a different value (for every grid) in the field IS_VARIANT-HANDLE (IS_VARIANT is a parameter of method SET_TABLE_FOR_FIRST_DISPLAY, structurated like DISVARIANT).
data: lt_varuant1 type disvariant.
data: lt_varuant2 type disvariant.
lt_varuant1-report = sy-repid.
lt_varuant1-username = sy-uname.
lt_varuant1-handle = 'ALV1'.
CALL METHOD grid_1->set_table_for_first_display
EXPORTING
IS_VARIANT = lt_variant1
lt_varuant2-report = sy-repid.
lt_varuant2-username = sy-uname.
lt_varuant2-handle = 'ALV2'.
CALL METHOD grid_2->set_table_for_first_display
EXPORTING
IS_VARIANT = lt_variant2
Max -
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. -
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
Maybe you are looking for
-
I can not open my mail in view entire inbox
i have power mac maschine 7.2 /10.5.8
-
I am trying to set up the development environment using Portal (5.0.4), Eclipse and Tomcat-4.1.30-LE. I've set up Eclipse according to the instruction of "Debugging portal source code: Eclipse". I got the following error when I select "Run | Debug" i
-
Cd() prints a carriage return to the screen
In writing scripts, I've noticed that the cd() method echoes an extra carriage return to the terminal. Due to the fact that set() is context-specific (can't say cmo.set(); must say set() instead), long scripts have a lot of calls to cd(), and so the
-
Migration from SQL server to Oracle 10g
Hi, I am new here, I would like to ask how to use SQL developer MWB to migration SQL Server to Oracle? I have go through the doc(s) like: getting start, user's guild, etc. and have following problems (1), where should the SQL developer installed? in
-
The more times you use your charger the less efficient it becomes?
So is this true? I heard somewhere that the more times you use your laptop charger, the less effiecient (i.e. slower to charge) it becomes. I also heard it is very bad for the charger(as well as the environment) to leave it plugged in while its not i