2006 Nov 13 2:57 PM
Hi
I have a table which i have generated using table control wizard.
I have used an interal table while creating the table control through wizard.
In this internal table i have field matnr.Now my requirement is to have a search help for this field.
I want a default search help for material as you get one instandard transactions.
In my other i have ip/op field i.e matnr and i have used the field directly from ztable,it has got the search help but since i am using the internal table i am notting getting a search help .
can anyone tell how to assign a search help to my table control material field
2006 Nov 13 3:02 PM
Hi
Go to layout of your screen by screen painter, do a double click on field MATNR of table control and assign the search help MAT1.
Max
2006 Nov 13 3:01 PM
hi deepthi,
chk a sample one which will help u. <b><i>f4 hlp in table control</i></b>
* Screen flow logic........
PROCESS BEFORE OUTPUT.
*MODULE PBO_MODULE.
PROCESS AFTER INPUT.
*MODULE PAI_MODULE.
PROCESS ON VALUE-REQUEST. "F4
FIELD EKPO-EBELP MODULE help_ekpo.
***************************************
* populate screen field from within PROCESS ON VALUE-REQUEST(F4) call
*&------------------------------------------------------------------*
*& Module help_responsibility INPUT
*&------------------------------------------------------------------*
* text
*-------------------------------------------------------------------*
MODULE help_ekpo INPUT.
**Transport values to table dynpro/screen table control
DATA: l_stepl LIKE sy-stepl,
l_indx LIKE sy-stepl.
DATA: dynpfields LIKE dynpread OCCURS 5 WITH HEADER LINE.
* Adjust for scroling within table control
CALL FUNCTION 'DYNP_GET_STEPL'
IMPORTING
povstepl = l_stepl
EXCEPTIONS
stepl_not_found = 0
OTHERS = 0.
l_indx = tc_ekpotable-top_line + l_stepl - 1.
"tc_ekpotable should already have been declared
REFRESH dynpfields.
CLEAR dynpfields.
dynpfields-fieldname = 'EKPO-EBELN'.
dynpfields-fieldvalue = '00010' "wa_ekpo-ebeln.
dynpfields-stepl = l_stepl.
APPEND dynpfields.
dynpfields-fieldname = 'EKPO-EBELP'.
dynpfields-fieldvalue = '00020' "wa_ekpo-ebelp.
dynpfields-stepl = l_stepl.
APPEND dynpfields.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = 'SAPLZZ_EKKO' "Program name
dynumb = '0100' "Screen number
TABLES
dynpfields = dynpfields
EXCEPTIONS
OTHERS = 0.
ENDMODULE. " help_ekpo INPUT
rgds
Anver
<b><i>if hlped kindly mark points</i></b>
2006 Nov 13 3:02 PM
Hi
Go to layout of your screen by screen painter, do a double click on field MATNR of table control and assign the search help MAT1.
Max
2006 Nov 13 3:11 PM
Hi MAX ,
I HAVE TRIED = AND MAT1 AS YOU SAID .
BOTH OF THEM WORK FINE .
I HAVE ONE MORE QUESTION.
WHAT CONVEXIT
AND PARM ID MEAN IN THE ATTRIBUTES.
Do i need to pass anything to these fields.
Thanks
Deepthi
2006 Nov 13 4:24 PM
When it design a field of input/output if it uses a dictionary field all its characteristics are used in the screen, in particular:
- Search Help (just as you seen)
- Parameter ID (PARM ID): To store the value in SAP Memory (see the help for SET/GET PARAMETER)
- Convertion Routine for Input/output (CONVEXIT): it's the routine to format the data for input or output. For example ALPHA routine delete the leading zero.
If you use a variable declareted in the program you have to set these chararteritics by yourself.
Max
2006 Nov 13 3:33 PM
no need to pass any information on that fields deepthi.........just click on that field amd pass this inforamtion on window