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

Former Member
0 Likes
628

Hi all,

I have two parameters in my report:

PARAMETERS:

p_date TYPE reguh-laufd,

p_id TYPE reguh-laufi.

I want to use a search help for p_date, when we choose F4 for p_date, there will appear both reguh-laufd and reguh-laufi with no repeat.And when we select the p_date, the p_id will get the value automatically.

You can see the search help for TCODE F110.

How can we get the same search help in report as TCODE F110. Thanks in advance!

1 ACCEPTED SOLUTION
Read only

JozsefSzikszai
Active Contributor
0 Likes
490

you have to do the following:

PARAMETERS : p_date TYPE reguh-laufd,
             p_id TYPE reguh-laufi.
 
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_laufd.
 
  CALL FUNCTION 'F4_ZAHLLAUF'
   EXPORTING
     f1typ               = 'D'
     f1nme               = 'P_DATE'
     f2nme               = 'P_ID'
*   DISPLAY_LAUFK       = 'X'
*   EXPLAIN_LAUFK       = ' '
   IMPORTING
     laufd               = p_date
     laufi               = p_id.
* TABLES
*   LAUFK               =.

(pls. note the difference: in importing parameters f1nme and f2nme the names of the dynpro fields have to be mentioned)

3 REPLIES 3
Read only

JozsefSzikszai
Active Contributor
0 Likes
491

you have to do the following:

PARAMETERS : p_date TYPE reguh-laufd,
             p_id TYPE reguh-laufi.
 
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_laufd.
 
  CALL FUNCTION 'F4_ZAHLLAUF'
   EXPORTING
     f1typ               = 'D'
     f1nme               = 'P_DATE'
     f2nme               = 'P_ID'
*   DISPLAY_LAUFK       = 'X'
*   EXPLAIN_LAUFK       = ' '
   IMPORTING
     laufd               = p_date
     laufi               = p_id.
* TABLES
*   LAUFK               =.

(pls. note the difference: in importing parameters f1nme and f2nme the names of the dynpro fields have to be mentioned)

Read only

former_member182354
Contributor
0 Likes
490

Hi,

Check the code in the transaction and encorporate the same in your program.

You can use fuinction modules: DYNP_VALUE_READ and DYNP_VALUE_UPDATE.

Raghav

Read only

Former Member
0 Likes
490

HI,

Check this Code ...

Use this Fm in the At selection-screen of value-request

tlaufk-laufk = space.

tlaufk-sign = 'I'.

APPEND tlaufk.

CALL FUNCTION 'F4_ZAHLLAUF'

EXPORTING

f1typ = 'D'

f2nme = 'F110V-LAUFI'

IMPORTING

laufd = f110v-laufd Screen Fields

laufi = f110v-laufi Screen Fields

TABLES

laufk = tlaufk.

CALL FUNCTION 'F4_ZAHLLAUF'

EXPORTING

f1typ = 'I'

f2nme = 'F110V-LAUFD'

IMPORTING

laufd = f110v-laufd

laufi = f110v-laufi

TABLES

laufk = tlaufk.

Edited by: avinash kodarapu on Dec 1, 2008 1:03 PM