<?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 option error message in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-option-error-message/m-p/5119415#M1187331</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi bro &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can go in following way( This is working code)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: lfa1,&lt;/P&gt;&lt;P&gt;bkpf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen: begin of block box1 with frame title text-001.&lt;/P&gt;&lt;P&gt;select-options: so_bukrs for bkpf-bukrs obligatory.&lt;/P&gt;&lt;P&gt;select-options: so_blart for bkpf-blart obligatory.&lt;/P&gt;&lt;P&gt;select-options: so_cpudt for bkpf-cpudt obligatory.&lt;/P&gt;&lt;P&gt;select-options: so_konzs for lfa1-konzs.&lt;/P&gt;&lt;P&gt;select-options: so_lifnr for lfa1-lifnr.&lt;/P&gt;&lt;P&gt;selection-screen end of block box1.&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;&lt;/P&gt;&lt;P&gt;if so_lifnr is not initial and so_konzs is not initial.&lt;/P&gt;&lt;P&gt;message 'BOTH NOT' type 'E'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;if so_lifnr is  initial and so_konzs is initial.&lt;/P&gt;&lt;P&gt;message 'ATLEAST one' type 'E'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Feb 2009 17:12:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-09T17:12:06Z</dc:date>
    <item>
      <title>Selection option error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-option-error-message/m-p/5119413#M1187329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need your help to code an error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is an ABAP report program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User can enter either Group Key (LFA1-KONZS) or Vendor Number (LFA1-LIFNR), if enter both, send an messagee : 'Please enter either Group Key or Vendor Number, not both'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error message show at the status line of the button of the input selection option screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are my codes so far:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Selection Options&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;selection-screen: begin of block box1 with frame title text-001.&lt;/P&gt;&lt;P&gt;select-options: so_bukrs for bkpf-bukrs obligatory.&lt;/P&gt;&lt;P&gt;select-options: so_blart for bkpf-blart obligatory.&lt;/P&gt;&lt;P&gt;select-options: so_cpudt for bkpf-cpudt obligatory.&lt;/P&gt;&lt;P&gt;select-options: so_konzs for lfa1-konzs.&lt;/P&gt;&lt;P&gt;select-options: so_lifnr for lfa1-lifnr.&lt;/P&gt;&lt;P&gt;selection-screen end of block box1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Helen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 17:01:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-option-error-message/m-p/5119413#M1187329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T17:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Selection option error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-option-error-message/m-p/5119414#M1187330</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;Test the following Sample Code Hope will solve out your problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: bkpf, lfa1.
SELECTION-SCREEN: BEGIN OF BLOCK box1 WITH FRAME TITLE text-001.
SELECT-OPTIONS: so_bukrs FOR bkpf-bukrs OBLIGATORY.
SELECT-OPTIONS: so_blart FOR bkpf-blart OBLIGATORY.
SELECT-OPTIONS: so_cpudt FOR bkpf-cpudt OBLIGATORY.
SELECT-OPTIONS: so_konzs FOR lfa1-konzs. " This
SELECT-OPTIONS: so_lifnr FOR lfa1-lifnr. " This
SELECTION-SCREEN END OF BLOCK box1.

AT SELECTION-SCREEN.

  IF so_konzs IS NOT INITIAL AND so_lifnr IS NOT INITIAL.

    MESSAGE: 'Please enter either Group Key or Vendor Number, not both' TYPE 'I'.

  ENDIF.
" if you need that user must enter one value from the both than use the following lines of code too else Remove

  IF so_konzs IS INITIAL AND so_lifnr IS INITIAL.

    MESSAGE: 'Please enter Group Key or Vendor Number, not both' TYPE 'I'.

  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Faisal Altaf on Feb 9, 2009 10:16 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Faisal Altaf on Feb 9, 2009 10:34 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 17:11:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-option-error-message/m-p/5119414#M1187330</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-02-09T17:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Selection option error message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-option-error-message/m-p/5119415#M1187331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi bro &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can go in following way( This is working code)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: lfa1,&lt;/P&gt;&lt;P&gt;bkpf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen: begin of block box1 with frame title text-001.&lt;/P&gt;&lt;P&gt;select-options: so_bukrs for bkpf-bukrs obligatory.&lt;/P&gt;&lt;P&gt;select-options: so_blart for bkpf-blart obligatory.&lt;/P&gt;&lt;P&gt;select-options: so_cpudt for bkpf-cpudt obligatory.&lt;/P&gt;&lt;P&gt;select-options: so_konzs for lfa1-konzs.&lt;/P&gt;&lt;P&gt;select-options: so_lifnr for lfa1-lifnr.&lt;/P&gt;&lt;P&gt;selection-screen end of block box1.&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;&lt;/P&gt;&lt;P&gt;if so_lifnr is not initial and so_konzs is not initial.&lt;/P&gt;&lt;P&gt;message 'BOTH NOT' type 'E'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;if so_lifnr is  initial and so_konzs is initial.&lt;/P&gt;&lt;P&gt;message 'ATLEAST one' type 'E'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 17:12:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-option-error-message/m-p/5119415#M1187331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T17:12:06Z</dc:date>
    </item>
  </channel>
</rss>

