Automatic population of search help value to another field in module pool
Hello there,
I am developing a module pool screen, in which i have a table control field with fields PERNR and ARBPL along with other fields.
I have to give a search help for Pernr first field for which i have given a search help with the use of PM02 search help, given in the screen field level, in the same search help there is another field ARBPL, when the pernr is selected i have to get the corresponding Arbpl field value in the search help hit list and pass it to my field arbpl in my table control.
I tried with POV event as well with FM f4if_field_value_request but the return structure always filling one value only PERNR.
Is there any chance to get the both field values from the search help.
Thank you in advance.
Regards,
Kumar.
Try the following logic in your table control, in table control you have get the selected index using function DYNP_GET_STEPL.
TYPE-POOLS: shlp.
PARAMETERS:p_matnr TYPE marc-matnr,
p_werks TYPE marc-werks,
p_ekgrp type marc-ekgrp.
TYPES:BEGIN OF ty_marc,
matnr TYPE marc-matnr,
werks TYPE marc-werks,
ekgrp TYPE marc-ekgrp,
END OF ty_marc.
DATA:i_marc TYPE TABLE OF ty_marc,
i_val TYPE TABLE OF ddshretval,
wa_val TYPE ddshretval.
DATA:wa_dynpfields TYPE dynpread,
i_dynpfields LIKE STANDARD TABLE OF dynpread.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_matnr.
SELECT matnr werks ekgrp FROM marc INTO TABLE i_marc UP TO 100 ROWS.
CHECK i_marc[] IS NOT INITIAL.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'MATNR'
value_org = 'S'
callback_program = sy-repid
callback_form = 'CALLBACK_ROUTINE'
dynpnr = sy-dynnr
TABLES
value_tab = i_marc
return_tab = i_val
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.
LOOP AT i_val INTO wa_val.
IF sy-tabix = 1.
wa_dynpfields-fieldname = 'P_MATNR'.
wa_dynpfields-fieldvalue = wa_val-fieldval.
ELSEIF sy-tabix = 2.
wa_dynpfields-fieldname = 'P_WERKS'.
wa_dynpfields-fieldvalue = wa_val-fieldval.
ELSEIF sy-tabix = 3.
wa_dynpfields-fieldname = 'P_EKGRP'.
wa_dynpfields-fieldvalue = wa_val-fieldval.
ENDIF.
APPEND wa_dynpfields TO i_dynpfields.
ENDLOOP.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = sy-repid
dynumb = sy-dynnr
TABLES
dynpfields = i_dynpfields.
FORM callback_routine TABLES i_val TYPE ddshreslts
CHANGING wa_shlp TYPE shlp_descr
wa_callcontrol LIKE ddshf4ctrl.
DATA:
wa_intf LIKE LINE OF wa_shlp-interface.
wa_intf-shlpfield = 'F0002'.
wa_intf-valfield = 'X'.
wa_intf-f4field = 'X'.
wa_intf-value = '~'.
APPEND wa_intf TO wa_shlp-interface.
wa_intf-shlpfield = 'F0003'.
wa_intf-valfield = 'X'.
wa_intf-f4field = 'X'.
wa_intf-value = '~'.
APPEND wa_intf TO wa_shlp-interface.
ENDFORM. " CALLBACK_F4
Similar Messages
-
F4 help for the screen fields in module pool program
Hi All,
I have a requirement that, i want to provide F4 help for the 2 fields in module pool program. the fields are document number and fiscal year from rbkp table.
i could provide search help for two fields.
but how to select matching fiscal year for that document number.
problem: i am getting fiscal year as first four digits of document number.
please help me to solve this problem.
Thanks & Regards,
Namratha.VHi,
If your requirement is after selecting the document no from f4 help then the corresponding year should be updated in the document year field then use FM --> DYNP_VALUES_UPDATE
In this function module pass the screen no program & field for which u want to update value -
F4 help for the Date field in Module-Pool program
Hi,
I have a requirement wherein the user shud be allowed to choose a date on the calendar using F4 help and after choosing, it shud get displayed as dd.mm.yyyy format in the field. Is there any functional module to implement this.
Thanks in Advance,
Saranya.Hi,
Please try the below code in your prgm.
You have to write the below code in the POV of the required field.
***INCLUDE MZDATE_POV_DATEI01 .
*& Module pov_date INPUT
text
module pov_date input.
DATA: li_ret_tab LIKE ddshretval OCCURS 0 WITH HEADER LINE.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = ' '
fieldname = ' '
searchhelp = 'BU_DATE_CHAR'
TABLES
return_tab = li_ret_tab
EXCEPTIONS
field_not_found = 1
no_help_for_field = 2
inconsistent_help = 3
no_values_found = 4
OTHERS = 5.
IF sy-subrc IS INITIAL.
READ TABLE li_ret_tab INDEX 1.
IF sy-subrc IS INITIAL.
wrk_date = li_ret_tab-fieldval. "The required field
ENDIF.
ENDIF.
endmodule. " pov_date INPUT
Hope it suits ur requirement.
Reward points if useful.
Thanks and regards,
Litta. -
How to keep f4 help for a particular field in module pool problem-urgent
hi all,
i am displaying output using alv list display. here i am showing my pf status here. in this status i have one button called position. when i click this button it is showing pop up inside this pop up i am showing appln
for this i need keep f4 help. anybody can tell me how to keep f4 help fo this field.
thanks,
maheedhar.tHi Maheedhar,
You need to use function module POPUP_GET_VALUES.
If you want see sampl eprogram for this check the program RSSPO410.
Execute this program and input Example2 = X in the selection screen.
Code from the above Program:
DATA: BEGIN OF FIELDS OCCURS 1.
INCLUDE STRUCTURE SVAL.
DATA: END OF FIELDS,
RETURNCODE(1) TYPE C,
POPUP_TITLE(30) TYPE C.
POPUP_TITLE = 'Nachrichten anzeigen'(200).
CLEAR FIELDS.
FIELDS-TABNAME = 'T100'.
FIELDS-FIELDNAME = 'ARBGB'.
FIELDS-FIELDTEXT = 'Arbeitsgebiet'(202). "Text nicht aus DTEL
APPEND FIELDS.
CALL FUNCTION 'POPUP_GET_VALUES'
EXPORTING POPUP_TITLE = POPUP_TITLE
IMPORTING RETURNCODE = RETURNCODE
TABLES FIELDS = FIELDS.
IF RETURNCODE = 'A'.
If Cancel is clicked
ELSE.
If OK is clicked.
Table FIELDS congtains the input data.
ENDIF.
Thank you
Ramakrishna -
Transferring Search Help values from ECC 6.0 to SRM 7.0
Hi SAP experts,
I have a requirement to display the search help values for a data element in ECC 6.0 into the custom data element that I created on SRM 7.0.
Is there a BAPI that I can use to retrieve the values for a search help element (for example SH_ANLKA) from the the ECC into SRM?
Your advise would be greatly appreciated!
Regards,
AndrewHi Andrew,
I have got a similar requirement to fetch the PO details from ECC search help to a new SRM search help. Please help me with the procedure you used for the above scenario.
Thanks,
Santosh. -
Search Help values to Internal table
Dear Friends,
Is it possible to export Search Help values to Internal table?
On screen, when user click on Search button, the SAP standard search help will call (Customer Search). After entering values, some result get displayed and this result need to export to the internal table.
Thanks in stack
NileshHi:
try this:
DATA : wa_shlp TYPE shlp_descr,
it_records LIKE ddshretval OCCURS 0 WITH HEADER LINE.
wa_shlp-SHLPNAME = 'MAT0M'. "one of elementary search help name from mara-matnr.
wa_shlp-SHLPTYPE = 'SH'.
CALL FUNCTION 'F4IF_SELECT_VALUES'
EXPORTING
shlp = wa_shlp
MAXROWS = 0
SORT = ' '
CALL_SHLP_EXIT = ' '
IMPORTING
MAXROWS_EXCEEDED =
TABLES
RECORD_TAB =
RECDESCR_TAB =
return_tab = it_records
LOOP AT it_records.
WRITE:/ it_records.
ENDLOOP.
Follows is how to get the search help name:
CALL FUNCTION 'DD_SHLP_GET_HELPMETHOD'
EXPORTING
tabname = 'MARA'
fieldname = 'MATNR'
langu = sy-langu
NO_CHKTAB_MAPPING =
GET_ENTITYTAB = ' '
CHANGING
shlp = wa_shlp
callcontrol = callcontrol
EXCEPTIONS
field_not_found = 1
no_help_for_field = 2
OTHERS = 3
CALL FUNCTION 'F4IF_EXPAND_SEARCHHELP'
EXPORTING
shlp_top = wa_shlp
IMPORTING
shlp_tab = shlps.
好运,
启明星 -
Only Using Search Help Value When Entry Value
Hi Experts,
I'm using search help at my screen field for entry value. But I dont want to entry value with using hand/finger/manuel.
I want to use only search help at my field.
Is this possible?
Best regards.Thanks All for answers.
I mixed your solution and I find new way for my issue.
I did like this.
I added Input/Output Field at screen and I did input properties false.
And I added button near the I/O Field.
I wrote at PAI - User_Command for button on click.
May there is different way but so my solution.
My draft code below.
WHEN '&BTN_PREPARE'.
DATA : BEGIN OF ITAB OCCURS 0,
KTANIM TYPE CHAR9,
IPTPKOD LIKE ZKZN_004-IPTPKOD,
KYPTYPEID LIKE ZKZN_004-KYPTYPEID,
FIILOLS LIKE ZKZN_004-FIILOLS,
END OF ITAB.
CLEAR : ITAB.
REFRESH : ITAB.
SELECT IPTPKOD KYPTYPEID FIILOLS
INTO CORRESPONDING FIELDS OF TABLE ITAB
FROM ZKZN_004
WHERE SILINDI = ''.
LOOP AT ITAB.
CONCATENATE ITAB-IPTPKOD ITAB-KYPTYPEID
INTO ITAB-KTANIM SEPARATED BY SPACE.
CONCATENATE ITAB-KTANIM ITAB-FIILOLS
INTO ITAB-KTANIM.
MODIFY ITAB.
ENDLOOP.
DATA : DFIES LIKE DFIES OCCURS 0 WITH HEADER LINE,
DDSHRETVAL LIKE DDSHRETVAL OCCURS 0 WITH HEADER LINE,
DSELC LIKE DSELC OCCURS 0 WITH HEADER LINE.
CLEAR : DFIES, DDSHRETVAL, DSELC.
REFRESH : DFIES, DDSHRETVAL, DSELC.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'KTANIM'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = ITAB
FIELD_TAB = DFIES
RETURN_TAB = DDSHRETVAL
DYNPFLD_MAPPING = DSELC.
BREAK MELIHM.
READ TABLE DDSHRETVAL INDEX 1.
IF SY-SUBRC = 0.
ZKZN_DATA01_S01-IPRJSCR01 = DDSHRETVAL-FIELDVAL.
ENDIF. -
Hello Folks,
I have an immediate requirement to assign a search help to a specific field in a Table.Requirement is as follows:
requirement:
I want the search help to be populated for the field HRP1000-SHORT when HRP1000-OTYPE='O'.
Values of search help are to be populated from another Custom table field1 where field2 = 'x'.
Please help me out in fixing this.*---Report with selection screen and to display the list of
possible entries for field 'B' as per the value in field 'A'.
parameters: p_vbeln type vbak-vbeln,
p_posnr type vbap-posnr.
at selection-screen on value-request for p_posnr.
data: begin of help_item occurs 0,
posnr type vbap-posnr,
matnr type vbap-matnr,
arktx type vbap-arktx,
end of help_item.
data: dynfields type table of dynpread with header line.
dynfields-fieldname = 'P_VBELN'.
append dynfields.
call function 'DYNP_VALUES_READ'
exporting
dyname = sy-cprog
dynumb = sy-dynnr
translate_to_upper = 'X'
tables
dynpfields = dynfields
exceptions
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
invalid_parameter = 7
undefind_error = 8
double_conversion = 9
stepl_not_found = 10
others = 11.
read table dynfields with key fieldname = 'P_VBELN'.
p_vbeln = dynfields-fieldvalue.
call function 'CONVERSION_EXIT_ALPHA_INPUT'
exporting
input = p_vbeln
importing
output = p_vbeln.
select posnr matnr arktx into table help_item
from vbap
where vbeln = p_vbeln.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'POSNR'
dynprofield = 'P_POSNR'
dynpprog = sy-cprog
dynpnr = sy-dynnr
value_org = 'S'
tables
value_tab = help_item. -
Field with a default value from another field
I need to populate a field as the default value from another field that the user inputs. I've tried the scripting that I found from the below Topic in the Archived Forums, but I'm not able to make it work. I've tried numerous variations and still to no avail. I tried to make the scripting work in Acrobat 6 and then decided that maybe I needed to upgrade, so I'm now trying it in Acrobat 8 with no results. Can anyone help?
Topic
Acrobat 5 - field with default value of another field
Ben PF - 03:31am Mar 23, 2007 Pacific
How can I have a field date2 which has the default value of field date1, but which can be edited by the user if necessary without changing the value of date1.
I've tried, but I just can't figure it out!
Any help much appreciated.
Ben
| Back to Topic List | Bookmark | Subscribe
To start a NEW discussion click on the Back to Topic List link and select Add Topic.
If you are in an archive forum please go up to the main topic list (archives are read only).
Messages
2 messages. Displaying 1 through 2.
First Previous Next Last Show All Messages
Gene Dianoski - 5:22am Mar 23, 07 PST (#1 of 2)
This, or some variation of this, should work:
if(this.getField("date2").value == ""{
this.getField("date2").value = this.getField("date1).value;
| Bookmark back to top
Ben PF - 6:49am Mar 23, 07 PST (#2 of 2)
Thanks very much.
I put it in at document level to start, but it didn't run the script automatically when date1 was first filled in, so I have put it in as a mouse exit action in date1 and it works a treat.
Thanks for your help.
BenOkay forget what I posted above and lets start over. Go to your first field and under Properties -> Actions Tab -> Select Trigger -> On Blur Run A JavaScript.
Put this:
this.getField("myField2").value = event.target.value;
Make sure that you replace ("myField2") with the actual name of your second field. I just tested this and it works for Acrobat version 6.
I haven't been doing as much javascripting as I used to, so sometimes I too make some basic mistakes. -
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 -
Search help for screen fields in module pool
Hi All,
I have a screen in Module pool which has 3 input fields, each input field is attached to the same search help.
These fields are from ztable . I have created a search help USING these 3 fields. All the 3 fields are marked for IMPORT and EXPORT.
So whenever i click F4 on any of the above 3 fields, It will display search help popup and returns some rows...But the values are transfered back only for 1 fields ..i.e for the first field only .
I want that ...as soon as i select any of the row from Search hit list..all the 3 columns should get populated with corresponding fields from that row.
I require it this way as user wants to select based on * selection.Ex: as then every this related to that should be popped up.
Pls help ASAP
Thanks,This is how i got.
data:l_shlp type SHLP_DESCR,
l_rc type sy-subrc,
w_DDSHRETVAL type DDSHRETVAL ,
ls_shintf LIKE LINE OF l_shlp-interface,
t_DDSHRETVAL type TABLE OF DDSHRETVAL.
DATA: dyname LIKE d020s-prog,
dynumb LIKE d020s-dnum.
DATA: BEGIN OF dynpfields OCCURS 3.
INCLUDE STRUCTURE dynpread.
DATA: END OF dynpfields.
CALL FUNCTION 'F4IF_GET_SHLP_DESCR'
EXPORTING
SHLPNAME = 'YTESTDMSSB'
SHLPTYPE = 'SH'
IMPORTING
SHLP = l_shlp .
ls_shintf-valfield = 'X'.
MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield
WHERE shlpfield = 'SNNTX'.
MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield
WHERE shlpfield = 'SBRTX'.
MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield
WHERE shlpfield = 'SBSTX'.
MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield
WHERE shlpfield = 'ENPTX'.
MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield
WHERE shlpfield = 'PLANT_CODE'.
CALL FUNCTION 'F4IF_START_VALUE_REQUEST'
EXPORTING
SHLP = l_shlp
DISPONLY = ' '
MAXRECORDS = 500
MULTISEL = 'X'
CUCOL = SY-CUCOL
CUROW = SY-CUROW
IMPORTING
RC = l_rc
TABLES
RETURN_VALUES = t_DDSHRETVAL
IF l_rc = 0.
LOOP AT t_DDSHRETVAL INTO w_DDSHRETVAL.
CASE w_DDSHRETVAL-fieldname.
WHEN 'SNNTX'. "W_SNNTX = w_DDSHRETVAL-fieldval.
dyname = sy-repid.
dynumb = sy-dynnr.
dynpfields-fieldname = 'W_SNNTX'.
dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.
APPEND dynpfields.
WHEN 'SBRTX'. "W_SBRTX = w_DDSHRETVAL-fieldval.
dyname = sy-repid.
dynumb = sy-dynnr.
dynpfields-fieldname = 'W_SBRTX'.
dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.
APPEND dynpfields.
WHEN 'SBSTX'. "W_SBSTX = w_DDSHRETVAL-fieldval.
dyname = sy-repid.
dynumb = sy-dynnr.
dynpfields-fieldname = 'W_SBSTX'.
dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.
APPEND dynpfields.
WHEN 'ENPTX'. "W_ENPTX = w_DDSHRETVAL-fieldval.
dyname = sy-repid.
dynumb = sy-dynnr.
dynpfields-fieldname = 'W_ENPTX'.
dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.
APPEND dynpfields.
WHEN 'PLANT_CODE'. "W_ENPTX = w_DDSHRETVAL-fieldval.
dyname = sy-repid.
dynumb = sy-dynnr.
dynpfields-fieldname = 'W_WERKS'.
dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.
APPEND dynpfields.
ENDCASE.
ENDLOOP.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = dyname
dynumb = dynumb
TABLES
dynpfields = dynpfields.
ENDIF. -
HOW TO APPLY SEARCH HELP TO AN INPUT FIELD FOR FOLLOWING EXAMPLE:
FOR THE FIELDS LOCATIONS, AND CONFERENCE ROOM NO.
LOCATIONS ARE A, B, C, D, G AND CONFERENCE ROOMS OF THESE LOCATIONS ARE,
A1, A2 ,A3,, LIKE WISE FOR REST OF THEM.
HERE IS THE PROBLEM,
hi,
this is a realtime implementation scenario pls provide full coding and answers with screen programming of it.
it is as follows:
Business Scenario u2013 conference room booking for the company
Business Scenario
You will build a computerized system to automate the process of Conference room booking for a company .
Xi Infotech, a software company, is having 5 locations at Bangalore. Each location has 3 conference rooms available
Masters
Maintain Employee Details
Maintaining Conference room Details.
Maintaining booking details
Transactions
Maintaining Date and timing of Meeting
The conference room in any of these locations have to be Pre-booked for the meeting indicating the purpose of meeting & no. Of attendees, date and time for which required.
Booking Confirmation has to be sent to the employee who blocks the room. If any other person tries to book the same room, he should be able to see that this room is blocked and the details regarding the employee who has blocked and the purpose & time for which the room is blocked
Reports
Datewise report on the conference rooms of all locations.
Month wise reports of conference room booked.Hi,
For a given field if you have more number of possible values then go for the Value table or check table.
If you have a few values for a given field, then go for Value ranges. These can be maintained at Domain level for a field.
For each field create a correspondign data element(DE)
In this DE, we can have the FURTHER CHARACTERISTICS tab we can create a search help Or directly from SE11 we can create a SH then attach this to the DE Or we can directly maintian Or At the DOMAIN level we can .
Ex:
LOCATIONS ARE A, B, C, D, G AND CONFERENCE ROOMS OF THESE LOCATIONS ARE,
A1, A2 ,A3,, LIKE WISE FOR REST OF THEM.
Ex:
SE11->
DE and Domain names is LOC.
In SE11->DOMAIN->LOC->
Here as you have a few values we can maintain it in VALUE RANGES tab->
like
A (Description to be given) ie Loc A for Hyderabad
B Bangalore
C
D
G
Room Numbers-> here can createa value table with serial numbers at the Domain level.
Attach the same to the respective DE in the SE11.
Similary we can maitain for Conference room numbers or
We can create a Search help using the two field LOC and RoomNos and create a Elementary search help.
Like this we can do.
Get back if you still have queries on this.
Please refer to this link for more info-
SEARCH help
Regards,
Chandralekha -
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 -
Search Help for Infotype Custom Field
Hi,
I have created a search help for a custom field in an infotype. What would be the best way of filtering the help selection based on infotype values such as molga, begda, endda?
Thanks in advance.
/ElvezHi Nishanth,
thanks for your reply, perhaps I should clarify my question:
1) I have a custom field in an infotype
2) I have a table containing the search help information
3) I assigned a search help to the custom field
4) I have activated a search help exit
The problem is that the information that I get from the custom field is not sufficient for making the selection. Therefore, I would like to somehow get hold of the addition information, such as BEGDA, ENNDA, MOLGA, to do a proper selection in the search help exit. How can I achieve that?
I read something about function module DYNP_VALUES_READ -would it be possible to call this function module from my search help exit and thereby reach my goal?
/Elvez
Message was edited by: Elvez -
Change Search Help for Payment Terms Field
Hi,
I would like to change the Search Help for Payment Terms Field, in Customer Master (KNVV-ZTERM). and in Sales Document. I believe it is the same.
Default is From Table T052 / T052U
ZTERM and TEXT1 Fields
I would like to have
From Table TVZBT
ZTERM and VTEXT
PayT Own Explanation Field.
Can we change the Search Help.Hi,
The search help for the payment terms is not coming from the DDIC search help..
It is coded in the process on value-request event...
The function module FI_F4_ZTERM is called for this..you have to change this function module in case if you want the values from a different table..
OR do implicit enhancement in the subroutine FORM HELP_ZTERM in the include MF02DFH0 to call your search help instead of the function module FI_F4_ZTERM ..And do the same for the sales order also..
Thanks
Naren
Maybe you are looking for
-
5 allpe devices one apple id
-
Using the apple remote with garageband
Can you use the apple remote with Garagband? I know there are apps that cost like iRed Lite, but are there other options?
-
Display webPage in java application?
How do you display HTML format(like contents displayed in a browser) in an Java application?Which swing component do you use and can anyone tell me how to go about with it?? Thanks
-
Difficulties with movie clips and frames
This is really irking me. I am extremely new to Flash so please bear with me. I am assuming that this is a simple, easy to fix problem that I am having. I have Adobe Flash Professional CS5.5. What I am trying to do is display a sequence of images aft
-
Formatting Variable into Currency Format INSIDE script
Hello, I was wondering if someone could give me insight on why I'm running into some problems. So, in my script, I'm trying to display my [decimal]$Variable into currency format ( $x.xx ) By looking around online, I found two different ways; "{0:C2