MODIFY SCREEN inactive WITH LDB OF PNP

hi
i want to set a screen field no input. and this report use PNP of LDB.
AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF SCREEN-NAME = 'PNPMASSN'.
      SCREEN-INPUT = 0.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
but this can't active.
how Modify Screen IN LDB.
thank you!

Hi,
I am attaching the link for LDBs in report programs.
This shows the events available for reports. And i do not see SELECTION-SCREEN OUTPUT event listed. So i feel that SAP does not support this event when you use LDBs in reports.
http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9bfa35c111d1829f0000e829fbfe/frameset.htm
Hope this helps.
ashish

Similar Messages

  • How to avoid default selection screen in HR interfaces(using pnp ldbs)

    How to avoid default selection screen in HR interfaces(using pnp ldbs)

    Dear Rakesh,
    The report category is used to change the selection screen of programs that use the 'PNP' logical database.
    See links bellow:
    http://www.sapdevelopment.co.uk/hr/hr_repcat.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/15/229357553611d3967f00a0c9306433/frameset.htm
    Report categories for selection screen in HR programming
    Also visit the following blog:
    /people/alvaro.tejadagalindo/blog/2006/02/19/how-to-deal-with-hr-payroll-reports
    Regards,
    Naveen.

  • Working with LDB without selection screen

    can' we take input through file without any selection screen when we are working with LDB?
    Please focus on this.
    Regards
    vamsi.

    Hi,
    yes, u can make use of :
    SET PARAMETER ID command.
    SET PARAMETER ID pid FIELD dobj.
    Effect:
    This statement sets the content of the SPA/GPA parameter specified in pid to the content of the data object dobj. For pid, a flat character-type field is expected that can contain a maximum of 20 characters, which cannot be exclusively blank characters. pid is case-sensitive. For dobj, a flat, (as of release 6.10 character-type) field is expected, whose binary content is transferred in an unconverted format.
    If the SPA/GPA parameter specified for the current user in pid does not yet exist in the SAP memory, it is created. If the SPA/GPA parameter has already been created for the current user, its value is overwritten.
    In a program, SPA/GPA parameters can only be created or assigned values if a name exists for them in the table TPARA. The extended program check reports an error if it can statically determine that a name specified in pid is not contained in the database table TPARA. ist.

  • How to can we do selection-screen modification for LDB?

    Hi All,
    I have custom field in my selection-screen of LDB PNP.
    Can you people please let me know how can I put the selection-screen modificaiton For ex:
    i have created
    parameters a as checbox.
    select-options: p_btrtl for p0001-btrtl no-intervals.
    now If the check box is selected then p_btrtl we can enter values or esle If check box is not selected then p_btrtl will be grayed out, ( I.e. SCREEN-INPUT = 0)
    This is simple from ABAP without LDB. But with LDB can we achieve?????????????
    Satish
    Edited by: Satish Vasireddy on Jun 23, 2010 4:05 PM

    you can use the following logic for the additional selection validation. I have done by using PNP LDB. Ex : I have done for one of the field in IT0377.
    SELECT-OPTIONS: s_bplan FOR p0377-bplan.
    *&      Form  check_selection_0377
      This subroutine is used to check the selection screen
    FORM check_selection_0377.
      LOOP AT p0377 WHERE pltyp  IN s_bplan
                     AND levl1 IN s_lti
                     AND   begda LE pn-endda
                     AND   endda GE pn-begda.
        CALL FUNCTION 'HR_CHECK_AUTHORITY_INFTY'
          EXPORTING
            tclas            = 'A'
            pernr            = pernr-pernr
            infty            = p0377-infty
            subty            = p0377-subty
            begda            = pn-begda
            endda            = pn-endda
            level            = 'R'
          EXCEPTIONS
            no_authorization = 1
            internal_error   = 2
            OTHERS           = 3.
        IF NOT sy-subrc IS INITIAL.
          DELETE p0377.
        ENDIF.
      ENDLOOP.
    selection not found and no value selected
      IF sy-subrc NE 0.
        READ TABLE s_bplan.
        IF sy-subrc EQ 0.
          REJECT.
        ENDIF.
        READ TABLE s_lti.
        IF sy-subrc EQ 0.
          REJECT.
        ENDIF.
      ENDIF.
    ENDFORM.                    " check_selection_0377
    Regards,
    Preetham

  • Change of LDB from PNP to PNPCE

    HI All,
       I have a HR program where LDB PNP is used. Now I need to change the LDB from PNP to PNPCE. Can any one please tell me what are the mandatory change I need to do in the program after changing the LDB.
    Thanks & Regards,
    Arnab

    Hi,
    Purpose
    The PNPCE logical database supports the evaluation of HR master data. It includes the functions of the PNP logical database and offers additional evaluation options. Therefore, you should use the PNPCE logical database instead of the PNP logical database for all new developments.
    The enhanced functionality of PNPCE in comparison to PNP essentially concerns the evaluation of Concurrent Employment, that is the possibility to group evaluate several assignments/personnel numbers of a person. The new events 'GET PERSON' and 'GET GROUP' as well as an enhanced syntax for the INFOTYPES statement (addition AS PERSON TABLE) for the procurement of infotype data enable you to use the new functionality. The use of these new functions is optional. You can run a PNPCE report that does not use the new events and the addition for the INFOTYPES statement in a PNP-compatible session. Since the PNPCE also has an improved selection screen, each report benefits from this even if the report does not use the functions for evaluating Concurrent Employment.
    Prerequisites
    A report that wants to use the PNPCE must enter this in its report attributes under Logical database.
    In addition, the PERNR structure must be declared in the report using the 'TABLES PERNR' statement. You can only use the PERNR structure again in certain circumstances. The use of the 'GET PERNR' event is therefore forbidden. Instead, use the 'GET PERAS' event. Except for the PERNR-PERNR component, all other components of the PERNR structure are no longer filled and have initial values. This kind of programming (with the exception of PERNR-PERNR) therefore not permitted.
    In addition to the 'GET PERAS' event, you can also use the GET PERSON' and 'GET GROUP' events. To be able to use these events, you must declare them using the NODES statement (NODES PERSON', 'NODES GROUP', or. NODES PERAS').
    Explanation of Terms
    If the 'GET PERSON' and 'GET GROUP events and the 'AS PERSON TABLE' addition for the INFOTYPES statement are not used, the report indicates that it does not require the functionality for evaluating Concurrent Employment. In this case, the report runs in a PNP-compatible session. This is referred to as PNP mode in the following documentation. On the other hand, if the report uses the functionality for evaluating Concurrent Employment we refer to CE mode.
    Features
    Process of an Evaluation
    The PNPCE selection screen offers you as standard a range of functions that you can use to restrict the personnel number and person selection. These are discussed in more detail in the following sections. The process is initially as follows regardless of whether the report runs in CE or PNP mode. All available functions and selection conditions leads to the selection of personnel numbers. If you use the sorting function, this set of personnel numbers is then sorted according to the sort criteria you selected. In PNP mode, the GET PERAS event is triggered as a result for each personnel number.
    In CE mode, the persons belonging to the personnel numbers are determined first for all personnel numbers selected. The GET PERSON event is then triggered for each person. The person ID is specified in the OBJID component of the PERSON structure. PERNR_NUM contains the total number of personnel assignments (= personnel numbers) that this person has and the ALL_PERNRS table, which contains a list of these personnel numbers regardless of whether they were actually selected or not. The SELECTED flag is set to X for the personnel numbers selected. The flag is initial for all personnel numbers that are not selected. The PROCESS flag specifies whether the personnel number should be processed in the rest of the process. This flag is set to X by default for the personnel numbers selected. However, the report can set or delete this flag at the GET PERSON event for all personnel numbers. In this way, report and logical database communicate with each other which enables the report to control the rest of the process.
    In the next step, the logical database groups all personnel numbers of a person that are to be processed (that is, all personnel numbers that have the PROCESS flag set). The report can control the type of grouping using the PNPCE_GROUPING_FROM_PAYROLL flag (normal or payroll grouping) and using the PNPGPRSN (grouping reason) and PNPGPVAL (grouping value) parameters of the selection screen. The GET GROUP event is triggered for each group of personnel numbers determined. The GROUPING_REASON and GROUPING_VALUE components contain the grouping reason and grouping value of this group. The number of personnel numbers that belong to this group and that are processed subsequently is in PERNR_NUM. The included ALL_PERNR table contains a list of these personnel numbers with additional information. The SELECTED flag specifies whether the current personnel number was originally selected (flag is set) or was marked by the report as to be processed. GROUPING_BEGDA and GROUPING_ENDDA contain the validity period that the personnel number has for this grouping. The NO_AUTHORITY flag is set if there is insufficient authorization for a personnel number. This personnel number is not processed further. The SORT component defines a standard sort order for the personnel numbers of a group. The report can change this by overwriting the values. In this way, report and logical database communicate with each other, which controls the further processing sequence of the personnel numbers.
    The GET PERAS event is then triggered for all personnel numbers of the group (with the exception of the personnel numbers for which no authorization exists) in the sequence defined by the SORT component (see above). The SELECTED, GROUPING_BEGDA, and GROUPING_ENDDA components have the same meaning here as with the GET GROUP event. The PROCESSED_BEFORE flag specifies whether the personnel number has already been processed once before (it is possible that the personnel number belongs to several groupings and has been therefore been processed several times).
    Thanks and Regards
    Ravi

  • HOW TO IMPLEMENT SCREEN VALIDATION IN LDB?

    Hi,
    I am making use of Logical Database in my report, and I want to do screen validation with the screen which already exists in the system? Is it possible to do so? If yes, then how? The LDB, I am using is PSJ.
    Also, I would like to know, can we define our own selection screen incase of LDB? How is that possible if the answer is yes to it.BUt here I am not talking about dynamic selection screen. What I mean to say is that..., can we restrict the selection screen in LDB, by defining the fields which are required in the selection screen on execution of the report?
    Someone, please guide.
    Points will be rewarded for a satisfactory answer.
    Thanks & Regards,
    Ravi

    Hi Ravi,..
    Chk out the link - http://help.sap.com/saphelp_erp2005/helpdata/en/60/183d78163011d2953c0000e8353423/frameset.htm
    Yes, we can define our own selection screen and that will come right below your LDB selection screen.
    AND also LDB selection screen can be restricted ..for this you have to code in PBO of report for hiding the elements which u don't required.
    Regards
    Mithlesh

  • Selection screen change with check box and radio buttons

    hi frieds
    i have an requirement that
    there is a check box in the selection screen and bydefault it has been check if it check the selection box shuld be disable
    if it uncheck the check box then selection block should enabled and in that againg two radion buttons are there. Bydefualt one radio button is enabled so that correspondng parameter is allow to enter input data. if i select the othere radio button the immeditely it allow the correpnding field entry and other radio button should be disabled with that field.
    please send the piece of code...
    regards
    vijay

    Hi,
    Use the event AT SELECTION-SCREEN OUTPUT.
    Here is an example:
    at selection-screen output.
      if gv_ucomm = 'RG1'.
        loop at screen.
          if pa_rgor = 'X'.
            if screen-name+7(1) = '2' or
               screen-name+7(1) = '1'.
              screen-input = 0.
            endif.
          endif.
          if pa_rgof = 'X'.
            if screen-name+7(1) = '1' or
               screen-name+7(1) = '3'.
              screen-input = 0.
            endif.
          endif.
          if pa_rgaa = 'X'.
            if screen-name+7(1) = '2' or
               screen-name+7(1) = '3'.
              screen-input = 0.
            endif.
          endif.
          modify screen.
        endloop.
      endif.

  • Infoset with ldb IOC - error in selection parameter

    Hi Expers,
    could any of You pls help me with an issue - creating infoset with ldb, and get error in selection parameter definiton.
    I am about to create an infoset than a query, using IOC logical database, and get a couple of error message related to selecion parameters - such as: error in sel. parameter P_PICK is - Statement concluding with "...TYPE" ended unexpectedly.
    I do not really need this parameter for my selection, so I was to delete - but I could not find it amongst the selection fields in actual infoset. When I tried to create it, I got a message: it has already been created (of course), but where can I find / change it if not amongst listed selection parameters (Extras / Selection)
    I suppose I can not make any changes in DBIOCSEL - because COOIS is also using this ldb - and it might have some unexpected effect there as well.
    Later I started to create a Z*report via SE80, using same ldb, and it works fine.
    So it is not a burning issue any more, but still interesting, why infoset has problem with the sel. parameter which is actually not in use.
    All usefull answer is appreciated
    Br

    Hi,
    the selection screen is coded without a number. Here's the code:
    SELECTION-SCREEN BEGIN OF BLOCK selection WITH FRAME TITLE text-t11.
    SELECTION-SCREEN BEGIN OF BLOCK persdata WITH FRAME TITLE text-t01.
    SELECT-OPTIONS so_pernr FOR ls_pa0017-pernr.
    SELECTION-SCREEN END OF BLOCK persdata.
    SELECTION-SCREEN END OF BLOCK selection.
    SELECTION-SCREEN BEGIN OF BLOCK input WITH FRAME TITLE text-t12.
    SELECTION-SCREEN BEGIN OF BLOCK zeitraum WITH FRAME TITLE text-t02.
    PARAMETERS pa_begda TYPE p0017-begda DEFAULT sy-datum OBLIGATORY.
    PARAMETERS pa_endda TYPE p0017-endda DEFAULT '99991231' OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK zeitraum.
    SELECTION-SCREEN BEGIN OF BLOCK gruppierungen WITH FRAME TITLE text-t03.
    PARAMETERS pa_spebe TYPE p0017-spebe OBLIGATORY DEFAULT '1'.
    SELECTION-SCREEN END OF BLOCK gruppierungen.
    SELECTION-SCREEN BEGIN OF BLOCK zuordnungen WITH FRAME TITLE text-t05.
    PARAMETERS pa_bukrs TYPE p0017-bukrs MATCHCODE OBJECT c_t001 DEFAULT '2000'.
    PARAMETERS pa_gsber TYPE p0017-gsber MATCHCODE OBJECT h_tgsb DEFAULT '0001'.
    SELECTION-SCREEN END OF BLOCK zuordnungen.
    SELECTION-SCREEN END OF BLOCK input.
    SELECTION-SCREEN BEGIN OF BLOCK attributes WITH FRAME TITLE text-t13.
    PARAMETERS pa_test AS CHECKBOX DEFAULT 'x'.
    SELECTION-SCREEN END OF BLOCK attributes.
    Regards
    Mark-André

  • Modifying screen elements

    Hi all,
    I have 6 parameters and 2 radiobuttons in my report.
    It will first display 3 parameters by default.
    and when the user click on first radio button it will display only p1,p2 and p3.
    and when the user click on second radio button it will display only p4,p5 and p6.
    Any one Plz help me how to handle this.
    Thanks and Regards,
    Anil .

    THis is the best Exaple...Copy and paste in program(create a local object program..)and Execte it and c d code  and implement in ur program...
    SELECTION-SCREEN BEGIN OF BLOCK b WITH FRAME TITLE text-001.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN POSITION  10.
    PARAMETERS: p1  RADIOBUTTON GROUP r1 USER-COMMAND u DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 12(20) text-001 FOR FIELD p1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN POSITION  10.
    PARAMETERS: p2  RADIOBUTTON GROUP r1.
    SELECTION-SCREEN COMMENT 12(10) text-002 FOR FIELD p2.
    SELECTION-SCREEN END OF LINE.
    PARAMETERS: p11(10) MODIF ID one,
                p12(10) MODIF ID one,
                p13(10) MODIF ID one.
    PARAMETERS:
                p21  RADIOBUTTON GROUP r3 MODIF ID two,
                p22  RADIOBUTTON GROUP r3 MODIF ID two,
                p23  RADIOBUTTON GROUP r3 MODIF ID two.
    SELECTION-SCREEN END OF BLOCK b.
    AT SELECTION-SCREEN  OUTPUT.
      IF p1 = 'X'.
        LOOP AT SCREEN.
          IF  screen-group1 = 'TWO'.
         SCREEN-INPUT = 1.
            screen-active = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSEIF p2 = 'X'.
        LOOP AT SCREEN.
          IF screen-group1 = 'ONE'.
           screen-input = 1.
            screen-active = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    Regards,
    Ramesh.

  • In power mac g5, how to take Automatic Screen Shot with Date

    in power mac g5, how to take Automatic Screen Shot with Date ?
    please help me

    If you are standing by, and activating the process by keyboard
    you could be sure to include the open Date Time menu bar
    image in a complete screenshot, using cmd shift 3. Or outline
    the area you want if not full-screen, by using cmd shift 4.
    The command button may also have an apple icon on it.
    So that's the three key shortcuts for full & partial screen.
    For a more automated method, perhaps try using software to
    run an AppleScript, like Automator. Then write a script or find
    one that you can modify to do tasks and test it.
    There may be other methods, however identifying your intent
    would be higher on the list at this time; to narrow the method.
    Good luck & happy computing!

  • 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

  • How do I take a screen shot with my iphone 5S?

    How do I take a screen shot with my iphone 5S?

    Press the "Home" button and the sleep/wake button at the same time to take a screen shot.

  • Populating the screen area with color

    Please help me
    how could i populate the screen area with color based on the x,y position values getting from the database table
    x,y positions are saved in the database already i want to use those values

    Do you mean if x is 200 and y is 300 then you want a color like 0x200300?

  • Magic Mouse  question. I have set this in Preferences by ticking Swipe between pages with  one finger and also Swipe between full-screen apps with two fingers,  however when I try to do the latter, the 2 finger swipe will take me only to the dashboard and

    It's a Magic Mouse question. I have set this up in Preferences by ticking Swipe between pages with one finger and also Swipe between full-screen apps with two fingers,  however when I try to do the latter, the 2 finger swipe will take me from the app that I am on to the dashboard only and not to my other open apps.
    I also find that Smart zoom only works with some apps, for instance not with Word docs or email.
    How can I correct this please?

    Just figured out it also does not work with the Mail app.

  • How do I take screen shots with the new update iOS 5 on my iPad and iPhone?

    When I try to take screen shots on both my iPad and iPhone they both come up with the screen to shut down the devices. I've updated both with iOS 5. Any clues on how to take a screen shot with iOS 5?

    As with the previous iOS versions.
    Press and hold the Home button and use the on/off or sleep/wake button as a camera shutter button for the screen shot.
    Or while pressing and holding the on/off or sleep/wake button before the slide to power of appears, use the Home button as a camera shutter button - this must be done before the slide to power off appears.

