Application Development 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: 

FM:DYNP_VALUES_READ

Former Member
0 Kudos

Hi all,

I have a requirement wherein during the customer search in vd03, the user enters the account group and sales area and then presses F4 on the customer field.I want to have the sales area details populated on the search help screen which the user entered on the initial screen.I went through the FM:DYNP_VALUES_READ documentation but can anyone tell me with an example how do i achieve this for the above requirement.

Thanks

Sandeep

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi sandeep,

check this thread

hope this helps,

do reward if it helps,

priya.

7 REPLIES 7

laxmanakumar_appana
Active Contributor
0 Kudos

Hi,

Check this link , i have posted sample code on search help exit using FM : DYNP_VALUES_READ

Regards

Appana

0 Kudos
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.

LucianoBentiveg
Active Contributor
0 Kudos

I think you need to modify standard search help for achieve this.

Former Member
0 Kudos

hi check ex for 'DYNP_VALUES_READ' ::

REPORT Z_TEST.

SELECT-OPTIONS: S_CARRID FOR SFLIGHT-CARRID,

S_CONNID FOR SFLIGHT-CONNID.

DATA: BEGIN OF HELP_ITEM OCCURS 0,

CONNID TYPE SFLIGHT-CONNID,

END OF HELP_ITEM.

DATA: DYNFIELDS TYPE TABLE OF DYNPREAD WITH HEADER LINE.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_CONNID.

DYNFIELDS-FIELDNAME = 'S_CARRID'.

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 = 'S_CARRID'.

S_CARRID = DYNFIELDS-FIELDVALUE.

SELECT S_CONNID INTO TABLE HELP_ITEM FROM SFLIGHT WHERE CARRID IN S_CARRID .

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

RETFIELD = 'CONNID'

DYNPROFIELD = 'S_CONNID'

DYNPPROG = SY-CPROG

DYNPNR = SY-DYNNR

TABLES

VALUE_TAB = HELP_ITEM.

Regards

Ashok P

0 Kudos

Hi all,

Do i need to develop a custom search tab which will be attached to the existing collective search help for this.

This search tab will contain the custom fields which include the sales area fields also.Now do i need to use this function module in the search help exit for this search help?any ideas?

Thanks

Sandeep

0 Kudos

HI

:

Former Member
0 Kudos

hi sandeep,

check this thread

hope this helps,

do reward if it helps,

priya.