<?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 Problem with 'HIDE' and 'AT SELECTION-SCREEN' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-hide-and-at-selection-screen/m-p/1111045#M106169</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a problem with a report which I wrote for a customer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The report works very well and the customer wants to have an extension.&lt;/P&gt;&lt;P&gt;I give you a small overview of my report and the request of the customer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With my report I give out the following fields WERKS, MATNR, MAKTX, PLNAL and PLNNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the customer wants to jump with a click on field into a given transaction. As there could be lot of rows in my output the call of transaction and the transfer of the field values has to be dynamic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The List looks like this:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;WERKS&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;MATNR&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;MAKTX&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;PLNAL&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;PLNNR&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------" /&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;0001&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;12345&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;test&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;789&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;0001&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;54321&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;test2&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;369&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;......................and so on........&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With a click in the field MATNR in the first row the customer wants to jump in the transaction 'MMO3' and the value of the clicked MATNR should give as PARAMETER ID to the transaction.&lt;/P&gt;&lt;P&gt;With a click on th PLNNR should happen the same with the small different, that the transaction CA03 should appear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already worked with HIDE and AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;But the problem is that I couldn't separate the call of different transactions. In my opinion it's only possible to call on transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you can find the corresponding source code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    LOOP AT INT_DATEN.
       FORMAT HOTSPOT ON.
         WRITE: / INT_DATEN-WERKS,
                  10 INT_DATEN-MATNR,
                  30 INT_DATEN-MAKTX,
                  75 INT_DATEN-PLNAL,
                  90 INT_DATEN-PLNNR.
       FORMAT HOTSPOT ON.
       HIDE: INT_DATEN-MATNR, INT_DATEN-PLNNR, INT_DATEN-PLNAL,
       INT_DATEN-WERKS.
    ENDLOOP.
  ENDIF.

AT LINE-SELECTION.
  IF INT_DATEN-MATNR NE ''.
    SET PARAMETER ID: 'MAT' FIELD INT_DATEN-MATNR,
                      'WRK' FIELD INT_STPOV-WERKS,
                      'STT' FIELD SY-DATUM,
                      'PAL' FIELD INT_DATEN-PLNAL,
                      'PLN' FIELD INT_DATEN-PLNNR.

    CALL TRANSACTION 'CA03' AND SKIP FIRST SCREEN.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you can understand my problem and that you give me an usefull answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Oct 2005 08:49:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-10-26T08:49:03Z</dc:date>
    <item>
      <title>Problem with 'HIDE' and 'AT SELECTION-SCREEN'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-hide-and-at-selection-screen/m-p/1111045#M106169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a problem with a report which I wrote for a customer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The report works very well and the customer wants to have an extension.&lt;/P&gt;&lt;P&gt;I give you a small overview of my report and the request of the customer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With my report I give out the following fields WERKS, MATNR, MAKTX, PLNAL and PLNNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the customer wants to jump with a click on field into a given transaction. As there could be lot of rows in my output the call of transaction and the transfer of the field values has to be dynamic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The List looks like this:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;WERKS&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;MATNR&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;MAKTX&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;PLNAL&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;PLNNR&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------" /&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;0001&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;12345&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;test&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;789&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;0001&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;54321&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;test2&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;369&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;......................and so on........&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With a click in the field MATNR in the first row the customer wants to jump in the transaction 'MMO3' and the value of the clicked MATNR should give as PARAMETER ID to the transaction.&lt;/P&gt;&lt;P&gt;With a click on th PLNNR should happen the same with the small different, that the transaction CA03 should appear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already worked with HIDE and AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;But the problem is that I couldn't separate the call of different transactions. In my opinion it's only possible to call on transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you can find the corresponding source code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    LOOP AT INT_DATEN.
       FORMAT HOTSPOT ON.
         WRITE: / INT_DATEN-WERKS,
                  10 INT_DATEN-MATNR,
                  30 INT_DATEN-MAKTX,
                  75 INT_DATEN-PLNAL,
                  90 INT_DATEN-PLNNR.
       FORMAT HOTSPOT ON.
       HIDE: INT_DATEN-MATNR, INT_DATEN-PLNNR, INT_DATEN-PLNAL,
       INT_DATEN-WERKS.
    ENDLOOP.
  ENDIF.

