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

Default value in a field using F4IF_INT_TABLE_VALUE_REQUEST

umberto_panico
Participant
0 Likes
719

Hi!

Is possible to visualize a value of default on a field, in the markings out of a search help?

I create a f4 helper using F4IF_INT_TABLE_VALUE_REQUEST.

Thanks,

Umberto

Message was edited by:

Umberto Panico

Hi!

Is possible to visualize a value of default on a field, in the markings out of a search help?

I create a f4 helper using F4IF_INT_TABLE_VALUE_REQUEST.

Thanks,

Umberto

Message was edited by:

Umberto Panico

2 REPLIES 2
Read only

Former Member
0 Likes
498

Hi Umberto Panico ,

you can do it but it will become a bit tedious.

You need to implement ALV and then pass your data into the container and display it...Then while displaying the list you can invoke the mouse pressed event to choose your default row.

However F4IF_INT_TABLE_VALUE_REQUEST cannot be used....

Hope this solution was helpful

PS : Please award points if helpful.

Read only

Former Member
0 Likes
498

Hi,

go through the following Code

TABLES : MARD.

DATA: BEGIN OF IT_MARD OCCURS 0,

WERKS LIKE MARD-WERKS,

END OF IT_MARD.

DATA : T_RETURN TYPE STANDARD TABLE OF DDSHRETVAL WITH HEADER LINE.

parameters : P_WERKS LIKE MARD-WERKS.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_WERKS.

SELECT WERKS FROM MARD UP TO 10 ROWS INTO table IT_MARD.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

RETFIELD = 'WERKS'

DYNPPROG = SY-REPID

DYNPNR = '1000'

DYNPROFIELD = 'P_WERKS'

VALUE_ORG = 'S'

TABLES

VALUE_TAB = IT_MARD

RETURN_TAB = T_RETURN

EXCEPTIONS

PARAMETER_ERROR = 1

NO_VALUES_FOUND = 2

OTHERS = 3.

Thanks & regards

Sreenivasulu P