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

Module pool

Hai,

I developed this code in selection screen, but i need same output in module pool, how i can do it, which event i should use in module pool. If any one know tell me.

PARAMETERs: male RADIOBUTTON GROUP grp1 USER-COMMAND SHOWTEXT,

female RADIOBUTTON GROUP grp1,

text type text30.

AT SELECTION-SCREEN.

if sy-ucomm eq 'SHOWTEXT'. "check the user-command

if male eq 'X'.

text = 'Male option was selected.'.

elseif female eq 'X'.

text = 'Female option was selected.'.

endif.

endif.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 17, 2008 at 09:03 AM

    Hai Niyas,

    I don't like to enter after select radio button, with out enter i should display what i select in the screen.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 17, 2008 at 08:55 AM

    Hi,

    Create 2 radio buttons(male & female) and one txt field(text)in the screen. Declare a global variable g_Text.

    In PBO do the following,

    text = g_text.

    IN PAI do the follwoing.

    if male = 'X'.

    g_Text = 'u have selected male'.

    else

    g_Text = 'u have selected Female'.

    endif.

    Regards,

    Niyaz

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 17, 2008 at 08:58 AM

    Hi,

    In PAI event , create a module for e.g as shown below.

    process after input.

    *checking the Ok_code.

    module user_command_9001.

    then double click on this module, to create it and within it, write:

    case 9001_okcode.

    when case1.

    when others.

    endcase.

    9001_okcode will replace your sy-ucomm. and is declare in the Element list tab of the screen.

    Regards,

    Sooness

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 17, 2008 at 09:38 AM

    Hai Niyas,

    I tried your code but it's also not working fine, tell me any other way, here i mentioned my code

    here G_TEXT is the global declaration.

    PROCESS BEFORE OUTPUT.

    • MODULE STATUS_1000.

    PROCESS AFTER INPUT.

    Chain.

    FIELD:m,f

    MODULE change_display ON REQUEST.

    endchain.

    ----


    ***INCLUDE ZRADIO_CHANGE_DISPLAYI01 .

    ----


    &----


    *& Module change_display INPUT

    &----


    • text

    ----


    module change_display input.

    IF M = 'X'.

    g_text = 'MALE'.

    ELSEIF F = 'X'.

    G_TEXT = 'FEMALE'.

    ENDIF.

    endmodule. " change_display INPUT

    ----


    ***INCLUDE ZRADIO_STATUS_1000O01 .

    ----


    &----


    *& Module STATUS_1000 OUTPUT

    &----


    • text

    ----


    module STATUS_1000 output.

    • SET PF-STATUS 'xxxxxxxx'.

    • SET TITLEBAR 'xxx'.

    T1 = G_TEXT.

    endmodule. " STATUS_1000 OUTPUT

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      ITS WORKING...CHK IT OUT...

      data:out(25) type c.

      OUT IS NAME OF INPUT/OUTPUT FIELD IN SCREEN 9000.

      (MAKE THIS FIELD O/P ONLY).

      DATA:RAD1(10) TYPE C,

      RAD2(10) TYPE C.

      CALL SCREEN 9000.

      MODULE STATUS_9000 OUTPUT.

      OUT = 'MALE'.

      IF RAD1 ='X'.

      OUT = 'MALE'.

      ELSEIF RAD2 = 'X'.

      OUT = 'FEMALE'.

      ENDIF.

      ENDMODULE.

  • author's profile photo Former Member
    Former Member
    Posted on Jan 17, 2008 at 10:34 AM

    Hai Niyas,

    Thanks for your help, now my program is working fine, can you give your gmail id

    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.