How to create the select option for the Plant in screen (Module pool)

HI,
I am developing one module pool program and I have below requirement,
currently plant is acting like PARAMETER and the now it should be changed to select option.
how to create the select option in the screen
Thanks and regarding,
Malla
Moderator message - Cross post locked
Edited by: Rob Burbank on Dec 16, 2009 1:41 PM

Steps to get SELECT-OPTIONS in module pool programs.
1.Start one dialog program with SAPMZ_001.
Place the below code in the TOP include of the dialog program.
TABLES marc.
SELECTION-SCREEN BEGIN OF SCREEN 3200 AS SUBSCREEN.
SELECT-OPTIONS: werks FOR marc-werks.
SELECTION-SCREEN END OF SCREEN 3200. 
2 .Create one screen 3000.
Go to Layout of the screen and Define subscreen area on the screen and Name it as l_subscreen.
Place the below code in the Flow logic of the screen.
PROCESS BEFORE OUTPUT.
  CALL SUBSCREEN l_subscreen INCLUDING 'SAPMZ_001' '3200'.
PROCESS AFTER INPUT.
  CALL SUBSCREEN l_subscreen.
Activate all.
Create Transaction code for the dialog program .
Execute the transaction code. You will see the select-option for werks how we see on Selection-screen.

Similar Messages

  • How to creat a select-options in the screen layout of se80.

    Because in se80 ,the screen is drawed in the screen layout,but it just have text-field for parameter.
    Thanks!

    In your main program, you can declare your desired select-option. Do your select-option declaration before calling your dialog screen.
    Create a subscreen in your screen's flow logic (PBO & PAI) that contains your selection screen with its corresponding screen number of your declared subscreen.
    sample code of select-option declaration below.
    SELECTION-SCREEN BEGIN OF SCREEN 5003 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK PARAM.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT (18) TEXT-ABK FOR FIELD S_ABKRS.
    SELECT-OPTIONS: S_ABKRS FOR PA0001-ABKRS.
    SELECTION-SCREEN POSITION 47.
    PARAMETER: P_ATEXT LIKE T549T-ATEXT VISIBLE LENGTH 30.
    SELECTION-SCREEN POSITION 70.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK PARAM.
    SELECTION-SCREEN END OF SCREEN 5003.
    call screen 5000.
    Sample Flow logic Code below of screen 5000:
    *--- PBO
    PROCESS BEFORE OUTPUT.
      CALL SUBSCREEN SUB_5003 INCLUDING SY-REPID '5003'. " subscreen 5003
      MODULE STATUS_5000.
      LOOP AT GT_MBBH INTO GS_MBBH WITH CONTROL TC_MBILL
                    CURSOR TC_MBILL-TOP_LINE.
      ENDLOOP.
    *--- PAI
    PROCESS AFTER INPUT.
      LOOP AT GT_MBBH.
        FIELD GS_MBBH-SELEC MODULE TC_TABLE_MARK ON REQUEST.
      ENDLOOP.
      MODULE USER_COMMAND_5000.
      CALL SUBSCREEN SUB_5003.  " subscreen 5003
    Hope this will help..

  • How to create the select option in the screen

    HI,
    I am developing one module pool program and I have below requirement,
    currently plant is acting like PARAMETER and the now it should be changed to select option.
    how to create the select option in the screen
    Thanks and regarding,
    Malla
    Moderator message - Please search before asking - post locked
    Edited by: Rob Burbank on Dec 16, 2009 1:41 PM

    Try RANGES.
    The RANGES has same structure as that of select-options.

  • How to get the spool id or how to create a spool id for the report .

    hi,
    how to get the spool id or how to create a spool id for the report .
    this spool id i have to use it in CONVERT_ABAPSPOOLJOB_2_PDF fm to get the pdf download file.
    my requirement is to download a pdf file from the alv grid list.

    Hi Raghu,
    Execute this program.
    REPORT  ZTEST_3318                              .
    tables: usr01.
    perform send_report_to_spool.
    *&      Form  send_report_to_spool
          text
    form send_report_to_spool.
      data: loc_dest like pri_params-pdest,
            wf_listname type char12,
            wf_listtext like PRI_PARAMS-PRTXT,
            wf_copies type i,
            wf_days type i,
            wf_PARAMS LIKE PRI_PARAMS,     " achieving file PRI_PARAMS.
            wf_valid type c.
      clear : wf_listname , loc_dest , wf_listtext .
      move: 'AP interface' to   wf_listname .
      move: 'AP interface' to   wf_listtext .
    select single spld into usr01-spld from usr01 where bname eq sy-uname .
      if sy-subrc eq 0 .
        move: usr01-spld to loc_dest .
      endif .
      call function 'GET_PRINT_PARAMETERS'
        EXPORTING
          destination    = loc_dest
          copies         = 1
          list_name      = wf_listname
          list_text      = wf_listtext
          immediately    = ' '
          release        = ' '
          new_list_id    = 'X'
          expiration     = 1
          line_size      = 200
          line_count     = 65
          layout         = 'X_65_200'
          sap_cover_page = 'X'
          receiver       = 'SAP*'
          department     = ''
          no_dialog      = 'X'
        IMPORTING
          out_parameters = wf_params
          valid          = wf_valid.
      if wf_valid <> space.
        new-page print on parameters wf_params no dialog.
        perform write_summary .
        new-page print off.
      endif .
    endform.                    "send_report_to_spool
    *&      Form  write_summary
          text
    -->  p1        text
    <--  p2        text
    FORM write_summary .
    data: begin of itab occurs 0,
          matnr type matnr,
          end of itab.
    select matnr
           from mara
           into table itab
           up to 10 rows.
    loop at itab.
    write: / itab-matnr.
    endloop.
    ENDFORM.                    " write_summary
    This will create spool in SP01.What data you want to put in Spool write it in form write_summary.I have done coding for testing purpose
    After that use that spool for your purpose.
    If Useful award point

  • How to Create Interactive report lists for the gross sales, credit ....

    How to Create Interactive report lists for the gross sales, credit returns, and gross weight for the               customer for the current year and comparing the same with that of the previous year for the same period.....
    plz tell me steps to accomplish this....plz ...give me the detail description..plz......many many thnx in advance...

    Hi raja,
    Display a checkbox , customer number on the basic list and also set a GUI STATUS  on the basic list.....
    Select the customer by checking the checkbox and click on the button you create in the GUI status....
    Write the desired code to be displayed in
    AT USER-COMMAND even checking the sy-ucomm....
    so this would make you to into interactive list...
    Hope this would help you.
    Regards
    Narin Nandivada

  • How to create multi garnishment order for the same garnishment document

    Hi,
    Can anyone tell me how to create multi garnishment order for the same garnishment document. I tried to copy the entry in IT0195 but the sequence field is grayed out so it will just delete the old record. What configuration should I do to make this possible?
    Thanks a lot in advance.

    hi,
    As far as I got it.
    You cannot have multiple Garnishment order but if a need arises you have to maintain it in IT216.
    For that follow this path goto PA30->pernr->194->change->Garnishment->adjustment.
    Since like order you cannot maintain adjustment also directly.
    Regards,
    Amit
    Reward all helpful replies.

  • How to create  an alternative bom for the same product

    Hi expert,
       I want to know how to create an alternative bom for the same product. Can i use the different bom usage to create or use the same bom usage? In addition, how can i use the production version to link the alternative bom for the same product?
    Please help me solve the problem.
    Thanks in advance for any assistance.
    George shi

    HI
    you can go with t-code CS01
    if you have the BOM already and you want to create the alternative BOM then just goto create BOM
    and enter the material and plant and uasge system will auto matically prapose the next numner ie, if you have Alt BOM1
    then next system will prappose 2.
    then you can enter the components as per you requirement
    if you go to different BOM usage then sytem will not go for alternative BOM it gives again alt bom 1.
    prodcution version you need to craet from mateial master
    each version you can go woith alternative BOMS
    Version 1 will have alt BOM1
    Version 2 can haev ALT BOM2
    -ashok

  • How to  Create  a selection variable for Fiscal period/year range

    How to  Create  a selection variable for Fiscal period/year range. The idea is to filter the query results using a fiscal period/year range user input rather than a full fiscal year input.

    Hi Priya,
    Open the query in a query designer -> in the left hand side you would find the fiscal year period under the time dimension -> right click -> create variable -> create the variable.
    The better option would be use any of the SAP provided variable. You would find them under the Fiscal year period in the left hand side in the query designer.
    Bye
    Dinesh

  • Dialog programming - How to place a select-option field in a dialog screen

    Hi all,
    In Dialog Programming, How to place a select-option field in a dialog screen.
    Kindly give me some example code...
    Thanks,
    Jaffer Ali.S

    hi Ali,
    U can add select-options in ur module pool by using  SELECTION-SCREEN BEGIN OF SCREEN <scrn> AS SUBSCREEN  command.
    check this link for reference.....
    http://help.sap.com/saphelp_47x200/helpdata/en/e7/deb237b9a9a968e10000009b38f8cf/frameset.htm
    Example Code :
    DATA : ok_code TYPE sy-ucomm.
    SELECTION-SCREEN BEGIN OF SCREEN 1010 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: p_rad1 RADIOBUTTON GROUP grp1 DEFAULT 'X',
                p_rad2 RADIOBUTTON GROUP grp1,
                p_rad3 RADIOBUTTON GROUP grp1.
    SELECT-OPTIONS: s_matnr FOR  mara-matnr,
                    s_matkl FOR  mara-matkl,
                    s_mtart FOR  mara-mtart.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN END OF SCREEN 1010.
    START-OF-SELECTION.
      CALL SCREEN 100.
    *&      Module  STATUS_0100  OUTPUT
    MODULE status_0100 OUTPUT.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
    CALL SCREEN 1010 .
    ENDMODULE.                    "status_0100 OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE user_command_0100 INPUT.
      CASE ok_code.
        WHEN 'EXIT'.
          LEAVE PROGRAM.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    SCREEN 100 ****************
    PROCESS BEFORE OUTPUT.
      MODULE status_0100.
      CALL SUBSCREEN sub_1010 INCLUDING sy-repid '1010'.
    <b>***** where sub_1010 is name of sub-screen area</b>
    PROCESS AFTER INPUT.
      CALL SUBSCREEN sub_1010.
      MODULE user_command_0100.
    <<< REMOVED BY MODERATOR >>>
    Harimanjesh AN
    Edited by: Marcelo Ramos on Dec 17, 2008 7:54 PM

  • How to create a selection option or parameters in a subarea of the screen

    Hi Experts,
        My program have a screen 1001 and it is splited into two parts: the first is a Subarea for selection option, and the last is a table control. Now I want to create some selection option and parameters in the first subarea just like we do in screen 1000. Do we have any convenient way to do that?
    Thanks in advance
    Joe

    Hi Joe,
    Yes ,it can be done like below code:
    TABLES : mara.
    SELECTION-SCREEN BEGIN OF SCREEN 1001 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS: s_matnr FOR mara-matnr,
                    s_matkl FOR mara-matkl,
                    s_mtart FOR mara-mtart.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN END OF SCREEN 1001.
    DATA: number(4) TYPE n VALUE '1001'.
    START-OF-SELECTION.
      CALL SCREEN 100.
    in screen flow logic .write below statements.
    first declare the subscreen area  'AREA' in screen.
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    CALL SUBSCREEN area INCLUDING sy-repid number.
    PROCESS AFTER INPUT.
    CALL SUBSCREEN area.
    MODULE USER_COMMAND_0100.
    Reward if useful,
    Regards,
    Talwinder

  • How to create a shortcut menu for the pane

    Hi all
    Well - I know how to create a shortcut menu for a control, but how is it created for a pane? There is the possibility to add an event case for a shortcut menu linked to a pane (see picture), but how can I create this menu?
    Message Edited by becktho on 08-01-2006 11:32 AM
    Using LV8.0
    Don't be afraid to rate a good answer...
    Attachments:
    ScreenShot001.png ‏22 KB

    ahlers option works, sorry but I can't add images from work!
    Just use the shortcut Menu Activation filter event? to create a menu.
    Ton
    Message Edited by TonP on 08-01-2006 12:56 PM
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!
    Attachments:
    Example_BD.png ‏4 KB
    Example_BD.png ‏4 KB

  • How to create an marketing attribute for the busines partner

    hi guys,
    can any body help.
    how to assign/create the marketing attribute set to the business partner.
    is there any function module which to create the marketing attribute for the business partner by passing the BP GUID.
    if any body is having an sample code can u please post it.
    regards
    viswag

    Hi Viswa,
    In CRM 4.0, marketing attributes set can be created at T-code [CRMD_PROF_TEMPL]
    The created attribue set can be assigned to BP at T-code [CRMD_PROF_BP]
    The other way you can open the BP, in marketing at marketing attributes tab your can assign the created attribute set.
    regards
    satish kumar
    *-Reward points if found helpful.

  • How to create new text symbols for the standard program.

    Based on the customer's requirement, I need to create a new implicit enhancement for the selection screen.
    I want to create new text symbols for the parameters and blocks, but I cannot change the standard ones.
    Does anybody know something about that? Thank you.

    hi ming yu,
    example : %_MATNR_%_APP_%-TEXT -> this is the material  description name in mb5b
    change the description in ur enhancement implementation
    %_MATNR_%_APP_%-TEXT = 'Material'
    it is works only input/output field
    Thanks&Regards,
    naveen

  • How to display a selection option for service selection

    Dear All,
    I want to display the selection option ("Other sources") which I find
    in the /nse80 screen painter but cannot be display in the ME22N.
    /nME22N
    -> select one Purchase Order for Services
    -> select one Item Line
    -> at "Services" tab on Item Details Level
    -> Add new ICON behind "Serv. selection"
    Any ideas?
    Thanks,
    Neil

    Hi Sharmila,
    Thanks for your reply!
    Actually, I find a User Exit program ("EXIT_SAPLMLSP_011") in selection screen program ("SAPLMLSP" ). This User Exit is for the radio button ("Other sources").
    However, I don't know how to activate that button at ME22N.
    By the way, can you go more details on how screen exits work?
    Really thank for your support!
    Neil
    Message was edited by:
            Neil Lam

  • How to create a Select-option and a pushbutton together

    Hi Experts,
    I have defined a selection screen in my module pool program and I am including this screen in my Module pool Dynpro. Now, my problem is that if I write the following piece of code to define my selection screen, it gives me an error that "Error when generating the selection screen "1010" of report "ZTESTHIM_MOD" ".
    SELECTION-SCREEN BEGIN OF SCREEN 1010 AS SUBSCREEN.
    SELECT-OPTIONS: s_matnr FOR  mara-matnr NO INTERVALS,
                    s_matkl FOR  mara-matkl NO INTERVALS,
                    s_mtart FOR mara-mtart NO INTERVALS,
                    s_ersda FOR mara-ersda NO INTERVALS.
    SELECTION-SCREEN PUSHBUTTON 10(5) pubu USER-COMMAND test.
    SELECTION-SCREEN END OF SCREEN 1010.
    Please help me whats the reason for this.
    Also, if I define the select-options within a block and pushbutton outside it, the code is working fine.
    The problem is that I want a select-option and a pushbutton in the same line.
    Please help me out.
    Useful answers will be duly rewarded.
    Thanks in advance.
    Regards,
    Himanshu
    null

    Hi,
    You have declared so many select options in one line and also you want to include a push button in the same line, this is not possible.
    Since the visible lenght of the line is less than the number of fields you want to display this will not be possible.
    What you can do is instead group then using
    SELECTIOn-SCREEN BEGIN OF BLOCK b1.
    here use lines
    SELECTION-SCREEN END OF BLOCK b1
    Regards,
    Sesh

Maybe you are looking for