PCH ldb - hiding fields on standard selection screen

Hi,
I am using PCH ldb in my report. The standard selection screen which appears initially, does not show us the "object selection period" fields directly (it is hidden initially). It is displayed only after the "other period" button is clicked.
The requirement is that the "object selection period" fields should be displayed directly without requiring the user to click on the "other period" button.
When using PNP ldb, it is possible to create a report category and hence this can be achieved in PNP. But i am unable to find any solution for the same in PCH ldb.
Does anyone have some idea about implementing the same.

Hi Vikram,
There are no report categories for PCH.
If you enter some values in the dynpro variables it will jump there automatically.
REPORT  zmf_pch.
TABLES: objec.
INITIALIZATION.
pchobeg  = sy-datum.
pchoend  = sy-datum.
GET objec.
Regards,
Michael

Similar Messages

  • Make (LDB)PNP Fields obligatory on selection-screen

    I am using LDB PNP.. I want to make some fields of PNP as obligatory. How Can I do that?
    So far I am doing the following...
    <b>Initialization.
    PNPABKRS-LOW = '?'.
    Append PNPABKRS.
    At selection-screen.
    if PNPABKRS-LOW is initial.
    PNPABKRS-LOW = '?'.
    Message e100(z01).
    endif.</b>
    What you suggest ?
    Thanks
    Message was edited by: Saquib Khan

    You have to do this way,
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF SCREEN-NAME = 'PNPABKRS-LOW '.
          SCREEN-REQUIRED = 1.
          MODIFY SCREEN.
        ENDIF.
    ENDLOOP.

  • Hiding fields in Report Selection Screen which have Mandatory Fields

    Hi Friends,
    I have 2 Radio Buttons. PO and SO. If PO is selected, user need to input the Plant value in the Sel.Scrn which is mandatory and Storage Location field will be invisible.
    If SO is selected, then user need to input the Plant and Storage Location value which are mandatory. Now Storage Location will be visible.
    When radio button SO is seleted, SAP triggers an error message as 'Make an entry in all required fields' without displaying Storage Location input field in Sele. Scrn.
    How to do this.?  I checked in SCN and not find perfect match to solve for Mandatory Input Fields.
    Regards,
    Suresh

    Hi,
    Yes. What Rob has told is correct. Try like this.
    AT SELECTION-SCREEN.
    IF po_po EQ 'X'.
    IF so_werks[] IS INITIAL.
    MESSAGE 'Please enter plant' TYPE 'E'.
    ENDIF.
    ELSE.
    IF so_lgort[] IS INITIAL.
    MESSAGE 'Please enter storage location' TYPE 'E'.
    ENDIF.
    IF so_werks[] IS INITIAL.
    MESSAGE 'Please enter plant' TYPE 'E'.
    ENDIF.
    ENDIF.
    Thanks,
    Vinod.

  • Including User selection criteria along with LDB standard selection screen

    Hi
    While creating a HR report, along with the standard selection screen, if the cusomer requires some more fields to be added, How to retrive the data from the DB?
    Is it the way to retrive the data based on Standard selection criteria from the LDB and then filter it based on user criteria or any other way?
    Please help me out in this regard.
    Thank you.

    Yes thats the way. You get the data based on Selection screen of LDB (You can select Report Catogory you wish to) once you get data, You can put CHECK statement to see the data against PXXXX type to the filter value from you custom field on selection screen.

  • How to disable a standard selection screen of LDB?

    Hi Friends,
       My requirement is to disable a standard selection screen of a standard LDB and use my own Selection screen instead.How to go about it?.
    Prompt replies would be rewarded.
    Regards,
    Tamilarasan.

    Hi Tamilarasan,
      U can hide LDB field, in the following way.
    1.In tables statement remove the table name for the fields
      you done require.
    2.You can modify the screen fields. LOOP AT SCREEN
    3.In the program attributes you can choose the SAP defined
      selection screen if provided.
    Add can add new field, in the following way,
    1.If it is Customer program then as normal way like
    SELECTION-SCREEN: BEGIN OF BLOCK 1
    SELECT-OPTIONS:
    SELECTION-SCREEN END OF BLOCK 1.
    2. Goto SE36 and modify the selection views by creating  'CUS'.
    All LBD will not have dynamic selection. If you want you can copy to Z* version and add the following statement to have dynamic selction
    "SELECTION-SCREEN DYNAMIC SELECTIONS FOR TABLE" XXXX
    Regards,
    Prabhu Rajesh.

  • Hiding Fields in Standard Program :  RFITEMAR ,LDB : DDF

    Hi Experts,
    Am using standard program : RFITEMAR ,as per my requirement i dont need
    to display all the fields in the standard selection screen,i juss want to hide the fields which
    i dont want to dispaly in the selection, as there are some dependencies i dont want keep that code in active state.
    can anyone pls help me/suggest me with my logic/guidance would be helpful and very much appreciated.
    Regards,
    Ashok.

    Hi Marcin,
    Thnaks for your response.
    SHDO Tcode is used for Transcation Varient which is used to hide the fields
    or display additioal fields in sales order.
    According to my requirement i copied the standard program into a custom program
    thats where am tryig to implement changes.am not sure wether that would fulfill my requirement.
    do let me if know any solution /guidance would be helpful and appreciated.
    Regards,
    Ashok.

  • How to Add a new fields in the selection screen of LDB.

    Hi All,
    I want to add a new fields in the selection screen of LDB & then i need to select the data for that fields.
    So could you please tell me for that where i need to add the code for selecting the data.
    Thanks
    Roli

    Hi
    welcome to SDN forum
    If you are designing your own LDB with your own tables you can define tree structure and then the selection screen for the tables
    if you wants to modify the std LDB of SAp means take the access key and to modify that code
    if you add the extra field you have to modify the where conditions in the code also
    see the doc
    A logical database is a special ABAP/4 program which combines the contents of certain database tables. You can link a logical database to an ABAP/4 report program as an attribute. The logical database then supplies the report program with a set of hierarchically structured table lines which can be taken from different database tables.
    LDB offers an easy-to-use selection screens. You can modify the pre-generated selection screen to your needs. It offers check functions to check whether user input is complete, correct, and plausible. It offers reasonable data selections. It contains central authorization checks for data base accesses. Enhancements such as improved performance immediately apply to all report programs that use the logical database.
    Less coding s required to retrieve data compared to normal internel tables.
    Tables used LDB are in hierarchial structure.
    Mainly we used LDBs in HR Abap Programming.
    Where all tables are highly inter related so LDBs can optimize the performance there.
    Check this Document. All abt LDB's
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=%2flibrary%2fabap%2fabap-code-samples%2fldb+browser.doc
    GO THROUGH LINKS -
    http://www.sap-basis-abap.com/saptab.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9bfa35c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c6/8a15381b80436ce10000009b38f8cf/frameset.htm
    /people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
    Re: **LDB**
    www.sapbrain.com/FAQs/TECHNICAL/SAP_ABAP_Logical_Database_FAQ.html
    www.sap-img.com/abap/abap-interview-question.htm
    www.sap-img.com/abap/quick-note-on-design-of-secondary-database-indexes-and-logical-databases.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9bb935c111d1829f0000e829fbfe/content.htm
    Gothru the blog which provides info on LDB's:
    /people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
    Sample code
    TABLES: SPFLI,
    SFLIGHT,
    SBOOK,
    SCARR.
    START-OF-SELECTION.
    GET SPFLI.
    WRITE:/ ’SPFLI: ’, SPFLI-CARRID, SPFLI-CONNID,
    SPFLI-AIRPFROM, SPFLI-AIRPTO.
    GET SFLIGHT.
    WRITE:/ ’ SFLIGHT: ’, SFLIGHT-CARRID, SFLIGHT-CONNID, SFLIGHT-FLDATE.
    GET SBOOK.
    WRITE:/ ’ SBOOK: ’, SBOOK-CARRID, SBOOK-CONNID,
    SBOOK-FLDATE, SBOOK-BOOKID.
    GET SFLIGHT LATE.
    WRITE:/ ’ GET SFLIGHT LATE: ’, SFLIGHT-FLDATE.
    Regards
    anji

  • LDB FMF + supress standard selection screen

    Hi,
    I had developped a specific report using the LDB FMF, but i want to supress the standard selection screen.
    i want to use my only own specific selection screen.
    How to do that ?
    Best regards

    Find the link below:
    [http://help.sap.com/saphelp_46c/helpdata/en/9f/db9bed35c111d1829f0000e829fbfe/frameset.htm]

  • How to change standard selection-screen fields

    hi i am kishore.
    i have requirement.
    i have to change selection-screen label purchase order to purchase docuement in request for quatation.
    pls suggest that how to change the standard selection screen field labels.

    Hi.
    This is possible.
    Just try out this way.Heres is an example. 
    TABLES: pernr.
    data: i_tab type standard table of RSSELTEXTS with header line.
    initialization.
    i_tab-name = 'PNPPERNR'.
    i_tab-kind = 'S'.
    i_tab-text = 'Employee ID'.
    append i_tab.
    CALL FUNCTION 'SELECTION_TEXTS_MODIFY'
      EXPORTING
        program                           = 'ZESO_TEST'
      tables
        seltexts                          = i_tab
    EXCEPTIONS
      PROGRAM_NOT_FOUND                 = 1
      PROGRAM_CANNOT_BE_GENERATED       = 2
      OTHERS                            = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Thanks and regards,
    Maheshwari.V

  • Hiding and Unhiding Fields On The Selection Screen

    Hi Guys/Dolls
    I've managed to grey out and hide some fields on a selection screen within the AT SELECTION-SCREEN OUTPUT section but don't know how to re-instate them.
    basically on initial entry of the screen some fields are hidden but once I enter some pre-requisite data I need to display them but in a greyed out manner.
    I've done the first bit but don't know how to do the 2nd bit i.e re-display the fields.
    Any help would be appreciated.
    Many thanks in advance.
    Raj
    My code is as follows:-
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN POSITION POS_LOW.
    PARAMETERS: begcalsh LIKE t549q-begda MODIF ID pe4.
    SELECTION-SCREEN COMMENT (1) text-199 FOR FIELD endcalsh
    MODIF ID pe4.
    PARAMETERS: endcalsh LIKE t549q-endda MODIF ID pe4.
    SELECTION-SCREEN POSITION POS_HIGH.
    PARAMETERS: begrefsh LIKE t549q-begda MODIF ID pe5.
    SELECTION-SCREEN COMMENT (1) text-199 FOR FIELD endrefsh
    MODIF ID pe5.
    PARAMETERS: endrefsh LIKE t549q-endda MODIF ID pe5.
    SELECTION-SCREEN END OF LINE.
    AT SELECTION-SCREEN OUTPUT.
    * Grey out the parameters.
      PERFORM params_grey_in_out USING 'false' 'PE4'.
      PERFORM params_grey_in_out USING 'false' 'PE5'.
    * Hide the parameters.
      PERFORM params_show_hide USING 'false' 'PE4'.
      PERFORM params_show_hide USING 'false' 'PE5'.
    AT SELECTION-SCREEN.
      PERFORM params_show_hide USING 'true' 'PE4'.
      PERFORM params_show_hide USING 'true' 'PE5'.
    *&      Form  params_grey_in_out
    FORM params_grey_in_out USING value(iv_triggering_param)
                                     value(iv_screen_group).
    *this form activates fields with MODIF ID = IV_SCREEN_GROUP
    *if IV_TRIGGERING_PARAM eq TRUE and greys them out otherwise.
      DATA lx_input LIKE screen-input.
      IF iv_triggering_param EQ 'true'.
        lx_input = 1.
      ELSE.
        lx_input = 0.
      ENDIF.
      LOOP AT SCREEN.
        IF screen-group1 EQ iv_screen_group.
          screen-input = lx_input.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " params_grey_in_out
    *&      Form  params_show_hide
    FORM params_show_hide USING value(iv_triggering_param)
                                     value(iv_screen_group).
    *this form displays fields with MODIF ID = IV_SCREEN_GROUP
    *if IV_TRIGGERING_PARAM eq TRUE and hides them otherwise.
      DATA lx_active LIKE screen-active. "(1) type n.
      DATA lx_invisible LIKE screen-active. "(1) type n.
      IF iv_triggering_param EQ 'true'.
        lx_active = 1.
        lx_invisible = 0.
      ELSE.
        lx_active = 0.
        lx_invisible = 1.
      ENDIF.
      LOOP AT SCREEN.
        IF screen-group1 EQ iv_screen_group.
          screen-invisible = lx_invisible.
          screen-active = lx_active.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " params_show_hide

    hi u use this logic
       LOOP AT SCREEN.
          IF screen-group1 = 'GR3'.
            screen-active = 1.
            screen-input = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          IF screen-group1 = 'GR2'.
            screen-invisible = 0.
            screen-input = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.

  • Standard selection screen

    Hi all,
    I have written a Z program using LDB PNP. Usually we get a standard selection screen where in we enter begda  and endda. However I am getting a different type of standard screen for selection when I execute it with KEYDATE on it. What do I have to do get standard selection screen  with start date and end date on it.
    Cheers,

    Thanks for the response.
    The report category field is blank.

  • I have mapped the fields on the selection-screen  to the BDC on transaction

    I have mapped the fields on the selection-screen  to the BDC on transaction F110.
    When I am selecting a particular any value in select-option on the selection screen, it is giving some default value and the value given by me,for example:
    Payment methods:C
    but in BDC recording for F110 Payment methods:IEQC when the programs is running in foreground mode.
    how can I rectify it?

    This is because payment methods may be a table and what you see IEQC is actually, I for include, EQ for equal and C as your payment method. This is standard structure for ranges or select-options. You can use variable-low which will give you only C.

  • Add bottons on the application tool bar of the standard selection screen

    Hi All,
    I am having the standard selection screen in module pool programing. I wnat to add the bottons on the application tool bar of the standard selection screen.and hide the existing bottons (like std. execute and i bottons.)instead of these i want to give my won bottons like create and display.
    pls help on this.

    Hi Sridhar,
      Try the Code below. It places two buttons on the selection-screen along with the execute button.
    TABLES sscrfields.
    PARAMETERS: p_carrid TYPE s_carr_id,
                p_cityfr TYPE s_from_cit.
    SELECTION-SCREEN: FUNCTION KEY 1,
                      FUNCTION KEY 2.
    INITIALIZATION.
      sscrfields-functxt_01 = 'LH'.
      sscrfields-functxt_02 = 'UA'.
    AT SELECTION-SCREEN.
      CASE sscrfields-ucomm.
          WHEN'FC01'.
          p_carrid = 'LH'.
          p_cityfr = 'Frankfurt'.
        WHEN 'FC02'.
          p_carrid = 'UA'.
          p_cityfr = 'Chicago'.
      ENDCASE.
    START-OF-SELECTION.
      WRITE / 'START-OF-SELECTION'.
    Just go to the table sscrfields to knoe the fields in it. I think this clears the issue.
    Regards,
    Swapna.

  • How to manage obligatory parameters on standard selection screen.

    Hi all,
    How could I ensure settings some fields-parameters as  obligatory on standard selection screen-dynpro1000. I would like to manage this according choosen block. On standard dynpro 1000 I have two blocks for two different selections. Checkboxes ensure which block of selection parameters I want to use. When I check first checkbox I need to set parameters in first block as obligatory and reversely in second block.
    Thanks. zd.

    Another example...
    report zrich_0003.
    selection-screen begin of block b1 with frame .
    parameters: p_check1 as checkbox user-command chk.
    parameters: p_fielda type c modif id gp1.
    parameters: p_fieldb type c modif id gp1.
    parameters: p_fieldc type c modif id gp1.
    selection-screen end of block b1.
    selection-screen begin of block b2 with frame .
    parameters: p_check2 as checkbox user-command chk.
    parameters: p_fieldd type c modif id gp2.
    parameters: p_fielde type c modif id gp2.
    parameters: p_fieldf type c modif id gp2.
    selection-screen end of block b2.
    at selection-screen output.
      if p_check1 = 'X'.
        loop at screen.
          if screen-group1 = 'GP1'.
            screen-required = '1'.
            modify screen.
          endif.
        endloop.
      else.
        loop at screen.
          if screen-group1 = 'GP1'.
            screen-required = '0'.
            modify screen.
          endif.
        endloop.
      endif.
      if p_check2 = 'X'.
        loop at screen.
          if screen-group1 = 'GP2'.
            screen-required = '1'.
            modify screen.
          endif.
        endloop.
      else.
        loop at screen.
          if screen-group1 = 'GP2'.
            screen-required = '0'.
            modify screen.
          endif.
        endloop.
      endif.
    Regards,
    Rich Heilman

  • Currency field on a selection screen of type 'DMBTR'.

    Hello ABAPers,
          Could you please tell me how to do it?
           I have a currency field on a selection screen of type 'DMBTR'.
           When i input and press the enter key ,i want the value to be displayed in the following style.
              1. CURRENCY     EQ    'JPY'
                    EX:
                          Value before pressing EnterKey =   123456 
                          Value after pressing   EnterKey =    123,456
                      i.c  the value should be displayed without decimal point
            2. CURRENCY      NE    'JPY'
                    EX:
                          Value before pressing EnterKey =   123456 
                          Value after pressing   EnterKey =    123,456.00
                      i.c  the value should be displayed with decimal point
          Note:The above trick has already been done on a standard dynpro screen of Tr.Code FB60 and Field 'Amount'.
    <removed_by_moderator>
    Thanks and Regards,
    Mohan
    Edited by: Govindasamy Mohan on Oct 8, 2009 6:22 PM
    Edited by: Julius Bussche on Oct 9, 2009 1:36 PM

    Hi ABAP Lover,
       Thanks a lot for your reply.
       I had the same idea as yours like using data type 'P'.
      But, the problem is  that there is only one currency field on the screen .There is also a field of 'Company Code'.
    Both fields are mandatory .
    Hence,the requirement is  to convert the  currency value to the currency of the company code which is input .
    The conversion  should yield the following output on the screen after pressing the enter button.
    1. When currency EQ  'JPY' ,  the value should be displayed without decimal point
      2.When currency NE  'JPY' ,  the value should be displayed with decimal point
    I am very sorry for not explaining you clearly in my first posting.
    Thanks and Regards,
    Mohan

Maybe you are looking for

  • Tax Depreciation

    Greetings All, My client has a lean asset implementation. They calculate book depreciation "01" with standard depreciation key "LINA". This amount is posted to GL. Now the requirement is to enable in SAP calculation of  tax depreciation for all asset

  • Log data for 5 min

    Hi. I use Labview 7.1.I am acquiring some data using the DAQ assistant and save it as as lvm file using the Write LVM express vi.Both these blocks are placed inside a while loop which runs continously until user presses the stop data. Now the questio

  • Elements 10 crashing on Start up

    when I try to enter elements 10 editor it is crashing while trying to initalize. it becomes unresponsive once "initialing..." pops up, then crashes. I've never even had a chance to use the program. its been doing this since I installed it.

  • Cursor/focus permanently lost

    I've just migrated a Java applet from jdk 1.3.1 to 1.4.2. One visual component in the applet is called List of Values (lov) which consists of a JTextField and a JButton. Clicking on the button causes a pop-up to appear which contains a table (JTable)

  • ICANN GET ANYTHING TO WORK RIGHT AND WHEN I THINK ITS GOING TO WORK, BAM! CRASH AND I JUST GOT IT A

    WHEN i INITIALLY STARTED TO RUN SET UP AFTER GIVING COMPS NAME IT SHUT DOWN AND NOW NOTHING WORKS I AM O 900 BUCKED=S THIS **bleep** THING