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

Function module for multiple selection.

Former Member
0 Likes
1,632

Hi

I have three parameters on selection screen 1. Process order number, 2.Order category and 3. order type.

My requirement is:

As i press F4 on order number and select one of the available orders, the other two fields should populate automatically with their correnponding values.

Is there any Function module for this purpose?

Thanks in advance,

Alok

5 REPLIES 5
Read only

Former Member
0 Likes
853

There is no function module, I think for this. You can handle it programmatically in the event at-selection-screen on value-request for ..

Read only

Former Member
0 Likes
853

hi,

use this FM F4IF_INT_TABLE_VALUE_REQUEST and on pressing

f4 for that field you will find the popup to select

and from there you will get the selected values..

populate the other fileds from the values which you have selected..

vijay

Read only

Former Member
0 Likes
853

Hi.

u can do like this.

after u got the f4 help on the first field and got the contents of the first field..then

first using this FM DYNP_VALUES_READ u can see wat are the contents of the parameters entered by the user..then using FM DYNP_VALUES_UPDATE u can set the contents of the otehr fields with the values as per ur wish.

boht the things shld not be written in START-OF-SELECTION.

i hope this will soLve ur pbm as i had simliar requrement

Nilesh

Message was edited by:

Nilesh

Read only

varma_narayana
Active Contributor
0 Likes
853

Hi Alok..

Check this FM:

F4IF_INT_TABLE_VALUE_REQUEST

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.

<b>The parameter RETFIELD is used to specify the internal table field whose value will be returned to the screen field or RETURN_TAB.

</b>

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.

<b>reward if Helpful</b>

Read only

Former Member
0 Likes
853

Hi,

If these fields are in your customized table,You can use search help in se11 without any function module.

Create search help for each field you want to display. choose import and export.

at last add search help in your table.