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 in Table control

Former Member
0 Likes
1,087

Hi,

In a table control, for a field' f1' I am using fn. module F4IF_INT_TABLE_VALUE_REQUEST for F4-Help.

When I dbl click on field ' f1' , I get related values in a dialog box, I select one of the available value.

Now, my requiremnt is how should I let the selected value to be displayed in table control field?

Waiting for instant replies,

Thanks,

Shivaa........

5 REPLIES 5
Read only

Former Member
Read only

Former Member
0 Likes
794

Hi,

read the output value into a variable and insert that value into table control.

thanks

vinod

Read only

Former Member
0 Likes
794

t think the below code will help you.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

DDIC_STRUCTURE = 'ZFI_FLUJOS_CERG'

RETFIELD = 'ZFLUJO'

DYNPPROG = 'SY-REPID'

DYNPNR = 'SY-DYNNR'

WINDOW_TITLE = ' '

VALUE_ORG = 'S'

  • IMPORTING

  • USER_RESET =

TABLES

VALUE_TAB = I_ZFI_FLUJOS_CERG

  • FIELD_TAB =

RETURN_TAB = RETURN_TAB

  • DYNPFLD_MAPPING =

EXCEPTIONS

PARAMETER_ERROR = 1

NO_VALUES_FOUND = 2

OTHERS = 3.

IF NOT RETURN_TAB IS INITIAL.

READ TABLE RETURN_TAB INDEX 1.

D_SELECT_VALUE = RETURN_TAB-FIELDVAL.

ENDIF.

Read only

matt
Active Contributor
0 Likes
794

>

> Waiting for instant replies,

>

> Thanks,

> Shivaa........

How can you wait for an instant reply? If it's instant, then there's no waiting. If there's waiting then it isn't instant.

Seriously, it's often considered rude to ask for quick replies... please take the time to read the Rules of Engagment for these forums.

matt

Read only

Former Member
0 Likes
794

Hi,

This will help u.

PROCESS ON VALUE-REQUEST.

FIELD ZISH_PM_QR_VALCT-VRULE MODULE f4_help_valct.

MODULE f4_help_valct INPUT.

DATA : FNAME1(30).

DATA : f4_hod_vrule LIKE ddshretval OCCURS 0 WITH HEADER LINE.

DATA: field_name(40) TYPE c.

DATA: dynpfields1 LIKE STANDARD TABLE OF DYNPREAD WITH HEADER LINE.

DATA: dynpro1 LIKE D020S.

DATA: begin of it_vrule occurs 0,

vrule like zish_pm_qr_valct-vrule,

end of it_vrule.

FNAME1 = 'VRULE'.

CLEAR it_vrule. REFRESH it_vrule.

CLEAR dynpfields1. REFRESH dynpfields1.

CLEAR dynpro1.

select vrule from zish_pm_qr_valty into table it_vrule.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = FNAME

value_org = 'S'

TABLES

value_tab = it_vrule

return_tab = f4_hod_vrule

EXCEPTIONS

parameter_error = 1

no_values_found = 2

OTHERS = 3.

Read table f4_hod_vrule index 1.

IF SY-SUBRC = 0.

zish_pm_qr_valct-vrule = f4_hod_vrule-fieldval.

ENDIF.

ENDMODULE. " f4_help_valct INPUT