<?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: dynamic selection list based on selection screen values ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-list-based-on-selection-screen-values/m-p/4097338#M979787</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I really don't understand why it's not working. after input of the parameter field debugging doesn't start &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt; when is it evaluated ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I want the screen modified at every change of p_contr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECTION-SCREEN: BEGIN OF BLOCK s01 WITH FRAME TITLE text-s01.
parameters:       p_bukrs like ekko-bukrs MEMORY ID BUK obligatory,
                  P_WERKS like EKPO-WERKS MEMORY ID WRK OBLIGATORY,
                  p_ekorg like ekko-ekorg MEMORY ID EKO obligatory,
                  P_EKGRP like EKKO-EKGRP MEMORY ID EKG OBLIGATORY.
SELECTION-SCREEN: END OF BLOCK s01.

SELECTION-SCREEN: BEGIN OF BLOCK s05 WITH FRAME TITLE text-s05.

parameters:       p_contr AS CHECKBOX USER-COMMAND contr,
                  p_konnr like EKKO-ebeln  MATCHCODE OBJECT MEKK ,
                  P_KTPNR like EKPO-ktpnr.
SELECTION-SCREEN: END OF BLOCK s05.



SELECTION-SCREEN: BEGIN OF BLOCK s02 WITH FRAME TITLE text-s02.
parameters:       p_lifnr like ekko-lifnr modif id CTR,
                  p_EVERK like EKKO-VERKF," obligatory,
                  p_afnam type zafnam,
                  p_uwkenm like EKPO-TXZ01,

                  P_IHRAN like EKKO-IHRAN DEFAULT SY-DATUM,
                  P_KDATB like EKKO-KDATB," obligatory,
                  P_KDATE like EKKO-KDATE," obligatory,
                  p_cntVU LIKE RP50G-PERNR OBLIGATORY
                              MATCHCODE OBJECT PREM,
                  p_advies type lifnr.
SELECTION-SCREEN: END OF BLOCK s02.
SELECTION-SCREEN: BEGIN OF BLOCK s03 WITH FRAME TITLE text-s03.
SELECTION-SCREEN  PUSHBUTTON /1(17) WERK USER-COMMAND WERK.
parameters:       P_TXZ01 like EKPO-TXZ01 obligatory,
*                 p_txt9  type tline,
                  P_MATKL like EKPO-MATKL DEFAULT 'DNST-02' OBLIGATORY.
selection-screen begin of line.
SELECTION-SCREEN COMMENT 1(31) TEXT-001 FOR FIELD p_menge.
parameters:       P_MENGE like EKPO-MENGE DEFAULT '1' OBLIGATORY,
                  P_MEINS like EKPO-MEINS DEFAULT 'ST' OBLIGATORY.
selection-screen end of line.
selection-screen begin of line.
SELECTION-SCREEN COMMENT 1(31) TEXT-002 FOR FIELD p_netpr.
parameters:       P_NETPR like EKPO-NETPR obligatory,
                  P_EPEIN like EKPO-BPRME DEFAULT 'ST' OBLIGATORY.
SELECTION-SCREEN POSITION 55.
parameters:       p_schpr like ekpo-schpr.
selection-screen end of line.
parameters:       p_saknr like mepoaccounting-sakto obligatory,
                  p_aufnr like mepoaccounting-aufnr obligatory.
SELECTION-SCREEN: END OF BLOCK s03.



************************************************************************
initialization.
  clear h_exit.
  set pf-status 'STANDAARD'.
  move 'Werkomschrijving' to WERK.


at selection-screen on p_contr.
loop at screen.
if p_contr = 'X'.
      if screen-group1 = 'CTR'.
        screen-input = 0.
        screen-active = 0.
        screen-required = 0.
        modify screen.
      else.
        screen-input = 0.
        screen-active = 1.
        screen-required = 1.
        modify screen.
      endif.
endif.
endloop.

at selection-screen on exit-command.
  case sy-ucomm.
    when '&amp;amp;F03' or '&amp;amp;F015' or '&amp;amp;F12'.
      leave program.
  endcase.




at selection-screen on block S01.
  case sy-ucomm.
    when 'ONLI'.
      type_doc = 'B'.
    when 'ONLI1'.
      type_doc = 'O'.
  endcase.
perform checks_org.

at selection-screen on block S02.
  perform checks_lev.

at selection-screen on block s03.
  check sy-ucomm(4) eq 'ONLI'.
  perform checks_werk.

at selection-screen.
  case sy-ucomm.
    when 'WERK'.
      perform lange_omschrijving.
    when 'SPOS'.
      CALL FUNCTION 'RS_VARIANT_SAVE_FROM_SELSCREEN'
        EXPORTING
          CURR_REPORT = 'ZBESTELLING'.
  endcase.

