F4 Help for a dynamic input field( class CL_DD_INPUT_ELEMENT)
Hi all,
I am programming a dynamic document which has several input fields on it. I want to program F4 helps for these fields, does anyone have an idea how I can do that?
I have the idea to program a button(class CL_DD_BUTTON_ELEMENT) next to the input field and manually program an F4 help in the event handler of the button. But I do not know how I can handle pattern entries with '*' etc. in the input field. Is there a function module which could give me an F4 list(F4IF_INT_TABLE_VALUE_REQUEST could not be used, because it needs a dynpro field as a return field, which we do not have in this case).
Kind Regards,
Sükrü
hi
good
SELECTION-SCREEN DYNAMIC SELECTIONS FOR NODE|TABLE node.
allows you to define further nodes for dynamic selections. If the node has type T, you can use TABLE instead of NODE. The user can then decide at runtime the components of the node for which he or she wants to enter selections. Dynamic selections require special handling in the database program
F4 HELP->
AT SELECTION SCREEN ON VALUE REQUEST FOR P_SACHA.
PERFORM VALUES_SACHA.
THANKS
MRUTYUN^
Similar Messages
-
Hi ,i want provide a input help for a Selection input field
Hi Experts,
I want to provide a input help for field in selection-screen ,
this field is non primary key Custom Table(Z) selection input field .
how we can get ,f4 help for this field.
how to get f4 help Suppose field Link s_mtart-low,s_mtart-high,
What are the function moduled available for this >
Thanks in Advance.
Regards,
Hitu.Hi,
refer to below code.
*AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_usnam-low.
**//To provide F4 help to S_USNAM-LOW
PERFORM f_f4help_usnam USING 'S_USNAM-LOW'.
*AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_usnam-high.
**//To provide F4 help to S_USNAM-HIGH
PERFORM f_f4help_usnam USING 'S_USNAM-HIGH'.
*AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_wbs-low.
**//To provide F4 help to S_WBS-LOW
PERFORM f_f4help_wbs USING 'S_WBS-LOW'.
*AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_wbs-high.
**//To provide F4 help to S_WBS-HIGH
PERFORM f_f4help_wbs USING 'S_WBS-HIGH'.
*& Form f_f4help_usnam
To provide F4 help to username
-->P_0019 text
*FORM f_f4help_usnam USING value(p_0019) TYPE any.
**// To retrieve username from mkpf.
SELECT bname
FROM usr01
INTO TABLE it_usnam.
SORT: it_usnam BY usnam.
DELETE ADJACENT DUPLICATES FROM it_usnam COMPARING usnam.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
retfield = c_retusnam
PVALKEY = ' '
dynpprog = c_dynpprog
dynpnr = c_dynpnr
dynprofield = p_0019
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
value_org = c_s
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
value_tab = it_usnam
field_tab = it_usnam.
return_tab = l_it_ret
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
*ENDFORM. " f_f4help_usnam
*& Form f_f4help_wbs
To create F4 help for wbs element
-->P_0039 text
*FORM f_f4help_wbs USING value(p_0039) TYPE any.
**// To retrive wbs element from mseg
SELECT pspel
FROM pspl
INTO TABLE it_wbs.
SORT:it_wbs BY wbs.
DELETE ADJACENT DUPLICATES FROM it_wbs COMPARING wbs.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
retfield = c_retwbs
PVALKEY = ' '
dynpprog = c_dynpprog
dynpnr = c_dynpnr
dynprofield = p_0039
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
value_org = c_s
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
value_tab = it_wbs
FIELD_TAB =
return_tab = l_it_ret1
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
*ENDFORM. " f_f4help_wbs -
Calendar help for Date i/p field in SRM 5.0 shopping cart
Hi All,
I am working on SRM 5.0..I have a requirement for the addition of custom field ie. lease termination date field on SRM shopping cart screen and having a calendar help for this date input field.
Has anyone tried to add calendar help for an input date field in the ITS service??What all additions have to be done for this(style,images etc)...Does any one has any idea?Please help.
Thanks & Regards,
K rav.Disha can you please send me these images.
IMAGES/CALENDAR/ICO12_CALENDAR.GIF
IMAGES/CALENDAR/LEFT1.GIF
IMAGES/CALENDAR/LEFT2.GIF
IMAGES/CALENDAR/RIGHT1.GIF
IMAGES/CALENDAR/RIGHT2.GIF
my email id: [email protected]
and should i store these images in mime repository? Also I have the below code to be attached in template for calendar function give by Zakhar..do you know where exactly in the template do you insert this code? and do you insert it in the standard template itself. My field will appear in shopping cart line item level (CUF field) so what will be the template number??
<input type=text
id="`ZAPPSSPR_INCL_ITEM_CSF_AVL-ZZSPR_DKK_DATE.name`"
name="`ZAPPSSPR_INCL_ITEM_CSF_AVL-ZZSPR_DKK_DATE.name`"
value="`ZAPPSSPR_INCL_ITEM_CSF_AVL-ZZSPR_DKK_DATE.value`"
onBlur="BBP_ITS_EXTW_CloseCalendar()" maxlength="10" size="10">
<a id="a_ZAPPSSPR_INCL_ITEM_CSF_AVL-ZZSPR_DKK_DATE" name="a_ZAPPSSPR_INCL_ITEM_CSF_AVL-ZZSPR_DKK_DATE"
href="javascript:BBP_ITS_EXTW_OpenCalendarDomRel(window.document.BBPForm.elements['`<b>zappsspr_incl_item_csf_avl-zzspr_dkk_date.name</b>`'], 'a_ZAPPSSPR_INCL_ITEM_CSF_AVL-ZZSPR_DKK_DATE')">
<img src="/sap/public/bc/its/mimes/bbpglobal/99/images/calendar/ico12_calendar.gif" border="0"></a>
Thanks,
Krupa -
Hi...Experts am new in ABAP Webdynpro. Actually my application is Add Dynamic Input Field in webdynpro. Already One lable, one Input field is there and I add one more button. When I click that button Dynamically Adding same like existing lable and inputfield.Can anyone tel me how to resolve my problem.
Hi..Yugesh
U will try this,Definitly Ul get Answer.
For Dynamically creating Attribute
DATA : rootnode_info TYPE REF TO if_wd_context_node_info,
dyn_node_info TYPE REF TO if_wd_context_node_info,
dyn_node TYPE REF TO if_wd_context_node.
DATA : dyn_attr_info TYPE wdr_context_attribute_info.
dyn_attr_info-name = 'NAME'. Attribute Name
dyn_attr_info-DEFAULT_VALUE = 'Prakash'. +Iam Setting Default value of attribute,u can change as per ur requirement +
dyn_attr_info-type_name = 'ZDE_NAME' . Data Element(CHAR20) ( Type Of Attribute )
rootnode_info = wd_context->get_node_info( ).
CALL METHOD rootnode_info->add_attribute
EXPORTING
attribute_info = dyn_attr_info.
This will create a attribute at run time...
For Dynamically creating Input Field
DATA lr_container TYPE REF TO cl_wd_uielement_container.
DATA lr_input TYPE REF TO cl_wd_input_field.
DATA lr_table TYPE REF TO cl_wd_table.
DATA lo_nd_sflight TYPE REF TO if_wd_context_node.
DATA lr_button TYPE REF TO cl_wd_button.
DATA lr_grid_data TYPE REF TO cl_wd_grid_data.
DATA lr_flow_data TYPE REF TO cl_wd_flow_data.
DATA lr_matrix TYPE REF TO cl_wd_matrix_head_data.
+Note : Before that change the Layout of ROOTUIELEMENTCONTAINER to MATRIX LAYOUT +
navigate from <CONTEXT> to <SFLIGHT> via lead selection
lr_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
CALL METHOD cl_wd_input_field=>new_input_field
EXPORTING
bind_value = 'NAME' + attribute which i created above+
id = 'INPUT1'
RECEIVING
control = lr_input.
lr_matrix = cl_wd_matrix_head_data=>new_matrix_head_data( lr_input ).
lr_input->set_layout_data( lr_matrix ).
CALL METHOD lr_container->add_child
EXPORTING
index = 1
the_child = lr_input.
ENDIF.
Code it in WDDOMODIFYVIEW... -
F4 Help for the selection screen field
Hi Gurus,
I have to display F4 help for a selection screen field. i am using following code:
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'CODE'
dynpprog = lw_repid
dynpnr = sy-dynnr
VALUE_ORG = 'S'
TABLES
value_tab = gi_text
field_tab = li_fields_tab
return_tab = pi_return_tab
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
My internal table gi_emp has two fields CODE & TEXT. When i select 1 particular value, it returns the CODE value in the pi_return_tab table.
But my requirement is i have to capture the corresponding TEXT value for the Returned CODE. Ex: following is the F4 help being displayed: -
001 test
001 test1
but is i select code 001(First Value), i also need to capture it's corresponding Text value. In return table pi_return_tab i have only Code value.
Please help me out.
Note: Based on return code i can't search into the internal table gi_code, because as shown in the example, code has multiple text.Sachin,
I think this is what you need. The following code will return the key and the text (OR any other columns), if both columns are in the selection screen the selected values (both columns) will also be passed to the corresponding parameters. If you only need the text to be in the return table and not passed to the selection screen then set the parameter for text with NO-DISPLAY option.
REPORT zktest01 .
DATA :
BEGIN OF value_tab OCCURS 0,
field LIKE e070-trkorr,
text LIKE e07t-as4text,
END OF value_tab.
DATA: t_fldtab LIKE dfies OCCURS 0 WITH HEADER LINE,
t_rettab LIKE ddshretval OCCURS 0 WITH HEADER LINE,
t_dynmap LIKE dselc OCCURS 0 WITH HEADER LINE.
PARAMETERS : p_field LIKE value_tab-field,
p_text LIKE value_tab-text. "NO-DISPLAY.
INITIALIZATION.
t_fldtab-tabname = 'VALUE_TAB'.
t_fldtab-fieldname = 'FIELD'.
t_fldtab-langu = 'E'.
t_fldtab-position = 1.
t_fldtab-offset = 0.
t_fldtab-fieldtext = 'Key'.
t_fldtab-reptext = 'Key'.
t_fldtab-leng = 20.
t_fldtab-intlen = 20.
t_fldtab-outputlen = 20.
t_fldtab-datatype = 'CHAR'.
t_fldtab-inttype = 'C'.
t_fldtab-headlen = 20.
t_fldtab-keyflag = 'X'.
t_fldtab-lowercase = ' '.
APPEND t_fldtab.
t_fldtab-tabname = 'VALUE_TAB'.
t_fldtab-fieldname = 'TEXT'.
t_fldtab-position = 2.
t_fldtab-offset = 20.
t_fldtab-fieldtext = 'Text'.
t_fldtab-reptext = 'Text'.
t_fldtab-leng = 60.
t_fldtab-intlen = 60.
t_fldtab-outputlen = 60.
t_fldtab-headlen = 60.
t_fldtab-keyflag = ' '.
t_fldtab-lowercase = ' '.
APPEND t_fldtab.
value_tab-field = '101'.
value_tab-text = 'dddd'.
APPEND value_tab.
value_tab-field = '202'.
value_tab-text = 'aaaa'.
APPEND value_tab.
t_dynmap-fldname = 'FIELD'.
t_dynmap-dyfldname = 'P_FIELD'.
APPEND t_dynmap.
t_dynmap-fldname = 'TEXT'.
t_dynmap-dyfldname = 'P_TEXT'.
APPEND t_dynmap.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_field.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'FIELD'
dynpprog = 'ZKTEST01'
dynpnr = '1000'
dynprofield = 'P_FIELD'
value_org = 'S'
TABLES
field_tab = t_fldtab
value_tab = value_tab
return_tab = t_rettab
dynpfld_mapping = t_dynmap
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc EQ 0.
ENDIF.
START-OF-SELECTION.
Jeffrey Satriadi -
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 -
F4 help for Customizing Transport Request Field....
Hi,
I need a Function Module for F4 help for Customizing Transport Request field. I have used the below FM but I ma able to get only Customizing TR for only Login User Name only but not other Users. How to get the Customizing TR which are created by other Users(Owner is diferent from Login Owner).
PARAMETERS: p_cts TYPE e070-trkorr OBLIGATORY.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_cts.
PERFORM get_cts CHANGING p_cts.
*& Form get_cts
FORM get_cts CHANGING p_cts.
TYPE-POOLS trwbo.
DATA: lv_cts TYPE trwbo_request_header.
To Get only custimzing requests
CALL FUNCTION 'TR_REQUEST_CHOICE'
EXPORTING
iv_request_types = 'W'
IMPORTING
es_request = lv_cts
EXCEPTIONS
invalid_request = 1
invalid_request_type = 2
user_not_owner = 3
no_objects_appended = 4
enqueue_error = 5
cancelled_by_user = 6
recursive_call = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
CALL FUNCTION 'POPUP_DISPLAY_MESSAGE'
EXPORTING
titel = 'Transport'
msgid = sy-msgid
msgty = sy-msgty
msgno = sy-msgno
msgv1 = sy-msgv1
msgv2 = sy-msgv2
msgv3 = sy-msgv3
msgv4 = sy-msgv4.
ENDIF.
Pass the selected TR to selection screen
IF sy-subrc = 0.
MOVE lv_cts-trkorr TO p_cts.
ENDIF.
ENDFORM. " get_cts
Regards,
Deepthi.Instead of using FM 'TR_REQUEST_CHOICE', you can have direct database select on table E070 and E071.
In E070, the field TRFUNCTION determine the customizing and workbench request.
K-> Workbench Request
W-> Customizing Request -
To implement search help for date and time fields details
how can i implement search help for date and time fields in screen painter
Hi
Declare the variables as sy-datum and sy-uzeit or any other pre-defined data typ of date and ime types. Serach help will automatically comes.
Aditya -
Limiting the value help for a user input variable as required
Hello Gurus,
I have a requirement :-
Restrict the value help for a user input variable in a query to only a required set of values instead of the default behaviour. ie instead of having all the values in the master data of that characteristics in the value help.
How do I go about it? - Do I have to explore the precalculated value set feature?
If so, please tell me how to go about it in BI 7.I would appreciate if you could explain it in detail rather than sending me a URL because I have gone through most of them but Iam yet to figure out how to create the broadcast setting and subsequent steps.
Thanks for your time.
Regards,
Kris_HitmanI believe if the User doesn't want to see any particular values in F4 help then it means they are not intrested in viewing the transaction data related to those values.
So why don't you restrict that object with the required values. Then the F4 help will automatically display only those values. -
Input help for a selection screen field
I have a selection screen with field species and checkoff activity .
For a given species('sc','sb' or 'ss') , the input values allowed for the
check off activity must be 'SCCK' for species 'SC' ,'SBCK' for species 'SB' and so on.
I need to provide input help for check off activity based on the value of the species.How do i do that?PARAMETER : p_val(10) TYPE c ,
p_val2(10) TYPE c.
AT SELECTION-SCREEN on p_val.
IF p_val = 'SC'.
p_val2 = 'SCCK'.
ENDIF. -
Dropdown list on Dynpro for a disabled input field - No PAI triggered?
Hello experts,
I am facing a problem with a dropdown list on a dynpro (defined as a subscreen). The drop down list should be for a field that is not input ready (at least it should appear not being input ready).
The user should be able to pick a value from the dropdown list and as soon the selected row changes a PAI should be processed as other fields on the main dynpro as well as the subscreen itself need to change accordingly.
The dropdown list works fine but with the field not being set to input ready - neither the input field changes nor a PAI etc. is triggered.
But if the property for input is set to input ready, it works fine.
Info:
Dropdown list is populated in POV
A function code is assigned to the field
What am I missing here?
What properties must be set for the field.
Thanks,
Chris
PS. If set to input - how do I prevent the single empty line in the list?hi
good
SELECTION-SCREEN DYNAMIC SELECTIONS FOR NODE|TABLE node.
allows you to define further nodes for dynamic selections. If the node has type T, you can use TABLE instead of NODE. The user can then decide at runtime the components of the node for which he or she wants to enter selections. Dynamic selections require special handling in the database program
F4 HELP->
AT SELECTION SCREEN ON VALUE REQUEST FOR P_SACHA.
PERFORM VALUES_SACHA.
THANKS
MRUTYUN^ -
How to provide F1 & F4 helps for a newly created field.
I have to create a <b>currency field</b> in 0100 screen like skb1-waers.
I have to provide F1 & F4 helps for that field.
Shall I give screen name as SKB1-WAERS ?
I have given as above .
But the problem is when the Processor is processing a that screen , the currency on the screen gets overwritten by another the reference account field in one of the subroutine. Since the screen uses fieldname skb1-waers, it gets overwritten when my code read skb1 table.
Was it right that I used screen name as SKB1-WAERS ( in my screen attributes for that field ) ???
If not suggest me what to do and how to proceed ?
YOUR HELP IS APPRECIATED.Hi,
I would suggest creating a new structure in the DDIC..Then give the field WAERS and give the foreign key table as TCURC..
Steps
GO to SE11...select the radio button ..data type... give the structure name...Z_SCREEN_0100.
Press create ..
Then give the column name WAERS..
Give the data element as TCURC.
Place the cursor on the waers field and press the foreign key button..
It would automatically propose the table TCURC..
copy and generate the structure..
use the structure-fieldname to define the currency field..
Go to the input field attributes..
give Z_SCREEN_0100-WAERS..Press enter..It will ask whether the field should be dictionary reference..Press yes to continue..
In the PBO..
Move the value from the SKB1 table to the screen structure Z_SCREEN_0100-WAERS
Thanks,
Naren -
LOV for an unbound input field in ADF-JSP
Hi i have a web app using ADF BC, struts , JSP.
Jdev - 10.1.2
JHS - 10.1.2
I have a text field <input type="text" value="solution">
I need to populate this UNBOUND input field with a value from an LOV which pops up in a separate window.
I need help right from the beginning... which i guess wud be to create a VO for it.. i have never done it earlier so any help wud be useful.Hi,
try
<BODY onload="document.DataForm.EmployeeId.focus()">
where EmployeeId needs to be substituted by the name used in the textfield property
<html:text property="EmployeeId"/>
If this was Empno then the example would be
<html:text property="Empno"/>
and
<BODY onload="document.DataForm.Empno.focus()">
Frank -
Dynamic Input field creation - issue with bindValue in loop
Hello,
I am creating context node elements at runtime. My node looks like this -
LocalNode
Question
Answer
for(int i;i<wdContext.nodeLocalNode.size();i++)
wdContext.nodeLocalNode().setLeadSelection(i);
IWDTextView TV1 = (IWDTextView)view.createElement(IWDTextView.class,"TV"+i);
TV1.setText(wdContext.currentLocalNodeElement().getQuestion());
mainGrp.addChild(TV1);
IWDInputField IP1 = (IWDInputField)view.createElement(IWDInputField.class,"TE"+i);
IP1.bindValue("LocalNode.Answer");
IP1.setValue(wdContext..currentLocalNodeElement().getAnswer());
mainGrp.addChild(IP1);
Please note: Question column is the textView and Answer column is the input field
The output should be as follows-
Question Answer
Header None
How Many 7
Comments Maybe valid
Do you agree Yes
Although the text view displays correctly, the input field only shows the last record value and the output currently displays as follows-
Question Answer
Header Yes
How Many Yes
Comments Yes
Do you agree Yes
What am I doing wrong here?
How can I bind the corresponding values to the input field in a loop?
Regards,
NishaHi,
Could you please provide the code .
Regards,
Sunil. -
Calendar help for Date i/p field
Hi All,
I am working on SRM 4.0..I have a query regarding the addition of calendar help for an input date field....
Has anyone tried to add calendar help for an input date field in the ITS service??What all additions have to be done for this(style,images etc)...Does any one has any idea?Please help.
Thanks & Regards,
Disha.Vijith Kumar,
I also have a requirement to add custom field in SRM shopping cart screen, with calendar as an input help. Can you please pass me the relevant code, for adding this field into HTML template
My email id is [email protected]
Thanx,
K rav.
Maybe you are looking for
-
Dear all, I am having trouble displaying the value I want. I have a double value say 320 sent to a digital indicator where I have edited the properites of it to display in a time format containing only minutes and seconds like so, '3:20'. Unfortunate
-
HT4009 Hi, what do I have to do when I'm not able to make an in app purchase
Can't make an in app purchase from heros of order and chaos even though I have the required balance and I was directed to here
-
Zen Micro is dead...what ne
Here I sit looking at a totally useless, nonfunctional ZenMicro 5GB. Bought it for my 6 yo daughter for Christmas....she was so happy...used it effortlessly for 2 weeks, bragged to all her friends who got ipods how much better hers was, then the thin
-
Convert music to 128kb/s AAC on update?
Hi, Could someone tell me if the Nano has an option to convert all transferred songs to 128k AAC files so that the higher quality files can remain on the PC while the nano contains the lower quality files? Someone over on iLounge said the shuffle had
-
Both Ipad2 and Iphone3Gs stuck in recovery mode after iOS 5 update
Hello, My Ipad2 (and the Iphone 3Gs of my wife) is stuck after trying updating my devic with iOS 5. Error 3200 occured and then the screen only shows the usb plug to Itunes, and that's it !! Any idea please ? Regards,