Skip to Content
author's profile photo Former Member
Former Member

How to create dropdown list for custom remote function module

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Nov 23, 2011 at 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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 23, 2011 at 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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.