Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Search Help Exit problem

Former Member
0 Likes
435

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

3 REPLIES 3
Read only

Former Member
0 Likes
413

Hi,

By any chance are you passing SY-DYNNR as screen number to the function module.

Check one more thing: Check whether the field you are talking about is in subscreen or main screen. And which screen you are using main or sub?

Ramesh.

Read only

0 Likes
413

i am using sub screen. i cheked the code even for mm01. i faced same

Read only

Former Member
0 Likes
413

Have you tried using Main screen number and main screen program.

Ramesh.