start-of-selection.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jul 2008 14:08:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-03T14:08:16Z</dc:date>
    <item>
      <title>dynamic selection list based on selection screen values ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-list-based-on-selection-screen-values/m-p/4097337#M979786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a requirement which I can't solve in one step in a selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first field I have to select the contract like you do with me33k&lt;/P&gt;&lt;P&gt;in the second field I have to select the position of the contract filled in at the first field ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the position is selected I have to fill other fields in the selection screen and block them for altering the information entered by the position selected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anybody got some sample on how to do this ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;arthur de smidt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2008 12:20:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-list-based-on-selection-screen-values/m-p/4097337#M979786</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-03T12:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic selection list based on selection screen values ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-list-based-on-selection-screen-values/m-p/4097338#M979787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I really don't understand why it's not working. after input of the parameter field debugging doesn't start &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt; when is it evaluated ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I want the screen modified at every change of p_contr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECTION-SCREEN: BEGIN OF BLOCK s01 WITH FRAME TITLE text-s01.
parameters:       p_bukrs like ekko-bukrs MEMORY ID BUK obligatory,
                  P_WERKS like EKPO-WERKS MEMORY ID WRK OBLIGATORY,
                  p_ekorg like ekko-ekorg MEMORY ID EKO obligatory,
                  P_EKGRP like EKKO-EKGRP MEMORY ID EKG OBLIGATORY.
SELECTION-SCREEN: END OF BLOCK s01.

SELECTION-SCREEN: BEGIN OF BLOCK s05 WITH FRAME TITLE text-s05.

parameters:       p_contr AS CHECKBOX USER-COMMAND contr,
                  p_konnr like EKKO-ebeln  MATCHCODE OBJECT MEKK ,
                  P_KTPNR like EKPO-ktpnr.
SELECTION-SCREEN: END OF BLOCK s05.



SELECTION-SCREEN: BEGIN OF BLOCK s02 WITH FRAME TITLE text-s02.
parameters:       p_lifnr like ekko-lifnr modif id CTR,
                  p_EVERK like EKKO-VERKF," obligatory,
                  p_afnam type zafnam,
                  p_uwkenm like EKPO-TXZ01,

                  P_IHRAN like EKKO-IHRAN DEFAULT SY-DATUM,
                  P_KDATB like EKKO-KDATB," obligatory,
                  P_KDATE like EKKO-KDATE," obligatory,
                  p_cntVU LIKE RP50G-PERNR OBLIGATORY
                              MATCHCODE OBJECT PREM,
                  p_advies type lifnr.
SELECTION-SCREEN: END OF BLOCK s02.
SELECTION-SCREEN: BEGIN OF BLOCK s03 WITH FRAME TITLE text-s03.
SELECTION-SCREEN  PUSHBUTTON /1(17) WERK USER-COMMAND WERK.
parameters:       P_TXZ01 like EKPO-TXZ01 obligatory,
*                 p_txt9  type tline,
                  P_MATKL like EKPO-MATKL DEFAULT 'DNST-02' OBLIGATORY.
selection-screen begin of line.
SELECTION-SCREEN COMMENT 1(31) TEXT-001 FOR FIELD p_menge.
parameters:       P_MENGE like EKPO-MENGE DEFAULT '1' OBLIGATORY,
                  P_MEINS like EKPO-MEINS DEFAULT 'ST' OBLIGATORY.
selection-screen end of line.
selection-screen begin of line.
SELECTION-SCREEN COMMENT 1(31) TEXT-002 FOR FIELD p_netpr.
parameters:       P_NETPR like EKPO-NETPR obligatory,
                  P_EPEIN like EKPO-BPRME DEFAULT 'ST' OBLIGATORY.
SELECTION-SCREEN POSITION 55.
parameters:       p_schpr like ekpo-schpr.
selection-screen end of line.
parameters:       p_saknr like mepoaccounting-sakto obligatory,
                  p_aufnr like mepoaccounting-aufnr obligatory.
SELECTION-SCREEN: END OF BLOCK s03.



************************************************************************
initialization.
  clear h_exit.
  set pf-status 'STANDAARD'.
  move 'Werkomschrijving' to WERK.


at selection-screen on p_contr.
loop at screen.
if p_contr = 'X'.
      if screen-group1 = 'CTR'.
        screen-input = 0.
        screen-active = 0.
        screen-required = 0.
        modify screen.
      else.
        screen-input = 0.
        screen-active = 1.
        screen-required = 1.
        modify screen.
      endif.
endif.
endloop.

at selection-screen on exit-command.
  case sy-ucomm.
    when '&amp;amp;F03' or '&amp;amp;F015' or '&amp;amp;F12'.
      leave program.
  endcase.




at selection-screen on block S01.
  case sy-ucomm.
    when 'ONLI'.
      type_doc = 'B'.
    when 'ONLI1'.
      type_doc = 'O'.
  endcase.
perform checks_org.

at selection-screen on block S02.
  perform checks_lev.

at selection-screen on block s03.
  check sy-ucomm(4) eq 'ONLI'.
  perform checks_werk.

at selection-screen.
  case sy-ucomm.
    when 'WERK'.
      perform lange_omschrijving.
    when 'SPOS'.
      CALL FUNCTION 'RS_VARIANT_SAVE_FROM_SELSCREEN'
        EXPORTING
          CURR_REPORT = 'ZBESTELLING'.
  endcase.

start-of-selection.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2008 14:08:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-selection-list-based-on-selection-screen-values/m-p/4097338#M979787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-03T14:08:16Z</dc:date>
    </item>
  </channel>
</rss>

