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 with Func. Module - F4IF_FIELD_VALUE_REQUEST

Former Member
0 Likes
424

Hi,

How can i export 2 field values from the F4 popup onto the screen.

Used the func. module - F4IF_FIELD_VALUE_REQUEST.

Any parameters in this module tobe enabled to get the mutiple values.

Specifically saying i want the excise invoice number and date to be passed.

Excise inv. no is coming but date is not coming on the input screen after selecting the excise invoice no. on the F4 popup.

Regards,

Neslin.

Hi,

How can i export 2 field values from the F4 popup onto the screen.

Used the func. module - F4IF_FIELD_VALUE_REQUEST.

Any parameters in this module tobe enabled to get the mutiple values.

Specifically saying i want the excise invoice number and date to be passed.

Excise inv. no is coming but date is not coming on the input screen after selecting the excise invoice no. on the F4 popup.

Regards,

Neslin.

1 REPLY 1
Read only

uwe_schieferstein
Active Contributor
0 Likes
296

Hello Neslin

You have to use the callback parameters CALLBACK_PROGRAM and <b>CALLBACK_FORM</b>.

The callback form must have the following interface (see documentation of function module):

FORM <NAME> TABLES RECORD_TAB STRUCTURE SEAHLPRES
            CHANGING SHLP TYPE SHLP_DESCR
                     CALLCONTROL LIKE DDSHF4CTRL.

* Changing parameter SHLP holds the entire meta data of the search help.
* SHLP is a complex structure.
* To return multiple fields of the search help you have to modify SHLP-FIELDPROP.

DATA:
  ls_prop   LIKE LINE OF shlp-fieldprop.


  LOOP AT SHLP-FIELDPROP INTO ls_prop
            WHERE ( fieldname = <required field1>   OR
                           fieldname = <required field2> ).
    ls_prop-SHLPOUTPUT = 'X'.  " Flag for EXPORT Parameters for Search Help
    MODIFY shlp-fieldprop FROM ls_prop.
  ENDLOOP.

ENDFORM.

Regards

Uwe