‎2008 Dec 01 7:26 AM
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!
‎2008 Dec 01 7:30 AM
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)
‎2008 Dec 01 7:30 AM
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)
‎2008 Dec 01 7:32 AM
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
‎2008 Dec 01 7:32 AM
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