<?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: Submit and return - Selection options in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-and-return-selection-options/m-p/6472410#M1417478</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA: SELTAB     TYPE TABLE OF RSPARAMS, &lt;/P&gt;&lt;P&gt;      SELTAB_WA  LIKE LINE OF SELTAB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE: 'LANGU'  TO SELTAB_WA-SELNAME, &lt;/P&gt;&lt;P&gt;      'S'      TO SELTAB_WA-KIND,      " SELECT-OPTION &lt;/P&gt;&lt;P&gt;      'I'      TO SELTAB_WA-SIGN, &lt;/P&gt;&lt;P&gt;      'BT'     TO SELTAB_WA-OPTION, &lt;/P&gt;&lt;P&gt;      'D'      TO SELTAB_WA-LOW, &lt;/P&gt;&lt;P&gt;      'I'      TO SELTAB_WA-HIGH. &lt;/P&gt;&lt;P&gt;APPEND SELTAB_WA TO SELTAB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE: 'E'      TO SELTAB_WA-SIGN, &lt;/P&gt;&lt;P&gt;      'EQ'     TO SELTAB_WA-OPTION, &lt;/P&gt;&lt;P&gt;      'F'      TO SELTAB_WA-LOW, &lt;/P&gt;&lt;P&gt;      SPACE    TO SELTAB_WA-HIGH. &lt;/P&gt;&lt;P&gt;APPEND SELTAB_WA TO SELTAB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR SELTAB_WA. &lt;/P&gt;&lt;P&gt;MOVE: 'ARBGB' TO SELTAB_WA-SELNAME, &lt;/P&gt;&lt;P&gt;      'P'     TO SELTAB_WA-KIND,      " PARAMETER &lt;/P&gt;&lt;P&gt;      'XX'    TO SELTAB_WA-LOW. &lt;/P&gt;&lt;P&gt;APPEND SELTAB_WA TO SELTAB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT REPORT00 &lt;/P&gt;&lt;P&gt;       USING SELECTION-SET 'VARIANT1' &lt;/P&gt;&lt;P&gt;       WITH  ARBGB CP 'A*' &lt;/P&gt;&lt;P&gt;       WITH  SELECTION-TABLE SELTAB &lt;/P&gt;&lt;P&gt;       AND RETURN. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps,&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Abhijit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Dec 2009 13:55:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-21T13:55:42Z</dc:date>
    <item>
      <title>Submit and return - Selection options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-and-return-selection-options/m-p/6472409#M1417477</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;I'm calling program h99cwtr0  using a submit and return. This executable program has its own selection screens and push buttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i pass a parameter to program h99cwtr0  to choose a field on the other selections window using the push button "Object selection" . I want to add the personel number to the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  zreport.
                                .
* Using logical database PNP
TABLES: pernr.

*Code used to populate 'select-options' &amp;amp; execute report
DATA: seltab TYPE TABLE OF rsparams,
      seltab_wa LIKE LINE OF seltab.


DATA : listtab LIKE abaplist OCCURS 1.
DATA : listtab_tmp LIKE abaplist OCCURS 1.
DATA : n TYPE n.

initialization.

seltab_wa-selname = 'PNPPERNR'.
seltab_wa-sign    = 'I'.
seltab_wa-option  = 'EQ'.

* load each personnel number accessed from the structure into
* parameters to be used in the report
LOOP AT pnppernr.
  seltab_wa-low = pnppernr-low.
  APPEND seltab_wa TO seltab.
ENDLOOP.

