Hi,
In me51, the search help attached with account assigment category should be filtered based on purchase requisition type. For this i am using search help exit. I created search help exit. In search help exit i am reading the value of purchase requisition type ( combo box ) field using DYNP_VALUES_READ. But it doesnt work ( it wont return values in table). I tested the same code in our own '
Z' dialogue program. it returns values. Then suspected, there may be problem with program name parameter, i gave all possible values, but it doesnt work. If i can fetch the value of field, the rest will be done easily it seems.
FYR I hv given below the coding.
IF CALLCONTROL-STEP = 'DISP'.
PERFORM AUTHORITY_CHECK TABLES RECORD_TAB SHLP_TAB
CHANGING SHLP CALLCONTROL.
DATA:
progname like d020s-prog value 'SAPLZGFXNGRP',
dynnum like d020s-dnum value '0014',
dynpro_values TYPE TABLE OF dynpread,
field_value LIKE LINE OF dynpro_values.
CLEAR: field_value, dynpro_values.
field_value-fieldname = 'BANFN_EXT'.
APPEND field_value TO dynpro_values.
call function 'DYNP_VALUES_READ'
exporting
dyname = progname
dynumb = dynnum
translate_to_upper = 'X'
tables
dynpfields = dynpro_values
exceptions
invalid_abapworkarea = 01
invalid_dynprofield = 02
invalid_dynproname = 03
invalid_dynpronummer = 04
invalid_request = 05
no_fielddescription = 06
undefind_error = 07
Please help me.
Points will be rewarded.
by
SAPPIEN
Edited by: SAPPIEN on Jul 18, 2008 2:51 PM
Edited by: SAPPIEN on Jul 18, 2008 2:55 PM
Edited by: SAPPIEN on Jul 18, 2008 2:56 PM