Search help on custom screen
Hi,
I have a question regarding search help on screen.
I have searched, but did not find anything for my requirement.
Here is my requirement...............
I have a drop down on one of the field of the custom screen. This dropdown has three items to choose from.
e.g.
Dropdown has PO, Reservation and Pcard.
And the other custom field is "Source". I want to put seach help on "Source" field.
So my requirement is to when user chooses PO in dropdown, they should get search help for PO on "Source" field.
And when user chooses Reservation in dropdown, they should get search help for Reservation on "Source" field.
Is it possible to that? If yes, then how should i proceed for that?
Any help would be appriciatable!!
Thanks in Advance .
HI Varam.
Plesae copy this code and Paste in ABAP Editor and Format properly You will know it as it is appearing in Continuous Lines
And i dont know how to rectify it. Hopp you understand it
-->In Screen PVO
-->PROCESS ON VALUE-REQUEST.
--> FIELD Screen-Field MODULE f4_get.
-->in program
-->MODULE f4_get INPUT.
DATA : BEGIN OF f4_tab OCCURS 0,
define Required Fields here
END OF f4_tab.
GET CURSOR FIELD fnam VALUE fval.
DATA : dynpread TYPE TABLE OF dynpread WITH HEADER LINE.
refresh dynpread.
dynpread-fieldname = 'Screen-Field'.
APPEND dynpread.
CLEAR dynpread.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = sy-repid
dynumb = sy-dynnr
TRANSLATE_TO_UPPER = ' '
REQUEST = ' '
PERFORM_CONVERSION_EXITS = ' '
PERFORM_INPUT_CONVERSION = ' '
DETERMINE_LOOP_INDEX = 'X'
START_SEARCH_IN_CURRENT_SCREEN = 'X'
START_SEARCH_IN_MAIN_SCREEN = 'X'
START_SEARCH_IN_STACKED_SCREEN = ' '
START_SEARCH_ON_SCR_STACKPOS = ' '
SEARCH_OWN_SUBSCREENS_FIRST = ' '
SEARCHPATH_OF_SUBSCREEN_AREAS = ' '
TABLES
dynpfields = dynpread
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 IS INITIAL.
READ TABLE dynpread WITH KEY fieldname = 'Screen-field'.
IF sy-subrc IS INITIAL.
SELECT Your Fields FROM Required FIelds
INTO TABLE f4_tab
WHERE Required Condions.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
retfield = 'RETURN FIELD' To which the F4 value to be passed on to screen
PVALKEY = ' '
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'Screen-Field' --> All single Quote Values to be Capital Letters
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
value_org = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
value_tab = f4_tab
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.
ENDIF.
ENDIF.
ENDMODULE. " f4_get INPUT
Edited by: Ramchander Krishnamraju on Oct 31, 2009 4:32 AM
Similar Messages
-
Need some help in creating Search Help for standard screen/field
I need some help in adding a search-help to a standard screen-field.
Transaction Code - PP01,
Plan Version - Current Plan (PLVAR = '01'),
Object Type - Position ( OTYPE = 'S'),
Click on Infotype Name - Object ( Infotype 1000) and Create.
I need to add search help to fields Object Abbr (P1000-SHORT) / Object Name (P1000-STEXT).
I want to create one custom table with fields, Position Abb, Position Name, Job. Position Abb should be Primary Key. And when object type is Position (S), I should be able to press F4 for Object Abb/Object Name fields and should return Position Abbr and Position Name.
I specify again, I have to add a new search help to standard screen/field and not to enhance it.
This is HR specific transaction. If someone has done similar thing with some other transation, please let me know.
There is no existing search help for these fields. If sm1 ever tried or has an idea how to add new search help to a standard screen/field.
It's urgent.
Thanks in advace. Suitable answers will be rewardedHi Pradeep,
Please have a look into the below site which might be useful
Enhancing a Standard Search Help
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/daeda0d7-0701-0010-8caa-
edc983384237
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee93446011d189700000e8322d00/frameset.htm
A search help exit is a function module for making the input help process described by the search help more flexible than possible with the standard version.
This function module must have the same interface as function module F4IF_SHLP_EXIT_EXAMPLE. The search help exit may also have further optional parameters (in particular any EXPORTING parameters).
A search help exit is called at certain timepoints in the input help process.
Note: The source text and long documentation of the above-specified function module (including the long documentation about the parameters) contain information about using search help exits.
Function modules are provided in the function library for operations that are frequently executed in search help exits. The names of these function modules begin with the prefix F4UT_. These function modules can either be used directly as search help exits or used within other search help exits. You can find precise instructions for use in the long documentation for the corresponding function module.
During the input help process, a number of timepoints are defined that each define the beginning of an important operation of the input help process.
If the input help process is defined with a search help having a search help exit, this search help exit is called at each of these timepoints. If required, the search help exit can also influence the process and even determine that the process should be continued at a different timepoint.
timepoints
The following timepoints are defined:
1. SELONE
Call before selecting an elementary search help. The possible elementary search helps are already in SHLP_TAB. This timepoint can be used in a search help exit of a collective search help to restrict the selection possibilities for the elementary search helps.
Entries that are deleted from SHLP_TAB in this step are not offered in the elementary search help selection. If there is only one entry remaining in SHLP_TAB, the dialog box for selecting elementary search helps is skipped. You may not change the next timepoint.
The timepoint is not accessed again if another elementary search help is to be selected during the dialog.
2. PRESEL1
After selecting an elementary search help. Table INTERFACE has not yet been copied to table SELOPT at this timepoint in the definition of the search help (type SHLP_DESCR_T). This means that you can still influence the attachment of the search help to the screen here. (Table INTERFACE contains the information about how the search help parameters are related to the screen fields).
3. PRESEL
Before sending the dialog box for restricting values. This timepoint is suitable for predefining the value restriction or for completely suppressing or copying the dialog.
4. SELECT
Before selecting the values. If you do not want the default selection, you should copy this timepoint with a search help exit. DISP should be set as the next timepoint.
5. DISP
Before displaying the hit list. This timepoint is suitable for restricting the values to be displayed, e.g. depending on authorizations.
6. RETURN (usually as return value for the next timepoint)
The RETURN timepoint should be returned as the next step if a single hit was selected in a search help exit.
It can make sense to change the F4 flow at this timepoint if control of the process sequence of the Transaction should depend on the selected value (typical example: setting SET/GET parameters). However, you should note that the process will then depend on whether a value was entered manually or with an input help.
7. RETTOP
You only go to this timepoint if the input help is controlled by a collective search help. It directly follows the timepoint RETURN. The search help exit of the collective search help, however, is called at timepoint RETTOP.
8. EXIT (only for return as next timepoint)
The EXIT timepoint should be returned as the next step if the user had the opportunity to terminate the dialog within the search help exit.
9. CREATE
The CREATE timepoint is only accessed if the user selects the function "Create new values". This function is only available if field CUSTTAB of the control string CALLCONTROL was given a value not equal to SPACE earlier on.
The name of the (customizing) table to be maintained is normally entered there. The next step returned after CREATE should be SELECT so that the newly entered value can be selected and then displayed.
10. APP1, APP2, APP3
If further pushbuttons are introduced in the hit list with function module F4UT_LIST_EXIT, these timepoints are introduced. They are accessed when the user presses the corresponding pushbutton.
Note: If the F4 help is controlled by a collective search help, the search help exit of the collective search help is called at timepoints SELONE and RETTOP. (RETTOP only if the user selects a value.) At all other timepoints the search help exit of the selected elementary search help is called.
If the F4 help is controlled by an elementary search help, timepoint RETTOP is not executed. The search help exit of the elementary search help is called at timepoint SELONE (at the
F4IF_SHLP_EXIT_EXAMPLE
This module has been created as an example for the interface and design of Search help exits in Search help.
All the interface parameters defined here are mandatory for a function module to be used as a search help exit, because the calling program does not know which parameters are actually used internally.
A search help exit is called repeatedly in connection with several
events during the F4 process. The relevant step of the process is passed on in the CALLCONTROL step. If the module is intended to perform only a few modifications before the step, CALLCONTROL-STEP should remain unchanged.
However, if the step is performed completely by the module, the following step must be returned in CALLCONTROL-STEP.
The module must react with an immediate EXIT to all steps that it does not know or does not want to handle.
Hope this info will help you.
***Reward points if found useful
Regards,
Naresh -
How to add search help to custom infotype listbox??
Hi All,
How to add search help to custom infotype listbox??
Thanks in advanceHi Vinay,
We have search help and list box as 2 different options.
At a time we can make a field a list box or a search help.List box is restricted and we can pick values from the defined list whereas in search help we can allow more entries and then validate the value entered later.
Implementing a listbox or search help in infotype is same as that of implementing it in a modulepool .
for search help..we can create a custom search help or check for existing search help in se11
then in the screen on infotype field..assign the search help direcly at the screen painter level..
double click on the field in screen painter -> change mode and then in the space for "search help" enter the search helps name
for list box..in the screen painter ,make sure the field is selected as list box..then in PAI of screen we do a
(Process on value-request..field fieldname module module name)..check syntax and other details...
Using function module vrm_set_value fill the field and populate it as required
Pls check and revert
Regards
Byju -
Attach search help to standard screen
Hi Gurus,
I have to populate order quantity KWMENG in screen subscreen 4900 of VA01 ( Create Sales Order) from a ztable based on customer and date.
I have tried customer-exits ..<b>There exists none</b> satisfying this req. Could anyone pls tell how I can go about this now?
I believe , one way is to create a search help attaching to the screen-field . Can anyone help what is the process ? Has anyone done this earlier -<b>attaching search help to standard screen</b>
Rewards for helpful answers are sure!!
Regards,
ShwetaHi Shweta,
Check this matter.
There are 3 ways:
1)In the PAI of the screen, add a module Process on value request.For example:
PROCESS AFTER INPUT.
MODULE USER_COMMAND_100.
PROCESS ON VALUE-REQUEST.
FIELD field_name MODULE value_request_for_field_name.
*field_name is the field for which you require search help.
In the Module value_request_for_field_name call this function 'F4IF_INT_TABLE_VALUE_REQUEST'.
2)The above procedure can be used if the field you have defined doesnt have an existing search help.If it already has search help and the field in the screen is taken from the dictionary,then in the attributes,u can check from from dictionary under the dictionary tab.
3)A manual search help can also be created in the se11 transaction by clicking on the search help radio button and giving the table and field name for which search help is required.
Hope this resolves your query.
Reward all the helpful answers.
Regards -
How to assign search help for custom cost centre field in SRM 7.0
Hi Experts!!
We are currently working in SRM 7.0.As per our business requirement, in account assignment tab we need to use a custom
cost centre field (ZCOST_CENTRE) instead of standard cost centre field.It is observed that for standard cost centre field there is a standard web-dynpro search-help assigned where it will return the F4 search help values from backend.
Can any one of you please help me how can I assign the search-help for the custom cost centre field. Is there any FM to call the backend cost centre search help for custom field or any other way how can I achieve this?
Thanks in advance.
Regards,
Kalyanikalyani,
i can see your requirement in below way..
as it just reads: you need to assign the standard cost center help to a z cost center field in component /SAPSRM/WDC_UI_DO_ACC.. which actually is fetched though the component /SAPSRM/WDC_UI_BACKEND_SH
so, if you see the component controller of SAPSRM/WDC_UI_DO_ACC you will see the component
USAGE_SH_F4 /SAPSRM/WDC_UI_BACKEND_SH
USAGE_SH_F4 /SAPSRM/WDC_UI_BACKEND_SH INTERFACECONTROLLER
so you can replicate the same functionality for your z field.
but can you clarify one thing.. why are you going for this z field in place of standard field ? -
Search Help for Custom field in Sourcing Cockpit
Hi SRM Experts,
I added custom field "rush order" in the Structures as per requirement. I added code in MODIFY_SCREEN function module. Search help is working for "rush order" in Process Purchase Orders (to search PO) and Check Status (Searching Shopping Cart). But it is not working in sourcing cockpit. Please guide or suggest me is there any additional settings or programming is required to have search help for custom fields in Sourcing Cockpit.
Thanks a lot in advance.
Thanks,
KoyyaHi SRM Experts,
Please let me know any suggestion on this issue.
Thanks a lot in advance.
Thanks,
Koyya -
Search help in selection screens for interactive report
A search help can only be assigned to DB table.
So my doubt is can it also be used for seletion screens created for an interactive report?
If yes what is the procedure.. Please give me one example at least...
waiting for your valuable suggestions.....
Thanks,
regards,
ChinmayHi Chinmay,
I suppose your requirement is to give search help to selection screen elements.
Here is the code.
REPORT ZSHAIL_F4HELP .
parameters: name(10) type c .
TYPES: BEGIN OF VALUES,
CARRID TYPE SPFLI-CARRID,
CONNID TYPE SPFLI-CONNID,
END OF VALUES.
dATA: PROGNAME LIKE SY-REPID,
DYNNUM LIKE SY-DYNNR,
DYNPRO_VALUES TYPE TABLE OF DYNPREAD,
FIELD_VALUE LIKE LINE OF DYNPRO_VALUES,
VALUES_TAB TYPE TABLE OF VALUES.
at selection-screen on value-request for name.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = 'DEMOF4HELP'
fieldname = 'CARRIER1'
SEARCHHELP = ' '
SHLPPARAM = ' '
DYNPPROG = PROGNAME
DYNPNR = DYNNUM
DYNPROFIELD = 'CARRIER'
STEPL = 0
VALUE = ' '
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
SUPPRESS_RECORDLIST = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
SELECTION_SCREEN = ' '
IMPORTING
USER_RESET =
TABLES
RETURN_TAB =
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.
AT SELECTION-SCREEN OUTPUT.
PROGNAME = SY-REPID.
DYNNUM = SY-DYNNR.
CLEAR: FIELD_VALUE, DYNPRO_VALUES.
FIELD_VALUE-FIELDNAME = 'CARRIER'.
APPEND FIELD_VALUE TO DYNPRO_VALUES.
I hope your query is solved.
If so,please award points.
Regards,
Sylendra. -
How to add a search help on a screen field from screen painter
Hi,
I would like to add an existing Search Help on a screen field in Screen painter.
Of course it's possible to just click on th screen field and in the property box, I just have to set the name of teh search help.
The problem is that I need the screen field to be grey and user musn't be able to change the field value if he doens't use the search help.
I'm not allowed to modify the existing search help or to built it on my own from source code, I must use the existing one.
Do you have an idea on how to do so?
Regards,
MorganDropdown Box:
In the screen painter for that field goto properties -> Dropdown ->select listbox.
Option 1:
Instead let that field be in change mode and if user enters any wrong entry which is not there in the table give a error messgae.
CHAIN.
FIELD addr1_data-country.
MODULE modify_screenfields1.
ENDCHAIN.
MODULE modify_screenfields1 INPUT.
CASE sy-ucomm.
WHEN 'ENTER' OR 'EXECUTE'.
IF NOT addr1_data-country IS INITIAL.
SELECT SINGLE landx FROM t005t INTO lws_landx WHERE
land1 = addr1_data-country
AND spras = 'EN'.
IF sy-subrc <> 0.
MESSAGE e000(zo_spa) WITH text-022. " Invalid Country code
ELSE.
t005t-landx = lws_landx.
ENDIF.
ELSE.
CLEAR: t005t-landx.
ENDIF.
ENDCASE.
ENDMODULE. " modify_screenfields1 INPUT
Option 2: Other than if u want the way u like, let that field be greyed out. don't attach the search help.
In the PROCESS ON VALUE-REQUEST.
FIELD addr1_data-region MODULE region_pov.
MODULE region_pov INPUT.
Using the F4IF_INT_TABLE_VALUE_REQUEST table value request show the search help.
also make that field input enabled.
ENDMODULE. " region_pov INPUT
I think this will solve ur problem.
Regards,
Prakash.
Message was edited by: Prakash Ramu -
Attaching search help to a screen field
Hi all,
I've created a search help (zhlp) and want to attach it to the screen field in the selection screen of my report.
SELECT-OPTIONS KSCHL FOR VAKE-KSCHL
MEMORY ID VKS.
I've attached zhlp to the screen by defining it on the element list of the screen 1000.
And the original db table T685 already got a search help H_T685, when I run my report and press F4 in the field, it calls the default search help H_T685 but not mine.
Could anyone help me? Thanks.here is the syntax for assiging search help to selection screen field.
SELECT-OPTIONS KSCHL FOR VAKE-KSCHL MATCHCODE OBJECT ZHLP.
Regards
Raja -
How to create an search help for standard Screen
Hi,
Can any one help me out ... How to create a search help for standard screen field.......
thanks & regards,
Naveen...Hi Naveen.
I would like to suggest a couple of references,
[SDN - Standard Reference for create a search help for own fields in selection screen |How to create a search help for my own fields in selection screen;
[SDN - Standard Reference for Attaching search help to standard screen|Attach search help to standard screen;
[SDN - Reference for want to add a field in standard search help screen|want to add a field in standard search help screen;
[SDN - Reference for Attaching a search help to a standard screen - Case 2 |attaching a search help to a standard screen;
Hope that's usefull.
Good Luck & Regards.
Harsh Dave -
Search Help for Customizing Workbench request
Hi Colleagues,
I have two elements in the WD UI viz: Workbench Transport Request and Customizing transport Request.
I have Dictionary Search Help set to SEEF_MIG_TRKORR for Workbench TR but i cannot find a search help for Customizing TR.
Also there is no search filter on the SEEF_MIG_TRKORR search help. Thus i cannot use this for both the elements.
Could you please help to determine the search help for customizing request.
Thanks and Regards,
PiyushPlease try '/SAPSLL/TRKORR_W' OR 'COMSH_DIFF_KEY_GEN_REQ'
Edited by: Ramalingam Muthian on Mar 5, 2010 10:47 AM -
Can't find the Collective Search help for Customer in VD02/VD03
Hi
I ave (I hope ) an easy question for you -
I need to extent the Collective search help for Customer in VD02/VD03 with an additional elementary search help, but I can't find the name of the Collective Search Help (F1 -> Technical Information only gives Search help '=')
So, where do I find it ?
Regards
Morten NielsenOK I Found it - Called DEBI
Regards
Morten Nielsen -
How to add search help to customer field of field selection on ESS Screen?
Hi all,
I am able to get customer field CUSTOMER01 from field selection customization on leave application ESS Screen. How to attach search help which contains Holiday date & its description to this field?
Thanks,
SwapnaliHi,
This is for working time -> leave request screen
In field selection there is one field 'code for description of illness'. I have done required config for getting this field on ESS Screen. This field already has standard search help. So I m able to view the values of this field on ESS screen .
So I thought to try assigning custom search help to this CUSTOMER0 field. Is there any method in BADI PT_ABS_REQ through which I can achieve the same. Please help.
-Swapnali -
Search help for custom entries in selection screen
Hi Gurus,
I have a requirement of adding four entries as a search help to a selection screen field P_TABLE.I tried using the function module F4IF_INT_ TABLE_VALUE_REQUEST as below.I want to add four entries Revenue,Cost,RIH and Summarised WBS Actual Data for the selection screen field P_TABLE but the problem is the function module is not getting triggered.
See the code below.
REPORT Z_DEL_OHTABLE.
DATA: V_RESPONSES(6),
V_TEXTS LIKE ALDBOUT,
V_PROG TYPE SY-REPID,
V_DYNNR TYPE SY-DYNNR.
DATA: begin of it_openhubs occurs 0,
v_tabname type c length 30,
end of it_openhubs.
DATA:
it_return type STANDARD TABLE OF DDSHRETVAL,
wa_return like line of it_return,
l_i_field_tab TYPE STANDARD TABLE OF dfies INITIAL SIZE 0,
l_i_dynpfld_mapping TYPE STANDARD TABLE OF dselc INITIAL SIZE 0.
SELECTION-SCREEN BEGIN OF BLOCK B0 WITH FRAME TITLE title.
parameters:P_TABLE(30) type c. " USER-COMMAND UPD,
SELECTION-SCREEN END OF BLOCK B0.
V_PROG = SY-REPID.
V_DYNNR = SY-DYNNR.
it_openhubs-v_tabname = 'Cost and Expense'.
append it_openhubs.
it_openhubs-v_tabname = 'Revenue'.
append it_openhubs.
it_openhubs-v_tabname = 'Revenue in Hand'.
append it_openhubs.
it_openhubs-v_tabname = 'Summarised WBS Actual Data'.
append it_openhubs.
CLEAR IT_OPENHUBS.
INITIALIZATION.
title = 'OH TABLE DELETION- DELETE CAREFULLY'.
START-OF-SELECTION.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_TABLE.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
RETFIELD = 'v_tabname'
PVALKEY = ' '
DYNPPROG = V_PROG
DYNPNR = V_DYNNR
DYNPROFIELD = 'P_TABLE'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
VALUE_TAB = it_openhubs
FIELD_TAB = l_i_field_tab
RETURN_TAB = it_return
DYNPFLD_MAPPING = l_i_dynpfld_mapping
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
IF SY-SUBRC <> 0.
READ TABLE it_return INTO wa_return INDEX 1.
IF sy-subrc EQ 0.
p_table = wa_return-fieldval.
endif.
Please help me out.
Thanks,
Srini.
Edited by: Srinivasan Ganapathy on Jan 28, 2010 6:05 AMHi ,
Change your code as below:
1. Fill the internal table it_openhubs inside the event "at selection screen on value request".
2. Always follow the below sequence:
Initialisation
At selection screen
Start of selection.
3. The declaration of variable v_tabname is changed from type c length 30 to type char30.
I tried the below code , its working fine.
DATA: V_RESPONSES(6),
V_TEXTS LIKE ALDBOUT,
V_PROG TYPE SY-REPID,
V_DYNNR TYPE SY-DYNNR.
DATA: begin of it_openhubs occurs 0,
v_tabname type char30, " length 30,
end of it_openhubs.
DATA:
it_return type STANDARD TABLE OF DDSHRETVAL,
wa_return like line of it_return,
l_i_field_tab TYPE STANDARD TABLE OF dfies INITIAL SIZE 0,
l_i_dynpfld_mapping TYPE STANDARD TABLE OF dselc INITIAL SIZE 0.
SELECTION-SCREEN BEGIN OF BLOCK B0 WITH FRAME TITLE title.
parameters:P_TABLE(30) type c. " USER-COMMAND UPD,
SELECTION-SCREEN END OF BLOCK B0.
INITIALIZATION.
title = 'OH TABLE DELETION- DELETE CAREFULLY'.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_TABLE.
V_PROG = SY-REPID.
V_DYNNR = SY-DYNNR.
clear IT_OPENHUBS.
it_openhubs-v_tabname = 'Cost and Expense'.
append it_openhubs.
it_openhubs-v_tabname = 'Revenue'.
append it_openhubs.
it_openhubs-v_tabname = 'Revenue in Hand'.
append it_openhubs.
it_openhubs-v_tabname = 'Summarised WBS Actual Data'.
append it_openhubs.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'v_tabname'
dynpprog = v_prog
dynpnr = v_dynnr
dynprofield = 'P_TABLE'
value_org = 'S'
TABLES
value_tab = it_openhubs
return_tab = it_return
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
READ TABLE it_return INTO wa_return INDEX 1.
IF sy-subrc EQ 0.
p_table = wa_return-fieldval.
ENDIF.
ENDIF -
Regarding Search help on selection-screen field
Hi there,
I am working on custom tables.
I have a requirement to maintain search pattern on a selection-screen field.
selection-screen parameter: p_name which is company name filed from Z table.
By giving a string like Holl* and by pressing F4 on the field p_name it has to popup a dialogbox having list of company names starting with Holl.
Thanks in advance.
-TulasiHi
Go through the link given below :
How to create a search help for my own fields in selection screen
F4 search help on report selection screen
also try :
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
RETFIELD = 'VKORG'
PVALKEY = ' '
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'P_VKORG'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'C'
TABLES
VALUE_TAB = T_TABLE1
FIELD_TAB = field_tab
RETURN_TAB = RET_TAB
DYNPFLD_MAPPING = DYN_TAB
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3
With Regards
Nikunj shah
Maybe you are looking for
-
Any ideas on problem with ipod and alpine cde-9881 car stereo
I have an ipod 60gb v 1.2.1 and a new Alpine car stereo with Ipod connecting cable. When connected, the stereo message reads IPod searching. It never assumes control of ipod,or quits searching. I have reset and restored my ipod, had the apple geek at
-
Able to view Movies, but not TV shows on iPod Touch
The summary basically says it all, but I had a series of videos that I have synced successfully. Some were set to "Movies", and some were set to "TV Shows". I'm able to view the movies when I touch "Videos" at the bottom of the home screen, but I can
-
Slideshow widgets work in Safari but not in Internet Explorer.
I have tried both the Spry Image Slideshow with Filmstrip and the Spry Image Slideshow - Basic. They work well in Safari but they skip images in Internet Explorer. I am using the default widgets in each instance. In IE only the 1st, 3rd, 5th, 7th, 9t
-
Solved, permission error when creating Flash Clip
My new HP PC is equipped with a device called a personal media drive (K:\). When I tried to and write to this new external drive when creating a Flash clip for the first time, I was unable to do so because I did not have permission. After much search
-
Command line arguments C++ parsing library [SOLVED]
Hi, i'm looking for such a library. Requrements: 1. usage/flag list generaton 2. support of -s and --long flags 3. simpliciry of use 4. support of optional and mandatory flags 5, support of flagw with/without arguments (-f, -f 123) 6. code free to us