SUBMIT h99cwtr0 with selection-table seltab USING SELECTION-SCREEN '1000'
WITH begd_cal = pnpbegda
WITH endd_cal = pnpendda
exporting list to memory and return.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2009 13:39:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-and-return-selection-options/m-p/6472409#M1417477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-21T13:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Submit and return - Selection options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-and-return-selection-options/m-p/6472410#M1417478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA: SELTAB     TYPE TABLE OF RSPARAMS, &lt;/P&gt;&lt;P&gt;      SELTAB_WA  LIKE LINE OF SELTAB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE: 'LANGU'  TO SELTAB_WA-SELNAME, &lt;/P&gt;&lt;P&gt;      'S'      TO SELTAB_WA-KIND,      " SELECT-OPTION &lt;/P&gt;&lt;P&gt;      'I'      TO SELTAB_WA-SIGN, &lt;/P&gt;&lt;P&gt;      'BT'     TO SELTAB_WA-OPTION, &lt;/P&gt;&lt;P&gt;      'D'      TO SELTAB_WA-LOW, &lt;/P&gt;&lt;P&gt;      'I'      TO SELTAB_WA-HIGH. &lt;/P&gt;&lt;P&gt;APPEND SELTAB_WA TO SELTAB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE: 'E'      TO SELTAB_WA-SIGN, &lt;/P&gt;&lt;P&gt;      'EQ'     TO SELTAB_WA-OPTION, &lt;/P&gt;&lt;P&gt;      'F'      TO SELTAB_WA-LOW, &lt;/P&gt;&lt;P&gt;      SPACE    TO SELTAB_WA-HIGH. &lt;/P&gt;&lt;P&gt;APPEND SELTAB_WA TO SELTAB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR SELTAB_WA. &lt;/P&gt;&lt;P&gt;MOVE: 'ARBGB' TO SELTAB_WA-SELNAME, &lt;/P&gt;&lt;P&gt;      'P'     TO SELTAB_WA-KIND,      " PARAMETER &lt;/P&gt;&lt;P&gt;      'XX'    TO SELTAB_WA-LOW. &lt;/P&gt;&lt;P&gt;APPEND SELTAB_WA TO SELTAB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT REPORT00 &lt;/P&gt;&lt;P&gt;       USING SELECTION-SET 'VARIANT1' &lt;/P&gt;&lt;P&gt;       WITH  ARBGB CP 'A*' &lt;/P&gt;&lt;P&gt;       WITH  SELECTION-TABLE SELTAB &lt;/P&gt;&lt;P&gt;       AND RETURN. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps,&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Abhijit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2009 13:55:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-and-return-selection-options/m-p/6472410#M1417478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-21T13:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Submit and return - Selection options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-and-return-selection-options/m-p/6472411#M1417479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhijit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program H99CWTR0 has it own dynamic selections. When you click the pushbutton "object selection' it creates a ALV popup screen with some fields you need to select. How can i preselect those fields using the submit function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 08:11:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-and-return-selection-options/m-p/6472411#M1417479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-22T08:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Submit and return - Selection options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-and-return-selection-options/m-p/6472412#M1417480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try to create a variant.. (select the fields which u want for display) and use the same at the time of submit.. and u can pass the values from selection table as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 08:17:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-and-return-selection-options/m-p/6472412#M1417480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-22T08:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Submit and return - Selection options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-and-return-selection-options/m-p/6472413#M1417481</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 can use SUBMIT &amp;lt;report name&amp;gt; USING SELECTION-SET  AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just use the F1 help for more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Harini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 08:18:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-and-return-selection-options/m-p/6472413#M1417481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-22T08:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Submit and return - Selection options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-and-return-selection-options/m-p/6472414#M1417482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can pass the input to the submit program using "SUBMIT &amp;lt;prog.name&amp;gt; WITH &amp;lt;parameter&amp;gt; = &amp;lt;value&amp;gt; AND RETURN."  Here you can pass all parameters which are required to process the the submit program.  So you have to check the parameter name of the submit program and then pass the value here in the main program to that parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2009 10:40:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-and-return-selection-options/m-p/6472414#M1417482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-22T10:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Submit and return - Selection options</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-and-return-selection-options/m-p/6472415#M1417483</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;It's hidden pretty good, but the parameter you are looking for is &lt;STRONG&gt;P_H_STRG&lt;/STRONG&gt;. You need to add values according to the following mapping table, depending on what output fields you want:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Personnel Subarea	        13&lt;/P&gt;&lt;P&gt;Company Code		07&lt;/P&gt;&lt;P&gt;Personnel Area		10&lt;/P&gt;&lt;P&gt;Wage Type		        30&lt;/P&gt;&lt;P&gt;For-Period		        43&lt;/P&gt;&lt;P&gt;Person ID		                01&lt;/P&gt;&lt;P&gt;Personnel Number	        03&lt;/P&gt;&lt;P&gt;Personnel Subarea	        13&lt;/P&gt;&lt;P&gt;Master Controlling Area	17&lt;/P&gt;&lt;P&gt;Master Cost Center	        20&lt;/P&gt;&lt;P&gt;Employee Group		24&lt;/P&gt;&lt;P&gt;Employee Subgroup	27&lt;/P&gt;&lt;P&gt;In-Period		                34&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Oct 2010 16:32:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-and-return-selection-options/m-p/6472415#M1417483</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-05T16:32:01Z</dc:date>
    </item>
  </channel>
</rss>

