11-23-2011 10:09 AM
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.
11-23-2011 11:12 AM
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
11-23-2011 10:47 AM
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.
11-23-2011 11:12 AM
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