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.

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

Similar Messages

  • Issue in creating web service for a ABAP Function Module

    Hi,
    now i'm learning how to create web service for a ABAP Function Module. I used the following steps.
    1. select the Function Module, named "zws_test".
    2. in the context menu, select "create->proxy object". so we enter into wizard.
    3. in the wizard, press the radio button "Service Provider".
    4. in the next page, press the radio button "Existing ABAP Objects(Inside Out)".
    5. In the next page, Enter the "zws_test_prvider" as Service Definition and select "Function Module" as Endpoint Type.
    6. in the next page, enter "zws_test" as Function Module and mark the "Mapping der Namen" button
    7. in the next page,select "PRF_DT_IF_SEC_LOW" as Profile and mark "Deploy Service".
    8. Save in the local package.
    9. then it will pop up a window with title "WSDL Source". i selected "URL/HTTP Destination" and press "OK".
    10.in the next page, i enter the URL as "http://hostname:portnumber/", and press "OK".
    11. then it will pop up a window with title "Display logs". A record with error message "HTTP error(return code 404, message "Not found")" appears.
    12. i press "ok" and a service provider with name "zws_test_prvider" appears in my local package.
    13. i use "zws_test_prvider"'s URL to create a service consumer "ZCO_WS_TEST_CONSUMER" and logic portal "LP1".
    14. But when i test my service consumer "ZCO_WS_TEST_CONSUMER", it will throw an exception "cx_ai_system_fault" with errortext "SOAP:14 Unexpected element -el=definitions ns=http://schemas.xmlsoap.org/wsdl/".
    15. I use t-code SM59 to test connection  and get the following info.
          Status HTTP Response     200
          Status Text                      OK
          Duration Test Call             328 ms.
    who can give me the reasons about item 11 and 14, and explain me how to create service provider and service consumer for a Function Module.
    Thanks in advance
    Johnney

    have you seen this weblog
    /people/thomas.jung3/blog/2004/11/15/bsp-150-a-developer146s-journal-part-xiii-developing-abap-webservices

  • What is the exact syntax for calling remote function module.

    Hi to all
    1.....what is the exact syntax for calling remote function module.?
    Thanks and regards,
    k.swaminath reddy

    hi
    good
    Lets do simple example where you will first create a RFC in one server (say A) and create normal program in othere server (say B). Finally you will call the RFC in A from B.
    Do the following steps for creating RFC in server A.
    1. log on to server A
    2. go to se37
    3. Edit -> function groups-> create function group and give the function group name (say ZGRP).
    4. create a FM ( say Z_TEST_RFC) in se37 providing the function group which is created just now.
    5. go to attribute tab -> choose remote-enabled module from processing type.
    so that your FM will become RFC.
    6. provide the import parameter in import tab.
    we will provide only two import parameters.
    - parameter name : P_NUM1, typing: TYPE, associated type : I & check the pass value (all the parameters of RFC must pass by value).
    - parameter name : P_NUM2, typing: TYPE, associated type : I & check the pass value
    7. provide the export parameter in export tab.
    parameter name : P_SUM, typing: TYPE, associated type : I & check the pass value
    8. write the given simple code in source code tab.
    FUNCTION Z_TEST_RFC.
    P_TOT = P_NUM1 + P_NUM2.
    ENDFUNCTION.
    Do the following steps for creating ABAP program which will call the RFC in server B.
    1. se38 - > creat a program.
    2. write the given simple code.
    data tot type i.
    call function 'Z_TEST_RFC' destination 'XXXXXX'
    exporting
    p_num1 = 10
    p_num2 = 15
    importing
    p_tot = tot.
    write tot.
    please note that XXXXXX is RFC connection which is avialable in sm59 transaction in server A.
    -go to sm59 - > abap connection (list of RFC connection configurations are avialable). choose server B connection and replace it of XXXXXX in the code.
    finally you can execute the normal abap program that will call the RFC and display the result.
    reward point if helpful.
    thanks
    mrutyun^

  • How to create number range for custom object

    Hi all,
    I want to create number range for custom object or custom tables
    Thanks
    Hemalatha

    Hi,
       Thanks, I am able to create a number range for custom object through SNRO tcode.
    Thanks
    Hemalatha

  • How to put dropdown list for a field in MIGO

    Hi all,
    I added a new tab in MIGO by using the BADI  MB_MIGO_BADI
    in that tab for one of the field i have to put dropdown list (some static values)
    i tried VRM_SET_VALUES , but how to pass the static values to the screen field as dropdown list.
    please help on this issue.
    Thanks,
    Satish

    Hi,
    The logic u told is right it should work.
    PROCESS ON HELP-REQUEST.
      FIELD MSEG-VENDTYPE MODULE HELP.
      PROCESS ON VALUE-REQUEST.
      FIELD MSEG-VENDTYPE MODULE HELP_VENDOR.
    MODULE HELP_VENDOR INPUT.
    *break-point.
      wa_values-key = 'M'.
    wa_values-text = 'Manufacturer'.
    append wa_values to values.
    clear wa_values.
    wa_values-key = 'FD'.
    wa_values-text = 'First Stage Dealer'.
    append wa_values to values.
    clear wa_values.
    wa_values-key = 'I'.
    wa_values-text = 'Importer'.
    append wa_values to values.
    clear wa_values.
    wa_values-key = 'DI'.
    wa_values-text = 'First stage or Second stage dealer of Imported Goods'.
    append wa_values to values.
    clear wa_values.
    wa_values-key = 'MD'.
    wa_values-text = 'Manufacturers Depot or Consignment Agent'.
    append wa_values to values.
    clear wa_values.
    wa_values-key = 'SD'.
    wa_values-text = 'Second stage dealer of Indeginious Ecisable Goods'.
    append wa_values to values.
    clear wa_values.
    CALL FUNCTION 'VRM_SET_VALUES'
      EXPORTING
        ID                    = '01'
        VALUES                = VALUES
    EXCEPTIONS
       ID_ILLEGAL_NAME       = 1
       OTHERS                = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDMODULE.                 " HELP_VENDOR  INPUT
    *&      Module  HELP  INPUT
          text
    MODULE HELP INPUT.
    if sy-uname = 'ABAPUSER'.
      break-point.
    endif.
    ENDMODULE.                 " HELP  INPUT
    Process on help req is triggering on pressing the F1 help but process on value req is not triggering on pressing F4 it is triggering before the screen display i.e in PBO can u tell wat might be the problem.
    Thank u very much.

  • How to create Contract or Move-in using Function module

    Hello Gurus,
    I'm looking for a way to create contract(Move-in) using Function module.
    Please help me out...
    Thanks in advance,
    Rajesh

    Hi Rajesh,
    Please try this: BAPI_ISUMOVEIN_CREATEFROMDATA
    Regards,
    S

  • How to create Pager Number for Customer contact in VAP1 or XD02

    HI ,
       I am trying to mass upload Customer contact data , there is pager number to be uploaded . but when i do it through BDC . Its doesnt record the ALV pop up as there no screen fields as it is not a program screen .
      So BDC selects only the first item in the list , which is FAX number . So i cant upload Pager number through BDC .
      Does there any method available to do the same ? i tried direct upload also but seems tedious .
    Waiting for reply ,

    You would do it the way I created it:
    Select the Text tool in Photoshop and set the font and parameters as I have listed.  Then enter whatever text you like.  It will be rendered over the top of the lower layers you may have in the document.  Save as an image of the appropriate type and you're there.
    Note that "lower layers you may have in the document" could conceivably be none at all (i.e., you render the text over a transparent document).  You could imagine saving that as a .png with transparency and get light text in an image that could then be put over the top of anything else.  The alpha mixing will see to it that the edges smoothly blend with the background.  I haven't actually tried this (I usually do try my own suggestions) because of lack of time right now.
    -Noel
    Edit:  Markerline and I seem to be on the same crystal-controlled wavelength. 

  • ALE/IDOC-How to create Change Pointers for Custom Infotype

    Hi,
    My requirement is to transfer custom OM infotype changes using IDOCs.
    But its not creating any change pointers for that infotype.
    The message used is a copy of standard message OM_HRMD_A.
    Can any one please help me out in this issue.
    Thanks,
    Sarika

    Hi Sarika,
    How did you solve this issue? We are also facing a similar problem, it will be helpful if you could explain how you found out the solution.
    Thanks
    Anu.

  • How to Create Transport Request For custom table

    Hello All,
    I have and requirement to create transport request automatically when and record inserted in to the custom table.
    Actually FI whe people create or delete  some bank account from DEV client the transport request  creates automatically and they transport that request to Quality and Production system to delete or create that account from all the systems.  but when they delete the account all the informations related to that bank accounts get deleted from all the standered customize tables .  to keep the track of that deleted account I have created one z table which is of type customize table. this table is filled automatically when any account get deleted from DEV system. now I want to pass that record to Quality and Production systems using transport request.
    how can i create transport request when record get inserted into my ztable automatically.
    Thanks in advance.
    Vinod

    Hello All,
    This is a FAQ and has been answered many times before in the forum.
    1. Maintain delivery class 'C' it will start asking for a TR: False. Delivery class has got nothing to do with the TR prompt. It determines how the data is to be transported. A delivery class 'C' will prompt for a customizing request, whereas a delivery 'A' will prompt for a workbench request.
    2. For the system to automatically prompt for a TR you have to select the "Standard Recording Routine" in the table maintenance generator. This will prompt you for a TR every time you try to create / modify a record & save it to the DB.
    Hope i am clear in my explanation.
    If your table is filled automatically through some coding you have to add the entry to the TR programmatically. Check this link for details: [http://wiki.sdn.sap.com/wiki/display/ABAP/TransportingTableEntriesinABAPprogrammatically|http://wiki.sdn.sap.com/wiki/display/ABAP/TransportingTableEntriesinABAPprogrammatically]
    BR,
    Suhas
    Edited by: Suhas Saha on Mar 31, 2010 11:22 AM

  • How to create an Alert for customer birthday

    Hello,
    We need to create an alert on the context area - alerts area - when we meet a customer that have a birthday today.
    Does anybody know how to do it? steps to do it?
    thanks in advance
    Sara

    Hello Sara,
    You can change either the colour of the alert that is displayed in the first row (first alert) or the second row (second alert) or both.
    You will have to modify the stylesheet for this. Here are the instructions.
    (I assume want a red coloured alert)
    1. Open BSP Application CRMCMP_IC_FRAME in SE80.
    2. Open for Change MIMES/stylesheets/contextarea/<SKIN>/crmcmp_ic_frame_contextarea.css in Notepad (or any text editor)
    3. Search for the string '.firstalert' (without the single quotes)
    4. For red coloured top alert, change the above string to '.firstalert' (without the single quotes)
    5. Search for '.secondalert' and replace it with '.secondalert'.
    6. Save the file and quit notepad.
    7. Clear the web browser cache and the ICM Cache (tx. SMICM=>menu Goto=>HTTP Server Cache=>Invalidate=>Global In System)
    8. Start ICWebClient and send an alert.
    Regards,
    Kiruthika

  • How to create the data for custom objects in pList

    Hi,
    I am new in developing on iPhone and I don't know much about this area. I would like to ask a question. I couldn't find the answer on this question in apple documentation but I hope Internet community will help me.
    Lets say I have a class called classA. The classA has 2 public properties (or fields):
    *int customIndex*;
    and
    NSString *customTitle;
    My view controller class showMeSomething has a property NSArray which holds the objects of type classA. I would like to load the array from the plist resource file. How do I edit the resource file with initial values or how do I know the format of the plist which can be loaded from using mainBundle for my array of custom objects?
    Thanks!

    Here's some info on working with plists:
    http://developer.apple.com/documentation/Cocoa/Conceptual/PropertyLists/Introduc tion/chapter1_section1.html
    They can be edited with any text editor. Xcode provides a graphical editor for them - make sure to use the .plist extension so Xcode will recognize it.

  • How to create dropdown list in table

    dear friends,
                         i created one table in dynpro. In table i have one column dropdown by index. when i changed the value in dropdown box , same value reflect in all row in addition of row where i selected the value. please somebody tell me what i should do????
    regards,
    sunil sharma

    Hi,
    If you have got 10 rows, In the first row if you have selected some value from dropdown then you want to have this same value
    to be shown across the other rows of the same column right. Also for the new row you want the same value right.
    if this is the case, then first implement the action for leadselect for that dropdown.
    if your node has 3fields, empno, begda, endda. for ex: endda is the dorpdown by index.
    In the OnleadSelect event -
    Write this code -
    You will get the element right. for that element get the record using
    get_static_attributes into ls_table1.
    Now,
    loop at lt_table into ls_table.
    ls_table-endda = ls_table1-endda.
    modify lt_table from ls_table index sy-tabix.
    endloop.
    lo_nd_node->bind_table( lt_table).
    Or
    Also try this out.
    Using the GET_ELEMENTS of IF_WD_CONTEXT_NODE
    loop at lt_elments into ls_elmenets.
    ls_elements->set_attribute
    exporting
    name  =  `ENDDA`
    value =   ls_table1-endda.
    endloop.
    Regards,
    Lekha.
    Edited by: Lekha on Sep 30, 2009 12:00 PM

  • How to create OVS help for custom field in OIF?

    Hi All,
    I have a requirement where i need to add custom field and display F4 help. I have added the custom field but how to add OVS search help to field as i need to pull data from db tables based on certain creteria.
    Please explain with steps.
    Thanks,
    Vimal

    Hi James,
    Thanks for reply.
    I checked few things you mentioned and here are the findings:
    1) Following is the code i have written it GET_DEFINITION
      ls_descr_attr-name = 'ZZ_APPOINT_AUTH'.
      ls_descr_attr-label_text = 'Appointing Authority'.
      ls_descr_attr-ovs_name = 'ZCL_INC_BINF_CLAS_UI_FRM'.
      APPEND ls_descr_attr TO et_field_description.
    is this enugh to identify which field  we want to make an OVS help? because suppose if don't implement all other pharses and only provide above code in Get_Defination then will it show me F4 icon atleast on field?
    2) DDIC_SHLP_NAME field is blank. And there are no duplicate records.
    3) I tried putting break point in HANDLE_PHASE0() and all other phases but debugger does not run while starting the application.So do we need to call these methods at some point or they are called automatically ?
    Thanks for your help.And let me know of any other details required.
    Thanks,
    Vimal

  • How To create number range for custom BO

    Dear All,
    I have created a Custom Business Object and i have created its alternative key.. I want an Internal number range to be used against that alternative key.
    How do i achieve this functionality?
    Regards,
    Dhruvin

    Hi Dhruvin,
    Find the below discussion where I answered to generate number.
    Does anyone have sample code to auto generate Alternate key/ID field data
    in this example number will start from 1, you can enter your own starting number.
    If it help you or  have any doubt, let me know.
    regard
    Sunil

  • How to create express document for custom screen

    Hi All,
              I am working on ALV OOPS report. Created one container and splitted into 3 parts. One for header 2nd for ALV GRID and 3 rd bottom/footer part. I want option SEND on report that will create express document. however there is option SEND for ALV grid only. I want this for complete report not only for alv grid. Could anybody help me to get the solution? Is there any FM for it???

    Prabhu Peram wrote:>
    > >
    Gareth @ Atos Origin UK wrote:
    > > Prabhu,
    > >
    > > You have been on SDN a long time and have a decent amount of points - why do you feel the need to simply cut and paste standard SAP documentation? _-----> I least bother abt the Points, and i never ask somebody to give points to me , if u have any doubt on it , u can check all my postings ? All it does is fill up the SDN servers with replicated data which the original poster could quite easily access themselves via SE37----> Sorry I have seen ur Posting/Reply,dont assume that i do copy & paste for sake of Points.Njoy SAP.>
    > > Gareth.
    >
    >
    >
    > regards
    > Prabhu
    Prabhu.
    I didn't question you about points at all - I was making the point that you have been on SDN a long time and have a lot of points.  Therefore you should know better than to simply cut and paste standard SAP help.  If you don't copy and paste for sake of points, what do you do it for?  It serves no purpose other than to fill up the servers here on SDN.  The original poster appears to have access to a SAP system and SE37 and wants to know how to call a BAPI - they can easily go to SE37 and read the documentation themselves.  Posting it here just adds noise and makes searching harder, as well as taking up more and more space on SDN servers.
    Gareth.

Maybe you are looking for