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

How to create dropdown list for custom remote function module

Former Member
0 Likes
951

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
Read only

Former Member
0 Likes
643

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
Read only

madhu_vadlamani
Active Contributor
0 Likes
643

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.

Read only

Former Member
0 Likes
644

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