<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Report Parameters with logical database in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-parameters-with-logical-database/m-p/7647660#M1572836</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excelent,thank you vey much for your answers,it worked with :AT SELECTION-SCREEN OUTPUT. and then with that loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i need to disable and hide all the buttons that are generated automatically in the toolbar by the LDB.Does anybody know how to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Feb 2011 07:44:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-02-18T07:44:49Z</dc:date>
    <item>
      <title>Report Parameters with logical database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-parameters-with-logical-database/m-p/7647652#M1572828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have to read some HR infotypes that are provided with the logical database PNPCE.&lt;/P&gt;&lt;P&gt;Fort his i have written a report that will use my logical database and get some information.&lt;/P&gt;&lt;P&gt;What i need,are some new input parameters on the screen that are added by my report:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_persnr type person-pernr,&lt;/P&gt;&lt;P&gt;                    p_name type p0002-nachn,&lt;/P&gt;&lt;P&gt;                    p_sname type p0002-vorna.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that i do not know how to link these parameters to my logical database reading.&lt;/P&gt;&lt;P&gt;When i try to call "get &amp;lt;node&amp;gt;" ,my report is not returning anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to send  my parameters as selection parameters to the logical database?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 12:45:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-parameters-with-logical-database/m-p/7647652#M1572828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-16T12:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Report Parameters with logical database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-parameters-with-logical-database/m-p/7647653#M1572829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   You cannot link your parameters to logical database to read.&lt;/P&gt;&lt;P&gt;    Instead create a new report category with the fields you want , or write the logic in program for filtering the PNPCE data&lt;/P&gt;&lt;P&gt;    based on your input fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 12:51:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-parameters-with-logical-database/m-p/7647653#M1572829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-16T12:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Report Parameters with logical database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-parameters-with-logical-database/m-p/7647654#M1572830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Can you please explain me how to do that?&lt;/P&gt;&lt;P&gt;What exactly do you mean by report category,i have to use this logical database and cannot use selects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 13:14:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-parameters-with-logical-database/m-p/7647654#M1572830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-16T13:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Report Parameters with logical database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-parameters-with-logical-database/m-p/7647655#M1572831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Step 1: Include logical database PNPCE in attributes of program&lt;/P&gt;&lt;P&gt;Step 2: use following code in program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables: PERNR.&lt;/P&gt;&lt;P&gt;Nodes: PERAS.&lt;/P&gt;&lt;P&gt;Infotypes: 0002.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: S_NACHN type P0002-NACHN.&lt;/P&gt;&lt;P&gt;                               S_VORNA type P0002-VORNA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET PERAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Following code will check if employee name falls in name given on selection-screen.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; Loop at P0002 where NACHN in S_NACHN &lt;/P&gt;&lt;P&gt;                              and VORNA in S_VORNA.&lt;/P&gt;&lt;P&gt;    Exit.&lt;/P&gt;&lt;P&gt; Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;   REJECT.&lt;/P&gt;&lt;P&gt;Endif.     &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&amp;lt;your other code here&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 12:39:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-parameters-with-logical-database/m-p/7647655#M1572831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-17T12:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Report Parameters with logical database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-parameters-with-logical-database/m-p/7647656#M1572832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I needed to change the input for the Personalnumber so that the user can provide a single entry.&lt;/P&gt;&lt;P&gt;I have managed to do this by deleting the pushbutton for multiple selections fromthe selection screen 1000 with transaction SE51&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i have to deactivate the LDB additional buttons that appear in the toolbar next to the run button,does anybody have a clue on how to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 13:27:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-parameters-with-logical-database/m-p/7647656#M1572832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-17T13:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Report Parameters with logical database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-parameters-with-logical-database/m-p/7647657#M1572833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The usual way of doing this is to hide the push button programmatically using Loop at screen. Modifying the screen in SE51 for a report selection screen is not the right way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ranganath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 13:53:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-parameters-with-logical-database/m-p/7647657#M1572833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-17T13:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Report Parameters with logical database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-parameters-with-logical-database/m-p/7647658#M1572834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The selection screen 1000 is created dynamically during runtime. I doubt change done by SE51 will solve the issue. In fact there is some code which can help on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To restrict the range of PERNRs&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  PERFORM z_seloption_restrict USING 'PNPPERNR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  Z_Seloption_Restrict
