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

F4IF_INT_TABLE_VALUE_REQUEST?

Former Member
0 Likes
648

Hi Guys,

I am using this FM F4IF_INT_TABLE_VALUE_REQUEST for field BWTAR from MBEW table for Seeing the list of values.But i was not able to see the list of VAlues

Here is the code.

At Selection-Screen on Value-Request for S_BWTAR-low.

Select BWTAR from MBEW into table i_BWTAR.

START-OF-SELECTION.

Perform Help_BWTAR.

Form Help_BWTAR.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

  • DDIC_STRUCTURE = ' '

retfield = 'BWTAR'

  • PVALKEY = ' '

dynpprog = sy-repid

dynpnr = sy-dynnr

dynprofield = 'S_BWTAR-LOW'

  • STEPL = 0

  • WINDOW_TITLE =

  • VALUE = ' '

value_org = 'S'

  • MULTIPLE_CHOICE = ' '

  • DISPLAY = ' '

  • CALLBACK_PROGRAM = ' '

  • CALLBACK_FORM = ' '

  • MARK_TAB =

  • IMPORTING

  • USER_RESET =

TABLES

value_tab = i_BWTAR

  • FIELD_TAB =

  • RETURN_TAB =

  • DYNPFLD_MAPPING =

EXCEPTIONS

parameter_error = 1

no_values_found = 2

OTHERS = 3

. When i worte the code like this and clicked F8 and then clicked F4 for this Field but this even is not getting Fired I mean "At Selection-Screen"

i Don't know why Can anybody Pleas Help me?

Thanks,

Gopi.

5 REPLIES 5
Read only

Former Member
0 Likes
612

Please remove the START-OF-SELECTION which is there in above of the perform help_bwtar statement.

Read only

Former Member
0 Likes
612

Hi Gopi,

Also, don't fetch BWTAR from MBEW table...Get it from T149D.. I modifed code to get it from T149D...and moved FM after select statement...

 
Report Test.

TABLES: T149D.

SELECT-OPTIONS: s_bwtar for T149D-bwtar.

TYPES: BEGIN OF i_bwtar,
       bwtar type T149D-bwtar,
      END OF i_bwtar.

DATA: i_bwtar TYPE STANDARD TABLE OF i_bwtar.

At Selection-Screen on Value-Request for S_BWTAR-low.
  Select BWTAR from T149D into table i_BWTAR.

  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
  EXPORTING
* DDIC_STRUCTURE = ' '
  retfield = 'BWTAR'
* PVALKEY = ' '
  dynpprog = sy-repid
  dynpnr = sy-dynnr
  dynprofield = 'S_BWTAR-LOW'
* STEPL = 0
* WINDOW_TITLE =
* VALUE = ' '
  value_org = 'S'
* MULTIPLE_CHOICE = ' '
* DISPLAY = ' '
* CALLBACK_PROGRAM = ' '
* CALLBACK_FORM = ' '
* MARK_TAB =
* IMPORTING
* USER_RESET =
  TABLES
  value_tab = i_BWTAR
* FIELD_TAB =
* RETURN_TAB =
* DYNPFLD_MAPPING =
  EXCEPTIONS
  parameter_error = 1
  no_values_found = 2
  OTHERS = 3.

OR

If you want to fetch BWTAR from MBEW then use Distinct Keyword in your select statement like,

<b>Select distinct BWTAR from mbew into table i_BWTAR.</b>

Hope this helps....

Regards,

Vivek

Read only

0 Likes
612

Hi Vivek,

Similar to that can u provide the Table name's for these two fields also MATNR and BWKEY?By the way i was able to see the list for BWTAR.

Thanks,

Gopi.

Read only

0 Likes
612

Hi Gopi,

For MATNR, Value table is MARA and

for BWKEY, Value table is T001K...

It is simple to find the value table for any field...Go to it's domain and select "Value Range" tab for the domain...At the down you can find value table corresponding to that field...

Regards,

Vivek

Read only

0 Likes
612

Hi Vivek,

Thanks,

Gopi