Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8594

Re: Search help in Dialog program

$
0
0

Hi Shoban,

 

The values in the field characteristic  "Material"/ "Date"  are entered by the user  in the screen right.

 

If yes,

 

The solution is,

 

In the screen there is an event called Process on Value request.

under this event create module for each field.

 

for example

 

PROCESS ON VALUE-REQUEST

 

Field tablecontrolname-value module f4_value.

 

logic in the module

 

Use the FM DYNP_VALUES_READ to read the value in the screen

populate the table DYNPFIELDS with the following fields

 

DYNPFIELDS-FIELDNAME = 'tablecontrolname-characteristic'

DYNPFIELDS-STEPL = line number (Use GET CURSOR FIELD to get the line number and pass it)

 

pass the export parameters DYNAME and DYNUMB with values program name(SY-REPID) and screen number (SY-DYNNR) .

 

once the FM is executed the value is populated in the table DYNPFIELDS. read the table using the field name and the field DYNPFIELDS-FIELDVALUE will have the value mentioned in the screen.

 

Use this value to check if it is Material/ Date. Based on the value fetch the required data and display the F4 help for the value field.

 

for example, if the value is material then fetch the data from MARA for all materials and display the list of materials in the F4 help.

 

Hope this solution will help you and let me know in case of any questions.

 

Regards,

Phani


Viewing all articles
Browse latest Browse all 8594

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>