To add select-options to standard report program...

Hi,
How to add  a field as select-options to sap standard report program?
Regards,
sachin
Moderator Message: Do some R&D on the topic first and ask a specific question, instead of a step-by-step process.
Edited by: kishan P on Nov 25, 2010 5:40 PM

Hi shiva,
I have following doubts?
1) exactly where should i add select-options of a field in enhancement point?
and 2) where to keep the database extraction logic for the same select-options?

Similar Messages

  • Add select-option fields in report category (PNP)

    Hi,
    I am trying to create a new report category based on the logical database PNP.
    I noted that the fields available for select-option for report category come from infotype 0 or 1. Is there anyway to include fields from other infotypes ?
    Thank you.
    Regards
    Kir Chern

    Hi Kir Chern
    Due to the structure of the logical database you can just insert selection fields that are bestowed.
    However, as Charles mentioned, you can add selection fields special to your program by coding a selection screen at your program whose fields are inserted just after the ones added by the report category.
    *--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a>

  • Need to add select-options on standard Transaction IH08

    Hi All,
    I have a requirement to add a select-options to the tcode IH08
    but when I copy the report program to the Zreport the Enhancement points does not copy.
    Any help to do that.
    Thanks,
    Jatender

    Hello,
    I think the Enhancement will not be copied to Y or Z because SAP provided the Enhancement for standard Programs or Tcode, when you copied the IH08 Tcode program to Y or Z program then wht is the use of Enhancement so you can directly write the code.
    otherwise find the enhancement place in Copied program by comparing Standard program or Y or Z program.
    After coverting to Z or Y program directly include the Select-option in the selection screen.
    Edited by: Santosh Marupally on Nov 3, 2008 5:48 AM

  • Check box before select option in a report program.

    Hi All..
    I have a report program with select options..I want to put a checkbox before the select option, aligned with it...Is it possible..
    Regards
    Rudra

    Hi Rudra,
    Take the below help program. In the below program I am disabling the text fields....
    Take the refrence and do it will fix the problem
    &***************************Reward Point if helpful***************************&
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-003.
    PARAMETERS: P1 RADIOBUTTON GROUP G1 DEFAULT 'X' USER-COMMAND Z1.
    SELECT-OPTIONS: S_PMNUX FOR S076-PMNUX MODIF ID MI1.
    PARAMETERS:     P_WENUX LIKE S076-WENUX MODIF ID MI1.
    PARAMETERS: P5 TYPE CHAR15 AS LISTBOX  VISIBLE  LENGTH 15 MODIF ID MI1.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN POSITION 7.
    PARAMETERS: P3 RADIOBUTTON GROUP G2 MODIF ID MI1.
    SELECTION-SCREEN COMMENT 10(10) TEXT-001 MODIF ID MI1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN POSITION 7.
    PARAMETERS: P4 RADIOBUTTON GROUP G2 MODIF ID MI1.
    SELECTION-SCREEN COMMENT 10(10) TEXT-002 MODIF ID MI1.
    SELECTION-SCREEN END OF LINE.
    PARAMETERS: P_FILE TYPE RLGRAP-FILENAME MODIF ID MI1.
    PARAMETERS: P2 RADIOBUTTON GROUP G1.
    SELECT-OPTIONS: S_PMNUX1 FOR S076-PMNUX MODIF ID MI2.        " Product Group
    PARAMETERS:     P_WENUX1 LIKE S076-WENUX MODIF ID MI2.       " Plant
    PARAMETERS: P6(15) TYPE C AS LISTBOX VISIBLE LENGTH 10 MODIF ID MI2.
    *PARAMETERS: P_EMAIL(255) TYPE C MODIF ID MI2.
    PARAMETERS: P_EMAIL TYPE SOMLRECI1-RECEIVER.    " Email Address
    SELECTION-SCREEN END OF BLOCK B1.
    *      AT SELECTION-SCREEN OUTPUT                        *
    AT SELECTION-SCREEN OUTPUT.
      IF P1 = 'X'.
        LOOP AT SCREEN.
          IF SCREEN-GROUP1 = 'MI2'.
            SCREEN-INVISIBLE = 0.
            SCREEN-INPUT = 0.
            SCREEN-ACTIVE = 1.
            SCREEN-OUTPUT = 1.
            MODIFY SCREEN.
          ENDIF.
          IF SCREEN-GROUP1 = 'MI2'.
            SCREEN-INVISIBLE = 0.
            SCREEN-INPUT = 0.
            SCREEN-ACTIVE = 1.
            SCREEN-OUTPUT = 1.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSEIF P2 = 'X'.
        LOOP AT SCREEN.
          IF SCREEN-GROUP1 = 'MI1'.
            SCREEN-INVISIBLE = 0.
            SCREEN-INPUT = 0.
            SCREEN-ACTIVE = 1.
            SCREEN-OUTPUT = 1.
            MODIFY SCREEN.
          ENDIF.
          IF SCREEN-GROUP1 = 'MI1'.
            SCREEN-INVISIBLE = 0.
            SCREEN-INPUT = 0.
            SCREEN-ACTIVE = 1.
            SCREEN-OUTPUT = 1.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          IF SCREEN-GROUP1 = 'MI2'.
            SCREEN-INVISIBLE = 0.
            SCREEN-INPUT = 0.
            SCREEN-ACTIVE = 1.
            SCREEN-OUTPUT = 1.
            MODIFY SCREEN.
          ENDIF.
          IF SCREEN-GROUP1 = 'MI1'.
            SCREEN-INVISIBLE = 0.
            SCREEN-INPUT = 0.
            SCREEN-ACTIVE = 1.
            SCREEN-OUTPUT = 1.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.

  • Module pool programming " to add selection-option on screen"

    I want to add selection option for a field ( matnr ) on the screen in module pool programmiing. ( how it comes in report programming). If you you know how to add Please help me to solve.....

    Sure, you need to define your selection screen as a subscreen, then embed this into your subscreen area on the dynpro.  Here is a sample program.
    report zrich_0006 .
    tables: mara.
    * Custom Selection Screen 1010
    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'.
    endmodule.
    *&      Module  USER_COMMAND_0100  INPUT
    module user_command_0100 input.
    endmodule.
    * Create Screen 100 with a subscreen area called "subscreen_1010"
    * Screen Flow Logic follows
    *process before output.
    *  module status_0100.
    *  call subscreen subscreen_1010 including sy-repid '1010'.
    *process after input.
    *  call subscreen subscreen_1010 .
    *  module user_command_0100.
    Regards,
    Rich Heilman

  • How we can add custom field in standard report 2kee.

    Hi,
    How we can add custom field in standard report 2kee.
    I need one extra field to add in 2kee report for the same is there any customization req.
    Regards
    Ravi

    Ravi,
    Which extra field do you want to add or see?  Without specifying the field, it is difficult for one to tell you precisely whether you need a custom field or just change the layout to get the standard one.
    There are so many fields which exists but are not displayed when you execute 2KEE. You need to change the layout selections to your preference.
    Nonetheless, if the field you want to add does not already exist, then yes you can do customization.  Is there a customization requirement? No. But remember, you are making changes to SAP Standard program which will no longer be supported by SAP should in the case an issue arise in the future related to this very program.
    Have your abaper add the said field in the program or why not just create a query to pull the report?
    Elias
    Edited by: Elias Akorli on Sep 18, 2009 9:02 PM

  • Passing parameter from selection screen to corresponding report program.

    Hi all,
    I am developing a report in which there is a selection screen containing 2 list boxes having month 'from' and 'to' ;ie the month range for which  the report is to be run and a parameter for year.below it i have 2 radio button options which will lead to the report that the user clicks on.
    I have done the following in the code.
    selection-screen begin of block b1 with frame title text-001.
    parameters: month1(10) as listbox visible length 10 obligatory.
    parameters: month2(10) as listbox visible length 10.
    parameters: year(4) obligatory.
    selection-screen : end of block b1.
    selection-screen: begin of block b2 with frame title text-002.
    parameters: rb1  radiobutton group g1,
                        rb2  radiobutton group g1.
    selection-screen : end of block b2.
    if rb1 = 'X'.
    submit ZMIS1.
    ENDIF.
    if rb2 = 'X'.
    submit ZMIS2.
    endif.
    Now i want the values selected in the listbox and the year to be passed in the report that will be selected in the radiobutton (ie  ZMIS1 or ZMIS2) so that the corresponding report output will be displayed directly with the inputs given in the selection screen .
    Please tell me how to do this.Thanks in advance.

    You also have to pass Selection-screen data for called program the way it has been shown down.
    REPORT  ZVENKAT_ALV_LIST.
    DATA:
          IT_RSPARAMS TYPE STANDARD  TABLE OF RSPARAMS,
          WA_RSPARAMS LIKE LINE OF IT_RSPARAMS.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS: MONTH1(10) AS LISTBOX VISIBLE LENGTH 10 OBLIGATORY.
    PARAMETERS: MONTH2(10) AS LISTBOX VISIBLE LENGTH 10.
    PARAMETERS: YEAR(4) OBLIGATORY.
    SELECTION-SCREEN : END OF BLOCK B1.
    SELECTION-SCREEN: BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
    PARAMETERS: RB1 RADIOBUTTON GROUP G1 USER-COMMAND UC1,
                RB2 RADIOBUTTON GROUP G1.
    SELECTION-SCREEN : END OF BLOCK B2.
    IF RB1 = 'X'.
      WA_RSPARAMS-SELNAME = 'P_MATNR'. "PARAMETER or SELECT-OPTION of the called program
      WA_RSPARAMS-KIND    = 'P'.       "S=Select-options P=Parameters
      WA_RSPARAMS-SIGN    = 'I'.
      WA_RSPARAMS-OPTION  = 'EQ'.
      WA_RSPARAMS-LOW     = '11010'.
      WA_RSPARAMS-HIGH    = SPACE.
      SUBMIT ZMIS1 WITH SELECTION-TABLE RSPARAMS AND RETURN.
    ENDIF.
    IF RB2 = 'X'.
      WA_RSPARAMS-SELNAME = 'P_MATNR'. "PARAMETER or SELECT-OPTION of the called program
      WA_RSPARAMS-KIND    = 'P'.       "S=Select-options P=Parameters
      WA_RSPARAMS-SIGN    = 'I'.
      WA_RSPARAMS-OPTION  = 'EQ'.
      WA_RSPARAMS-LOW     = '11010'.
      WA_RSPARAMS-HIGH    = SPACE.
      SUBMIT ZMIS2 WITH SELECTION-TABLE RSPARAMS AND RETURN.
    ENDIF.
    Thanks
    Venkat.O

  • Passing selection-options to standard PROG

    Hi All,
         i want to  submit a standard program into zprogram , in standard program there are 3 select-options . i need to pass  zselect-options into these 3 select-options in standard program.
    if u have any code please pass to me.
    please help me.
    Many Thanks
    Naren

    check this
    Syntax Diagram
    SUBMIT
    Basic forms:
    1. SUBMIT rep.
    2. SUBMIT (name).
    Extras:
    1. ... LINE-SIZE col
    2. ... LINE-COUNT line
    3. ... TO SAP-SPOOL List output to the SAP spool database
    4. ... USING SELECTION-SCREEN scr
    5. ... VIA SELECTION-SCREEN
    6. ... AND RETURN
    7. ... EXPORTING LIST TO MEMORY
    8. ... USER user VIA JOB job NUMBER n
    9. ...Various additions for passing parameters to rep
    10. ... USING SELECTION-SETS OF PROGRAM prog
    Effect
    Calls report rep.
    The system leaves the active program and starts the new report rep. In basic form 2, you can specify the name of the report in the field name. You must specify the name in uppercase, otherwise a runtime error occurs.
    Note
    You can only start programs with type '1' using SUBMIT. If the program has a different type, the system triggers a runtime error.
    Please consult Data Area and Modularization Unit Organization documentation as well.
    Addition 1
    ... LINE-SIZE col
    Effect
    The list generated by the report has the line width col.
    Addition 2
    ... LINE-COUNT line
    Effect
    The list generated by the report has line lines per page.
    Addition 4
    ... USING SELECTION-SCREEN scr
    Effect
    When you execute the report, the system uses the selection screen number that you specify in the scr field. This must be a selection screen defined using the SELECT-OPTIONS, PARAMETERS and SELECTION-SCREEN statements.If you omit the addition, the system uses the standard selection screen 1000.
    This addition allows you to start the same report in different situations, using a different selection screen each time.
    Notes
    The addition VIA SELECTION SCREEN determines whether the report is processed in the foreground or the background.
    What happens if the required screen does not exist or is not a selection screen?
    Screen 1000:
    If you want to use the standard selection screen (... USING SELECTION-SCREEN 1000 or do not specify a ... USING SELECTION-SCREEN) addition, the system does not process a selection screen.
    Other selection screens:
    The system triggers a runtime error.
    Addition 5
    ... VIA SELECTION-SCREEN
    Effect
    The selection screen is displayed. In this case, the selection screen is displayed again after the report list has been displayed. The values entered by the user remain displayed.
    Addition 6
    ... AND RETURN
    Effect
    Returns to the calling transaction or program after the called program has been executed. SUBMIT ... AND RETURN creates a new internal session.
    Addition 7
    ... EXPORTING LIST TO MEMORY
    Effect
    Does not display the output list of the called report, but saves it in ABAP memory and leaves the called report immediately. Since the calling program can read the list from memory and process it further, you need to use the addition ... AND RETURN . Also, since the called report cannot be requested for printing, the addition ... TO SAP-SPOOL is not allowed here. In addition, you must not assign a function code to the ENTER key in the current GUI status. The saved list is read from the SAP memory using the function module 'LIST_FROM_MEMORY' and can then be saved to the database using EXPORT, for example. You can process this list further with the function modules 'WRITE_LIST', 'DISPLAY_LIST' ... of the function group "SLST".
    Addition 8
    ... USER user VIA JOB job NUMBER n
    Effect
    Schedules the specified report in the job specified by the job name job and the job number n. The job runs under the user name user and you can omit the addition USER user. The assignment of the job number occurs via the function module JOB_OPEN (see also the documentation for the function modules JOB_CLOSE and JOB_SUBMIT). This addition can only be used with the addition ...AND RETURN.
    Note
    When scheduling a report with the SUBMIT ... VIA JOB job NUMBER n statement, you should always use the addition ...TO SAP-SPOOL to pass print and/or archive parameters. Otherwise, default values are used to generate the list and this disturbs operations in a production environment.
    SY-SUBRC = 0:
    Job scheduled successfully
    SY-SUBRC = 4:
    Job scheduling terminated by user
    SY-SUBRC = 8:
    Error in job scheduling (JOB_SUBMIT)
    SY-SUBRC = 12:
    Error in internal number assignment
    Addition 10
    ... USING SELECTION-SETS OF PROGRAM prog
    Effect
    Uses variants of the program prog when executing the program rep.
    Note
    Important
    The programs prog and rep must have the same SELECT-OPTIONS and PARAMETERs. Otherwise, variants of the program prog may be destroyed.
    Note
    When using this addition, the specified variant vari of the program prog is taken in USING SELECTION-SET vari. On the other hand, all variant-related actions on the selection screen of rep (Get, Save as variant, Display, Delete) refer to the variants of prog.
    Example
    SUBMIT REPORT01
           VIA SELECTION-SCREEN
           USING SELECTION-SET 'VARIANT1'
           USING SELECTION-SETS OF PROGRAM 'REPORT00'
           AND RETURN.
    Effect
    Executes the program REPORT01 with the variant VARIANT1 of the program REPORT00.
    Exceptions
    Non-Catchable Exceptions
    Cause: The specified program was not found.
    Runtime Error: LOAD_PROGRAM_NOT_FOUND
    Cause: Invalid value passed to a selection with SIGN.
    Runtime Error: SUBMIT_WRONG_SIGN
    Cause: The specified program is not a report.
    Runtime Error: SUBMIT_WRONG_TYPE
    Cause: More than one value passed to a report parameter.
    Runtime Error: SUBMIT_IMPORT_ONLY_PARAMETER
    Cause: Table passed to a selection with WITH sel IN itab that has an unexpected structure.
    Runtime Error: SUBMIT_IN_ITAB_ILL_STRUCTURE
    Additional help
    Starting Executable Programs (Reports)
    Regards
    Prabhu

  • Add fields to the standard report QM15

    i want to add fields to the standard report.
    t.code QM15 which display the list of items: selection of notifications.
    the fields i want to add are:
    1. batch no
    2. Sample no
    3. Main vendor
    please let me know how can i do this. if any one can help me with screenshot doc. this is really helpful.
    Thanks

    Hi experts,
    I have done with the z** creation of the standard report. I also create the z*include for the standard includes which are in the standard program. But I not able to find the fieldcatlog or include where I can add my new fields.
    But I tried with one structure tht is standard structure in tht standard report so i make it as z*structure and I append my new fields to this structure. I debug the report and this works fine and also shows output, but at output when I change the layout to see these new fields it shows dump.
    Then I tried with one more thing to give the positioning to my new added fields. (This is what u can say column positioning ).
    When I execute this,it goes to dump screen.
    Now I don't what to do with this.
    If any one like to see the code. Plz let me know I will post the code.
    Or if any one have any document on this plz share. Or any other solution.
    Thanks in advance.
    Thanks
    Sachin

  • Re : select-options in abap-objects program

    Dear friends,
                      I want to give select-options in abap-objects program. How to give that.
                                 Thanking You
    with regards,
    Mani

    In the transaction SE24, enter your class name, click modify.
    in the tab named "Types" you have to declare two types. By example, if you want to receive one select-options that in your program that uses this class is declared like:
    " P_SAKNR FOR SKAT-SAKNR".
    you've got to declare two types in the class:
    a- TYPES:  begin of E_S_SAKNR,
                          sign(1),
                          option(2),
                          low(10),
                          high(10),
                      end of E_S_SAKNR.
    b - TYPES E_T_SAKNR type standard table of E_S_SAKNR.
    so, in the class method that you want to receive P_SAKNR as importing parameter. You got to do this:
    method TEST importing ET_SAKNR type E_T_SAKNR.
    now, in the implementation of this method you should be able to use ET_SAKNR as the same way as you usually use a parameter or a select-option. You could use it in a select with the operator IN by example..

  • How can we pass the select-option value to modulepool program?

    hi,
      how can we pass the select-option value to modulepool program ?
      Because if i declared select-options in executable program and i used SSCRFIELDS to define push buttons in selection screen.
               My requirement if enter the values to select-options and press UPDATE pussbotton then i want call screen which contains tablecontrol.
               How i get select-option values to PAI of call screen for getting the data from database table to my internal table?

    Oh I thought that you have selection-screen and again you are working on dialog programming.
    if you want to use select-option directly in module pool then it is not possible.
    but you can do other way.
    create two varaiables
    data : v_kun_low like kna1-kunnr,
             v_kun_high like kna1-kunnr.
    use these two variables in layout ,let user knows that he can not give options like gt,lt,eq ,it will be always BT.
    and also when you see normal report program,you can use multiple values in either low or high,but here it is not possibel.
    use can enter only low value and high value.
    when you come to program point of view
    declare one range
    ranges r_kunnr for kna1-kunnr.
    do the coding like
    r_kunnr-low = v_kun_low.
    r_kunnr-high = v_kun_high.
    r_kunnr-options = 'BT'.
    r_kunnr-sign = 'I'.
    append r_kunnr.
    now you can use r_kunnr in select query ,it will work like select-option.
    other than this there is no option.
    Thanks
    Seshu

  • Reg:HOw to add new charactersitics in standard report

    hi all
    HOw to add new charactersitics in standard report
    regards
    JK Rao

    You need to copy the std report and make necessary changes in the copied report. SAP does not allow changes to std report. The technical details of the report can be seen by selecting from the menu Extras - technical information. Select the library and Report name. Copy the same using t code GRR1. Carry out necessary changes and SAVE. Before execution, you will have to specify the report group in which report needs to be attached. You can choose and existing group or specify a new one.
    Regards
    Rakesh Pawaskar

  • How to provide select-option in module pool programming

    Hi all,
    How to provide select-option in module pool programming.
    If any body knows let me immediately.
    Thanks
    sudheer

    Hi Sudheer,
    Unfortunately there is no standard way of having a select-option in a module pool program.
    What you can try is having two fields and creating a range in your program and populating the range at runtime with respective value and trying to simulate some functionality of the select-option.
    Hope it helps.
    Thanks, Debasish

  • To add select-options to MB26

    How can we add select-options to t. code mb26? I want to add purchasing group as a select-options in mb26.
    How to put data extraction logic for the same?
    Regards,
    Sachin 11

    Hi Sachin,
    The only way you could do this is by copying the program PP_PICK_LIST to a Z program & then later in the include INCLUDE PPPLSEL you have to put your Select-option for Purchasing group by copying the include to a Z program.
    Also you have to debug & understand the flow of the program & find out the exact place where you can add logic for your select options.
    Regards
    Abhii

  • Add Select Options To ViewContainerUIElement in a TabStrip

    Hello,
    Finally, I have been able to add select options progammatically. But what I would like to do is to split them up using tabstrips.  I have searched the forum but have not seen a way to place select options into the ViewContainerUIElement.  I have seen where you can embed a view.
    I mean I sould be able to take the object and apply the same code for adding the select options.
    Can anyone provide me with some assisance?
    Regards, Dean.

    Hi Sachin,
    The only way you could do this is by copying the program PP_PICK_LIST to a Z program & then later in the include INCLUDE PPPLSEL you have to put your Select-option for Purchasing group by copying the include to a Z program.
    Also you have to debug & understand the flow of the program & find out the exact place where you can add logic for your select options.
    Regards
    Abhii

