<?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: selection screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1662780#M293593</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post the entire code for this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Nov 2006 20:17:44 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-11-08T20:17:44Z</dc:date>
    <item>
      <title>selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1662778#M293591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have five fields in selection screen including quantity and customer number. for a particular value of the customer number a window pops up asking for region and postal code. if i enter a wrong value an error message gets displayed . everything is working fine with that but if i simply close that window without entering the values to change the customer number to any other value, the quantity field is lost.Its made mandatory before and just the ? displays indicating the user to enter the value .Its not a big problem but how to restore the quantity value in the selection screen this happens only if the quantity is 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2006 20:14:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1662778#M293591</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-08T20:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1662779#M293592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might want to revisit your post from eariler today and award points for helpful answer and mark as solved if solved completely.  &lt;/P&gt;&lt;P&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;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2006 20:17:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1662779#M293592</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-11-08T20:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1662780#M293593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post the entire code for this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2006 20:17:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1662780#M293593</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-11-08T20:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1662781#M293594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have solved the previous problem by giving the code in initialization event. This is a different problem again at the same place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.&lt;/P&gt;&lt;P&gt;PARAMETERS : P_KUNNR LIKE KNA1-KUNNR OBLIGATORY,  " customer number&lt;/P&gt;&lt;P&gt;             P_MATNR LIKE VBAP-MATNR OBLIGATORY,  " material number&lt;/P&gt;&lt;P&gt;             QUANTITY LIKE BAPIITEMIN-REQ_QTY OBLIGATORY,&lt;/P&gt;&lt;P&gt;                                                  " required quantity&lt;/P&gt;&lt;P&gt;             P_VKORG LIKE VBAK-VKORG OBLIGATORY,  " Sales organization&lt;/P&gt;&lt;P&gt;             P_VTWEG LIKE VBAK-VTWEG OBLIGATORY,  " distribution channel&lt;/P&gt;&lt;P&gt;             P_SPART LIKE VBAK-SPART OBLIGATORY,  " division&lt;/P&gt;&lt;P&gt;             COUPON(12).                          " coupon number&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK B1.&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;INITIALIZATION.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal table for taking postal code and region values from pop&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;up window&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    IVALS-TABNAME = 'KNA1'.&lt;/P&gt;&lt;P&gt;    IVALS-FIELDNAME = 'PSTLZ'.&lt;/P&gt;&lt;P&gt;    APPEND IVALS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IVALS-TABNAME = 'KNA1'.&lt;/P&gt;&lt;P&gt;    IVALS-FIELDNAME = 'REGIO'.&lt;/P&gt;&lt;P&gt;    APPEND IVALS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF P_KUNNR = 'SELEDIR' OR P_KUNNR = 'EMPLDIR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'POPUP_GET_VALUES'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     NO_VALUE_CHECK        = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       POPUP_TITLE  =  'Enter Sold-to party''s Postal code and Region'&lt;/P&gt;&lt;P&gt;       START_COLUMN          =  '25'&lt;/P&gt;&lt;P&gt;       START_ROW             =  '10'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      RETURNCODE            =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        FIELDS                = ivals&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      ERROR_IN_FIELDS       = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      OTHERS                = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;              .&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Reading the values from the internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    READ TABLE IVALS WITH KEY FIELDNAME = 'PSTLZ'.&lt;/P&gt;&lt;P&gt;    IF NOT IVALS-VALUE IS INITIAL.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    postal code validation&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        SELECT SINGLE PSTLZ&lt;/P&gt;&lt;P&gt;          INTO PSTLZ1&lt;/P&gt;&lt;P&gt;          FROM ZZIPS&lt;/P&gt;&lt;P&gt;          WHERE PSTLZ = IVALS-VALUE.&lt;/P&gt;&lt;P&gt;        IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;          PSTLZ = IVALS-VALUE.&lt;/P&gt;&lt;P&gt;        ELSE.&lt;/P&gt;&lt;P&gt;         MESSAGE E017 WITH 'Enter the valid Postal code'.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;         MESSAGE E018 WITH 'Enter the Postal code'.&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;    READ TABLE IVALS WITH KEY FIELDNAME = 'REGIO'.&lt;/P&gt;&lt;P&gt;    IF NOT IVALS-VALUE IS INITIAL.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Region validation&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        SELECT SINGLE REGIO&lt;/P&gt;&lt;P&gt;          INTO REGIO1&lt;/P&gt;&lt;P&gt;          FROM ZZIPS&lt;/P&gt;&lt;P&gt;          WHERE REGIO = IVALS-VALUE.&lt;/P&gt;&lt;P&gt;        IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;          REGIO = IVALS-VALUE.&lt;/P&gt;&lt;P&gt;        ELSE.&lt;/P&gt;&lt;P&gt;         MESSAGE E019 WITH 'Enter the valid Region'.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;       MESSAGE E020 WITH 'Enter the Region'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH IVALS.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2006 20:27:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1662781#M293594</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-08T20:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: selection screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1662782#M293595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see the problem now, what you are seeing is just the way that that type of field is handled in the gui,  sometimes if you want 0 to show, you need to make the field as a character field, so in order to fix this problem, you need to adjust the typeing of the parameter field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
...
     quantity(15) type c obligatory ,
...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2006 20:49:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen/m-p/1662782#M293595</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-11-08T20:49:40Z</dc:date>
    </item>
  </channel>
</rss>

