Adding a screen element in Module pool

Hi Experts,
         How to add a screen element in module pool programming?
Thanks,
Sudha...........

Hi sudha ,
To add screen elements in you module pool programming ,
i > Go the layout of the screen for which you want to have elements .
ii> Drag and drop the available elements from the left hand side .
iii> Be sure to have a name a name of the data elements that you have inserted .
iv>Check any dataelement is't showing red in color as red color signifies error .
v> Make sure to save and activate the layout.
Hope this would be clear .
Thanks
Lokesh

Similar Messages

  • How to modify screen element in module pool

    Hii...
    I have developed a screen with table control..my requirement is
    I have one column (i.e) check box in edit mode..after it was checked and pressed 'enter' I want to go for display mode only..how can I solve this problem..
    i tried like this but this is not working..
    if checkbox = 'X'.
    Loop at screen.
    screen-active = 0.
    screen-input = 0.
    modify screen.
    endloop.
    regards
    sugu

    Hello,
    Suppose your tablecontrol name is TCTRL.
    Declare a work area  WA_COLS.
    Now in the PBO (in the table control loop) you can write a new module suppose its MODULE SET_SCR.
    MODULE SET_SCR.
      LOOP AT TCTRL-cols INTO WA_COLS.
        WA_COLS-SCREEN-INPUT = 0.
        MODIFY TCTRL-cols FROM WA_COLS INDEX SY-TABIX.
      ENDLOOP.
    ENDMODULE.
    Hope this clears .
    Neeraj

  • Selection screen problem in module pool

    Hi friends,
    I am working on module pool programming, I need to put select screen on the screen of the module pool porgramming. I used Input/Output field to do that and activated. But I am getting message invalid field format (screen error) can any one tell me why I am not able to run the seletion screen when I am using input/output field, also please let me know how to solve this problem.
    Regards,
    Line

    Hello,
    Think that this is useful for u/
    SELECTION-SCREEN - Defining selection screens
    Variants:
    1a. SELECTION-SCREEN BEGIN OF SCREEN scr.
    1b. SELECTION-SCREEN END   OF SCREEN scr.
    2. SELECTION-SCREEN BEGIN OF SCREEN scr AS SUBSCREEN.
    Effect
    Defines a selection screen with the number scr. scr may be up to 4 digits.
    SELECTION-SCREEN BEGIN OF SCREEN scr.
    Additions:
    (zu SELECTION-SCREEN BEGIN OF SCREEN scr) 1. ... TITLE title
    2. ... AS WINDOW
    Notes
    In reports (type 1 programs), a selection screen with number 1000 is created automatically when you use the SELECT-OPTIONS, PARAMETERS and SELECTION-SCREEN statments. This selection screen appears when you SUBMIT the report.
    In any type of program (apart from subroutine pools - type S), you can define further selection screens using SELECT-OPTIONS, PARAMETERS and SELECTION-SCREEN. You enclose these statements between the SELECTION-SCREEN BEGIN OF SCREEN and SELECTION-SCREEN END OF SCREEN statements.
    You call these screens using the CALL SELECTION-SCREEN statement.
    Screen number 1000 is not allowed (reserved for standard selection screen).
    When you generate the program, all user-defined selection screens are also generated.
    Within a report (type 1 program), all SELECT-OPTIONS, PARAMETERS and SELECTION-SCREEN statements outside a SELECTION-SCREEN BEGIN/END OF SCREEN block form part of selection screen 100 (standard selection screen)
    Regards,
    LIJO JOHN.

  • Customer Control in screen painter in Module pool - work like container?

    Customer Control option in screen painter in Module pool - work like container?
    is it true? How?
    Is like any work area or what?
    what is the excat use of that option?
    regards.

    Hello,
    In screen painter ,custom control is used to define the control area on the screen.Just click on that and make your own container area.When you create an ALV grid or TEXT EDITOR or any other control,it will get attached to the screen in that area through the custom container.
    Name the container area as say '<b>CONTAINER</b>'.(in capitals.)
    When you actually create the custom conatiner programatically,you should give the container area name.ie.
    Data : cont type ref to cl_gui_custom_container.
    Create object cont
    exporting
    parent = '<b>CONTAINER</b>'.
    Now,this container that you created-cont is attached to the screen in the area defined by CONTAINER.
    Regards,
    Beejal
    **Reward if this helps

  • Regarding screen flow in MODULE POOL

    Hi everyone,
                          my requirement is to cretae a module pool program. In between a program is submitted VIA  a selection screen. That selection screen contains PUSH BUTTONS. If any push button is clicked one of the dialog screens of the module pool program should be called. Can any one tell me how can this be done.
    Thanks in advance.
    Regards,
    Y.Gautham

    write a Module in PAI of ur screen and call which ever screen u want to call or leave.
    for e.g -
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_0100.
    module USER_COMMAND_0100 input.
    case ok_code.
    when 'ENTER'.
    clear ok_code.
    leave to screen 200.
    endcase.
    endmodule. " USER_COMMAND_0100 INPUT

  • Difference between screen painter and module pool

    Hi guys,
    what's the difference between SCREEN PAINTER and MODULE POOL ....
    can anyone plz give brief description ...
    regards
    venu

    hi ,
        As its said by many colleagues in SDN , there are not very major differences between Modulepools and screen painter .
    The few differences are :
    1) <b>Module pool is nothing but a pool ( series ) of screens . and Screen painter ( SE51 ) is a tool used for creating/designing  screens .</b>
    2) <u>While creating a modulepool you even need to create a transaction and assign this module pool program else the mpool program doesnt work . I think this is place we can say they are different .</u>
    3) <b>If at all you create a screen in screen painter ( SE51 ) , that doesnot function by its own , you need to assign it to any of the executable programs or modulepool programs .Here is again a difference .</b>
    Regards,
    Ranjita ..
    Message was edited by:
            Ranjita Kar

  • Cursor position on screen data in module pool programming(urgent)

    Hi all,
    I developed a module pool  program which will save the data after  scanning the barcode data.
    In my program screen 100 is there which contains field  ‘2dbar’. scanned data is comming to 2dbar field.
    we r doing scan 4 times.once for vendor number,once for material no. like this.
    After 1st scan, vendor number will come to field ‘2dbar’.
    Then I developed logic to put comma after each scanned data come to this field ‘2dbar’.
    MODULE put_comma INPUT.
    CASE OK_CODE.
    when ''.
    move 2dbar to 2dbar1.
    clear 2dbar.
    concatenate 2dbar1 ',' into 2dbar2.
    *replace 2dbar with 2dbar2 into 2dbar.
    move 2dbar2 to 2dbar.
    *write 2dbar2 to 2dbar.
    condense 2dbar no-gaps.
    *move '' to 2dbar.
    *set cursor field 2dbar offset 5.
    *write
    ENDCASE.
    ENDMODULE.                 " put_comma  INPUT
    By above logic, comma  comes to the starting position of 2dbar after each scan. i.e cursor position is coming to the starting position of screen field ‘2dbar’.
    Now  I need to move the cursor position after the comma position on 2dbar after each scan.
    after 1st scan, 2dbar contains
    vmotorola
    then my logic puts a comma when u put enter on screen 100.
    now 2dbar contains
    vmotorola,
    i should get the cursor position after the comma.but i am getting cursor position before 'v'.so how to move this cursor position  beyond comma after each scan.
    I added set cursor  command but it is not working.plz
    What is the logic, I need to put in PAI  to move the cursor on selection screen.
    Already the logic I have mentioned.  with that logic, I can put comma.now I need to add cursor movement logic  to move the cursoron  on screen field ‘2dbar’.
    Plz reply me as it is urgent.
    Thanks in advance.
    Regards
    pabitra

    CASE OK_CODE.
    when ''.
    move 2dbar to 2dbar1.
    clear 2dbar.
    concatenate 2dbar1 ',' into 2dbar2.
    move 2dbar2 to 2dbar.
    condense 2dbar no-gaps.
    len = strlen ( 2dbar ).
    len = len - 1.
    set cursor field 2dbar offset len.
    ENDCASE.
    ENDMODULE. " put_comma INPUT

  • Search help for screen fields in module pool

    Hi All,
    I have a screen in Module pool which has 3 input fields, each input field is attached to the same search help.
    These fields are from ztable . I have created a search help USING these 3 fields. All the 3 fields are marked for IMPORT and EXPORT.
    So whenever i click F4 on any of the above 3 fields, It will display search help popup and returns some rows...But the values are transfered back only for 1 fields ..i.e for the first field only .
    I want that ...as soon as i select any of the row from Search hit list..all the 3 columns should get populated with corresponding fields from that row.
    I require it this way as user wants to select based on * selection.Ex: as then every this related to that should be popped up.
    Pls help ASAP
    Thanks,

    This is how i got.
    data:l_shlp type SHLP_DESCR,
    l_rc type sy-subrc,
    w_DDSHRETVAL type DDSHRETVAL ,
    ls_shintf LIKE LINE OF l_shlp-interface,
    t_DDSHRETVAL type TABLE OF DDSHRETVAL.
    DATA: dyname LIKE d020s-prog,
    dynumb LIKE d020s-dnum.
    DATA: BEGIN OF dynpfields OCCURS 3.
    INCLUDE STRUCTURE dynpread.
    DATA: END OF dynpfields.
    CALL FUNCTION 'F4IF_GET_SHLP_DESCR'
    EXPORTING
    SHLPNAME = 'YTESTDMSSB'
    SHLPTYPE = 'SH'
    IMPORTING
    SHLP = l_shlp .
    ls_shintf-valfield = 'X'.
    MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield
    WHERE shlpfield = 'SNNTX'.
    MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield
    WHERE shlpfield = 'SBRTX'.
    MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield
    WHERE shlpfield = 'SBSTX'.
    MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield
    WHERE shlpfield = 'ENPTX'.
    MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield
    WHERE shlpfield = 'PLANT_CODE'.
    CALL FUNCTION 'F4IF_START_VALUE_REQUEST'
    EXPORTING
    SHLP = l_shlp
    DISPONLY = ' '
    MAXRECORDS = 500
    MULTISEL = 'X'
    CUCOL = SY-CUCOL
    CUROW = SY-CUROW
    IMPORTING
    RC = l_rc
    TABLES
    RETURN_VALUES = t_DDSHRETVAL
    IF l_rc = 0.
    LOOP AT t_DDSHRETVAL INTO w_DDSHRETVAL.
    CASE w_DDSHRETVAL-fieldname.
    WHEN 'SNNTX'. "W_SNNTX = w_DDSHRETVAL-fieldval.
    dyname = sy-repid.
    dynumb = sy-dynnr.
    dynpfields-fieldname = 'W_SNNTX'.
    dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.
    APPEND dynpfields.
    WHEN 'SBRTX'. "W_SBRTX = w_DDSHRETVAL-fieldval.
    dyname = sy-repid.
    dynumb = sy-dynnr.
    dynpfields-fieldname = 'W_SBRTX'.
    dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.
    APPEND dynpfields.
    WHEN 'SBSTX'. "W_SBSTX = w_DDSHRETVAL-fieldval.
    dyname = sy-repid.
    dynumb = sy-dynnr.
    dynpfields-fieldname = 'W_SBSTX'.
    dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.
    APPEND dynpfields.
    WHEN 'ENPTX'. "W_ENPTX = w_DDSHRETVAL-fieldval.
    dyname = sy-repid.
    dynumb = sy-dynnr.
    dynpfields-fieldname = 'W_ENPTX'.
    dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.
    APPEND dynpfields.
    WHEN 'PLANT_CODE'. "W_ENPTX = w_DDSHRETVAL-fieldval.
    dyname = sy-repid.
    dynumb = sy-dynnr.
    dynpfields-fieldname = 'W_WERKS'.
    dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.
    APPEND dynpfields.
    ENDCASE.
    ENDLOOP.
    CALL FUNCTION 'DYNP_VALUES_UPDATE'
    EXPORTING
    dyname = dyname
    dynumb = dynumb
    TABLES
    dynpfields = dynpfields.
    ENDIF.

  • F4 help for the screen fields in module pool program

    Hi All,
      I have a requirement that, i want to provide F4 help for the 2 fields in module pool program. the fields are document number and fiscal year from rbkp table.
    i could provide search help for two fields.
    but how to select matching fiscal year for that document number.
    problem: i am getting fiscal year as first four digits of document number.
    please help me to solve this problem.
    Thanks & Regards,
    Namratha.V

    Hi,
       If your requirement is after selecting the document no from f4 help then the corresponding year should be updated in the document year field then use FM --> DYNP_VALUES_UPDATE
    In  this function module pass the screen no program & field for which u want to update value

  • Selection screen processing in Module pool

    Dear Friends,
    I am preparing a module pool, in which from one screen, i have to call a selection screen. I want to define this selection screen in the same program. Under which event block, i can define this selection screen?
    Once its called, how can i process the selection screen ( like START-OF-SELECTION etc ?). If i use a LEAVE TO LIST-PROCESSING to display some output, how can i process the user actions in this list?
    Thanking you in anticipation.
    Deepak

    HI Max,
    Thanks a lot for your reply. It was really helpfull. But my problem is not yet solved.
    When i call the selection screen from the PBO of a screen, the selection screen is not being displayed. Only the blank screen is displayed. So i tried another way. I put the CALL SELECTION-ECREEN  statement in the USER_COMMAN_100 module of PAI of the previous screen. (ie when user choose a button from the tool bar, in the initial screen the selection screen will be displayed.)
    module user_command_0100 input.
      OK_SAVE = OK100.
      CLEAR OK100.
      CASE OK_SAVE.
        WHEN 'LIST'.
          CALL SELECTION-SCREEN 200.
          IF SY-SUBRC = 0.
            PERFORM PROCESS_LIST.
          ELSE.
            leave screen.
          ENDIF.
    endmodule.                 " USER_COMMAND_0100  INPUT
    form process_list.
    ... reading database...
    IF SY-SUBRC = 0.
      LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 100.
      SET PF-STATUS 'GUI_LIST'.
        LOOP AT ITAB.
          WRITE :/ ITAB-BUKRS, ITAB-BELNR, ITAB-GJAHR.
        ENDLOOP.
      LEAVE SCREEN.
      ENDIF.
    endform.                    " PROCESS_LIST
    Now i have two problems to solve.
    1. I want to come back to the same selection screen (screen no 200) instead of screen 100, when the user click 'back' button in the list. but if i specify screen no 200 in
    LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 100.
    it gives runtime error. ( Msg: Selection screen ZTEST3 0200 was not called using CALL SELECTION-SCREEN). How to return back to selection screen?
    and
    2. If the user selects a line from the list(PICK/F2), that value has to be passed to the input field of first screen( ie the initial screen from where i called the selection screen : screen no 100) For this, where can i write the code to process the user actions in the list?
    Thanking you in anticipation
    Deepak

  • Screen problem in Module pool program

    Hi all,
    I have developed a module pool program, in which i have used simple selection screen and after executing it will call screen 9001 to display the data. everything is goin fine but if i leave my output screen as it is for some time (or even if i lock my system then unlock it) i am getting an error message
    "Selection screen ZDEV1110PGM_SF 1000 was not called using CALL SELECTION-SCREEN".
    do any one have idea why this is happining without doing anything further to the output.
    Regards,
    Nilanjana

    Have you used CALL SCREEN ?
    Regards
    Abhii

  • Problem in Screen field position ( Module pool )

    Hi Experts,
    We changed the screen field position ( GUI ) of SAP standard module pool program.  we had taken the access key from SAP and modified the layout.
    Our Problem :   We had transported  these change request to Quality and Pre Production. The changes are transferred correctly in Quality .  when coming to Pre Production the changes are not visible on  the screen.
    Checks Performed :  1. We had analyzed the Transport request - They are imported correctly.
                                        2. We had rechecked the layout that we had changed its good and correct.
    Can you experts help me out in identify the exact solution for this problem.
    - Best Regards,
    Sudhakar Puppala
    Edited by: CRM Sudhakar on Sep 16, 2010 11:25 AM

    Hi, no idea can be given without having a look..
    but just check the screen layout in the pre-production itself..instead checking transport..

  • Leaving to Selection Screen in a Module Pool

    hi,
       I have a module pool with a number of screen.Now ifi am on the 4 th screen after i process something i need to go back to the selection screen. Giving leeve to screen 1000 doesnt work.Could neone please tell what command must be written.

    Hello Pankaj,
    U can try like this.
    SET SCREEN 0.
    LEAVE SCREEN
    or
    LEAVE TO SCREEN 0.
    If useful reward.
    Vasanth

  • Screen Attributes in Module Pool Programming

    Dear Experts,
    In Module Pool Programming, if we write LOOP AT SCREEN we can see and modify SCREEN-ACTIVE, SCREEN-INVISIBLE and other fields. But where we can modify Data Type and Other Attributes of the field dynamically?
    Thanks in advance.
    Regards,
    Kumar

    Hello Kumar,
    you can not change data type of a screen field dynamically. What you can change is an output length of a field. This can be done changing the value of SCREEN-LENGTH.
    Regards
    Adrian

  • Total screen shots for module pool programming

    Hi Abapers,
    Any one could send me the screen shots for the module pool programming with multiple screens.
    Thanks in advance.
    Regards
    Yubi

    You can check the transaction ABAPDOCU for sample programs..
    Check  the prgrams:
    DEMO_DYNPRO_TABLE_CONTROL_1  Table Control with LOOP Statement
    DEMO_DYNPRO_TABLE_CONTROL_2  Table Control with LOOP AT ITAB
    Also chk this thread.
    Urgent: : Requiremnt on module pool

