<?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 Why some values in program are automaticly increment? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-some-values-in-program-are-automaticly-increment/m-p/13619298#M2026758</link>
    <description>&lt;P&gt;Why some values in program are automaticly increment after starting 'At selection screen output' section.&lt;/P&gt;&lt;P&gt;I've got an programm, which is used in few transactions.&amp;nbsp;&lt;BR /&gt;In one of it values are changing after starting an 'At selection screen output'&amp;nbsp; section, and at second values are not changing.&lt;BR /&gt;There is no some additional inizialization, the code before 'At selection screen output is the same.&lt;/P&gt;&lt;P&gt;i try to find authorization object at su24, and one t-code has it, but there are no values that are aoutomaticly increments&lt;BR /&gt;in it.&lt;BR /&gt;what it can be if it not an authorization object, or mb values can initialize somwhere else( not in su24 ) ?&lt;/P&gt;</description>
    <pubDate>Mon, 26 Feb 2024 12:50:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2024-02-26T12:50:34Z</dc:date>
    <item>
      <title>Why some values in program are automaticly increment?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-some-values-in-program-are-automaticly-increment/m-p/13619298#M2026758</link>
      <description>&lt;P&gt;Why some values in program are automaticly increment after starting 'At selection screen output' section.&lt;/P&gt;&lt;P&gt;I've got an programm, which is used in few transactions.&amp;nbsp;&lt;BR /&gt;In one of it values are changing after starting an 'At selection screen output'&amp;nbsp; section, and at second values are not changing.&lt;BR /&gt;There is no some additional inizialization, the code before 'At selection screen output is the same.&lt;/P&gt;&lt;P&gt;i try to find authorization object at su24, and one t-code has it, but there are no values that are aoutomaticly increments&lt;BR /&gt;in it.&lt;BR /&gt;what it can be if it not an authorization object, or mb values can initialize somwhere else( not in su24 ) ?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 12:50:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-some-values-in-program-are-automaticly-increment/m-p/13619298#M2026758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2024-02-26T12:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Why some values in program are automaticly increment?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-some-values-in-program-are-automaticly-increment/m-p/13619449#M2026764</link>
      <description>&lt;P&gt;I don't understand the question, please give&amp;nbsp;real data: which values, which program, what relationship with authorization object? Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 13:55:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-some-values-in-program-are-automaticly-increment/m-p/13619449#M2026764</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2024-02-26T13:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Why some values in program are automaticly increment?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-some-values-in-program-are-automaticly-increment/m-p/13619878#M2026777</link>
      <description>&lt;P&gt;It's an Z programm and Z authorization object.&amp;nbsp;&lt;BR /&gt;I intersted how it can automaticly increment if it doesn't happening inside program.&lt;BR /&gt;what are the ways can this be done in sap?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 17:41:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-some-values-in-program-are-automaticly-increment/m-p/13619878#M2026777</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2024-02-26T17:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why some values in program are automaticly increment?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-some-values-in-program-are-automaticly-increment/m-p/13619887#M2026779</link>
      <description>&lt;P&gt;sry for mislead, it not increment, it automaticly reinitializes.&amp;nbsp;&lt;BR /&gt;and some select-options are automaticly initialize at once 'At selection screen output' block starts.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 17:49:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-some-values-in-program-are-automaticly-increment/m-p/13619887#M2026779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2024-02-26T17:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Why some values in program are automaticly increment?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-some-values-in-program-are-automaticly-increment/m-p/13619939#M2026782</link>
      <description>&lt;P&gt;What code then?&lt;/P&gt;&lt;P&gt;I don't know your code. For instance, if you are changing the value of screen parameters during START-OF-SELECTION, what you are describing is normal.&lt;/P&gt;&lt;P&gt;Now please clarify what your code is.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 18:58:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-some-values-in-program-are-automaticly-increment/m-p/13619939#M2026782</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2024-02-26T18:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Why some values in program are automaticly increment?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-some-values-in-program-are-automaticly-increment/m-p/13620200#M2026789</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;INITIALIZATION.
  SET TITLEBAR '100'.
  SELECT SINGLE * FROM t159b WHERE repid = syst-repid.
  IF sy-subrc IS INITIAL.
    IF xcycl IS INITIAL.
      gidat = t159b-gidat.
      xlabst = t159b-xlabst.
      ximat  = t159b-ximat.
      xicha  = t159b-xicha.
      xinsme = t159b-xinsme.
      xspeme = t159b-xspeme.
    ELSE.
      xlabst = x.
      ximat  = space.
      xicha  = space.
      xinsme = space.
    ENDIF.
    sperr  = t159b-sperr.
*   #jko
    batin  = t159b-batin.
    IF sy-tcode = 'MI31'.
      IF c_use_function_modul IS INITIAL.
        batin  = t159b-batin.
*       clear call_fb.
      ELSE.
*       call_fb = t159b-batin.
        CLEAR batin.
      ENDIF.
    ENDIF.
    mappe  = t159b-mappe.
    xprot  = t159b-xprot.
    maxpo  = t159b-maxpo.
  ELSE.
    xlabst = x.
    xprot  = x.
  ENDIF.