AT LINE-SELECTION.
  IF INT_DATEN-MATNR NE ''.
    SET PARAMETER ID: 'MAT' FIELD INT_DATEN-MATNR,
                      'WRK' FIELD INT_STPOV-WERKS,
                      'STT' FIELD SY-DATUM,
                      'PAL' FIELD INT_DATEN-PLNAL,
                      'PLN' FIELD INT_DATEN-PLNNR.

    CALL TRANSACTION 'CA03' AND SKIP FIRST SCREEN.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you can understand my problem and that you give me an usefull answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2005 08:49:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-hide-and-at-selection-screen/m-p/1111045#M106169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-26T08:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with 'HIDE' and 'AT SELECTION-SCREEN'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-hide-and-at-selection-screen/m-p/1111046#M106170</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 must differentiate by the fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  GET CURSOR FIELD position. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CASE position.&lt;/P&gt;&lt;P&gt;    WHEN 'PSP-POSID'.&lt;/P&gt;&lt;P&gt;      SET PARAMETER ID 'PSP' FIELD psp-posid(8).&lt;/P&gt;&lt;P&gt;      SET PARAMETER ID 'PRO' FIELD psp-posid.&lt;/P&gt;&lt;P&gt;      CALL TRANSACTION 'CJ13' AND SKIP FIRST SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WHEN 'BEST-EBELN'.&lt;/P&gt;&lt;P&gt;      SET PARAMETER ID 'BES' FIELD best-ebeln.&lt;/P&gt;&lt;P&gt;      CALL TRANSACTION 'ME23' AND SKIP FIRST SCREEN.&lt;/P&gt;&lt;P&gt;    WHEN 'BEST'.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2005 08:56:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-hide-and-at-selection-screen/m-p/1111046#M106170</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2005-10-26T08:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with 'HIDE' and 'AT SELECTION-SCREEN'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-hide-and-at-selection-screen/m-p/1111047#M106171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have solved such problem earlier.here is a sample code, you can simply modify the at line-selection if-endif statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please reward points if it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just run this code as it is to get the idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT zanid_test3.&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;        matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;        mtart like mara-mtart,&lt;/P&gt;&lt;P&gt;      end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    select matnr mtart from mara into table itab up to 10 rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    loop at itab.&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;      format hotspot on.&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;      write:/10 itab-matnr,&lt;/P&gt;&lt;P&gt;             30 itab-mtart.&lt;/P&gt;&lt;P&gt;      hide itab.                  "hide the whole work area&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;      format hotspot off.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at line-selection.&lt;/P&gt;&lt;P&gt;    if   sy-cucol &amp;gt;= 10&lt;/P&gt;&lt;P&gt;    and  sy-cucol &amp;lt;= 28.  "matnr lenght is 18&lt;/P&gt;&lt;P&gt;          write: itab-matnr.&lt;/P&gt;&lt;P&gt;*----here you set parameter of this field and call transaction.&lt;/P&gt;&lt;P&gt;        elseif     sy-cucol &amp;gt;= 30&lt;/P&gt;&lt;P&gt;          and  sy-cucol &amp;lt;= 34.  "mtart length is 4&lt;/P&gt;&lt;P&gt;          write: itab-mtart.&lt;/P&gt;&lt;P&gt;*----here you set parameter of this field and call transaction.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2005 09:19:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-hide-and-at-selection-screen/m-p/1111047#M106171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-26T09:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with 'HIDE' and 'AT SELECTION-SCREEN'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-hide-and-at-selection-screen/m-p/1111048#M106172</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 will go with Andreas way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ravi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2005 09:22:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-hide-and-at-selection-screen/m-p/1111048#M106172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-26T09:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with 'HIDE' and 'AT SELECTION-SCREEN'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-hide-and-at-selection-screen/m-p/1111049#M106173</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;or you can make more harder, you hide the column name, you get the line number selected, and with this two values you will find the information in your internal table and the transaction to launch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frédéric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2005 09:35:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-hide-and-at-selection-screen/m-p/1111049#M106173</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2005-10-26T09:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with 'HIDE' and 'AT SELECTION-SCREEN'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-hide-and-at-selection-screen/m-p/1111050#M106174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, thank you all.&lt;/P&gt;&lt;P&gt;I made it like the way Andreas wrote me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my program works fine and I can give it to the customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2005 10:00:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-hide-and-at-selection-screen/m-p/1111050#M106174</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-26T10:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with 'HIDE' and 'AT SELECTION-SCREEN'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-hide-and-at-selection-screen/m-p/1111051#M106175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please, can you set the question has answered and give point to Andreas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2005 10:05:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-hide-and-at-selection-screen/m-p/1111051#M106175</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2005-10-26T10:05:54Z</dc:date>
    </item>
  </channel>
</rss>

