Radio buttons in function module.

Hi,
I have developed a function module which internally calls abap report with SUBMIT command.  However, the abap report has radio buttons on selecton screen.  So I would like to know how to define radio buttons in function module or is there any alternative to overcome this problem?
ABAP code in function module :
submit zodmr_report    with p_vkorg = bukrs
                         with s_off  in vkbur
                         with s_vtweg in vtweg
                         with s_spart in spart
                         with s_dsa in dsa
                         with s_ext in allocation_id
                         with p_yyyymm = year_month
                         and return.
( ABAP report "ZODMR_REPORT" has two radio buttons)
Regards,
Santosh

Hi,
To the best of my knowledge you need to create an IMPORT parameter of type SY-DYNNY And pass your selection screen to the FM. If this will not serve your purpose, then Instead of Standard Selection Screen with number 1000, use custom defined Screen number.
Cheers
Ram

Similar Messages

  • How to disable the inputfield using radio button dynamically in module pool

    How to disable the inputfield on the screen using radio button dynamically in module pool.
    Please suggest .
            Thanks.
    Edited by: Lavanya YH1504 on Jul 30, 2010 1:20 PM

    I got it thank you.
    LOOP AT SCREEN.
        if  screen-GROUP1 = 'LA1'.
           If RADIO1 = 'X'.
            SCREEN-INPUT = '0'.
            MODIFY SCREEN.
         ELSEIF RADIO2 = 'X'.
           screen-input = '1'.
          ENDIF.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    Edited by: Lavanya YH1504 on Jul 30, 2010 1:51 PM

  • Issue in radio button group in module pool in infotype creation

    Hi,
    I have a custom infotype,where there are six radio buttons belonging to same group for different mode of payment.Issue is when user clicks a radiobutton,a subscreen opens .there are six different subscreens when user clicks on each of the six radio buttons.
    Requirement is when user clicks one button ,one subscreen opens but the other radio buttons(whcih are eligible to be open) gets disabled .I have tried to handle the issue manually through coding ,but i think the issue is with the radiobutton grouping.
    How to make the other radio buttons open for input even when the user has clicked on one button and the subscreen opens corresponding to the screen so that the imemediately ther user clicks on another radio button and get the corresponding subscreen opened for him.Pls advise.

    I have written a custom module in PBO section of my custom infotype.There i have written this code:-
    LOOP AT SCREEN.
        READ TABLE  fp_it_payment_opt_open INTO wa_payment_opt_open WITH KEY scrname = screen-name.
        IF sy-subrc = 0.
          screen-input = c_input_on.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    The internal table it_payment_opt contains all the radio buttons and checkboxes and is populated when the radio buttons and checkboxes are turned input on while modifying the screen depending upon course of my price and personnel subarea.
    While calling subscreen area in PBO,the radiobuttons get into a state of input-off automatically.so i have written a z-module after
    the module hidden_data .
    PROCESS BEFORE OUTPUT.
            general infotype-independent operations
      MODULE before_output.
      CALL SUBSCREEN subscreen_empl   INCLUDING empl_prog empl_dynnr.
      CALL SUBSCREEN subscreen_header INCLUDING header_prog header_dynnr.
            infotype specific operations
      MODULE p9300.
      CALL SUBSCREEN subscreen_area INCLUDING subscr_prog subscr_dynnr.
      MODULE hidden_data.
      module z_open_paymnt_optns.
    My problem has been solved ,hence am closing the thread.Thanks to all of you.

  • Radio buttons disabling functionality in OOPS ALV

    Hi,
    I am facing this peculiar problem in OOPS ALV. the requirement was to have a field and 2 radio buttons in ALV as editable when user clicks on CHANGE mode. but initially the table should be in display mode.
    I have used the icons in ALV to provide the radio button functioanlity and its working.. but cant find solution to these 2 issues:
    1) how to make radio button display only ?
    2) when appending a new row in the ALV, its just appending a row with 4 columns ( 2 of field and 2 of radio button), but it is not able to append icons by default.
    KIndly provide help on this. let me know if u need to clarify anything..
    Thankx in advance,
    Rohan Malik

    Hi Rohan,
    Not sure whether I understood your question correctly. I cant visualise your output .
    To add icons while appending a new row to the output
    First of all you need to have  a field icon ( of type icon_d ) in your output table.
    While appending the row you have to explicitly right the icon name to that field
    l_record-icon = '@#12' something like that  which you get from the type pool icons

  • PCUI Button - Call Function Module

    Hi,
      In CRMM_ACCOUNT Application, Relationships tab, I want to add a Button, which will pass the Selected Contact Person to a FM in CRM. Is there a way to do that?
    Thanks in Advance,
    Ranjan

    Hi Abdul,
             I want to pass the Selected Contacts to the FM and then generate VCard Files. Those files will be EMailed to the User who clicked on the button. That way we will be able to move the CRM Contact Data to Outlook. We have not implemented Groupware Integration and we want to have this work around till we get that functional.
    Thanks,
    Ranjan

  • How to add push button in function module

    I want to add Push button( yes/no) in same screen. I used POPUP_TO_CONFIRM,
    but this popup is coming on next screen when I click on cancel button.

    There is no scope to create a push button in application tool bar. Instead of that we can add in a menu bar.

  • Disabling fields on the basis of radio button selected

    Hi experts,
    I have a requirement where in i have a dialogue screen which has radio buttons and few other input fields.
    when i check a radio button on the screen i have to get an input field greyed out on the same screen immediately.
    i have grouped the input fields to be greyed out as GR1.
    i used the following code in the PBO of the screen which is not working,
    if  oradio eq 'X'.
          loop at screen.
            if screen-name = 'S_CREATE'.
              screen-group1 = 'GR1'.
              screen-input   = 0.
            endif.
            modify screen.
          endloop.
    endif.
    please give some input.

    Hi
    *Hello Just do the Following.*
    *" I think you are missing the below Grouping Part otherwise your code looks ok*
    *go to EDIT -->Grouping--> Radio Button Group --> Define " before this select all the Radio Buttons.*
    *all the radio button names should be r1, r2, r3 etc as declared above " Make their names same whatever you give.*
    *" Assign a Function Code for them So that automatic PAI/PBO will Take Place once you select a radio Button*
    In TOP include/ Global area declare no of radio buttons.
    data : r1, r2, r3. etc " Default they take char with one length.
    if you are in Dialog program
    " I think you are missing the below Grouping Part otherwise your code looks ok
    go to EDIT -->Grouping--> Radio Button Group --> Define " before this select all the Radio Buttons.
    all the radio button names should be r1, r2, r3 etc as declared above " Make their names same whatever you give.
    " Assign a Function Code for them So that automatic PAI/PBO will Take Place once you select a radio Button
    in PBO
    module modify_screen.
    Now in Program
    Module modify_screen.
    if r1 = 'X'.
    loop at screen.
    if screen-group1 = 'GRP'.
    screen-input = 0 " or 1.
    modify screen.
    else" implement for other Radio buttons
    endloop.
    endmodule.
    Cheerz
    Ram

  • 1...how to find that a function module belongs to normal function module or

    Hi to all.........
    1...how to find that a function module belongs to normal function module or remote enabled function module?
    Thanks and regards,
    K.Swaminath reddy

    Hi Swaminath,
    Go to Transaction SE37.
    In The Remote enabled function module, in the Attribute tab radio Button "Remote Enabled module will be selected and in the Normal Function Module, Normal Function Module will be selected.
    Regards,
    Mukesh Kumar

  • Idocs - Inbound function module

    Hi All,
    I'm facing a prolem while testing the inbound function module thru transaction WE19.
    The steps i'm following.
    1) i'll give the message type & will proceed further
    2) when i select the idoc & click on the push button "inbound function module " , My Z FM will displayed afterwards when i press enter a error message will be displayed.as"Interface for the Z function module is Incorrect"
    i have created Z funtion module, Z message type,Z IDOC type,Z segment type. Z process Code
    All the configuration like WE57,WE20,WE42 has been done.
    Please help.
    Points will be rewarded
    Thanks,
    Sureshkumar

    Suresh , please check if ure function module interface is as per the template below:
    IMPORTING     
         INPUT_METHOD LIKE  BDWFAP_PAR-INPUTMETHD
         MASS_PROCESSING  LIKE  BDWFAP_PAR-MASS_PROC
    EXPORT     
         WORKFLOW_RESULT  LIKE  BDWFAP_PAR-RESULT
         APPLICATION_VARIABLE  LIKE  BDWFAP_PAR-APPL_VAR
         IN_UPDATE_TASK  LIKE  BDWFAP_PAR-UPDATETASK
         CALL_TRANSACTION_DONE  LIKE  BDWFAP_PAR-CALLTRANS
    TABLES     
         IDOC_CONTRL STRUCTURE  EDIDC
         IDOC_DATA STRUCTURE  EDIDD
         IDOC_STATUS STRUCTURE  BDIDOCSTAT
         RETURN_VARIABLES STRUCTURE  BDWFRETVAR
         SERIALIZATION_INFO STRUCTURE  BDI_SER
    This is the general required format for IDoc inblund processing using FM.
    Message was edited by:
            Ayan Banerjee

  • To add radio buttons .

    Hello every one....
    I want to add 3 radio buttons in my module pool program.
    how is it possible.
    I need help....

    Hi Subhash...
    Open the Screen Layout
    Place three RADIO BUTTONS  on the Screen with Names : R1 , R2 , R3.
    You have to Group them
    First Drag around the Radiobutton and then select the menu path:
    EDIT->GROUPING->RADIOBUTTON GROUP->DEFINE.
    You have to declare single Char variable for each Radiobutton in TOP inclulde.
    DATA : R1, R2, R3.
    You can check them in PAI module like this
    CASE 'X'.
    WHEN R1.
    WHEN R2.
    WHEN R3.
    ENDCASE.
    <b>Reward if Helpful</b>

  • Inbound scenario: Z inbound function module

    Hi chaps,
    I have a standard Idoc Type that should be processed by an individual inbound function module.
    The processcode is BAPI as the IDoc is mapped to a BAPI.
    I thought I could use the message code or function. But the standard inbound function module BAPI_IDOC_INPUT1 is executed (at least in WE19) all the time.
    Can somebody please tell me how I can trigger my Z inbound function module?
    Thanks.
    Achim

    Hi Achim,
    If you want to process the IDOC with the help of your custom function module, then you need to following things:-
    1. Create the custom function module
    2. Assign the function module to the Message Type in WE57 transaction
    3. Define Setting for the custom function module in BD51 transaction
    4. Create a new Process Code in WE42 transaction
    5. Assign this new Process in the PArtner profile in WE20 transaction
    Once you complete all the above steps then you can process your IDOC with your custom function module automatically.
    If you want to use WE19 transaction to test the IDOC with your custom function module you can follow the below steps as well:-
    1. Create your IDOC using WE19 transaction
    2. Click the button Inbound Function module and then give your custom function module and click the tick mark in the pop up.
    By doing the above 2 steps you can test whether your function module is correctly working or not as well.
    Thanks,
    Mahesh.

  • Looping thru instance manager and checking radio button selected

    I need to loop thru my instances and toggle visible/hidden if a particular radio button in each instance is selected.
    My code right now does not work but I feel I am on the right track (minus the else statement it will need to toggle on/off).
    Can anyone help? thanks in advance!
    var rowCount = BugGroup_f.instanceManager.count;
    for (i=0; i<rowCount; i++) {
    var str = xfa.resolveNode("BugGroup_f.detail3.bugInfo.BugItem.status.RadioButtonList[" + i + "]").rawValue;
        if (str.indexOf("Fixed") > -1) {
        xfa.resolveNode("BugGroup_f["+rowCount+"]").presence = "hidden"

    So we've got a set of Rows, each with a subitem called RadioToggle, and you want to go through and set them all, then click a separate button and hide the ones with "on" radio buttons?
    function ToggleRows(reset){
         var Rows = Form.subform....BugGroup_f.all;
         var curRow;
         for (var i=0; i<Rows.length; i++){
              curRow = Rows.item(i);
              if ((curRow.RadioButton.rawValue == "WhatevermeansHidden") && !reset){
                   curRow.presense = "hidden";}
              else{
                   curRow.presense = "visible";}
    ^ in a script object, and put
    scriptObjectName.ToggleRows(reset);
    in the click event of your button, and you should be golden.
    If you do want them to hide the moment you click the toggle, you could put this, right?
    if (xfa.event.newText == "whatevermeansoff"){
         parent....presense = "hidden";}
    The .all method seems like a much easier way to handle collections of objects, and specificaly collections of instances. It also means you can do relative referencing, i.e. to create a function that will operate on all the rows of a table, without knowing which table it is operating on, so a button in each table can pass it's parent table to the function.
    var GroupVariable = Object.all
    for(var i=0; i < GroupVariable.length; i++)
    EDIT:
    add a reset value, and pass it in to your function like above (added).
    make a separate button, or control, that will call the function with reset = 1.

  • Assigning a function code to radio button in 4.5B

    I’ve a requirement wherein I need to trigger the PAI event in a module pool program when I select a particular radiobutton in a group and do some processing subsequently.
    For this I need to assign a function code to the radiobutton group.
    But the function code field is disabled for input in the properties screen of the layout. Our client system is SAP 4.5B.
    I am able to assign function codes to radio button groups in esuides(4.6C) and other systems.
    I want to know whether we can assign a function code at all to a radio button group in version 4.5B.
    If so, please tell me how to do this.
    With regards,
    ramu.

    Hi,
    we can't assign function codes to radio buttons.
    for assigning some code to radio button.check the radio button status.
    in PAI.
    if RAD1 = 'X'.
    xxxxxxxxxxx.
    xxxxxxxxx.
    elseif RAD2 = 'X'.
    xxxxxxxxx.
    xxxxxxxxxxxx.
    endif.
    regards,
    bharat.

  • Func- Code for Radio-button in Module-pool Prg.

    Hi Friend's.
    I have define 2 Radio button
    on Module-pool screen.
    I am not been able to triger the Radio button in
    Pai .
    How can i assign the function code for
    radio-button in module-pool.
    pls can any one help me

    Hi,
    For radion buttons, what ever the name you will give that name only will hold that value ( Either selected or not ). But this variable should be declared as global variable in main program.
    Still if you want to assign function code, you can assign one like other fields on the screen.

  • Radio button in module pool

    In ordinary report programs, if we want to change screen value according to the selection of radion button, we use user command and at user command options.
    But how do i do it in module pool programming.
    Like in module pool if i select one radio button some input fields should be non edidtable.

    Hi,
    DATA: OK_CODE TYPE SY-UCOMM,
          PROCESS_CODE TYPE SY-UCOMM.
    <b>In PAI</b>
    MODULE USER_COMMAND_0100.
       PROCESS_CODE = OK_CODE.
      CLEAR OK_CODE.
      CASE PROCESS_CODE.
    WHEN 'RADIO'. " RADIO is the function code for the radibuttons.
          IF R1 = 'X'.
            R2 = SPACE.
          ELSEIF R2 = 'X'.
            R1 = SPACE.
          ENDIF.
      ENDCASE.
    Hope this helps.
    Reward if helpful.
    Regards,
    Sipra

Maybe you are looking for

  • Changes not being published

    I'm having trouble with my changes not being saved/published. I can choose to edit a page, click publish... it then shows the page (in contribute) with my changes. But, when I go to the actual website, the changes are not there... and when I go back

  • Adobe Acrobat 9 pdf files won't save on windows 8

    Since transfering my program to Win8, I have been unable to get my Adobe pdf documents to save. They just disappear after naming them.

  • No navigation bar/menu in IE8

    After posting site to a local folder have a trouble in viewing navigation bar in internet explorer 8. All works good in Safari, Mazilla, google Crome. how to solve this issue?

  • I cannot connect to the internet to validate my serial number for Premiere Elements 12

    Hi I have checked the firewall and security and privacy settings and allowed every program and site I believe are relevant.  I have six days remaining to validate my program.  Is there something else I can do to allow the connection?  Validating offl

  • Uninstalling PSCS6 & Lightroom 5 now that I am a CC member, or not?

    I know that you don't have to uninstall previous versions of Creative Suite when installing Creative Cloud, but I think I would like to so that I can avoid having two versions of Lightroom (4 & 5) and two versions of Photoshop (CS6 & CC) on my comput