Maybe you are looking for

  • How can I eliminate duplicate Batch Numbers?

    SBO allows serial numbers to be unique, but not batch numbers. The system allows the same batch number to be used for a different part. I have a medical company that requires unique Batch numbers accross the board, regardless of part number. Any sugg

  • Authorization control for actual price calculation

    Dear all, I found that there is no authorization control for actual price calculation(KSII), this means user can calculate actual price for all cost centers, even this cost center belongs to other company. Is there a way to control this? Thanks, Ben

  • SQLJ error in stored procedure

    Okay I'm kind of new to this stuff so this is probably an easy question but I can't fix my current problem. Know I have been creating and compiling several java stored procedures in my oracle 8.1.7.0.0 enterprise edition database. So far everything i

  • Slow network speed after connecting to routers and switch

    Hello The following is my test setup I have running at my house for some practice and leaning Some reason the PC1 which is a laptop is getting very horrid internet / download speeds, and I am trying to narrow down why. Example, on my main desktop tha

  • Business package validation issue...ESS...MSS...

    Hi all, I am deploying business packages in my portal, but i am getting validation error with 3 packages.. SAP ESS 633 SAP MSS 630 SAP_ESS_LGP 6.33 But i have deployed the below packages: SAP PCUI_GP 633 UTXSSLGP 633 BP ERP05 MSS 1.51 BP ERP UT XSS 1