Hide selection screen option on the base of Transaction code

Hi ,
i have created one report with two diffrenet transaction code .
now we have two different selection  options on the base of Transaction code.
how can i do coding for this .
anyone has any sample code ..
thanks,
Jack

Thanks Subramanian,
INITIALIZATION.
if sy-tcode = tcd1.
perform first_selection_screen.
elseif sy-tcode = tcd2.
perform second_selection_screen.
endif.
FORM first_selection_screen..
SELECTION-SCREEN BEGIN OF BLOCK s1 WITH FRAME TITLE text-s02.
SELECT-OPTIONS: s_date  FOR  vbrk-fkdat.
SELECT-OPTIONS: s_kunag  FOR  vbrk-kunag.
SELECTION-SCREEN END OF BLOCK s1.
ENDFORM.
But in this perform if i write code for selection-screen then it gives me syntax error.
error message: within form or function module, selection-screen option is not allowed.
Thanks,
Jack

Similar Messages

  • How can i declare a selection screen in a DP program with transaction code.

    hi friends,
    How can i declare a selection screen in a DP program with transaction code. What are the events and flow logic..

    Search in SCN/Google for Module-pool programming basics.

  • How to remove an selection screen element at the event

    hi,
    can any one tell me how to remove / Disable an selection screen element at the runtime after an event occurs like selection of Value from a parameter.
    Thanks and Regards
    Guhapriyan Subrahmanyam

    TABLES : BKPF.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS : P_BUKRS LIKE BKPF-BUKRS OBLIGATORY.
    "Company code
    SELECT-OPTIONS : S_BELNR FOR BKPF-BELNR MODIF ID M01.
    "Accounting Doc No
    PARAMETERS: P_GJAHR LIKE BKPF-GJAHR MODIF ID M02.
    "Fiscal year
    SELECTION-SCREEN END OF BLOCK B1.
    AT SELECTION-SCREEN ON S_BELNR.
    IF S_BELNR IS NOT INITIAL.
    LOOP AT SCREEN.
    IF SCREEN-GROUP1 = 'M02' .
    SCREEN-INVISIBLE = '1'.
    MODIFY SCREEN .
    ENDIF.
    ENDLOOP.
    ENDIF.

  • How disable the full screen option in the standard or wireframe video player ?

    I was wondering if (and how) it's possible to just disable the full screen option in the controls that appear below the video player (standard or wireframe).
    I want to have a video player with the progression bar, play / pause options, the counter without the full screen option because: "When someone clicks the Full Screen button during playback, the video opens in a pop-up window. Any interaction used to transition to a new state in the application does not work."
    http://help.adobe.com/en_US/flashcatalyst/cs/using/WS4bebcd66a74275c3-326fcb52123816c0204- 7fed.html
    Thanks for your help.
    //Catalyster33//

    I don't think so from within Flash Catalyst. That is all part of the component. I took a quick look at the docs, and did not see that element at as a parameter. There are only two options I can think of: either build a custom controller in  Flash Catalyst (which may not have all the same functionality as the stock controller) or take your project into Flash Builder and modify the controller skin there.
    Chris

  • Define path in selection screen to write the output file to pres.  server

    Hi can anyone tell me how to declare a variable so that the user can specify his own path name in the selection screen to store the output file in the presentation server. and please tell me how to link up the output file to the selection screen specified path.
    thanks in advance.

    DATA: FILE_TAB TYPE STRING.
    SELECTION-SCREEN BEGIN OF BLOCK B02 WITH FRAME TITLE TEXT-B02.
    PARAMETERS:
               P_FILE TYPE RLGRAP-FILENAME OBLIGATORY LOWER CASE.
    SELECTION-SCREEN END OF BLOCK B02.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
      PERFORM OPEN_FILE USING P_FILE.
    FORM OPEN_FILE USING L_FILE.
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
        CHANGING
          FILE_NAME     = L_FILE
        EXCEPTIONS
          MASK_TOO_LONG = 1
          OTHERS        = 2.
      IF SY-SUBRC <> 0.
        SY-MSGTY = 'I'.
        MESSAGE ID     SY-MSGID
                TYPE   SY-MSGTY
                NUMBER SY-MSGNO
                WITH   SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        STOP.
      ENDIF.
    ENDFORM.
    FILE_TAB = P_FILE.
      CALL FUNCTION 'GUI_DOWNLOAD'
    *Complete the FM
    Greetings,
    Blag.

  • Full screen option minimizes the window?

    When I click the full screen option in the firefox dropdown menu or use the toolbar icon the page minimizes to my taskbar immediately and becomes non functional. It freezes there until I close/re-open the browser. I'm using a firefox theme (Orange Fox 4.0.29.03.11) . I'm brand spankin new to the firefox browser so it may be something I'm not doing correctly. I thought maybe this theme may not be compatible or buggy to this version of firefox. Any help much appreciated. Thanks.

    The question is whether the iPad screen is built to US Quarto (used by 5% of the planet) or to the International standard A4.
    The proportions seem to suggest that the design is USA only.
    Peter

  • Payment block non editable on the basis of company code level

    Dear Gurus,
    we had made payment block "A" non editable in payment praposal through transaction code ob27.as per reqeust from
    our partent company in India but our subsidiary in France wants the payment block "a"  to be editable (to be insert
    payment block "a" in document to make document deselect). Is it possible to make payment block editable on the basis of
    company code level.
    Regards,
    Rajesh

    Hi,
    In this scenario, you need to have a NEW Payment block key like Z. Create Z with reference to A in OB27.
    For Z, you need to select check box Change in Payment Proposal and SAVE.
    Now maintain this Z in vendor masters of company code, where you want the payment block can be edited.
    Note: Payment Block codes are not company code dependent.
    Regards,
    SRinu

  • Taxware SAP configuration on the basis of product code

    Hi,
    I request you to send the cofiguration steps for Taxware and SAP on the basis of product code.
    Thanks in advance,
    Subhabrata

    Hi Sanker,
    Thanks for your reply.We need custom product code only for three expense items.A custom product code starting with 9 created in taxware and we tested the calculation in RFC_CALCULATE_TAXES_DOC.Now we need to attach those three items ( lease rent etc.) in SAP with the product code.And then post documents in SAP and check the calculation for tax.How to do this configuration in SAP?
    Thanks,
    Subha

  • What are the difference in transaction codes in 4.6 C and ECC 6.0 HCM syste

    Hi
    What are the difference in transaction codes in 4.6 C and ECC 6.0 in HCM SAP.
    Regards,
    Sanjay

    Believe there will not be any change in Tcodes.
    check these links
    http://solutionbrowser.erp.sap.fmpmedia.com/
    http://www.sap.com/solutions/business-suite/erp/pdf/BWP_ERP2006_Upgrade.pdf
    http://service.sap.com/releasenotes
    http://service.sap.com/upgrade for functional
    https://websmp105.sap-ag.de/upgrade

  • What is the use of transaction code FAGLGA15

    What is the use of transaction code FAGLGA15.What is its functionality.Please help.

    Hello,
    Yes, you are right. Before ECC 6.0 version the TC: KSU5 has been used for actual assessment. Now in ECC 6.0 the same transaction code has been changed to FAGLGA15. You can execute the actual assessment in test run and if it is ok then run in background.
    Thanks
    Para

  • What is the use of transaction code VF24

    what is the use of transaction code VF24. if possible please provide some documentation

    Hi,
    The main use of VF24 transaction code : edit work list for invoice list.
    This enables the user to understand the processes left during the combine processing of invoices.
    like which are left for releasing to accounts, which have still pending payment posting, with respect to the invoice list consisting of the combination of invoices.
    invoice list is a combination of different invoices with same critierias. so to check and process these invoice lists collectively this function is used.
    regards,
    siddharth.
    regards,
    Siddharth.

  • Give me the functionality of transaction code st01

    give me the functionality of transaction code st01

    Hi Ravi,
    The tx ST01 give a datailed trace of the underlying system while executing something from sap.
    For example what Authorization objects are hit by a user when he performs a tcode or what are the dbtables/sqlstatements etc are run  or what kernel functions are executed .
    This somewhat helps in debugging like matters.
    One can even set parameters for this by using filters.Suppose u want to trace what authorization objs are hit by a specific user when he executes a specific tcode  got to edit ->filter->shared and enter the user name client no and tcode. So that not all the users are traced but only this specific user for the specific tcode is traced. On analysis u can knaow what authorization objects he hitted on executing the specific tcode.
    Try it with the other areas like Db access, Table Buffer, etc and u will get a more clearer picture.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/1f/83113f4bc511d189750000e8322d00/frameset.htm
    This is a good place to start with.
    Pl dont forget to award points if resolved.
    Regards

  • Changing the selection screen based on the option in list box option

    Hi Experts,
    I have a list box parameter in my selection screen,
    i have four options and i am changing my selection screen based the option selected.
    see my code below,
    at selection-screen output.
      GS_VRM_VALUES-KEY = '1'.
      GS_VRM_VALUES-TEXT = TEXT-S02.
      APPEND GS_VRM_VALUES TO GT_VRM_VALUES.
      GS_VRM_VALUES-KEY = '2'.
      GS_VRM_VALUES-TEXT = TEXT-S03.
      APPEND GS_VRM_VALUES TO GT_VRM_VALUES.
      GS_VRM_VALUES-KEY = '3'.
      GS_VRM_VALUES-TEXT = TEXT-S04.
      APPEND GS_VRM_VALUES TO GT_VRM_VALUES.
      GS_VRM_VALUES-KEY = '4'.
      GS_VRM_VALUES-TEXT = TEXT-S05.
      APPEND GS_VRM_VALUES TO GT_VRM_VALUES.
      CLEAR: GS_VRM_VALUES.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          ID                    = 'P_DROP'
          VALUES                = GT_VRM_VALUES
      EXCEPTIONS
        ID_ILLEGAL_NAME       = 1
        OTHERS                = 2
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    LOOP AT SCREEN .
        CASE P_DROP .
          WHEN '1'.
            IF SCREEN-GROUP1 = 'M2' OR
              SCREEN-GROUP1 = 'M3' OR SCREEN-GROUP1 = 'M4'.
              SCREEN-INPUT = 0.
             SCREEN-ACTIVE = 0.
              screen-invisible = 1.
              MODIFY SCREEN.
            ENDIF.
          WHEN '2'.
            IF SCREEN-GROUP1 = 'M3' OR SCREEN-GROUP1 = 'M4'.
              SCREEN-INPUT = 0.
             SCREEN-ACTIVE = 0.
              screen-invisible = 1.
              MODIFY SCREEN.
            ENDIF.
          WHEN '3'.
            IF SCREEN-GROUP1 = 'M2' OR
                SCREEN-GROUP1 = 'M4' .
              SCREEN-INPUT = 0.
             SCREEN-ACTIVE = 0.
              screen-invisible = 1.
              MODIFY SCREEN.
            ENDIF.
          WHEN '4'.
            IF SCREEN-GROUP1 = 'M2' OR
            SCREEN-GROUP1 = 'M3'.
              SCREEN-INPUT = 0.
             SCREEN-ACTIVE = 0.
              screen-invisible = 1.
              MODIFY SCREEN.
            ENDIF.
          WHEN OTHERS.
            IF SCREEN-GROUP1 = 'M2' OR
               SCREEN-GROUP1 = 'M3' OR SCREEN-GROUP1 = 'M4'.
              SCREEN-INPUT = 0.
             SCREEN-ACTIVE = 0.
          screen-invisible = 1.
              MODIFY SCREEN.
            ENDIF.
        ENDCASE.
      ENDLOOP.
    my problem is when i change the option in the list box, the particular modify group ie, the screen is getting changed only after i press enter, So please suggest me how i can change the screen without pressing enter.

    Hi,
    without using VRM_SET_VALUES...you just create one data element by going se11....create one domain for it...now give the values in the "value range" tab....and at the time of declaration just write ..
    PARAMETERS var1 TYPE <your created data element>
                        AS LISTBOX VISIBLE LENGTH 20
                        USER-COMMAND onli
                        DEFAULT <one value>.
    You will get the same effect as list box....and make it mandatory..
    Arunima

  • Displaying Plant as F4 option in the selection screen according to the User Authorization

    Hi all,
    In the selection screen, I need to display the list of plants as F4 search help that the user has authorization.
    How I need to check from the table.
    Please provide me the exact table name where I can get the list of plants that the user has authorization.
    Thanks in Advance.
    Regards,
    karthik

    Hi Madan,
    Thanks for your reply.
    As of now Plant entered in selection screen is validated for authorization like below.
    authority-check object 'M_MATE_WRK'
          id 'ACTVT' field '02'
          id 'WERKS' field p_werks.
       if sy-subrc <> 0.
         message text-010 type c_e.
         exit.
       endif.
    But they are in need of Plants in F4.
    Regards,
    Karthik

  • How to restric the selection screen option

    Hi,
       This is my first time to use this site. I am working on report which is OM report using PCH logical DB. when I run the report it runs for all OBJID instead of running for the select one(the one I use on selection screen).
    Does any one has any Idea why is this doing that and how to fix it.

    after GET OBJEC uss te folliwng check..
    CHECK OBJID in PCHOBJID.
    ~Suresh

