Help in serach field in FM
hi,
i need to do a search field in <u>FM</u> how can i do that?
ex. name: Ric
i get
Rich
Richard
regards
HI
thankes for u replay
i dont wont Search help window like in alv,
i wont field or somhihng that i can write in field string
and i get in table (of fm) all str that in there.
in the function i just have field and table
like
US
i get in table
USD
USDO
and so on
maybe i need to now how i can do a select
and get there all fields that in string
this is th select
SELECT waers
FROM tcurc
INTO TABLE curr_tab
WHERE waers = waers. "maybe here
thankes
and Regards
Similar Messages
-
F4 Help on one field should populate data on another field
Dear All....
I am using the FM - F4IF_INT_TABLE_VALUE_REQUEST for F4 help on one field of the selection screen. Based on the selected value, a values corresponding to it should appear on another field.
My Code -
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_svn.
SELECT qmnum serialnr
INTO TABLE t_qmel
FROM qmel
WHERE qmart = 'ZD'.
SORT t_qmel BY qmnum.
Display the f4 Help Values for SVN
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'QMNUM'
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'P_SVN'
window_title = text-015
value_org = 'S'
TABLES
value_tab = t_qmel
return_tab = t_retval.
READ TABLE t_retval INTO w_retval_wa INDEX 1.
IF sy-subrc = 0.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = w_retval_wa-fieldval
IMPORTING
output = w_qmel_wa-qmnum.
w_retval_wa-fieldval = w_qmel_wa-qmnum.
READ TABLE t_qmel INTO w_qmel_wa WITH KEY qmnum = w_retval_wa-fieldval
BINARY SEARCH.
IF sy-subrc = 0.
p_esn = w_qmel_wa-serialnr.
ENDIF.
ENDIF.
But this is however not working.
Please let me know where I am going wrong.
I have serached SDN thoroghly but could not get my solution.
Please guide me....
Regards,
Pankaj Agarwal.*& AT SELECTION SCREEN ON VALUE-REQUEST FOR FIELD
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_ebeln.
PERFORM f4_hlp_ebeln.
*& Form F4_HLP_EBELN
text
--> p1 text
<-- p2 text
FORM f4_hlp_ebeln .
TYPES: BEGIN OF ty_ebeln,
ebeln TYPE ebeln ,
END OF ty_ebeln.
DATA: lt_ebeln TYPE TABLE OF ty_ebeln.
CLEAR: lt_ebeln[].
SELECT ebeln
FROM zmt_po_mic_ded
INTO TABLE lt_ebeln.
IF sy-subrc = 0.
SORT lt_ebeln[] BY ebeln.
DELETE ADJACENT DUPLICATES FROM lt_ebeln COMPARING ALL FIELDS.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'EBELN'
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'P_EBELN'
value_org = 'S'
callback_program = sy-repid
TABLES
value_tab = lt_ebeln[]
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.
ENDFORM. " F4_HLP_EBELN
DATA: t_dynfields TYPE TABLE OF dynpread,
t_valhlp TYPE TABLE OF ty_valhlp.
DATA: w_dynfields TYPE dynpread.
CLEAR: t_dynfields[], t_valhlp[].
DATA: l_ebeln TYPE ebeln.
w_dynfields-fieldname = 'P_EBELN'.
w_dynfields-fieldvalue = p_ebeln.
APPEND w_dynfields TO t_dynfields.
CLEAR w_dynfields.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = sy-repid
dynumb = sy-dynnr
translate_to_upper = c_x
TABLES
dynpfields = t_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.
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 t_dynfields INTO w_dynfields INDEX 1.
IF sy-subrc = 0.
l_ebeln = w_dynfields-fieldvalue.
SELECT ebeln
ebelp
FROM ekpo
INTO TABLE t_valhlp
WHERE ebeln = l_ebeln.
IF sy-subrc = 0.
SORT t_valhlp[] BY ebeln ebelp.
here we get the value of ebelp depending on the selection of EBELN ***
endif.
ENDIF. -
Hi how to attach search help to a field
hi all,
how to attach search help to a field.hi
<b>Attaching a search help to a field</b>
A search help can influence the behavior of a field when the input help is called. The search help must be assigned to the field in order to do this. You have the following options for this assignment:
Attach search help to a data element / table or structure field / screen field / check table.
Conventionally search helps are attached to table fields or data elements. We shall see the same.
<b>Attaching a search help to a table field</b>
Choose the field name, click on search help tab and
provide the name of the search help.
A search help is attached to a field of a table or structure in the maintenance transaction for this table/structure, analogously to attaching to a table. You must assign the interface parameters of the search help to any fields of the table/structure. The search field must be assigned to an EXPORT parameter of the search help at this time.
Attach the search help to the table field
The search help ZSTRAVELAG_NAME is therefore directly attached to the field AGENCYNUM of table ZSTRAVELAG.
<b>Attaching a search help to a data element</b>
Provide the search help name and the parameter name
under the further characteristics tab of the data element.
If the input help of a field is defined by its data element, no further screen fields can be used in the input help.
Also note that the input F4 help would be available wherever the data element is used.
<b>Attaching a search help to a screen element</b>
A search help can be directly assigned to a screen field in two ways.
The name of the search help must be entered in the Screen Painter in the Attributes for the field in the field Search help.
The name of the search help can be defined for selection screens in ABAP reports in the PARAMETERS or SELECT-OPTIONS statement directly following the supplement MATCHCODE OBJECT.
However, input help is only available for this particular screen.
In this case, the search help is only available for this screen.
<b>IF YOU WANT TO ATTCH A SERACH HELP TO THE SCREEN FILED THIS IS THE CODE</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.
************SELECTION SCREEN DESIGN************************
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
*SELECT-OPTIONS : S_OTYPE FOR HRP1001-OTYPE NO INTERVALS .
SELECT-OPTIONS : S_OBJID FOR HRP1001-OBJID NO INTERVALS .
SELECT-OPTIONS : DATE FOR SY-DATUM NO-EXTENSION OBLIGATORY.
SELECTION-SCREEN END OF BLOCK B1.
***********END OF SELECTION SCREEN DESIGN******************
**********VALIDATION FOR SCREEN FIELDS*********************
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> -
How to delete entries from search help for a field
hi guys
how r u all doing.
i have some questions for u.
1. How can i delete some entries(from a list of many) from search help of a field with out (writing)going to a program.
2.in PA10 (Personnel File),when i try to display data for a pernr,i am getting an error saying that infotype 122 doesnot exist.
3.Again in Pa20,when i try to display data for a custom infotype,it leads me to short dump saying that load program does not exist.
any help in this regard,wud be appreciated.
thanksFollow this
What to do before selling or giving away your iPhone, iPad, or iPod touch - Apple Support -
Reg : F4 help for custom fields in ALV report
hi friends..
in my internal table i have fields including 1 custom field..
DATA : BEGIN OF i_final OCCURS 0,
pernr LIKE p0000-pernr,
begda LIKE p0000-begda,
plans LIKE ZPOSITION-plans, (custom)
werks LIKE pspar-werks,
end of i_final.
i want to display this i_final table in alv. for that i genetrate one fieldcatalog
PERFORM fcat USING:
'I_FINAL' 'PERNR' 'P0000' 'PERNR' '15' 'X' '',
'I_FINAL' 'BEGDA' 'P0000' 'BEGDA' '10' 'X' '',
'I_FINAL' 'PLANS' 'ZPOSITION' 'PLANS' '8' 'X' '',
'I_FINAL' 'WERKS' 'PSPAR' 'WERKS' '14' 'X' ''.
in custom table zposition, i maintain serch help for custom field "PLANS".
then i used reuse_alv_grid_display.. for all the std fields along wit custom fields
i got f4 all std fields but for my custom i am not getting the f4 help
how can i get the F$ help for this custom fields Zposition-plans..
plz give some ideaHi
In that Ztable against the field
PLANS give the check table name as <b>T528B</b>
then it will automatically give the search help
or you can create your own search help(elementary) and add to that field
Reward if useful
regards
Anji -
How to get the F4 help for a field in the selection screen
Hi all,
I am working on a report program. In the selection screen, I have the field 'Brand Node ID'(ZNODEID). The requirement is to have the F4 help for this field. This field is available in a 'Z' table ZNODETAB. There is no Value table maintained for the corresponding data element. So, without disturbing the table data element/domain, I should get the F4 help in the selection screen of the report. In the F4 help, data should be fetched from the table ZNODETAB and the field is ZNODEID. Is there any way to do this.
By searching the function modules, I could find that, we can use the FM F4IF_INT_TABLE_VALUE_REQUEST. But, I am not Sure. Can someone tell me the parameters to be passed to this function module to get the F4 help and the procedure to follow. S_NODEID is the select option used in the program. Please help me in this regard. Thanks in advance.
Thanks & Regards,
Paddu.look at this code and try
select-options : S_NODEID for ZNODETAB-ZNODEID.
at selection-screen on value-request for s_nodeid-low
perform f4_nodeid using 'S_NODEID-LOW'.
at selection-screen on value-request for s_nodeid-low
perform f4_nodeid using 'S_NODEID-HIGH'.
end-of-selection.
FORM f4_nodeid USING p_field.
declare it_node.
select znodeid from ZNODETAB into table it_node.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'ZNODEID'
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = p_field
value = space
value_org = 'S'
display = 'F'
TABLES
value_tab = it_node
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
endform -
Hi All,
I have enhanced IT 21 with a new field called "Country of citizenship" in custom include CI_0021.
For this i have assigned LAND1 as the domain and the data element. The value table for this is
T005. but the problem is i am not able to get any value in the F4 help for this field in PA30 screen
for IT 21. Please help me in solving this issue. its very urgent.
RupeshHi,
Use the follwoing function module, you get search help. But you have to pass your table name, field names below.
data: it_itab type help_info,
rsmdy_ret type rsmdy.
data: it_itab1 type table of dselc initial size 0,
it_itab2 type table of dval initial size 0.
it_itab-tabname = 'GMGR'. " Table Name
it_itab-fieldname = 'GRANT_NBR'. " Field Name
it_itab-MCOBJ = 'GMGRANT'. " Name of the Search Help
it_itab-TCODE = 'CJ20N'. " Transaction Code
& Function Module for calling Search Helps from DYNPRO &
CALL FUNCTION 'DD_SHLP_CALL_FROM_DYNP'
EXPORTING
HELP_INFOS = it_itab
IMPORTING
SELECT_VALUE = SELECT_VALUE
RSMDY_RET = RSMDY_RET
TABLES
DYNPSELECT = it_itab1
DYNPVALUETAB = it_itab2
exceptions
others = 1 .
Pass the search help value to a temporary variable
l_temp = select_value.
Hope it helps you.
Regards,
CS.
Note: Reward points if helpful.
Edited by: CSY on Mar 19, 2008 4:51 PM -
F4 help for a field in module pool
Hello Experts,
I need to provide f4 help on field sales office(VKBUR) in my module pool program.
I have searched forums about it. but all forum contains either doc. no or customers etc.
these field are directly available on table, so very easy to find.
But for sales office, how can i provide f4 help. there is no straight entries in tables like for this company code this sales office.
so its getting difficult for me to provide help.
so if anybody know the solution plz help, and if anyone know table where all sales offices are stored, i will be thankful.
Thanks,
AmarHi amar_war,
use screen painter to edit the screen layout where the field VKBUR is on. Double click the field to get the details screen. Here you can attach a search help to the field.
H_TVBUR has no more parameters, it will display a list of al sales offices with description text
H_TVBVK will also show the sales group, if VKGRP is a screen field, it will restrict the result list automatically on matching VKGRP.
H_TVKBZ has also VKORG VTWEG SPART - it will take those values from screen if filled.
If you are not satisfied with the results, you can easily create your own search help using own selection method and own search help exits if required.
Try standard search help for standard field first.
You can create a copy of VKBUR as ZVKBUR and attach search help there, you can create your own screen structure and attach the search help there - 50 ways to get your search help...
Regards,
Clemens -
F4 help for a field in item table in a view cluster
Hi All,
I have a view cluster with two tables. I should provide F4 help for field in item table based on the selected row of the header table.
F4 should have only values fetched based on the header table entry.
How can i achieve this. Please suggest.
Regards,
Kusuma K.Hi amar_war,
use screen painter to edit the screen layout where the field VKBUR is on. Double click the field to get the details screen. Here you can attach a search help to the field.
H_TVBUR has no more parameters, it will display a list of al sales offices with description text
H_TVBVK will also show the sales group, if VKGRP is a screen field, it will restrict the result list automatically on matching VKGRP.
H_TVKBZ has also VKORG VTWEG SPART - it will take those values from screen if filled.
If you are not satisfied with the results, you can easily create your own search help using own selection method and own search help exits if required.
Try standard search help for standard field first.
You can create a copy of VKBUR as ZVKBUR and attach search help there, you can create your own screen structure and attach the search help there - 50 ways to get your search help...
Regards,
Clemens -
F4 help for a field in UI(CRM 5.1)
Hi All
Can anybody tell me how to do F4 help for a field in UI( CRM 5.1). scenario is given below.
I have 2 customer fields added to UI using EEW and have custom table for maintaining field values. need to add F4 help for field1 ( field1 and field2 values needs to be displayed in F4 help list) and field2 should get value when we hit the particular entry from field1 F4 help list.
thanks in advance.Hi,
You can implement the Get_V* method for the field1 attribute and use the following code to populate both field1 and field2 as output paramters for your F4 help.
DATA:
ls_map TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
lt_inmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.
ls_map-context_attr = '<STRUCT.field1>'.
ls_map-f4_attr = 'field1'.
APPEND ls_map TO lt_outmap.
ls_map-context_attr = '<STRUCT.field2>'.
ls_map-f4_attr = 'field2'.
APPEND ls_map TO lt_outmap.
<fill the lt_inmap (input parameters) as per your requirement>
CREATE OBJECT rv_valuehelp_descriptor TYPE cl_bsp_wd_valuehelp_f4descr
EXPORTING
iv_help_id = '<your search help id>'
iv_help_id_kind = if_bsp_wd_valuehelp_f4descr=>help_id_kind_name
iv_input_mapping = lt_inmap
iv_output_mapping = lt_outmap.
Note: In your DDIC search help, define field1 and field2 as output parameters in SE11.
Reward if it works!
Thanks,
Sudipta. -
Hi,
In BP_CONT component, for address field I need to provide F4 help. And the F4 should contain the addresses with separate fields as (city.street,country).On selecting the row the data should flow as concatenated manner to the address field.
Please provide some idea to achieve this.
Thanks.Hi Ginger,
I would like to add what Vinamra has said, you need to create a search help through se11 transaction. As per your requirement you need to map address field of the selected row to different fields in UI.
In search help we have IMPORTING(IMP) and EXPORTING(EXP) Fields or parameter.
Lets take a simple example, suppose you have three address field house no, street and city. Now you would like to apply F4 help on CITY field so you need to choose CITY field as IMPORTING and EXPORTING parameter in your search help and other fields like HOUSE NO and STREET as EXPORTING parameter only.
Now following code you need write in GET_V_CITY() method
DATA:
lt_inmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
ls_map TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.
ls_map-context_attr = 'STRUCT.CITY'.
ls_map-f4_attr = 'CITY'.
APPEND ls_map TO: lt_inmap, lt_outmap. " map to input and out
ls_map-context_attr = 'STRUCT.HOUSENO. " Context node attribute
ls_map-f4_attr = 'HOUSE_NO'. "corresponding Field in search help
APPEND ls_map TO: lt_outmap.
ls_map-context_attr = 'STRUCT.STREET. " Context node attribute
ls_map-f4_attr = 'STREET'. "corresponding Field in search help
APPEND ls_map TO: lt_outmap.
CREATE OBJECT rv_valuehelp_descriptor
TYPE
cl_bsp_wd_valuehelp_f4descr
EXPORTING
iv_help_id = 'ZSH_ADDRESS'
iv_help_id_kind = if_bsp_wd_valuehelp_f4descr=>help_id_kind_name
iv_input_mapping = lt_inmap
iv_output_mapping = lt_outmap.
May this will help you.
Regards
Ajay -
hi all
i am developing a z report.input field is customer name (ADRC-NAME1). SAP has not given F4 help on this field.
please tell mo how to give f4 Help for this field in report.
regard.
ulhashi..
do as below..
AT SELECTION-SCREEN ON VALUE-REQUEST FOR PR_VERSB.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
TABNAME = 'MDPB'
FIELDNAME = 'VERSB'
SEARCHHELP = 'H_T459V'
DYNPPROG = 'ZPP_SHORT'
DYNPNR = '1000'
DYNPROFIELD = 'PR_VERSB'
EXCEPTIONS
FIELD_NOT_FOUND = 1
NO_HELP_FOR_FIELD = 2
INCONSISTENT_HELP = 3
NO_VALUES_FOUND = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Rahul -
HI all,
in the report selection screen i have one field for which F4 HELP doesnt exits, even in the table for that field F4 HELP is not there but the user requests me to get the F4 HELP for that field in the selection screen .
please help how to get F4 HELP for the field
thanks in advance.The following are the options for F4 help
Code:
PARAMETERS: p_ccgrp LIKE rkpln-ksgru. "Cost Center Group
*Input help for Cost Center Group
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_ccgrp.
TYPES: BEGIN OF ty_ccenter_group,
setname TYPE setnamenew,
descript TYPE settext,
END OF ty_ccenter_group.
DATA: it_ccenter_group TYPE TABLE OF ty_ccenter_group.
CLEAR it_ccenter_group.
SELECT a~setname
b~descript
INTO TABLE it_ccenter_group
FROM setheader AS a INNER JOIN
setheadert AS b ON
asubclass EQ bsubclass AND
asetname EQ bsetname
WHERE a~setclass EQ '0101' AND
b~langu EQ sy-langu.
CALL FUNCTION
'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
ret field = 'SETNAME'
dynpprog = v_repid
dynpnr = SY-DYNR
dynprofield = 'P_CCGRP'
value_org = 'S'
TABLES
value_tab = it_ccenter_group.
F4IF_FIELD_VALUE_REQUEST:
This FM is used to display value help or input from ABAP dictionary. We have to pass the name of the structure or table (TABNAME) along with the field name (FIELDNAME). The selection can be returned to the specified screen field if three
parameters DYNPNR, DYNPPROG, DYNPROFIELD are also specified or to a table if RETRN_TAB is specified.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
TABNAME = table/structure
FIELDNAME = 'field name'
DYNPPROG = SY-CPROG
DYNPNR = SY-DYNR
DYNPROFIELD = 'screen field'
IMPORTING
RETURN_TAB = table of type DYNPREAD
Getting F4 help based on other field .
Suppose if there are 2 fields on selection screen user name and Purchasing Document and the case is getting values of Purchasing Document Number based on user name
Code:
TYPES: BEGIN OF ty_match_nast,
objky TYPE na_objkey,
END OF ty_match_nast.
Data: it_match_nast TYPE STANDARD TABLE OF ty_match_nast.
Data: it_dypr_val TYPE STANDARD TABLE OF dynpread.
DATA: wa_dypr_val TYPE dynpread.
DATA: it_return TYPE STANDARD TABLE OF ddshretval.
Case when only username value is entered.
SELECT objky
FROM nast
INTO TABLE it_match_nast
WHERE kappl = c_ef
AND kschl = c_neu
AND usnam = wa_dypr_val-fieldvalue.
ENDIF.
*Read User name on selection screen field value
CLEAR wa_dypr_val.
REFRESH it_dypr_val.
wa_dypr_val-fieldname = 'P_UNAME'. "User name
APPEND wa_dypr_val TO it_dypr_val.
*FM to get the value
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = sy-repid
dynumb = sy-dynnr
translate_to_upper = 'X'
TABLES
dynpfields = it_dypr_val_h.
*Pass the values to f4 table
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = u2018OBJKY'
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'P_EBELN'
value_org = 'P'
TABLES
value_tab = it_match_nast
return_tab = it_return. -
F4 help for a field on table control
Hi All,
I have to display F4 help for a purticular field on the table control depending on one of the value in the row if the table.
There will be multiple entries in the table control and the F4 help for the field should change according to the value of other field in the row.
Can anybdy help me out doing this.....
Edited by: Alvaro Tejada Galindo on Feb 21, 2008 10:46 AMCheck the FM: HELP_VALUES_GET_WITH_TABLE_EXT
Check the documentation for example code.
regards,
Ravi -
F4 HELP for standard field..
i want to put F4 help for standard field FERTH in mm01 and mm02 ...
is there any way to put F4 help for this field..try this
1. First go to SE11 and create your own search help( if you dont know how to create a search help please feel free to ask me, it is very easy).
2. Now in your module pool program program go to the layout of your screen.
3. Now when you see the attributes of this field in the Dict tab you will find the field Search Help. Now here you can specify the name of the search help you created in SE11.
There is also another mehtod to create the dynamic search help. eg:- in a posted document data get the Document nos related to that company code.
The sample code is like this:-
First of all declare the module below in the flow logic of your screen then create it in your main program.
You declare the module in the PROCESS ON VALUE-REQUEST.
PROCESS ON VALUE-REQUEST.
FIELD TXT_DOCNO MODULE VALUE_BELNR.
You also need to create an internal table where you wil store results of the select query fired below in the module.
here you will get a F4 help on the filed Document Number(TXT_DOCNO) based on the field Company code (TXT_CODCO)
MODULE VALUE_BELNR INPUT.
progname = sy-repid.
dynnum = sy-dynnr.
CLEAR: field_value, dynpro_values.
field_value-fieldname = 'TXT_CODCO'.
APPEND field_value TO dynpro_values.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = 'BKPF'
fieldname = 'BUKRS'
dynpprog = progname
dynpnr = dynnum
dynprofield = 'TXT_CODCO'.
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 BUKRS BELNR
FROM BKPF
INTO CORRESPONDING FIELDS OF TABLE it_doc1
WHERE BUKRS = field_value-fieldvalue.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'BELNR'
dynpprog = progname
dynpnr = dynnum
dynprofield = 'TXT_BELNR'
value_org = 'S'
TABLES
value_tab = it_doc1.
ENDMODULE. " VALUE_BELNR INPUT
Maybe you are looking for
-
Hi I'm not sure if this is a problem with Pages or Mac OS X date formatting in general. I'm used to expressing dates in the format 1st March 2006 or 2nd March 2006 or 3rd March 2006 or 4th March 2006. The st, nd, rd or th suffixes are usually supersc
-
ORACLE SERVER AND UNIX TP MONITOR-1
제품 : ORACLE SERVER 작성날짜 : 2002-05-17 ==================================================================== Subject: Oracle Server and UNIX Transaction Processing Monitors - 1 ===================================================================== PURPOS
-
Windows 8 64bit - VPN 5.0.07.0440 - Disables all internet after installation
I am able to successfully install this version in Windows 8 and use it with the 442 error registry re-name workaround. Once I restart my computer, my internet access will no longer work. The adapter and settings aren't listed in ipconfig. I have a br
-
5800 on 02 . is it free ?
Just wondering if the GPS facility on my 5800 is chargable, it has google maps already on it, cant imagine they charge for it, but who knows ??
-
Pre - photo albums do not sync correctly!
Hi all, Total newbie - and also a newbie to Palm. Having moved from iphone to pre, and remaining a mac user, i'm becoming a little stressed at how the simple things just dont seem to be working!!!! I've downgraded my itunes so i can sync photos to