Select-Option F4 Help in POV event Module pool?
Hai Experts,
I have select options in one of my module pool screen for that i want F4 Help for that select option in
POV event . i already the write the F4 help for input field . in same way im createing the F4 help for select option it gives the
error like ' S_kunnr is not maintain in Screen' please help on this.
Thanks,
Adv.
in same way im createing the F4 help for select option it gives the
> error like ' S_kunnr is not maintain in Screen' please help on this.
Hi.,
I think You used Function Module for Manual Input Help., From Your It is clear that You used S_kunnr in Return Field,
You have to use S_kunnr-LOW for Input in Low field and S_kunnr-HIGH for Input in High Field
hope this helps u.,
Thanks & Regards,
Kiran
Similar Messages
-
How to create the select option for the Plant in screen (Module pool)
HI,
I am developing one module pool program and I have below requirement,
currently plant is acting like PARAMETER and the now it should be changed to select option.
how to create the select option in the screen
Thanks and regarding,
Malla
Moderator message - Cross post locked
Edited by: Rob Burbank on Dec 16, 2009 1:41 PMSteps to get SELECT-OPTIONS in module pool programs.
1.Start one dialog program with SAPMZ_001.
Place the below code in the TOP include of the dialog program.
TABLES marc.
SELECTION-SCREEN BEGIN OF SCREEN 3200 AS SUBSCREEN.
SELECT-OPTIONS: werks FOR marc-werks.
SELECTION-SCREEN END OF SCREEN 3200.
2 .Create one screen 3000.
Go to Layout of the screen and Define subscreen area on the screen and Name it as l_subscreen.
Place the below code in the Flow logic of the screen.
PROCESS BEFORE OUTPUT.
CALL SUBSCREEN l_subscreen INCLUDING 'SAPMZ_001' '3200'.
PROCESS AFTER INPUT.
CALL SUBSCREEN l_subscreen.
Activate all.
Create Transaction code for the dialog program .
Execute the transaction code. You will see the select-option for werks how we see on Selection-screen. -
Can i have html code for date select options (SEARCH HELP)
Hi frinds,
I have a BSP Page with input as date.
Can i have html code for date select options (SEARCH HELP)
MoosaHi
Please find the sample code below.
FROM DATE
<htmlb:inputField id = "dd"
width = "45%"
type = "DATE"
showHelp = "X" <- Search help
alignment = "CENTER"
maxlength = "10"
disabled = "TRUE"
value = "<%= w_FROMDATE %>" />
TO DATE
<htmlb:inputField id = "dd"
width = "45%"
type = "DATE"
showHelp = "X"
alignment = "CENTER"
maxlength = "10"
disabled = "TRUE"
value = "<%= w_TODATE %>" />
Thanks
kalyan -
Multiple records in select options-Urgent help
Hi all,
Iam using the following function module to get the set values. I need to pass multiple values in select options(ie) select options with no intervals. to the function module parameter Shortname. I have declared the variable which has to be passed as
S_SETID FOR SETHEADER-SETNAME NO INTERVALS.
The problem is when i use S_SETID-LOW the value is passed to the function module , but if multiple data is entered in the input then how to pass all the data to the function module. Please Help.Hi,
Declare the Range in the Function module , then you can pass that Select-option fields to that ranges and use that in the Function module.
Or you can use the RANGE_C8 for the Select-optios in the Function module, you can declare the Internal table with the type of RANGE_C8 in the tables parameter, then pass the Select-option to this Internal table
If you want more length field then search based on RANGE_* then you will get all the Range Structure.
Regards
Sudheer -
Select-Option F4 Help Multiple Selection
Hi
I have wriiten the code to provide custom F4 help for a field using F4IF_INT_TABLE_VALUE_REQUEST' and then updating the values back to screen using Function Module DYNP_VALUES_UPDATE.
It is working fine when the F4 is used on the main screen, But when i click on the multiple selection button and press F4, i do get the F4 values list, but selected value is not getting passed back to the field.
I guess the issue is the field name changes in the multiple section option, Please suggest how can i fix it.
*& Form update_date_bATCH
Updating the sel_screen with the retrieved values
FORM update_date_batch USING pt_filename pt_fieldvalue.
Rundate
st_dyn_fields-fieldname = pt_filename.
st_dyn_fields-fieldvalue = pt_fieldvalue.
APPEND st_dyn_fields TO it_dyn_fields.
Function Module to update the screen with the values retrieved
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = sy-repid
dynumb = sy-dynnr
TABLES
dynpfields = it_dyn_fields
EXCEPTIONS
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
undefind_error = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE i006(zffi).
ENDIF.
ENDFORM. " update_new_date_timeYou have added the F4 to a select-option for areport and would like to get the F4 values back into the select-option, when the user selects multiple values?
If this is the case you have to fill the internal table behind the select-option and this will have to based on waht the user selected.
The first value will go on to the screen the way you have done it.
If this is what you want to do?
Rene -
Select options in web dynpro ABAP (Event on_check)
Hi,
how can I raise a message in the event-handler method on check for a specifc field out of the Select-Option.
Best regards,
MarcusHello,
Create a new method and call it when you want to show the message.
METHOD message_handling .
DATA:
lr_current_controller TYPE REF TO if_wd_controller,
lr_message_manager TYPE REF TO if_wd_message_manager.
lr_current_controller ?= wd_this->wd_get_api( ).
lr_message_manager = lr_current_controller->get_message_manager( ).
lr_message_manager->report_t100_message(
msgid = iv_msgid
msgno = iv_msgno
msgty = iv_msgty
p1 = iv_p1
p2 = iv_p2
p3 = iv_p3
p4 = iv_p4 ).
ENDMETHOD.
In this method, the program show a message that is declared in a mesasge class. If you look at IF_WD_MESSAGE_MANAGER there are other methods to show a message.
And you can find more information at this blog https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/8402. [original link is broken] [original link is broken] [original link is broken]
Regards, -
Select-Options search help with where
Hi Experts,
I need to have a search help in my selection screen with a Where clause.
I've tried to search it but I cant find answers.
The logic is like this, wherein the search help for my selection screen should just have the value PM001 and ZMIS.
SELECT-OPTIONS stsma estat tj30 FOR s_eqpstt FOR tj30t-estat WHERE stsma = 'PM001' and stsma = ZMIS.
ThanksSorry, a little more detail... create a view, of search help type, with the columns you present and restrict those two values. Then create the search help with that view. Then add the search help to the select-option.
Regards,
Edgar -
WDA select-options value help configuration
Hello,
I would like to configure the value help in the select-options component in WebDynpro ABAP. I used the parameter I_VALUE_HELP_TYPE of the method ADD_SELECTION_FIELD, but I didn't know how to pass a correct value for this parameter. Could someone give me an example with coding? That would be great! Thanks in advance.
Regards,
GeorgFor those of you who, like me, get a screen full of OTR keys on the buttons and tabs, the answer is on the first tab, 6th button. Note that it is based on SPFLI, so the expected linkage between CARRID and CONNID does not happen.
The code is in MAIN_VIEW method ONACTIONON_CRS_FLD_F4_CASES.
The essence of it is:
wd_this->m_handler->add_selection_field(
i_id = CARRID
it_result = lt_range_table
i_value_help_structure = 'SFLIGHT'
i_value_help_structure_field = "CARRID ).
wd_this->m_handler->add_selection_field(
i_id = CONNID
it_result = lt_range_table
i_value_help_structure = 'SFLIGHT'
i_value_help_structure_field = "CONNID ).
The result is that you select the CARRID, and that restricts the CONNIDs.
I have used SFLIGHT because it will give linked search helps for CARRID and CONNID. It works with parameters too, but remember GET_PARAMETER_FIELD is not currently implemented (it exists, but contains no code, so your program will seem to work, but it won't) , so use GET_PARAMETER_FIELDS which does work. -
Select option how to pass in Function Module
Hi Friends
how to pass direct select-option values in a Function Module and later how to retrive the values from FM as well ?
Regards
MeetaHello Meeta
You may use a generic table type like RSELOPTION or RSDSSELOPT_T. However, this requires that you shuffle the data from twice from your specific select-options to this generic select-option and vice versa.
A much simpler way is to import the name of the report from which you want to retrieve its select-options into the function module and within the fm just call fm RS_REFRESH_FROM_SELECTOPTIONS.
Regards
Uwe -
Difference between poh and pov in module pool programming
hi all,
pls tell me difference between poh and pov and how i check validation in screenHi,
POV gives you F4 help.
like:
You can call dialog modules in the POV event using the event keyword PROCESS ON VALUE-REQUEST.
PROCESS ON VALUE-REQUEST.
FIELD f MODULE mod.
After the PROCESS ON VALUE-REQUEST statement, you can only use the MODULE statement together with the FIELD statement. When the user chooses F4 for a field f, the system calls the module mod belonging to the FIELD statement. If there is more than one FIELD statement for the same field f, only the first is executed. The module mod is defined in the ABAP program like a normal PAI module. However, the contents of the screen field f are not available, since it is not transported by the FIELD statement during the PROCESS ON HELP-REQUEST event. You can now program your own value lists in the module. However, this procedure is only recommended if it really is not possible to use a search help. Defining search helps is much easier than PROCESS ON VALUE-REQUEST, since the system takes over some of the standard operations, such as getting field contents from the screen. It also ensures that the F4 help has a uniform look and feel throughout the system. Furthermore, it means that you do not have to reassign input help to fields on each screen.
Despite the introduction of search helps (and search help exits), there are still cases in which you need to use parts of the standard F4 functions directly. In this case, there are some standard function modules that you can use in the POV event. They support search helps, as well as all other kinds of input help, and are responsible for data transport between the screen and the input help. These alll have the prefix F4IF_. The most important are:
· F4IF_FIELD_VALUE_REQUEST
Calls the input help of the ABAP Dictionary dynamically. You can pass the component names of a structure or database table of the ABAP Dictionary to the function module in the import parameters TABNAME and FIELDNAME. The function module starts the ABAP Dictionary input help for this component. All of the relevant screen fields are read. If you specify the import parameters DYNPPROG, DYNPNR, and DYNPROFIELD, the users selection is returned to the corresponding field on the screen. If you specify the table parameter RETURN_TAB, the selection is returned into the table instead.
· F4IF_INT_TABLE_VALUE_REQUEST
This function module displays a value list that you created in an ABAP program. The self-programmed value list is passed to the function module as the table parameter VALUE_TAB. If you specify the import parameters DYNPPROG, DYNPNR, and DYNPROFIELD, the users selection is returned to the corresponding field on the screen. If you specify the table parameter RETURN_TAB, the selection is returned into the table instead.
There are also two function modules - DYNP_VALUES_READ and DYNP_VALUES_UPDATE - that can read the values of screen fields and return values to them during the POV event. For further information, refer to the relevant function module documentation.
Input help in dialog modules
REPORT demo_dynpro_f4_help_module.
TYPES: BEGIN OF values,
carrid TYPE spfli-carrid,
connid TYPE spfli-connid,
END OF values.
DATA: carrier(3) TYPE c,
connection(4) TYPE c.
DATA: progname TYPE sy-repid,
dynnum TYPE sy-dynnr,
dynpro_values TYPE TABLE OF dynpread,
field_value LIKE LINE OF dynpro_values,
values_tab TYPE TABLE OF values.
CALL SCREEN 100.
MODULE init OUTPUT.
progname = sy-repid.
dynnum = sy-dynnr.
CLEAR: field_value, dynpro_values.
field_value-fieldname = 'CARRIER'.
APPEND field_value TO dynpro_values.
ENDMODULE.
MODULE cancel INPUT.
LEAVE PROGRAM.
ENDMODULE.
MODULE value_carrier INPUT.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = 'DEMOF4HELP'
fieldname = 'CARRIER1'
dynpprog = progname
dynpnr = dynnum
dynprofield = 'CARRIER'.
ENDMODULE.
MODULE value_connection 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.
SELECT carrid connid
FROM spfli
INTO CORRESPONDING FIELDS OF TABLE values_tab
WHERE carrid = field_value-fieldvalue.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'CONNID'
dynpprog = progname
dynpnr = dynnum
dynprofield = 'CONNECTION'
value_org = 'S'
TABLES
value_tab = values_tab.
ENDMODULE.
*POH gives you F1 documentation:*
like:
If data element supplement documentation is insufficient for your requirements, or you want to display help for program fields that you have not copied from the ABAP Dictionary, you can call dialog modules in the POH event:
PROCESS ON HELP-REQUEST.
FIELD is defined in the ABAP program like a normal PAI module. The processing logic of the module must ensure that adequate help is displayed for the field in question. Instead of calling an extra screen with text fields, you should use one of the following function modules to display a suitable SAPscript document:
HELP_OBJECT_SHOW_FOR_FIELD
This function module displays the data element documentation for components of any structure or database table from the ABAP Dictionary. You pass the name of the component and structure or table to the import parameters FIELD and TABLE.
HELP_OBJECT_SHOW
Use this function module to display any SAPscript document. You must pass the document class (for example, TX for general texts, DE for data element documentation) and the name of the document to the import parameters DOKCLASS and DOKNAME. For technical reasons, you must also pass an empty internal table with the line type TLINE to the tables parameter of the function module.
For further information about how to create SAPscript documents, refer to the Documentation of System Objects documentation.
Field help on screens.
REPORT DEMO_DYNPRO_F1_HELP.
DATA: TEXT(30),
VAR(4),
INT TYPE I,
LINKS TYPE TABLE OF TLINE,
FIELD3, FIELD4.
TABLES DEMOF1HELP.
TEXT = TEXT-001.
CALL SCREEN 100.
MODULE CANCEL INPUT.
LEAVE PROGRAM.
ENDMODULE.
MODULE F1_HELP_FIELD2 INPUT.
INT = INT + 1.
CASE INT.
WHEN 1.
VAR = '0100'.
WHEN 2.
VAR = '0200'.
INT = 0.
ENDCASE.
ENDMODULE.
MODULE F1_HELP_FIELD3 INPUT.
CALL FUNCTION 'HELP_OBJECT_SHOW_FOR_FIELD'
EXPORTING
DOKLANGU = SY-LANGU
DOKTITLE = TEXT-002
CALLED_FOR_TAB = 'DEMOF1HELP'
CALLED_FOR_FIELD = 'FIELD1'.
ENDMODULE.
MODULE F1_HELP_FIELD4 INPUT.
CALL FUNCTION 'HELP_OBJECT_SHOW'
EXPORTING
DOKCLASS = 'TX'
DOKLANGU = SY-LANGU
DOKNAME = 'DEMO_FOR_F1_HELP'
DOKTITLE = TEXT-003
TABLES
LINKS = LINKS.
ENDMODULE.
Regards,
Renjith Michael -
Reg. POV in module pool---have ur points...
Hi all,
I m trying to use POV event in module pool, I wrote
PROCESS ON VALUE-REQUEST.
FIELD ZPHOGAT-ROLLNO MODULE ABC.
Here in module ABC is wrote 'break-point'. when i click on F4 help of that field i my break-point is not getting executed.
Pleas help me out...
Have ur point.s
regards,First make sure everything is compiled, then try an extended check on the main program to make sure you have your variable names, module pool name etc etc synchonised (in case you have a typo in the module or variable name)... then try changing your break-point for "message s398(00) with 'This is my POV' space space space." or something similar.
-
Select current line through push button in module pool
Hi,
I have created one module pool program with table control. There I have inserted on push button where some logic is deployed.
Logic :-
If I push button on current line or any line, that line should be selected in the program. So that I can move that line to next internal table.
But, it always shows first line.
Please suggest the same.hi amol,
GET CURSOR only works on the number of table control lines that can be displayed on screen at any one time. So, if your screen can display only 4 lines, all you'll ever get from GET CURSOR is a number 1 to 4.
But your screen also knows which of your table control records is currently displayed as the top line of your table control. This information is held in field TC_ITEMS-TOP_LINE (where TC_ITEMS is the name of your table control). By combining these two bits of information, you can find the correct line number of your selected record.
For example in the case you describe where you are clicking on line 5 but GET CURSOR thinks it is line 4 because your screen has moved down a record, I would think that TC_ITEMS-TOP_LINE would be 2. Add 4 and 2 together, subtract 1 and you'll get your correct line number.
hope it helps,
vikas -
Search help for date in module pool
Hi experts
i am developing a module pool prog, in the second screen 6 fields are displayed and one of them is date field. I wanna search help for that date field. Plz note the date field is populated from Work area of iternal table.
Plz help me out in solving the issue.
Thanks and Regards,
AlsonHi
We have a lot of Example programs in SAP, have a look at the demo program
<b>DEMO_DYNPRO_F4_HELP_MODULE</b>..
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaac935c111d1829f0000e829fbfe/content.htm
Regards
Sudheer -
How can we select multiple rows in table control for module pool program?
hi guru's
i cannt able to select multiple table control rows for deletion of records please give any code to select rows?
regrards,
satheesh.On the Table Control attributes there is a "Selectability" option where you choose one of: None, Single, or Multiple. In your code you then need to pick up which rows have the selection column set to 'X'.
-
How to add help documentation in a module pool screen?
Hi ,
I have to add documentation for a module pool screen. I have added the documentation for the program in se38 but what can I do to make it visible on the screen I have designed.
Since I am new to module pool, kindly explain me step by step.
Thanks,
NidhiHello Nidhi,
if you want at field level you use
PROCESS ON HELP-REQUEST. in flow logic of screen.
one mre thing you can add one text edit control on screen and put your text in screen
Maybe you are looking for
-
My MSI Neo2 Pt does this time to time as soon as I power it on. beeeeep pause beeeeep pause beeeeep pause beeeeep pause ........ infinity these are not exactly short beeps but not even that long ones.....more like beeeeeep, and its not continous. How
-
Aperture fails to import 10,000 pics - hangs, instead, and takes 200% CPU
Help! I am an IT professional and a professional photographer. But I have now spent a MONTH!! trying in vain to import my photo library into Aperture on my iMac. I try to import 10,000 images (the import mode that leaves originals where they are) fro
-
I wrote my ebook (using ibooks author) and now I intending to install it into an ipad and turn it readable only at that machine. So, what can I do to restrict distribution and avoid it can be readable into other ipads? Thanks for helping...
-
How can i buy mac book air with Arabic keyboard
how can i buy mac book air with Arabic keyboard
-
My calendar is telling me that I have a meeting in 15mins. Thing is, its about 8 hours too late... anyone know how to fix this?