Module - pool Question..?

Hi,
The select-option functionality is not working in the Module pool...
SELECTION-SCREEN BEGIN OF SCREEN 1030 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF BLOCK b4 WITH FRAME TITLE text-003.
SELECT-OPTIONS: o_ledger FOR zsfiglscr_chead-nrldnr .
SELECTION-SCREEN END OF BLOCK b4.
SELECTION-SCREEN END OF SCREEN 1030
Then we are calling that selection screen in sub-screen  area. For that the developers have written following code in the PBO of module pool screen.
CALL SUBSCREEN sub1 INCLUDING 'SAPMZFIGL_ALLOCATION'  v_dynnr.
Now the select options functionality is not working...i chked the field zsfiglscr_chead-nrldnr and it has a search help attached to the data element...what can be the reason...please provide some inputs...
Cheers:Sam

I've tried various combinations and they all work in an ECC system... can you try the report below out in your system and check which of the 3 options used work and don't work for that F4 help (you'll need to create a screen 9999 as described in the sample code:
report zlocal_jc_sdn_query1.
tables:
  bpvc,  "a structure with rldnr in it
  t881.  "Ledger Master
data:
  g_char2(2)            type c,
  g_dynnr               like sy-dynnr.
*=======================================================================
* subscreen demo 1
selection-screen begin of screen 1030 as subscreen.
selection-screen begin of block b4 with frame title text-003.
select-options:
  s_rldnr               for bpvc-rldnr,
  s_rldnr2              for t881-rldnr,
  s_rldnr3              for g_char2    matchcode object h_t881.
selection-screen end of block b4.
selection-screen end of screen 1030.
* subscreen demo 2
selection-screen begin of screen 1040 as subscreen.
selection-screen begin of block b2 with frame title text-003.
parameters:
  p_1                   type c length 10.
selection-screen end of block b2.
selection-screen end of screen 1040.
* Main screen
selection-screen:
  begin of tabbed block mytab for 10 lines,
    tab (20)    button1 user-command push1 default screen 1030,
    tab (20)    button2 user-command push2 default screen 1040,
  end of block mytab.
*=======================================================================
start-of-selection.
  clear: g_dynnr.
  call screen '9999'. "screen with a bit of text + sub1 subscreen
**which has just:
** process before output.
**   module pbo_9999.
**   call subscreen sub1 including sy-repid g_dynnr.
** process after input.
**   module pai_9999.
*  MODULE pbo_9999 OUTPUT
module pbo_9999 output.
  if g_dynnr is initial.
    g_dynnr = '1030'.
  else.
    g_dynnr = '1040'.
  endif.
endmodule.                    "pbo_9999 OUTPUT
*  MODULE pai_9999 INPUT
module pai_9999 input.
  if sy-ucomm = 'ZEXIT'. "Exit button on screen
    leave program.
  endif.
endmodule.                    "pai_9999 INPUT

Similar Messages

  • Module pool question -table control related

    Hi All,
    I have table control with field mark some input enabled fields in it Now the problem is  when i change the content of one row and select that row then control goes to modue in PAI which is called on ON REQUEST but the changed vaule is not capturing in it only slected row with previous content come in that module . Can u suggest some solution or neccessary setting to be done in attribute of tabe control?
    If possible provide code for it
    Thanks
    Parag

    Hi,
       Please go through the following code below to solve your issue.
    REPORT demo_dynpro_tabcont_loop_at.
    CONTROLS flights TYPE TABLEVIEW USING SCREEN 100.
    DATA: cols LIKE LINE OF flights-cols,
          lines TYPE i.
    DATA: ok_code TYPE sy-ucomm,
          save_ok TYPE sy-ucomm.
    DATA: itab TYPE TABLE OF demo_conn.
    TABLES demo_conn.
    *SELECT * FROM spfli INTO CORRESPONDING FIELDS OF TABLE itab.*
    LOOP AT flights-cols INTO cols WHERE index GT 2.
      cols-screen-input = '0'.
      MODIFY flights-cols FROM cols INDEX sy-tabix.
    ENDLOOP.
    CALL SCREEN 100.
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'SCREEN_100'.
      DESCRIBE TABLE itab LINES lines.
      flights-lines = lines.
    ENDMODULE.
    MODULE cancel INPUT.
      LEAVE PROGRAM.
    ENDMODULE.
    MODULE read_table_control INPUT.
      MODIFY itab FROM demo_conn INDEX flights-current_line.
    ENDMODULE.
    MODULE user_command_0100 INPUT.
      save_ok = ok_code.
      CLEAR ok_code.
      CASE save_ok.
        WHEN 'TOGGLE'.
          LOOP AT flights-cols INTO cols WHERE index GT 2.
            IF  cols-screen-input = '0'.
              cols-screen-input = '1'.
            ELSEIF  cols-screen-input = '1'.
              cols-screen-input = '0'.
            ENDIF.
            MODIFY flights-cols FROM cols INDEX sy-tabix.
          ENDLOOP.
        WHEN 'SORT_UP'.
          READ TABLE flights-cols INTO cols WITH KEY selected = 'X'.
          IF sy-subrc = 0.
            SORT itab STABLE BY (cols-screen-name+10) ASCENDING.
            cols-selected = ' '.
            MODIFY flights-cols FROM cols INDEX sy-tabix.
          ENDIF.
        WHEN 'SORT_DOWN'.
          READ TABLE flights-cols INTO cols WITH KEY selected = 'X'.
          IF sy-subrc = 0.
            SORT itab STABLE BY (cols-screen-name+10) DESCENDING.
            cols-selected = ' '.
            MODIFY flights-cols FROM cols INDEX sy-tabix.
          ENDIF.
        WHEN 'DELETE'.
          READ TABLE flights-cols INTO cols WITH KEY screen-input = '1'.
          IF sy-subrc = 0.
            LOOP AT itab INTO demo_conn WHERE mark = 'X'.
              DELETE itab.
            ENDLOOP.
          ENDIF.
      ENDCASE.
    ENDMODULE.

  • Can we submit the module pool code in background as a job.

    Hi All,
    Is there any possiblity that, we can capture the module pool program screen element, and run the process in background as a job using the same logic as module pool program.
    In other words, can we have any feasible solution to have push button on the transaction screen of a module pool  program, after clicking which, it will capture all the screen elements of module pool program and using the same logic of module pool program it will submit a job in background and process the data.
    Any hep will be appreciated.
    Thanks in adv.
    Regard,
    Vivek.

    Hi Prasenjit,
    Thanks for your reply.
    My question is, can we use "SUBMIT" statement in module pool program so as it will submit job in backgroung.
    The same logic of module pool we will write in executable statement and submit in background using SUBMIT. will this thing is feasible. I am trying the same. Anyways thanks.
    Regards,
    Vivek

  • How to take backup of an entire module pool program with code,screen,etc.

    Hi experts,
    I have some important data in the ides server for which i want to take backup of them.
    I have some question regarding the same.
    1.How to take backup/download of an entire module pool program with code,screen,etc.
    2.How can we take backup/download for a DB table with its structure?
    3.How can we take backup of a search help?
    Please give some suggestions abt the same.
    Regards,
    Ashesh.

    Hi,
    May be just for viewing, try downloading from SE80 transaction from the others option.
    Here just try issuing the print, it will generate the spool.
    Now using the spool, download to your desktop as required. It will have all the information regarding the attributes, fields, elements everything.
    The only issue is, may be you need to take all the screens separately.
    Regards,
    Santhosh.

  • Subscreen in module pool

    Hi,Iam new to module pool.My requirement is to display data on the same screen in table control when the end user clicks on a pushbutton.For that I have created a work area in the main screen.I have created a subscreen with the table control I want data I want.But it is getting displayed immediately when the first screen is getting displayed.It should get displayed when user clicks on a pushbutton.
    I think my question is clear,if not PLZ tell me where to clarify.

    Hi,
    i got a solution for your problem and i tried it and is successful, i hope this wil resolve your problem.
    as you said when you execute the transaction the table control wil be displayed, but for that you  creat one more empty subscreen and make it default subscreen.
    then you assign your subscreen with table control to be called when pushbutton is pressed.
    DATA: NUMBER(3) TYPE N VALUE '300'. "empty subscreen
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    CALL SUBSCREEN AREA INCLUDING SY-REPID NUMBER.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0100.
    CALL SUBSCREEN AREA.
    in report program.
    MODULE USER_COMMAND_0100 INPUT.
    CASE SY-UCOMM.
    WHEN 'DISPLAY'.
    NUMBER = '200'. "subscreen with table control
    WHEN 'BACK'.
    LEAVE PROGRAM.
    ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    regards,
    prakash reddy .s

  • Module Pool Programming Guide

    Hi,
    I have no specific question regarding the module pool program, but want to learn it from beginning.
    can anyone help me by sending the Module pool programming material and table control.
    Thanks,

    Hi
    hope it will help you.
    reward if help.
    Check the below link:
    http://wiki.ittoolbox.com/index.php/FAQ:What_is_module_pool_program_in_abap%3F
    http://help.sap.com/saphelp_46c/helpdata/en/35/26b1aaafab52b9e10000009b38f974/content.htm
    http://sap.mis.cmich.edu/sap-abap/abap09/sld011.htm
    http://sap.mis.cmich.edu/sap-abap/abap09/index.htm
    http://www.geocities.com/ZSAPcHAT
    http://www.allsaplinks.com/files/using_table_in_screen.pdf
    http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm
    http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
    http://www.sap-img.com/
    http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm
    http://www.sapgenie.com/links/abap.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm
    You can also check the transaction ABAPDOCU which gives you lot of sample programs.
    Also you can see the below examples...
    Go to se38 and give demodynpro and press F4.
    YOu will get a list of demo module pool programs.
    One more T-Code is ABAPDOCU.
    YOu can find more examples there.
    See the prgrams:
    DEMO_DYNPRO_TABLE_CONTROL_1 Table Control with LOOP Statement
    DEMO_DYNPRO_TABLE_CONTROL_2 Table Control with LOOP AT ITAB
    http://www.geocities.com/ZSAPcHAT
    http://www.allsaplinks.com/files/using_table_in_screen.pdf

  • Field validation in Module Pool

    Hi,
    In my module pool, on main screen there are various fields, now out of these i've to give validation for 4 fields through a drop down field such that:
    There are 2 items in my drop down, when 1st item of drop down is clicked then out of 4 fields for which i've to give validation, 2 should be Active (should take input) and other 2s should be inactive.
    And if I click the 2nd item of dropdown then there shoud be vice versa(inactive ones should b active now and active ones should be inactive now).
    Also got the function module VRM_SET_VALUES & a program DEMO_DYNPRO_DROPDOWN_LISTBOX for dropdown but don't know how can I use. If anybody can tell for either of or for both probs then will be a great help.

    Hi,
    As for the question regarding (de)activating fields:
    parameters: pa_list ... "your listbox
    data: st_first_two type i value 1,   "status of first two fields,
            st_last_two type i value 0.   "status of last two fields
    at selection-screen.   "in PAI
      "determine status of fields depending of what was choosen
      if pa_list = '1st_item'.   "if first item picked
         st_first_two = 1.
         st_last_two = 0.
      else.                           "2nd picked
         st_first_two = 0.
         st_last_two = 1.
      endif.
      "now change them
      Loop at screen.
         if screen-name CS 'First_field' or
            screen-name CS 'Secodn_field'.
            screen-input = st_first_two.                  "(de)activate first two fields
        elseif screen-name CS 'Third_field' or
                 screen-name CS 'Fourth field'.
             screen-input = st_last_two.                 "(de)activate last two fields
         endif.
        modify screen.
      endloop.
    This way you can in turn activate/deactivate your fields depending of the item picked in the listbox.
    As for the question, this fm (VRM_SET_VALUES) is used to populate possible entires in the listbox in PBO (AT SELECTION-SCREEN OUTPUT) which user can later pick. It is usually used to fill data with your custom structure, not the DDIC one. Go through this demo and see step by step how data are populated to listobox (just before screen is displayed).
    Also refer [this link|http://sap.niraj.tripod.com/id38.html]. It gives quite good explanation how it should be used.
    Regards
    Marcin

  • Custom Module Pool...

    Hello SDN ABAP Community,
    I researched this question on the web and in SDN before posting this because I would like an up-to-date understanding of best way to do this.
    I have a need to write a custom module pool.  It has been a while since I have been to class.  I need to get figured out how my naming conventions will work for all the pieces of the module pool (SE51, SE41, pieces of the SE38 module pool).
    I seem to remember the teacher saying that the way that SAP allows for customer created module pools was to set the 5th character of the name to 'Z'.  eg- sap would use SAPMPetc.  customer would use SAPMZetc.
    From my searching of web I found following naming standards...
    Module pool                             - SAPDY* SAPDZ*
    Module pool for dialog               - DY* DZ*
    INCLUDES                              - SAPMY* SAPMZ*
    Module pool for screens            - MY* MZ*
    INCLUDES                              - MP9*
    Module pool for info types         - MP9*
    INCLUDES                              - SAPFY* SAPFZ*
    Module pool for subroutines      - FY* FZ*
    INCLUDES                              - SAPUY* SAPUZ*
    Module pool for update program - UY* UZ*
    INCLUDES
    From searching SDN I found following link for ABAP objects, but I am needing for module pool.
    http://help.sap.com/saphelp_nw04/helpdata/en/92/c2b084bc1d11d2958700a0c94260a5/frameset.htm 
    So my question... is there any SAP resource that I can look at to see SAP naming conventions for customer created module pool with SE41, SE51 and SE38?
    Thank you,
    Dean Atteberry.

    Hi Dean, here you can take a look at SAP´s official customer name ranges for all objects, including Module Pool: http://help.sap.com/saphelp_nw04/helpdata/EN/2a/6b0b1f547a11d189600000e829fbbd/frameset.htm
    Best regards,
    Federico Alvarez

  • Problem in custom infotype module pool

    Hi experts,
    I have created custom infotype using PM01 where i am showing fields Basic and HRA. When I enter the value for Basic, automatically the calculation for HRa should be done depending on formula. Also, the HRA fields should be only output field. When I do the changes in the module pool PBO and regenerate the object , the changes I made get disappered. Do I have to create Z of the includes. If so, how to assign it to the infotype?  Please help me to solve this problem since its urgent.
    Thanks in advance.
    Proper solution would be rewarded.
    Ujjwala

    C
    This is the flavour of Infotype.
    When you regenerate the Infotype, you are again reassigning the Chanrecterstcis of your Infotype. so the Existing will get regenerated with the Standard Code.
    To avoid this what I suggest you is.
    After finishing the Regeneration then edit the Module pool of the Infotype basically Screen 200 then add your code and Activate it there itself. Hope you got it.
    If you again Regenerate it you loose your Code.
    If you have further Questions please let me know.

  • Guidelines for setting Application Module Pool Size Parameters?

    Are there guidelines for setting the application module pool size parameters, such as initial pool size, maximum pool size, etc., based on the expected number of users or other factors? I've read the developer guide sections (ch 28-29), but still don't have a good feel for how to correctly set the optimal values for the pool configuration parameters? Even more importanty, how do I monitor the pool's efficiency during runtime to determine if the pooling parameters are configured correctly?
    This will be critical to performance and scalability, so I'm looking for a way to get some visibility into how the pooling is working during production operation to assess whether there are bottlenecks/constraints/ineffeciencies?
    Note I am using Tomcat as the java runtime container; ADF BC / JSF jdev 10.1.3.1
    Thanks in advance and Merry Christmas!

    KUBA - were you able to resolve these issues and if so are there any lessons learned you can share?
    I'm hoping someone from the ADF team can answer our original question including guidelines for setting pool parameters and how to monitor the pool's performance while running in production.
    thanks

  • Default values in module pool screen issue

    Hello,
    I have 6 input fields in one of my module pool tab-strip. I can able to populate default values in 4 fields, but 2 fields are not showing default value on the screen. I am passing these default value for all 6 fields in PBO module of that screen. My question is, why only these 2 fields are not showing default values on the screen?
    Thanks,
    Shree

    Edgar,
    Thanks for the reply, I checked again, the screen fields and variables name is exactly same.
    Here is the sample code:
    MODULE status_2050 OUTPUT.
      gv_id_no_2050 = '200'.
      gv_matnr_2050 = '232020191'.
      gv_ebeln_2050 = '20019100'.
      gv_qty_2050 = 3.
      gv_bukrs_2050 = 'JP01'.
      gv_comments_2050 = 'my comments here'.
    ENDMODULE.

  • Require select-option functionality in Module Pool Programming

    Hi Gurus,
    I am doing a development by Module Pool on Warehouse Management. For that development user require select-option on
    screen for entering multiple storage type.
    My first question : Is any thing available for directly implement select-option by module pool ?
    My Second Question : I have use two text boxes for range and one button for multiple selection and arrange on screen like select-option. then on PAI of that button I call COMPLEX_SELECTIONS_DIALOG FM. Now it is working fine. Now I put some value in it. when I save the values and exit , I want the icon of the button must change from icon_enter_more to icon_display_more. I write the below code for that  in PBO of the screen:
           if rtab[] is initial.   "RTAB[] is a table for holding values what inputted in popup of multiple selection.
              write icon_enter_more as icon to button.  " BUTTON is screen field and it taken as a type C length 4 on TOP module as .
          else.                                                               " BUTTON taken on screen as push button.
              write icon_display_more as icon to button.
          endif.
    but the icon is not changing dynamically.
    If I use ICON_CREATE then one short dump happen describing OUTPUTLEN_TOO_SMALL.
    Can anybody please give me the solution.

    IN PBO SECTION.
    module STATUS_0001 output.
      SET PF-STATUS 'ZINVGUI'.
      SET TITLEBAR 'ZIN'.
    if rbtn1 = 'X'.
       loop at screen.
         if screen-group1 = 'GR2'.
         screen-input = 0.
         modify screen.
         endif.
       endloop.
    else.
       loop at screen.
         if screen-group1 = 'GR1'.
         screen-input = 0.
         modify screen.
         endif.
       endloop.
    endif.
    IF RTAB[] IS INITIAL.
       WRITE icon_enter_more AS ICON TO GTTYP.
      else.
       WRITE icon_display_more AS ICON TO GTTYP.
    endif.
    endmodule.
    IN PAI
    form GET_STORAGE_TYPE .
    TAB_FIELD-FIELDNAME = 'LGTYP'.
    TAB_FIELD-TABLENAME = 'LQUA'.
      CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
       EXPORTING
         TITLE                   = ' '
         TEXT                    = 'Storage Types'
        SIGNED                  = 'X'
        LOWER_CASE              = ' '
        NO_INTERVAL_CHECK       = ' '
        JUST_DISPLAY            = ' '
        JUST_INCL               = ' '
        EXCLUDED_OPTIONS        =
        DESCRIPTION             =
        HELP_FIELD              =
        SEARCH_HELP             =
         TAB_AND_FIELD           = TAB_FIELD
        TABLES
          range                   = RTAB
       EXCEPTIONS
         NO_RANGE_TAB            = 1
         CANCELLED               = 2
         INTERNAL_ERROR          = 3
         INVALID_FIELDNAME       = 4
         OTHERS                  = 5
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      DATA:LAST TYPE SY-TABIX.
      DESCRIBE TABLE RTAB LINES LAST.
      IF NOT rTAB[] IS INITIAL.
             Read the very first entry of the range table and pass it to
             dynpro screen field
               READ TABLE rTAB INDEX 1.
               IF sy-subrc = 0.
                  P_LGTYP1 = rTAB-low.
               ENDIF.
               READ TABLE RTAB INDEX LAST.
               IF sy-subrc = 0.
                  P_LGTYP1U = rTAB-LOW.
               ENDIF.
    ELSE.
      rTAB-low = p_lgtyp1.
      append rtab.
      rTAB-low = p_lgtyp1u.
      append rtab.
    ENDIF.
    endform.               
    IN TOP INCLUDE.
    DATA : GTTYP TYPE C length 4.

  • Module pool related problem

    Dear all,
    No, Suppose i have created one Module pool.
    When i m going to use code Inspector for that one error is occured......................ZZWERKS1 has no accessible label.
    Actually for Plant i have created only input field without Label as per requirement.
    Now my question is that how i can hide this error message.
    Plz help me as soon as possible.

    I don't think you can hide this message, but an alternative would be to create the input field anyway and set it to no-display (setting in the attributes of the screen layout).
    The other alternative would be to ignore the error message at all. If you can activate the report / module pool, there really is no problem. Code inspector is just very thourough when it comes to these kind of things.

  • Selection screen as subscreen in module pool main screen

    hello
    i having problem with a module pool  and a selection screen subscreen , i have my main screen 100 in my module pool
    i create a sub screen area , then in my top include i define a seleccion screen as subscreen  150
    i define some paramets and select-options ( for the select-options feature is because i choose use the subscreen )
    so far here is OK , the problem is when i fill the subscreen data and press a pushbutton define in the main screen ( 100 )
    the field are getting cleared ( BTW i call the subscreen in the PBO of the main screen ( 100 ) using call SUBSCREEN SUB_AREA INCLUDING SY-REPID '150'. ) so my question is how i can do for save the data filled in the subscreen ?
    thanks

    i find the solution of my own question:
    in the first line of the PAI event of the main screen ( where you call the subscreen ) need add 'call subscreen SUB_AREA_NAME_HERE.

  • To get a pop up screen in Module pool

    Hi,
    Can any one tell me how to get a pop up screen while clicking a button in selection screen in module pool program.
    regards,
    Ruchika saini

    Hi Ruchika,
    This is the function module used in the program .
    CALL FUNCTION 'POPUP_TO_CONFIRM'
               EXPORTING
                    titlebar              = 'Question'
                    text_question         = 'Want delete records old table'
                    text_button_1         = 'YES'
                    text_button_2         = 'NO'
                    display_cancel_button = ' '
                    start_column          = 25
                    start_row             = 6
               IMPORTING
                    answer                = answer.
    Regards,
    Nihar Swain.

Maybe you are looking for

  • Open PDF files with adobe acrobat

    Greetings, I need to open my PDF files in Adobe Acrobat NOT in Preview. How do I set my full version of Adobe Acrobat Pro X for Mac to open all PDF files by clicking on the icon without having to choose adobe acrobat to open each time? Thank you; the

  • Adobe Flash download stops working after I press run. It worked fine with Explorer before I went to Forefox

    error message reads " adobe flash download has stopped working. Windows will notify you if there is a fix" or something like that. I have tried to download about 10 times over 3 days. I need help. I transferred over to Firefox just this week from IE.

  • How many computers can you get music from?

    How many different computers can you connect your ipod to and take music from?

  • Shocking - OBIEE 11.1.1.5 Ram Usage

    Hi Experts, I have installed OBIEE 11.1.1.5 on Windows server 2008 R2 having 4GB RAM and i3 3.0 GHZ Intel Processor on 64 bit machine , and it uses physical memory upto 96% most of the time when my all services are up.. please suggest is ther some pr

  • IPad to a LAN

    Can I connect an iPad to a LAN using these: - AirPort Express Base Station - Apple USB Ethernet Adapter - Apple iPad Camera Connection Kit For me sounds logic