F4 help for layout parameter
Hello Experts,
I m using one parameter for layout like in std report MB51 & put F4 help for that.
My problem is when user select from layout it is working fine but when user ENTER FROM KEYBOARD it is not accepting the layout..
My code is
PARAMETERS :p_layout LIKE disvariant-variant.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_layout.
PERFORM alv_f4 USING sy-repid p_layout.
FORM alv_f4 USING p_report CHANGING p_layout.
l_layout-report = sy-repid .
dynfields-fieldname = 'P_LAYOUT'.
append dynfields.
call function 'DYNP_VALUES_READ'
exporting
dyname = sy-cprog
dynumb = sy-dynnr
translate_to_upper = 'X'
tables
dynpfields = dynfields
exceptions
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
invalid_parameter = 7
undefind_error = 8
double_conversion = 9
stepl_not_found = 10
others = 11.
read table dynfields with key fieldname = 'P_LAYOUT'.
p_layout = dynfields-fieldvalue.
CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
EXPORTING
is_variant = l_layout
i_save = 'A'
IMPORTING
es_variant = l_layout
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.
p_layout = l_layout-variant.
ENDIF.
ENDFORM.
Plz suggest where i m wrong.
Ravi
Hi,
Refer this code. It will definitely help you.
https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/learn%252bto%252bdisplay%252bdata%252bin%252balv%252bgrid
Check the use of variant in ALV.
Regards,
Tarun
Similar Messages
-
How to get search help for 2nd parameter based on the 1st parameter value
Hi all!
I have 2 parameters (material no, revision level). I have created a search help for revision level. It has an importing parameter :material no. and one exporting parameter : revision level.When I checked it, it's giving the revision values only for the specified.
In my report , I have kept these 2 materials in my selection screen.For revision level , I have added the matchcode object which I have created. When I pressed F4 for revision level, it's giving all the values irrespective of the material no. in the first parameter. How to solve it? Please suggest.Hi,
Try this code filling internal table fields,
DATA: BEGIN OF values,
OID TYPE ZCL_OBJECT-OBJECTID,
ODEC TYPE ZCL_OBJECT-OBJECT_DESC,
END OF values,
W_FIELD(10).
DATA: ZCL_PROJECT-PROJECTID type zcl_project-projectid,
ZCL_OBJECT-OBJECTID(5).
DATA: progname TYPE sy-repid,
dynnum TYPE sy-dynnr,
dynpro_values TYPE TABLE OF dynpread,
field_value LIKE LINE OF dynpro_values,
values_tab LIKE TABLE OF values.
CALL SCREEN 100.
*& Module VALUE_PROJECTID INPUT
text
*MODULE VALUE_PROJECTID INPUT.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = 'ZCL_PROJECT'
fieldname = 'PROJECTID'
dynpprog = progname
dynpnr = dynnum
dynprofield = 'ZCL_PROJECT-PROJECTID'.
*ENDMODULE. " VALUE_PROJECTID INPUT
*& Module VALUE_OBJECTID INPUT
text
MODULE VALUE_OBJECTID INPUT.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = progname
dynumb = dynnum
translate_to_upper = 'X'
TABLES
dynpfields = dynpro_values.
READ TABLE dynpro_values INDEX 1 INTO field_value.
W_FIELD = FIELD_VALUE-FIELDVALUE.
SELECT OBJECTID
OBJECT_DESC
FROM ZCL_OBJECT
INTO (VALUES-OID,
VALUES-ODEC)
WHERE PROJECTID = FIELD_VALUE-FIELDVALUE.
APPEND VALUES TO VALUES_TAB.
ENDSELECT.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'OID'
dynpprog = progname
dynpnr = dynnum
dynprofield = 'ZCL_OBJECT-OBJECTID'
value_org = 'S'
TABLES
value_tab = values_tab.
ENDMODULE. " VALUE_OBJECTID INPUT
*& Module INIT OUTPUT
text
MODULE INIT OUTPUT.
progname = sy-repid.
dynnum = sy-dynnr.
CLEAR: field_value, dynpro_values.
field_value-fieldname = 'ZCL_PROJECT-PROJECTID'.
APPEND field_value TO dynpro_values.
IF SY-UCOMM = 'BACK'.
LEAVE program.
ENDIF.
IF SY-UCOMM = 'ANS'.
LEAVE TO SCREEN '0'.
ENDIF.
ENDMODULE. " INIT OUTPUT
START-OF-SELECTION.
WRITE: / field_value-fieldvalue,
W_FIELD.
LOOP AT VALUES_TAB INTO VALUES.
WRITE / VALUES.
ENDLOOP.
if sy-subrc <> 0.
WRITE / field_value-fieldvalue.
endif.
Plzz reward points if it helps -
How to add f4 help for a parameter in selection screen (Report)
hai friends
I am hving a pblm regarding the F4 help in selection screen for a parameter field ,currenly this parameter field is for personnel number , now in f4 help all the personnel numbers r listing ,i need to include the name of the corresponding personnel numbers along with it ,how do i do that .please give me a help.
thankyouHai
you first extract personal number and name into one internal table say itab.
THEN CALL THE FM.
AT SELECTION-SCREEN ON VALUE REQUEST FOR P_PARAMETER.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = P_PARAMETER
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
VALUE_ORG = 'S'
WINDOW_TITLE = 'Open Quantity'
TABLES
VALUE_TAB = ITAB. -
hi all,
i have copied the FBL5N(Report - RFITEMAR) to ZReport and added one field, and changed the name of the report to ZReport
wherever the standard program name has been hardcoded.
now the report is working fine for me, whereas while others using the same report, if there are trying to save the layout and check the F4 help they are not able to see the layouts they are created,but i am able to see the layouts i have created.
could anyone please let me know any default settings need to be done or any changes need to be made anywhere else.
thanks in advance.please check the value passed to the parameter I_SAVE in the funtion module for displaying report in ALV.
Below is the documentation on what values can be passed and their usage
Value range
' ' = display variants cannot be saved
Defined display variants (e.g. delivered display variants) can be selected for presentation independently of this flag.
Changes can not be saved.
'X' = standard save
Display variants can be saved as standard display variants.
User-specific saving is not possible.
'U' = only user-specific saving
The user can only save display variants user-specifically
'A' = standard and user-specific saving
The user can save a display variant user-specifically and
as standard display variant. The user chooses in the display variant
save popup. -
Need help for retrieving parameter containing "\" char from ServletRequest
I'm implementing a portal using Jetspeed 1.4, and I would like to include the "\" character in the login name of a HTML form like below:
login_name=INTRANET\Guest
And in many parts of the programs, it needs to interpret the path to identify the login name via the code segments below:
StringTokenizer st = new StringTokenizer(req.getPathInfo(), "/");
boolean name = true;
String pathPart = null;
while (st.hasMoreTokens()) {
if (name == true) {
tmp = URLDecoder.decode(st.nextToken());
name = false;
else {
pathPart = URLDecoder.decode(st.nextToken());
if (tmp.length() != 0) {
/* start debug */
System.out.println(pathPart);
/* end debug */
add(convert(tmp), pathPart);
name = true;
I expect that I should be able to be retrieved the login name as INTRANET\Guest. However, this is not the case, and I got INTRANET/Guest instead. By looking at the value of req.getPathInfo() of the 1st line, the path has already been wrongly interpreted as:
/media-type/html/user/INTRANET/Guest/page/...
Is there any way I can get the same parameter if "/" character is included? On the other hand, I want to reference the source code of Servlet 2.2 or above, but I can't find it available from java.sun.com, while the only v2.1.1 available here is simply a rubbish. Please help.
Thank you for your attention.Thank you for your reply. However, because I'm trying to modify the open source, and the login name is hard-coded appended into the path, where effort modifying this is very huge. It will be very convenient if I ca n find an alternative to get the value of getPathInfo() but with "\", or I can reach the source code and modify it straightly.
However, I can't imagine even Servlet 2.2+ source code (2.1.1 is available, but no use) is not made available by anywhere of java.sun.com, including the SCSL. What's so-called open source?! -
F4 help in selection parameter
hi all,
i have a prob in creating a f4 help for a parameter to download the error log file to windows using GUI_DOWNLOAD.
Parameter: p_error like rlgrap-filename. i tried fm KD_GET_FILENAME_ON_F4, but it selects the file but i need the folder name to be selected to be downloaded using gui_download.Pls help me in this issue
Thanks in advance,
Prem.Hi premnath,
try this:
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_drctry.
PERFORM get_dir CHANGING p_drctry.
*& Form get_dir
FORM get_dir CHANGING p_dir.
DATA:
lv_inidir
TYPE string.
l_dir = lv_inidir
= p_dir.
CALL METHOD cl_gui_frontend_services=>directory_browse
EXPORTING
window_title = 'Select Directory'
initial_folder = lv_inidir
CHANGING
selected_folder = l_dir
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
* not_supported_by_gui = 3
OTHERS = 4.
CALL METHOD cl_gui_cfw=>flush.
IF sy-subrc <> 0.
MESSAGE e000 WITH 'DIR Browse error' sy-subrc p_dir ''.
ENDIF.
p_dir = l_dir.
ENDFORM. " get_dir
Regards,
Clemens -
How to provide input help for a variant
Hi,
I have a parameter on the selection screen.
P_layout like disvariant-variant value check.
How do I provide input help for this parameter and also how do i check wheather the input entered is correct or not.Hi,
You can create a serch help for the field and add it in program like:
P_layout like disvariant-variant match-code object 'Searche help name'.
then if you need to do any validation u can do it at selection screen:
like:
at selection-screen for P_layout.
if..conditions..
regards, -
How to link a search help to a parameter using which syntax
hi
how to link a search help to a parameter using which syntaxHi
by useing this <b>F4IF_INT_TABLE_VALUE_REQUEST</b> you can creat a search help for a parameter on the screen
under <b>AT SELCTION-SCREEN ON FIELD</b>
write a selct query and store that values in the internal table and call that internal table in that FM
<b>example</b>
TYPES : BEGIN OF ST_OBJID_SH,
OTYPE TYPE HRP1000-OTYPE,
OBJID TYPE HRP1000-OBJID,
END OF ST_OBJID_SH.
DATA : IT_OBJID_SH TYPE STANDARD TABLE OF ST_OBJID_SH.
DATA : WA_OBJID_SH TYPE ST_OBJID_SH.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_OBJID-LOW.
* IF S_OBJID IS NOT INITIAL.
SELECT OTYPE OBJID FROM HRP1000
INTO TABLE IT_OBJID_SH
WHERE OTYPE = 'D'.
IF SY-SUBRC EQ 0.
* SEARCH HELP FOR QUALIFICATION.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
* DDIC_STRUCTURE = ' '
RETFIELD = 'OBJID'
* PVALKEY = ' '
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'S_OBJID'
* STEPL = 0
* WINDOW_TITLE =
* VALUE = ' '
VALUE_ORG = 'S'
* MULTIPLE_CHOICE = ' '
* DISPLAY = ' '
* CALLBACK_PROGRAM = ' '
* CALLBACK_FORM = ' '
* MARK_TAB =
* IMPORTING
* USER_RESET =
TABLES
VALUE_TAB = IT_OBJID_SH
* FIELD_TAB =
* RETURN_TAB = RETURN_TAB
* DYNPFLD_MAPPING =
* EXCEPTIONS
* PARAMETER_ERROR = 1
* NO_VALUES_FOUND = 2
* OTHERS = 3
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
<b>Reward if usefull</b> -
F4 help for parameter field - no values defined in the database
Hi,
In the Selection screen, I have two fields,
One is for getting input for the month
Other one is for year
These two are created by using parameter statement
and it is not referring to any data base table fields.
parameters : p_bumon type bumon.
parameters : p_bdatj type bdatj.
At the selection screen i need input help for the month and year separately.
I cant use the function module becos no values r fetch from the tables.
or else to get the input help, can u please just me some predefined type declarations so that i can get by default the F4 help for this
or any other table which have the value range for only for the month and year.
Just it is created and the input values is passed to the function module and to calculate the number of days for that particular month and year.
i need this very urgently
Please suggest me in this , whether it is possible
Thankshi,
There is a event called
At selection-screen PROCESS ON VALUE-REQUEST for.......
In your case it can be :-
At selection-screen PROCESS ON VALUE-REQUEST for p_bumon .
< Block 1>
At selection-screen PROCESS ON VALUE-REQUEST for p_bdatj .
< Block 2>
In the block u can write the code.......
say for month u can write
parameters : p_month(2) type c.
Eg for month
At selection-screen PROCESS ON VALUE-REQUEST for P_MONTH.
data : begin of int_month occurs 0,
month(2) type c,
end of ont_month.
INT_MONTH-MONTH = '01'.
append INT_MONTH.
INT_MONTH-MONTH = '02'.
append INT_MONTH.
INT_MONTH-MONTH = '03'.
append INT_MONTH.
INT_MONTH-MONTH = '11'.
append INT_MONTH.
INT_MONTH-MONTH = '12'.
append INT_MONTH.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'MONTH' Int tab field name
DYNPPROG = < program name>
DYNPNR = SY-DYNNR
DYNPROFIELD = 'P_MONTH' Field wer u need F4 help
VALUE_ORG = 'S'
WINDOW_TITLE = Any description
TABLES
VALUE_TAB = INT_MONTH. Internal table name
please reward points if useful.... and mark it answered.....
thank you. -
F4 help for select options based on parameter value
hi all,
I need a help to create an F4 help for select options for object id based on parameter value of object type, I mean once an object type is given the f4 help should contain object id's only of that type for each option.
Regard's,
Girija
Moderator Message : Duplicate post locked. Continue with [f4 help for select options based on parameter value |f4 help for select options based on parameter value;.
Edited by: Vinod Kumar on May 17, 2011 1:36 PMhi all,
I need a help to create an F4 help for select options for object id based on parameter value of object type, I mean once an object type is given the f4 help should contain object id's only of that type for each option.
Regard's,
Girija
Moderator Message : Duplicate post locked. Continue with [f4 help for select options based on parameter value |f4 help for select options based on parameter value;.
Edited by: Vinod Kumar on May 17, 2011 1:36 PM -
How can we provide F4 help for parameter field.
Hi All,
How can I provide F4 help for parameter field.
Regards,
Amarhi,
different ways of applying search help are :
you can use anyone:
1) CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
or
2)
can follow these simple steps for search help:
go to se11==> put some name after ticking search help radiobutton==> create==>
then tick " elementery search help " and press enter ===>then put description and table name in selection method ===>then put the field on which u want search help
in search help parameter==> tick IMP EXP ==> write 1 in lpos and spos===>save and activate===> double click on table name ===> select that field and press *search help tab* above===> then copy
3 )
methods of applyind search help:
For search help sometimes we use MATCHCODE----->when we apply it directly to parameter or select option.they are obselete now ii.For search help sometimes we CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' ??------->if we want to populate data of internal table as search help.
iii.For search help sometimes we declare tablename-fieldname in selection?------>if that field in that table is having seach help or check table ..F4 will be avaliable directly.
also:
Fixed value of domain can also work as search help.
i hope it will help u a lot
thaks and regards
rahul sharma -
HOW to Restrict the input Help for 0MATERIAL in the BPS Layout
Hi,
I have requirement to Restrict the input Help for 0MATERIAL in the BPS Layout.
For Example if the Planning Package is Restricted to SALES ORGANISATION ( 3000 ) then the system shuold check the 0MAT_SALES where SALES ORGANISATION IS "3000" )AND PASS THE Material Numbers to the 0material list.
I have Copied the standard Funtcion group "UPF_VARIABLE_USER_EXIT" to Z fucttion and have attached to Z Variabe as User Exit .
this Variable is Attached to 0material in the Planning Pakage. So tha now the 0MATERIAL is restricted to the variable which is having the User Exit.
But how to acces the Values of Planning Package for which the Layout is bein Executed from this Z User Exit ???
I Know how to restrict the input help, but my only problem is that how to get the values of Planning package through this User Exit.
Please suggest if it is possible.
Regards,
Nilesh LabdeHi Nilesh,
As I understand from your question,you know how to restrict but the issue is to know the value in the package with which you need to restrict.
There are two tables which can help you finding the value used in package for sales organisation:
1. UPC_PACKAGE
2. UPC_OPTIOS
How to use ?
From UPC Package you will get one GUID, Hit the second table UPC_OPTIOS with this GUID.
In field "FIELDNAME" enter the name of the characteristic whose value is req (sales organisation in your case)
Hope this helps you
Mann -
How do I use the z parameter instead of component's stack order for layout?
Hi,
In my current project I am already using the cool new 3D properties (z/rotationX/rotationY/rotationZ) of the Flex 4 SDK. It really makes fun playing
around with them, but it is actually pretty annoying that elements that ought to be postioned on top of each other with different z-values are displayed according to their stack order (the positon with respect to to their DisplayObject-siblings). This leads to the non-realistic appearance of objects that should be positioned in the back of the scene right on top of everything else.
The only solution for this problem is to manually set the z-order in which I want the objects to appear on the screen by using the removeChild()/addChild() methods of the parent-container. This is not only annoying but quite expensive and additionally non-dynamic.
Is there any means to make a container use its children's position in space for layout instead of its "z-stack"? If not, I would consider this as a bug, at least when it comes to 3D placement of objects.
Thank's for any hints and best regards,
Manuel FittkoIf you are running the broker as a Window's service then
jmqsvcadmin install -jrehome (or -javahome) is the correct
way to specify an alternate JRE. If you are running the broker
directly on the command line then you can use -jrehome directly
with the jmqbroker command. -
Need to create search help for parameter 2 based on values in parameter1
hi Specialists,
I need to create a search help for parameters field 2 ( Country ) based on the values the user inputs in parameters field 1 ( Currency ). The values of field Currency & Country will come from T001 table.
The logic is : Based on a unique currency value ( fetched from T001 table ) user needs to get/see all Countries on his selection -screen.
Can you guys let me know which FM can I use for above & how to pass various values i.e. parameters into that FM. EXplanation with an example/code is highly appreciable.
Thanks
Abhinav.Hi Abhinav,
Use this demo code, its working:-
This code selects sale document item based on the user entry for sales document on the screen field.
REPORT ztg_f1f4.
CALL SCREEN 1010.
*& Module GET_F4_HELP INPUT
* text
MODULE get_f4_help INPUT.
TYPES : BEGIN OF it,
posnr TYPE zvbap-posnr,
END OF it.
DATA : itab TYPE STANDARD TABLE OF it WITH HEADER LINE,
tb_dynpfields LIKE dynpread OCCURS 0 WITH HEADER LINE,
vbeln TYPE zvbap-vbeln.
CLEAR: tb_dynpfields.
REFRESH: tb_dynpfields.
MOVE 'ZVBAP-VBELN' TO tb_dynpfields-fieldname. "screen field name
APPEND tb_dynpfields.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = 'ZTG_F1F4'
dynumb = '1010'
* TRANSLATE_TO_UPPER = ' '
* REQUEST = ' '
* PERFORM_CONVERSION_EXITS = ' '
* PERFORM_INPUT_CONVERSION = ' '
* DETERMINE_LOOP_INDEX = ' '
* START_SEARCH_IN_CURRENT_SCREEN = ' '
* START_SEARCH_IN_MAIN_SCREEN = ' '
* START_SEARCH_IN_STACKED_SCREEN = ' '
* START_SEARCH_ON_SCR_STACKPOS = ' '
* SEARCH_OWN_SUBSCREENS_FIRST = ' '
* SEARCHPATH_OF_SUBSCREEN_AREAS = ' '
TABLES
dynpfields = tb_dynpfields
* EXCEPTIONS
* INVALID_ABAPWORKAREA = 1
* INVALID_DYNPROFIELD = 2
* INVALID_DYNPRONAME = 3
* INVALID_DYNPRONUMMER = 4
* INVALID_REQUEST = 5
* NO_FIELDDESCRIPTION = 6
* INVALID_PARAMETER = 7
* UNDEFIND_ERROR = 8
* DOUBLE_CONVERSION = 9
* STEPL_NOT_FOUND = 10
* OTHERS = 11
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
READ TABLE tb_dynpfields INDEX 1.
IF sy-subrc EQ 0.
vbeln = tb_dynpfields-fieldvalue.
ENDIF.
SELECT posnr FROM zvbap
INTO TABLE itab
WHERE
vbeln = vbeln.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
* DDIC_STRUCTURE = ' '
retfield = 'POSNR'
* PVALKEY = ' '
dynpprog = 'ZTG_F1F4'
dynpnr = '1010'
dynprofield = 'POSNR'
* STEPL = 0
* WINDOW_TITLE =
* VALUE = ' '
value_org = 'S'
* MULTIPLE_CHOICE = ' '
* DISPLAY = ' '
* CALLBACK_PROGRAM = ' '
* CALLBACK_FORM = ' '
* MARK_TAB =
* IMPORTING
* USER_RESET =
TABLES
value_tab = itab
* FIELD_TAB =
* RETURN_TAB =
* DYNPFLD_MAPPING =
* EXCEPTIONS
* PARAMETER_ERROR = 1
* NO_VALUES_FOUND = 2
* OTHERS = 3
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDMODULE. " GET_F4_HELP INPUT
Hope this solves your problem.
Thanks & Regards,
Tarun Gambhir -
Search help for input fields in a screen
Hi,
Pls help me
how to set search help property for the I/O fields in screen in se80?
1. do we want to add any property for search help in the property window?
2.do we want to create a MODULE PROCESS ON VALUE REQUEST ?
PLS tell me how to set search for the I/O field in se80?pls tell me the process?
i want to set the search help for more I/O fields in se80 but all the fields belongs to the same table?
can i create a single search for all these fields and use that for all the I/O fields ?
elementary search help or collective search help?
thanks & regards in advance,
vsnl.Hi,
Input Help on the Screen
Within the Screen Painter, you can define two types of input help:
1. The FIELD statement with one of the additions VALUES or SELECT.
2. Linking a search help directly to a screen field.
If you link a search help directly to a screen field, it overrides the additions of the FIELD
statement. However, the input check [Page 581] functions of the FIELD statement remain
unaffected.
Input Help in Flow Logic
The following input help methods are obsolete and should not be used. They are still supported
for compatibility reasons.
In the screen flow logic, you can specify a value list for a screen field <f> as follows:
FIELD <f> VALUES (<val1>, <val2>,...).
The value list contains a series of single values <vali>. The NOT and BETWEEN additions for the
input check [Page 581] are not appropriate for input help.
You can also create a value list by accessing a database table as follows:
FIELD <f> SELECT *
FROM <dbtab>
WHERE <k1> = <f1> AND <k2> = <f2> AND...
In the WHERE condition, the fields of the primary key <ki> of the database table <dbtab> are
checked against the screen fields <fi>. The WHENEVER addition, used with input checks [Page
581], is not necessary for input help.
If you have used a ABAP Dictionary reference for field <f>, the selection and the hit list formatting
may be affected by any check table attached to the field.
Attaching a Search Help
Search helps from the ABAP Dictionary can be attached to a screen field [Ext.]. To do this, enter
the name of the search help in the corresponding field in the attributes of the screen field in the
Screen Painter. This assigns the first parameter of the search help to the screen field. It is only
possible to place a value from the hit list onto the screen.
Input help on a screen.
REPORT DEMO_DYNPRO_F4_HELP_DYNPRO MESSAGE-ID AT.
DATA: CARRIER(3) TYPE C,
CONNECTION(4) TYPE C.
CALL SCREEN 100.
MODULE CANCEL INPUT.
LEAVE PROGRAM.
ENDMODULE.
The next screen (statically defined) for screen 100 is itself. It has the following layout:
602 April 2001
Cancel
Airline
Flight number
Screen field with search help
Input help in the flow logic
The input fields have been adopted from the program fields CARRIER and
CONNECTION. The function code of the pushbutton is CANCEL, with function type
E. The search help DEMO_F4_DE with the search help parameter CARRID is
assigned to the screen field CARRIER. The search help uses the database table
SCARR.
The screen flow logic is as follows:
PROCESS BEFORE OUTPUT.
PROCESS AFTER INPUT.
MODULE CANCEL AT EXIT-COMMAND.
FIELD CARRIER VALUES ('AA', 'LH').
FIELD CONNECTION SELECT *
FROM SPFLI
WHERE CARRID = CARRIER
AND CONNID = CONNECTION.
When the user chooses the input help for the individual fields, the following input
help is displayed:
For the Airline field, the search help displays the names of the airlines and places the airline
code in the input field for the chosen line. If the airline code is not one of those listed in the
VALUES list of the screen flow logic, the input check triggers an error message in the PAI
event. So the search help overrides the VALUES addition for the input help, but not for the
input checks. This is therefore not an appropriate place to use the VALUE addition.
For the Flight number field, the flow logic displays the selected entries from the database
table SPFLI and places the selected line in the input field.
Regards,
Bhaskar
Maybe you are looking for
-
Please help - I've upgraded to ML 10.8 (and also 10.8.1) and i can not log into icloud. I get an error saying "You can not log in at this time". I have no hair left on my head because I've pulled it all out! Now, there are many published fixes for t
-
Creation of Structure for charactersics in BEX
Hi, Anybody has clue to create structure for characterstics in Bex. Thanks, Debasish
-
3474438471
-
GPP Shortcuts using Mapped Drive Paths
I have been using Group Policy Preferences to map drives to a network share. I then have a number of shorcuts created to items on that network share using the fixed drive letter. So for example Shortcut1 points to L:\program\program.exe. Mapped dri
-
Creative Cloud won't let me reinstall Photoshop CC?
I installed the free trial 7 days ago, so I still have 23 days left. I uninstalled it 4 days ago and I've been trying to install it again, but it doesn't let me install it when I click the 'Try' option next to Photoshop. Instead, it comes up with a m