Maybe you are looking for

  • Upgrade of OS 9.1 to 9.2.1 to 9.2.2 errors and system freezes on a G3 Pismo

    I am trying to upgrade OS 9.1 to 9.1.2 to 9.2.2 I have downloaded both upgrade packages onto my G5 iMac, burnt them on to a CD and copied them onto a G3 Pismo Powerbook. I unstuff the 9.2.1 upgrade download with its .smi suffix using Stuffit Expander

  • Counting date transactions for last six months

    Post Author: crystalrook CA Forum: Formula Any help is greatly appreciated.  I am running Crystal XI. I have an order field (PurchaseOders.PODatePlaced) for each item. There can be multiple orders in the same month for each item of course.  I would l

  • Invalid Characters shown in UTF-8 character set

    There is an XMLP report whose template output character set is ISO-8859-1. The character set ISO-8859-1 is required for this report as per Spanish Authorities. When the report is run, output gets generated in the output directory file of application

  • 12 digits in general ledger account field

    Hello experts, I would like to know if it is possible to add two digits to the field general ledger account. I am working for a client who needs 12 digits for this field, so I would appreciate to know if this is possible to accomplish in a standard w

  • IDOC - SOAP scenario

    Hi Guys, I have configured the IDOC-SOAP scenario and i am sending to the target business partner with the soap receiver adapter. I did not get any wsdl from the business partner instead i got the xml structure, target url and soap action. I have cre