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

regarding function module

Former Member
0 Likes
605

hi,,

what is the name of fmodule to display the F4 with internal table......

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
585

Hi ravi,

just call the same function mod in some program ,place cursor on that funmod and press F1,it will display all parameter descriptions.

6 REPLIES 6
Read only

anversha_s
Active Contributor
0 Likes
585

hi,

'F4IF_INT_TABLE_VALUE_REQUEST'

Regards

Anver

Read only

0 Likes
585

PLZ EXPLAIN IN DETAILS ABT 'F4IF_INT_TABLE_VALUE_REQUEST'...

i mean to say which parameters sud i pass and what is the functionality of each parameters

Read only

0 Likes
585

hi,

chk this sample program.

tables: mara, makt.

data: begin of itab occurs 0,
matnr like mara-matnr,
end of itab.


data : begin of btab occurs 0,
maktx like makt-maktx,
end of btab.

data mak like makt-maktx.

DATA : return like ddshretval occurs 0 with header line.

data: begin of dynpfields occurs 0.
include structure dynpread.
data: end of dynpfields.

parameters: p_matnr like mara-matnr,
p_maktx like makt-maktx.

Initialization.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_matnr.

REFRESH ITAB.
SELECT matnr FROM mara INTO TABLE ITAB.

call function 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'MATNR '
dynprofield = 'P_MATNR '
dynpprog = sy-REPID
dynpnr = sy-dynnr
value_org = 'S'
TABLES
value_tab = ITAB
return_tab = return.

select single maktx from makt into mak where matnr = return-fieldval.

p_matnr = return-fieldval.

refresh return.
clear return.

move 'P_MAKTX' to dynpfields-fieldname.
move mak to dynpfields-fieldvalue.
append dynpfields.


CALL FUNCTION 'DYNP_VALUES_UPDATE'
    EXPORTING
      dyname               = sy-cprog
      dynumb               = sy-dynnr
    TABLES
      dynpfields           = dynpfields
    EXCEPTIONS
      invalid_abapworkarea = 1
      invalid_dynprofield  = 2
      invalid_dynproname   = 3
      invalid_dynpronummer = 4
      invalid_request      = 5
      no_fielddescription  = 6
      undefind_error       = 7
      OTHERS               = 8.

.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

refresh return.
clear return.

Regards

Anver

Read only

Former Member
0 Likes
585

hi ravi

1.Go to se11,

2.In Data base table-u can give any table name lfa1,vbak from which table u want f4 help,

3.In the application tool bar there will be icon-where used list.

4.press that one and u select function modules.

5.execute.

6.there u can fine so many function modules

7.with the help of description u can find the exact FM

Read only

Former Member
0 Likes
586

Hi ravi,

just call the same function mod in some program ,place cursor on that funmod and press F1,it will display all parameter descriptions.

Read only

Former Member
0 Likes
585

<b>F4IF_INT_TABLE_VALUE_REQUEST</b>

This FM is used to dsiplay values stored in an internal table as input

help.This FM is used to program our own custom help if no such input help

exists in ABAP dictionary for a particular field. The parameter VALUE_TAB is used to pass the internal table containing input values.The parameter RETFIELD

is used to specify the internal table field whose value will be returned to the screen field or RETURN_TAB.

If DYNPNR,DYNPPROG and DYNPROFIELD are specified than the user selection is passed to the screen field specified in the DYNPROFIELD. If RETURN_TAB is specified the selectionis returned in a table.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

RETFIELD = field from int table whose value will be returned

DYNPPROG = SY-CPROG

DYNPNR = SY-DYNNR

DYNPROFIELD = 'screen field'

VALUE_ORG = 'S'

TABLES

VALUE_TAB = internal table whose values will be shown.

RETURN_TAB = internal table of type DDSHRETVAL

EXCEPTIONS

parameter_error = 1

no_values_found = 2

others = 3.