Application Development 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: 

How to create dropdown list for custom remote function module

Former Member
0 Kudos

HI ,

I created a custom remote function module for a ztable.table having four fields.But now the requirement is to maintain the dropdown list for input parameter .

For eg: I maintain Input parameter as action.For that Action we have to maintain a dropdown list(display,insert,update and delete values ) in function module.Is it possible.

1 ACCEPTED SOLUTION

former_member1245113
Active Contributor
0 Kudos

Hi

Try using POPUP_GET_VALUES function module in the begining of the Function module this gives a POP to provide a value to you

In this you can provide a value

Check the import parameters of this Function module if it has COMBOBOX as parameter ( I dont have SAP access at this point of time) you can pass X to it so you get List box for the following fields

Create a domain to field and assing fixed values to it and use it in any table(As this works with only existing tables)

refresh fields.

DATA: fields LIKE SVAL OCCURS 0.

fields-tabname = 'MAKT'.
FILEDS-FIELDNAME = 'MAKTX'.
APPEND FIELDS.
 
CALL FUNCTION 'POPUP_GET_VALUES'  " Try copying this in a Test program and execute 
        EXPORTING
          POPUP_TITLE  = 'Enter Mail Id here'
          START_COLUMN = '5'
          START_ROW    = '5'
        IMPORTING 
          RETURNCODE   = SRETURN
        TABLES

FIELDS = FIELDS.

Cheerz

Ramchander Rao.K

Edited by: Rob Burbank on Nov 23, 2011 9:50 AM

2 REPLIES 2

madhu_vadlamani
Active Contributor
0 Kudos

Hi Ramya,

It is not possible directly f4 values in a fm.Please create a screen and keep all the buttons and update the custom table.

Regards,

Madhu.

former_member1245113
Active Contributor
0 Kudos

Hi

Try using POPUP_GET_VALUES function module in the begining of the Function module this gives a POP to provide a value to you

In this you can provide a value

Check the import parameters of this Function module if it has COMBOBOX as parameter ( I dont have SAP access at this point of time) you can pass X to it so you get List box for the following fields

Create a domain to field and assing fixed values to it and use it in any table(As this works with only existing tables)

refresh fields.

DATA: fields LIKE SVAL OCCURS 0.

fields-tabname = 'MAKT'.
FILEDS-FIELDNAME = 'MAKTX'.
APPEND FIELDS.
 
CALL FUNCTION 'POPUP_GET_VALUES'  " Try copying this in a Test program and execute 
        EXPORTING
          POPUP_TITLE  = 'Enter Mail Id here'
          START_COLUMN = '5'
          START_ROW    = '5'
        IMPORTING 
          RETURNCODE   = SRETURN
        TABLES

FIELDS = FIELDS.

Cheerz

Ramchander Rao.K

Edited by: Rob Burbank on Nov 23, 2011 9:50 AM