*&amp;amp;---------------------------------------------------------------------*
* Restrict range in select option
*----------------------------------------------------------------------*
*      --&amp;gt;VALUE(SOP_NAME)  Name of select option as string
*----------------------------------------------------------------------*
FORM z_seloption_restrict USING value(pv_sop_name).
  IF st_restrict-opt_list_tab[] IS INITIAL.
    CLEAR st_opt_list.
    MOVE: 'EQ' TO st_opt_list-name,
          'X'  TO st_opt_list-options-eq.
    APPEND st_opt_list TO st_restrict-opt_list_tab.
  ENDIF.
  REFRESH : st_restrict-ass_tab.
*  READ TABLE st_restrict-ass_tab INTO st_asst
*                        WITH KEY name = pv_sop_name.
*  IF sy-subrc NE 0.
  CLEAR st_asst.
  MOVE: 'S'         TO st_asst-kind,
        pv_sop_name TO st_asst-name,
        'I'         TO st_asst-sg_main,
        ' '         TO st_asst-sg_addy,
        'EQ'        TO st_asst-op_main.
  APPEND st_asst TO st_restrict-ass_tab.
*  ENDIF.
  CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
    EXPORTING
      restriction = st_restrict.
ENDFORM.                    "Z_Seloption_Restrict&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 13:57:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-parameters-with-logical-database/m-p/7647658#M1572834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-17T13:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Report Parameters with logical database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-parameters-with-logical-database/m-p/7647659#M1572835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should be enough to have this done&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF screen-name = '%_PNPPERNR_%_APP_%-VALU_PUSH'.
      screen-active = 0.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 14:17:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-parameters-with-logical-database/m-p/7647659#M1572835</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2011-02-17T14:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Report Parameters with logical database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-parameters-with-logical-database/m-p/7647660#M1572836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excelent,thank you vey much for your answers,it worked with :AT SELECTION-SCREEN OUTPUT. and then with that loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i need to disable and hide all the buttons that are generated automatically in the toolbar by the LDB.Does anybody know how to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Feb 2011 07:44:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-parameters-with-logical-database/m-p/7647660#M1572836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-18T07:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Report Parameters with logical database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-parameters-with-logical-database/m-p/7647661#M1572837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Buttons will not appear if HR Report Category is used in program attributes. We can create a new report category with removing following check boxes:&lt;/P&gt;&lt;P&gt;- Matchcode allowed&lt;/P&gt;&lt;P&gt;- Sort allowed&lt;/P&gt;&lt;P&gt;- Org str. allowed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Feb 2011 08:05:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-parameters-with-logical-database/m-p/7647661#M1572837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-18T08:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Report Parameters with logical database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-parameters-with-logical-database/m-p/7647662#M1572838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Now i need to disable and hide all the buttons that are generated automatically in the toolbar by the LDB.Does anybody know how to do that?&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If you mean disabling all buttons on the toolbar, then you can create custom GUI status with &lt;STRONG&gt;BACK&lt;/STRONG&gt; button and &lt;STRONG&gt;ONLI&lt;/STRONG&gt; fcode button (RUN option) then use&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
AT SELECTION-SCREEN OUTPUT.
 DATA it_exc TYPE TABLE OF syucomm.

CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
   EXPORTING
       p_status = 'MY_STATUS'
    TABLES
       p_exclude = it_exc.  "leave this table empty

AT SELECTION-SCREEN.
"now react only on BACK button
"RUN option will work as standard if you use ONLI fcode for it
   IF sy-ucomm = 'BACK'.
     LEAVE PROGRAM.
    ENDIF.

START-OF-SELECTION.  
  WRITE 'Program was run'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Maybe there is some more sophisticated way of doing this, but as long as this is working it should satisfy your needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Feb 2011 08:22:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-parameters-with-logical-database/m-p/7647662#M1572838</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2011-02-18T08:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Report Parameters with logical database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-parameters-with-logical-database/m-p/7647663#M1572839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;/P&gt;&lt;P&gt;I have taken them out from that Hr Reporklass but still i have some 3 buttons that still appear in the toolbar and the customer wants them out.(Sort,Input field selection and some dynamic selection button) How can i take thos out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Feb 2011 08:27:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-parameters-with-logical-database/m-p/7647663#M1572839</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-18T08:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Report Parameters with logical database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-parameters-with-logical-database/m-p/7647664#M1572840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect,thank you very much for all the answers.&lt;/P&gt;&lt;P&gt;Marcin,i have added a new GUI status and called it with that FM and now it works just like i wanted it,thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Feb 2011 08:45:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-parameters-with-logical-database/m-p/7647664#M1572840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-18T08:45:53Z</dc:date>
    </item>
  </channel>
</rss>

