‎2007 Jan 23 4:51 AM
Hai,
I am using below code in dynpro's I declare this module within POV event on CRHD-ARBPL field.
but search help is not working properly.hit list is displaying but when i select the value in hit list it not displaying in the screen field what is the problem here.
May i Declare the perform statement within this module?
could any body help me please.
&----
*& Module inputhelp INPUT
&----
text
----
module inputhelp input.
DATA: dynfields TYPE TABLE OF dynpread WITH HEADER LINE.
DATA: return like ddshretval occurs 0 WITH HEADER LINE.
data: dynmap TYPE TABLE OF DSELC WITH HEADER LINE.
DATA:begin of s_itab occurs 0,
arbpl LIKE zpces-arbpl,
werks LIKE zpces-werks,
KTEXT like zpces-KTEXT,
end of s_itab.
*perform FNAME.
select arbpl werks ktext from zpces into corresponding fields of table
s_itab .
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
retfield = 'ARBPL'
PVALKEY = ' '
DYNPPROG = sy-repid
DYNPNR = sy-dynnr
DYNPROFIELD = 'CRHD-ARBPL'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
value_org = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = 'F'
callback_program = sy-repid
callback_form = 'FNAME'
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
value_tab = s_itab
FIELD_TAB =
return_tab = return
DYNPFLD_MAPPING = dynmap
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.
READ TABLE return INDEX 1.
dynfields-fieldname = 'CRHD_ARBPL'.
dynfields-fieldvalue = return-fieldval.
APPEND dynfields.
READ TABLE return INDEX 2.
dynfields-fieldname = 'CRHD_WERKS'.
dynfields-fieldvalue = return-fieldval.
APPEND dynfields.
*READ TABLE return INDEX 3.
dynfields-fieldname = 'P_WERKS'.
dynfields-fieldvalue = return-fieldval.
APPEND dynfields.
Update the dynpro values.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = sy-cprog
dynumb = sy-dynnr
TABLES
dynpfields = dynfields
EXCEPTIONS
OTHERS = 8.
endmodule.
**&----
**
**& Form FNAME
**&----
**
text
**----
**
-->RECORD_TAB text
-->SHLP text
-->CALLCONTROL text
**----
**
FORM FNAME
TABLES record_tab STRUCTURE s_itab
CHANGING shlp TYPE shlp_descr
callcontrol LIKE ddshf4ctrl.
DATA:
ls_iface LIKE LINE OF shlp-interface,
ls_prop LIKE LINE OF shlp-fieldprop.
READ TABLE shlp-interface INTO ls_iface INDEX 1.
ls_iface-shlpfield = 'F0002'.
APPEND ls_iface TO shlp-interface.
ENDFORM. "FNAME[/code]
‎2007 Jan 23 8:29 AM
Hello Chaitanya
When you are using search helps at POV in a dynpro you do not need to transport the value explicitly to the dynpro fields. This is simply done by setting <dynpro field> = <value> and then it should work.
Regards
Uwe
‎2007 Jan 23 8:35 AM
Hi,
Try and put break points in this module and check if you are getting the values in the dynvalues table. Once you confirm this you need check if sy-cprog is having the main program name or the procedure name.
My suggestion is to check in debug mode if screen number screen fields all are as expected by you best way is to debug the code. Also check if the screen fileds have the same name as you are using in the code.
Regards,
Sesh
Message was edited by:
Seshatalpasai Madala