Maybe you are looking for

  • How do I move DVD digital copies from my iphone to a new computer's itunes account, same Apple ID?

    I just got a MacBook Pro and I also have an iphone. My current main itunes is on a PC that I will not use any longer. I have several movies on my iphone which came with DVD's as digital copies, not purchased through itunes store. In the past, I've lo

  • Transfer info from one mac to another

    I'm having problems with transfering data between my macbook (old) and my macbook pro (new) they are both in perfect running order. I have been trying to use target disk mode but I have been totally unsuccessful. I can't find my photo or my itunes li

  • Scan to email on Color LaserJet Pro MFP M177fw

    I am trying to download the Printable "Scan to Email" onto my  Color LaserJet Pro MFP M177fw but It keeps throwing an error? When I  bought the printer (yesterday) i was told that I could set it up to Scan in a document and have it automatically send

  • I need help with an app game purchase

    I recently added 20$ to my account with 2 10$ Itunes cards. I play the app called clash of clans, in the game you can buy things with itunes, I tried to make a purchase for 19.99 when there is just about 21 $ in my itunes and it's telling me I have i

  • Timelime VS multiple pages

    I'm setting up a corporate site using all Flash. I have one page with a section I use to display frames or or small slide shows. I am confused as to the best practice of calling the content in the page. Would I use one large time-line in my FLA file