Skip to Content
0
Feb 16, 2015 at 12:24 PM

how to pass F4 help to select query

197 Views

Hi,


My requirement is to pass F4 help input to Select Query.

Find the below code and screen shots below.

Code:

PARAMETERS: P_VBELN TYPE VBAK-VBELN.

*Selection Screen Validation on Sales Document with Order Type 'ZMCD'
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_VBELN.
SELECT VBELN AUART FROM VBAK INTO TABLE LT_VBELN WHERE AUART = 'ZMCD'.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'VBELN'
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'P_VBELN'
value_org = 'S'
TABLES
value_tab = LT_VBELN.

*Fetching the required fields for Merchandise Label Printing

SELECT VBELN
KNUMV
KUNNR
ABHOD FROM VBAK
INTO TABLE LT_VBAK
WHERE VBELN EQ P_VBELN.

Now how to pass the selected f4 help to the select query at P_VBELN. Kindly let me know.

With Regards,

Sudhir.

Attachments

1.JPG (15.5 kB)
2.JPG (52.2 kB)