Maybe you are looking for

  • Processing Terminated

    Hi Folks,   I am trying to create a Execute a DTP,for which the data is coming from a cube. All Transformations are active and after executing the DTP,i'm facing the below mentioned errors:    Error while updating to target ZPOP_CHA (type INFOCUBE)  

  • Nokia N8, echo problem

    Hi,  I bought an N8 at the start of September and it was great, I loved it until a week last Friday where people I called started complaining they could hear a robotic kind of echo talking back at them and it was happening on 100% of calls. I took my

  • Reg. Delivery Items

    Hi All,           I have a requirement in which i need to block some of the Outbound Delivery line items alone from further processing , what are all the ways available. Further processing i mean is , if I create a TO for that Delivery then it should

  • IDOC Interface Error

    Hi Experts, I am getting the same error: and from the forums I came to know that we need to use the IDOC name in the Interface mapping. I used the modified IDOC structure(External Definition) in mapping, but when I select the original interface in In

  • Photoshop Elements 13: Freistellen - Merkt sich Bildgröße nicht

    Wen man in Elements 13 mehrer Bilder geladen hat und will alle individuell auf eine gemeinsame Größe (Pixel x Pixel) beschneiden, "vergisst" das Programm, sobald man ein Bild beschnitten hat und auf das nächste wechselt, diese Freistellungmaße. Gibt