Regarding Selection-Screen Field Display
Hi All,
I have issues with Selection-Screen field display.
The Actual issue is i had declared a selection screen field as: <b>s_exgen FOR embk-exgen</b>.
<b>EMBK-EXGEN</b> is actually <b>20</b> Char length field.
But in output display it is being shown as <b>18</b> Char field though i can type in all <b>20</b> characters.
But <b>display</b> restricted to <b>18</b> Characters only.
Can anybody give me the solution for the same!
Thanks in advance.
Thanks & Regards,
Prasad.
Hi,
You can decrease the visible length of the field but you can not increase more than database field length. check SAP help on this :
select-options: s_exgen FOR embk-exgen VISIBLE LENGTH 5.
... VISIBLE LENGTH vlen
Effect
This addition allows you to shorten the visible length of the corresponding screen field on the selection screen to vlen.
Variant 2
SELECT-OPTIONS sel FOR (f).
Additions as in variant 1.
Effect
In this variant, (f) must be a field containing the name of the actual reference field at runtime. The system creates the LOW and HIGH fields as character fields with length 45. However, their appearance on the selection <b>screen is inherited from the reference field whose name is contained in field f at runtime.</b>
Regards
Appana
Similar Messages
-
Regarding Selection Screen field making display field in ALV report
Hi All,
In ALV Report, at runtime how can i make the field as Display Field in selection screen .
Thks & Regds
Shaileshhii,
Go to se38 and give the below progra name execute.... check the source code it is very easy to understand.
1.demo_dynpro_modify_simple
2.demo_dynpro_modify_screen
if tou are using grid,u can refer to foll link
sequencing / choosing fields in report screen at runtime,
Display the Columns in the grid at run time
rgrds,
Shweta -
Regarding selection screen fields
hi gurus,
i have to show three city names like delhi,bombay n cuttack in selection screen one field under one ball symbol so that when the user click on this ball the three city name will appear and the user select any one out of these three names,which method will i use plz help me ,,,i m working on module poolsorry i am not enough clear with your requirement..
you can a give a pushbutton with the symbol and assign fncode for that.
now in a int table take the three city values.
in your PAI
case ok_code.
when 'BALL'.
call fn module POPUP_WITH_TABLE_DISPLAY_OK
or
POPUP_WITH_TABLE_DISPLAY
or
POPUP_WITH_TABLE
and pass your int table.
endcase.
regards
shiba dutta -
Regarding selection screen fields in Service PO Report
Hello All,
I have developed a Service PO Report with input parameters like Purch. Organisation, Material Group, Purchasing Group, Plant, PO No., Vendor, Activity, Entry Sheet No., GR No. I have used the tables ekko, ekpo, ekbe, essr, ml_esll, mseg and lfa1.
When I input a particular Purch. Organisation, I am able to get the output filtered by that Purch. Organisation. Similarly, when I input other fields individually, I get the filtered output based on the value of the fields that I inputted.
The problem is that when I select only a particular GR No. in the selection screen, I am not able to get the filtered output for that particular GR No. Its showing all the unnecessary data for that particular GR No.
Except this field, the report is running fine. So can anybody guide me in getting the filtered output based on GR No.?
I have linked tables ekko, ekbe and mseg.I have pasted the code below for analysis.
form fetch.
select ek~ebeln
ek~loekz
ek~lifnr
ek~ekorg
ek~ekgrp
ek~bedat
ek~bukrs
ep~ebelp
ep~txz01
ep~werks
ep~matkl
ep~mwskz
ep~menge
ep~meins
ep~netpr
ep~netwr
ep~mwskz
into corresponding fields of table it_ekko
from ekko as ek join ekpo as ep
on ek~ebeln = ep~ebeln
and ek~loekz = ep~loekz
and ek~bukrs = ep~bukrs
where ek~ebeln in s_ebeln
and ek~lifnr in s_lifnr
and ek~ekorg in s_ekorg
and ek~ekgrp in s_ekgrp
and ep~werks in s_werks
and ep~matkl in s_matkl.
if sy-subrc = 0.
select lifnr name1 from lfa1
into corresponding fields of table it_lfa1
for all entries in it_ekko
where lifnr = it_ekko-lifnr.
endif.
if sy-subrc = 0.
select lblni lzvon lwert packno txz01 ebeln loekz budat netwr from essr
into corresponding fields of table it_essr
for all entries in it_ekko
where lzvon in s_lzvon
and lblni in s_lblni
and ebeln = it_ekko-ebeln.
endif.
if sy-subrc = 0.
select mblnr ebeln erfmg lfbnr from mseg
into corresponding fields of table it_mseg
for all entries in it_essr
where mblnr in s_mblnr
and lfbnr = it_essr-lblni
and ebeln = it_essr-ebeln.
endif.
if sy-subrc = 0.
select packno ebeln srvpos ktext1 netwr menge matkl tbtwr meins mwskz from ml_esll
into corresponding fields of table it_ml_esll
for all entries in it_essr
where srvpos in s_srvpos
and ebeln = it_essr-lblni.
endif.
if sy-subrc = 0.
select packno srvpos menge meins netwr ebeln tbtwr from ml_esll
into corresponding fields of table it_ml_esll1
for all entries in it_ekko
where ebeln = it_ekko-ebeln.
endif.
if sy-subrc = 0.
select ebeln vgabe belnr lfbnr mwskz srvpos packno from ekbe
into corresponding fields of table it_ekbe
for all entries in it_ekko
where ebeln = it_ekko-ebeln
and vgabe = 1.
endif.
if sy-subrc = 0.
select ebeln belnr bewtp from ekbe into corresponding fields of table it_ekbe1
for all entries in it_ekko
where ebeln = it_ekko-ebeln
and bewtp = 'Q'.
endif.
loop at it_ml_esll into wa_ml_esll.
move wa_ml_esll-packno to wa_final-packno.
move wa_ml_esll-ebeln to wa_final-ebeln1.
move wa_ml_esll-srvpos to wa_final-srvpos.
move wa_ml_esll-ktext1 to wa_final-ktext1.
move wa_ml_esll-meins to wa_final-meins.
move wa_ml_esll-menge to wa_final-menge1.
read table it_essr into wa_essr with key lblni = wa_ml_esll-ebeln.
if sy-subrc = 0.
move-corresponding wa_essr to wa_final.
endif.
read table it_ekko into wa_ekko with key ebeln = wa_essr-ebeln.
if sy-subrc = 0.
move wa_ekko-werks to wa_final-werks.
move wa_ekko-ekorg to wa_final-ekorg.
move wa_ekko-ekgrp to wa_final-ekgrp.
move wa_ekko-ebeln to wa_final-ebeln.
move wa_ekko-menge to wa_final-menge.
move wa_ekko-matkl to wa_final-matkl.
move wa_ekko-mwskz to wa_final-mwskz.
move wa_ekko-lifnr to wa_final-lifnr.
move wa_ekko-bedat to wa_final-bedat.
move wa_ekko-netpr to wa_final-netpr.
endif.
read table it_lfa1 into wa_lfa1 with key lifnr = wa_ekko-lifnr.
if sy-subrc = 0.
move wa_lfa1-lifnr to wa_final-lifnr.
move wa_lfa1-name1 to wa_final-name1.
endif.
read table it_ekbe into wa_ekbe with key lfbnr = wa_ml_esll-ebeln
packno = wa_ml_esll-packno
srvpos = wa_ml_esll-srvpos.
if sy-subrc = 0.
move wa_ekbe-belnr to wa_final-belnr.
endif.
read table it_ekbe1 into wa_ekbe1 with key ebeln = wa_ekko-ebeln.
if sy-subrc = 0.
move wa_ekbe1-belnr to wa_final-belnr1.
endif.
read table it_ml_esll1 into wa_ml_esll1 with key srvpos = wa_ml_esll-srvpos.
if sy-subrc = 0.
move wa_ml_esll1-menge to wa_final-menge2.
move wa_ml_esll1-netwr to wa_final-netwr.
move wa_ml_esll1-tbtwr to wa_final-tbtwr.
endif.
read table it_mseg into wa_mseg with key lfbnr = wa_essr-lblni
ebeln = wa_essr-ebeln.
if sy-subrc = 0.
move wa_mseg-mblnr to wa_final-mblnr.
move wa_mseg-erfmg to wa_final-erfmg.
endif.
append wa_final to it_final.
endloop.
delete it_final where srvpos is initial.
sort it_final by srvpos lblni ebeln .
Edited by: Satvikpanchal on Dec 6, 2011 11:01 AM -
How to display the selection screen fields for selected checkboxes
Hi all,
I have 7 checkboxes, for each check box we have some seletion screen fields.if i select first check box,i want to display first slection screen fields only.
and if we select more than one check box how to display the selection screen fields for selected check boxes,please help me this
Thanks
sriman.hi,
Try this code
report z_13317_sdn2.
tables : mara, marc, dd03l.
parameters : p_chk1 as checkbox user-command ABC,
p_chk2 as checkbox user-command PQR,
p_chk3 as checkbox user-command XYZ.
select-options : s_matnr for mara-matnr modif id A,
s_ersda for mara-ersda modif id A,
s_werks for marc-werks modif id B,
s_lvorm for marc-lvorm modif id B,
s_tab for dd03l-tabname modif id C.
data: v_chk1,
v_chk2,
v_chk3.
at selection-screen output.
loop at screen.
if screen-group1 = 'A' or
screen-group1 = 'B' or
screen-group1 = 'C'.
screen-input = 0.
modify screen.
endif.
endloop.
loop at screen.
if v_chk1 = 'X'.
if screen-group1 = 'A'.
screen-input = 1.
modify screen.
endif.
endif.
if v_chk2 = 'X'.
if screen-group1 = 'B'.
screen-input = 1.
modify screen.
endif.
endif.
if v_chk3 = 'X'.
if screen-group1 = 'C'.
screen-input = 1.
modify screen.
endif.
endif.
endloop.
at selection-screen.
if sy-ucomm = 'ABC'.
if v_chk1 = ' '.
v_chk1 = 'X'.
else.
v_chk1 = ' '.
endif.
endif.
if sy-ucomm = 'PQR'.
if v_chk2 = ' '.
v_chk2 = 'X'.
else.
v_chk2 = ' '.
endif.
endif.
if sy-ucomm = 'XYZ'.
if v_chk3 = ' '.
v_chk3 = 'X'.
else.
v_chk3 = ' '.
endif.
endif.
Regards,
Sailaja. -
Regarding Search help on selection-screen field
Hi there,
I am working on custom tables.
I have a requirement to maintain search pattern on a selection-screen field.
selection-screen parameter: p_name which is company name filed from Z table.
By giving a string like Holl* and by pressing F4 on the field p_name it has to popup a dialogbox having list of company names starting with Holl.
Thanks in advance.
-TulasiHi
Go through the link given below :
How to create a search help for my own fields in selection screen
F4 search help on report selection screen
also try :
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
RETFIELD = 'VKORG'
PVALKEY = ' '
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'P_VKORG'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'C'
TABLES
VALUE_TAB = T_TABLE1
FIELD_TAB = field_tab
RETURN_TAB = RET_TAB
DYNPFLD_MAPPING = DYN_TAB
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
With Regards
Nikunj shah -
Displaying error message while entering selection screen fields
Moderator message: don't offer points
hi experts...
i generated a report.
in that report, the selection screen fields are plant and material type..
now my rqmt is like this :
if user enters any plant except '8210' in the selection screen, then a pop up should appear like.. enter 8210 plant only, and the cursor should remain in the same screen allowing user to enter correct plant.
and then same with the case of material type also..user should enter 'mcfe' material type only..
im using message classes like this:
if so_bwkey-low ne '8210' or so_bwkey-high ne '8210'.
message i000(zts).
endif.
if so_mtart-low is not initial and so_mtart-high is not initial and so_mtart-low ne 'mcfe'
or so_mtart-high ne 'mcfe'.
message i001(zts).
endif.
with this logic, when i enter plant..it is prompting
1) enter plant 8210 only..
and then when i press enter key it is again prompting
2)enter material type mcfe only..
but iam not entering material type here..
i want to get 2nd error message if and only if i enter material type..
help me regarding this issue..
<<text removed>>
thanks in advance,
harini.
Edited by: Matt on Feb 9, 2009 10:14 AMHi,
Use Error type message in SELECTION SCREEN EVENT.It will place the cursor in the relevant Field.
At SELECTION-SCREEN ON SO_BWKEY-Low.
if so_bwkey-low ne '8210' .
message E000(zts).
endif.
At SELECTION-SCREEN ON SO_BWKEY-HIGH.
if so_bwkey-high ne '8210'.
message E000(zts).
endif.
At SELECTION-SCREEN ON so_mtart-LOW.
if so_mtart-low is not initial and so_mtart-low ne 'mcfe' .
message E001(zts).
endif.
At SELECTION-SCREEN ON so_mtart-HIGH.
if so_mtart-high is not initial
and so_mtart-high ne 'mcfe'.
message E001(zts).
endif.
This will resolve the issue..
Regards,
Gurpreet -
Truncation of selection screen field in reports
Hi,
Is there any way to avoid truncation of selection screen fields in ABAP reports? For eg, I declare:
SELECT-OPTIONS: s_test FOR ztest-test_field NO INTERVALS
The length of this field in the table is 30 chars. However, on displaying the field via selection screen, this gets truncated to around 18 or so. How do I avoid this as I need to display the full length of the field?Hi,
Try this
Tables : makt.
select-options maknr for makt-maktx.
now go to the screen painter of your program in change mode and move the Help buttons first to the Right each. now increasethe length of the Matnr Field length so that they are equal to 40 Char. in your program you have handle the length now if you want to restrict to 18 otherwise it will be ok
if they don't fit you need incease the Size of the Screen Visible area both in the Screen Painter as well as in the
Screen Attributes
You also get an Information Message just ignore that.
Just open your program in SE80 if you can't go to the screen painter in SE38. the other way just keep this program in Display mode and execute then take F1 help , take Technical Information and double click on the Screen number now go to the Screen Layout and go to Change mode here.
Regards,
Shirisha -
Selection screen field problem
Hello experts..
i have a selection screen , in that i have a field s_bwart for mseg-bwart.
some times the user will input the data in the field and sometimes he wont. we have fixed movement types combination like
11-21 , 13-24 , 13-56 , 101-543 , 101-544 etc.
if the user did not input any thing in the selection screen , i am populating s_bwart in at-selection screen event with all the mvt types. after executing the report when user presses the back button to come to the selection screen, there the s_bwart field is containing all the mvt types in single values ie in the select options screen. So the user dont want that, if he comes back nothing should be there in the selection screen field s_bwart if he has not inputted anything. if he inputs only 11 mvt type then when he comes back after executing the report he should see only 11 in the select screen field ie s_bwart. Please send the replies on how to solve the problem.hi,
in ur program try to display values for users in START-OF-SELECTION event as it triggers after the selection screen displayed for users. if user doesn't give any input then display default values in this event. and also create a variable
for ex:
data: ws_flag type c,
p_value type i.
after u display default values for users in selection screen assign the flag as ' X '
ws_flag = 'X'.
before leaving ur program based on flag try to do like this.
if ws_flag = ' X '.
clear s_data. // s_data is the select options for u.
else.
s_data = p_value. // the value which user gave in selection screen as i/p.
endif.
if helpful reward some points.
with regards,
Suresh Aluri. -
How to populate f4 values to standard pnp selection screen fields
Hi Experts,
my question is how to populate f4 values to standard pnp selection screen field. i am using LDB PNP for a report , it displays several fields with f4 values, i need to remove all the stadard f4 values and want to place my f4 values in the selection screenHi Venkat,
To put ur own values in the F4 help of any field...all u have to do is.
1st fetch all the records that u need to display in F4 help list...in one internal table.
and then use the function module 'F4IF_INT_TABLE_VALUE_REQUEST'
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield =
value_org =
tables
value_tab =
return_tab =
exceptions
parameter_error = 1
no_values_found = 2
others = 3.
where retfield is the field for which u need to give the F4 help.
and valu_tab is the internal table in which u have the list of records to be displayed.
this would do the work...
I dont have the system in front of me...as soon as i have...will try to send a piece of code, to make ur work easy.
Till then hope this helps u...all the best
Regards,
Radhika -
Can we create serach help for a selection screen field
Can we create serach help for a selection screen field with out creating searchhelp object.
I mean is it possible to create serchelp in the program itself with some specific values i want to give.
E.g say we can define any internal table and fill it with values and using that into selection screen fields
Regards
MaveAT SELECTION-SCREEN ON VALUE-REQUEST FOR paymeth.
PERFORM PAYMENT_HELP.
FORM PAYMENT_HELP.
DATA: begin of DESCR_TAB occurs 0,
DESCR LIKE BKPF-BKTXT,
END OF DESCR_TAB.
DATA: gd_repid like sy-repid.
gd_repid = sy-repid.
DESCR_TAB-DESCR = 'aaaaa'.
append DESCR_TAB.
DESCR_TAB-DESCR = 'bbbbb'.
append DESCR_TAB.
DESCR_TAB-DESCR = 'ccccc'.
append DESCR_TAB.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'DESCR'
DYNPPROG = gd_repid
DYNPNR = '1000'
DYNPROFIELD = 'paymeth'
VALUE_ORG = 'S'
DISPLAY = ' '
TABLES
value_tab = DESCR_TAB.
endform.
Svetlin -
Need help on search help on selection screen field
Hi guyz,
Please tell me how to pass the parameter or restrict the below search help.
*s_bsart FOR ekko-bsart . " Doc. Type*
For the above selection screen field i need to display the data only for cat = F if i click search help.
Thanks,
Mohamed KaleelHi,
Use At selection-screen for value-request for s_bsart.
SELECT_OTPIONS: s_bsart FOR ekko-bsart.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_bsart.
CALL SCREEN 100 STARTING AT 10 5
ENDING AT 50 10.
MODULE value_list OUTPUT.
SUPPRESS DIALOG.
LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
SET PF-STATUS space.
NEW-PAGE NO-TITLE.
s_bsart-low = 'F' / 'CAT=F'.
write :/ s_bsart-low.
Hide: s_bsart-low
clear s_bsart-low.
ENDMODULE.
AT LINE-SELECTION.
LEAVE TO SCREEN 0.
This will resolve the issue.
Regards,
Gurpreet -
How to put Mandatory option for selection screen fields in ABAP Queries
Hi Experts
Can anyone tell me how to put mandatory option for the selection screen fields in ABAP Queries.
Manually I had written code in the At Selection Screen option in infoset to display error message if that field is blank.
But I need to display the selection fields with the tick mark (obligatory mark).
How to do this?
Appropriate answers will be awardedHi
For parameter option
parameters : p_kunnr type kna1-kunnr obligatory.
For select option
select-options: s_date for vbak-erdat obligatory.
Plz rewards points ,
Regards ,
Ganesh. -
How to set selection screen field obligatory dymically
hi expert,
i have to make selection screen field obligatory while selecting a check box,i am using the following code can any one help me regards, thanks in advance.....
PARAMETER:p_user TYPE adr6-smtp_addr ,
p_check AS CHECKBOX user-command ucomm.
at SELECTION-SCREEN.
case sy-ucomm.
when 'UCOMM'.
PERFORM set_obligatory.
ENDCASE.
FORM set_obligatory .
LOOP AT SCREEN.
IF SCREEN-name = 'P_USER'.
SCREEN-REQUIRED = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDFORM. " set_obligatoryHi,
The following is the sample code.
PARAMETERS : p_barea TYPE ps0171-barea DEFAULT 'Z1' MODIF ID pb,
" Benefit Area
p_imfil TYPE rlgrap-filename, " Import file name
p_lock TYPE ztx_int-int_name
DEFAULT 'ZHBNT06A_METLIFE_INBOUND' MODIF ID pb, " Lock
p_test TYPE c AS CHECKBOX, " Test run
p_update type c as checkbox. " default 'X'
SELECTION-SCREEN END OF BLOCK selb01.
AT SELECTION-SCREEN OUTPUT *
AT SELECTION-SCREEN OUTPUT.
Benefit Area field made display only field
LOOP AT SCREEN.
IF screen-group1 EQ 'PB'.
CLEAR screen-input.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Regards
Vick -
Difference between At selection-screen and At selection-screen field
I need to know the difference between
Difference between At selection-screen and At selection-screen field
Regards
ShashiHi,
AT SELECTION-SCREEN is the event triggered in the PAI of the selection screen.
AT SELECTION-SCREEN on field field_name is the event specific to the field and is triggered when u press enter in that field.
AT SELECTION-SCREEN selscreen_event.
Effect
This statement defines event blocks for different events selscreen_event that are triggered by the ABAP runtime environment during selection screen processing.
Selection screen events occur immediately before sending a selection screen and after certain user actions on a displayed selection screen. They assist in selection screen processing in the ABAP program.
AT SELECTION-SCREEN is triggered at least twice during actions on selection screens that are linked into another selection screen as a subscreen - first for the linked selection screen itself, and then for the linking selection screens.
SELECTION-SCREEN FIELD SELECTION
FOR {NODE|TABLE} node [ID id].
Effect
This statement defines a node node in the structure of the logical database for field selection. If a node belongs to type T, you can use the TABLE addition instead of NODE. The statement cannot be used for type C nodes. .
If a node is defined for field selection, you can use an executable program linked to the logical database in the GET statement to control which fields in the node are to be read by the logical database. If you use the function module LDB_PROCESS, the FIELD_SELECTION parameter must be specified accordingly.
for more details check this link...
http://help.sap.com/saphelp_46c/helpdata/en/9f/db9a2e35c111d1829f0000e829fbfe/frameset.htm
Regards,
Priyanka.
Maybe you are looking for
-
Hi problem with Oracle 10g On windows 2003 SR1
Hi, I am installing NW2004S on windows 2003 SR1 (Std.Edition). After the installation of Oracle 10g I am getting the error "I*SQLPlus service" can't be started. Any help on this regard is greatly appreciated. Regards, Rao.M
-
Dear all, in WCS i have several alarms ( mainly Major). Without gonin in the details of the type of alarm, can somebody let me know: 1) If WCS realize that it no more present by default it will be automatically eliminated? For example I see in the ev
-
Data migration ALE or idocs and bapis
hi , thank you guys for the support. i am into a data migration project. i need the initial setup for the idocs and bapis. i dont know anything about these so can u send me the process for the setup and the data migration process too with idocs and b
-
C309g not finding any wireless networks. Won't print off bluetooth either.
The C309g will not find any networks at all. Even when scanning from the machine and when doing it through the computer setup. Even typed in the SSID but still no link. Bluetooth will connect but will not communicate once I unplug the USB cord.
-
Calculating difference in Time using Javascript, etc.
I have an employee timesheet application where a clerk occasionally has to manually add a line. In the DB table, there are START_DATETIME and STOP_DATETIME fields (TIMESTAMP datatype) and the difference between these is the number of hours the employ