* begin of note 494237
  IF sy-repid = 'RM07SVOR' OR sy-repid = 'RM07ICN1'.
    IF maxpo IS INITIAL.
      maxpo = 20.
    ELSEIF maxpo &amp;gt; 333.
      maxpo = 333.
      MESSAGE i717(m7).
    ENDIF.
  ELSE.
    IF maxpo IS INITIAL.
      maxpo = 20.
    ELSEIF maxpo &amp;gt; 300.
      maxpo = 300.
      MESSAGE i717(m7).
    ENDIF.
  ENDIF.
* end of note 494237
  IF mappe IS INITIAL.
    mappe = sy-repid.
  ENDIF.
  IF gidat IS INITIAL.
* &amp;amp;001 begin: Anpassung auf Zeitzonen
*   GIDAT = SY-DATUM.
    gidat = sy-datlo.
* &amp;amp;001 end
  ENDIF.

 CLEAR                      g_variant.
  MOVE  sy-repid             TO  g_variant-report.
  gx_variant = g_variant.

  CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
    EXPORTING
      i_save     = a
    CHANGING
      cs_variant = gx_variant
    EXCEPTIONS
      not_found  = 2.

  IF sy-subrc = 0.
    pa_vari = gx_variant-variant.
  ENDIF.

  IF r_werks-low IS INITIAL.
    GET PARAMETER ID 'WRK' FIELD r_werks-low.
  ENDIF.
  IF r_lgort-low IS INITIAL.
    GET PARAMETER ID 'LAG' FIELD r_lgort-low.
  ENDIF.

* set titlebar '100'.
  SELECT SINGLE * FROM t159b WHERE repid = syst-repid.      "n364559

  IF sy-subrc IS INITIAL.
    gidat = t159b-gidat.
    maxpo  = t159b-maxpo.
  ENDIF.

  IF maxpo IS INITIAL.
    maxpo = 20.
  ELSEIF maxpo &amp;gt; 333.
    maxpo = 333.
    MESSAGE i717(m7).
  ENDIF.

  IF gidat IS INITIAL.
    gidat = sy-datlo.
  ENDIF.

* if no parameter is marked, open stock selection              "HW614297
  IF xlabst IS INITIAL AND xinsme IS INITIAL AND            "HW614297
     xspeme IS INITIAL AND xwart IS INITIAL.                "HW614297
    zw_zustand_sto = 'S'.                                   "HW614297
  ENDIF.                                                    "HW614297

* check parameters for function : one must be marked
* take the value from default table T159L
  CLEAR  cnt_lines.
  IF  NOT  xtest IS INITIAL.
    ADD  1                   TO  cnt_lines.
  ENDIF.

  IF  NOT  batin IS INITIAL.
    ADD  1                   TO  cnt_lines.
  ENDIF.

  IF  NOT  call_fb IS INITIAL.
    ADD  1                   TO  cnt_lines.
  ENDIF.

  CASE    cnt_lines.
    WHEN  0.
      MOVE  x                TO  xtest.
    WHEN  1.
*     ok
    WHEN  OTHERS.
*     read parameter table for inventory reports
      SELECT SINGLE * FROM t159b WHERE repid = syst-repid.

      IF sy-subrc    IS INITIAL  AND
         t159b-batin =  x.
        CLEAR : xtest,       call_fb.
        MOVE  t159b-batin    TO  batin.
      ELSE.
        MOVE  x              TO  xtest.
        CLEAR : batin,       call_fb.
      ENDIF.
  ENDCASE.

* clear parameters who are not active in all reports RM07I*31
  CASE    sy-repid.
    WHEN  'RM07IM31'.
*     special stock M does not allow stock in Quality inspection and
*     blocked stock
      CLEAR : xinsme,        xspeme.

    WHEN  'RM07IO31'  OR  'RM07IV31'  OR  'RM07IW31'.
*     special stocks O, V, and W do not allow block stock
      CLEAR :                xspeme.
    WHEN  OTHERS.
  ENDCASE.
AT SELECTION-SCREEN OUTPUT.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know why but parametrs : '&lt;!--   StartFragment    --&gt;&lt;SPAN&gt;r_mtart' and 'LBTCH'&lt;/SPAN&gt;&amp;nbsp;is changing at once 'At selection screen output' block is starts.&lt;BR /&gt;it's changing in one t-code and doesn't in another. It goes throw the code absolutely same in both cases&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;PARAMETERS: lbtch LIKE am07m-xonul MODIF ID btc DEFAULT 'X'.
SELECT-OPTIONS  r_mtart FOR mara-mtart MEMORY ID mta.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 05:48:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-some-values-in-program-are-automaticly-increment/m-p/13620200#M2026789</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2024-02-27T05:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Why some values in program are automaticly increment?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-some-values-in-program-are-automaticly-increment/m-p/13620248#M2026791</link>
      <description>&lt;P&gt;It was solved.&lt;BR /&gt;It was happenning because of the variants.&lt;BR /&gt;It was protected at Goto-&amp;gt; Variants, so i cannot choose it GetVariant button on Selection-screen&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 06:25:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-some-values-in-program-are-automaticly-increment/m-p/13620248#M2026791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2024-02-27T06:25:11Z</dc:date>
    </item>
  </channel>
</rss>

