<?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: help me in coding.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-in-coding/m-p/3145888#M747843</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But I couldn't able to see the output when i press F8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mahathi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Dec 2007 07:00:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-19T07:00:32Z</dc:date>
    <item>
      <title>help me in coding..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-in-coding/m-p/3145886#M747841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all..&lt;/P&gt;&lt;P&gt;Pls check the following program..If we click first radio button matnr and werks fields should display..if we click second radiobutton ebeln and aedat fields should display...&lt;/P&gt;&lt;P&gt;how to use events for this program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZNEW1_EVENTS.&lt;/P&gt;&lt;P&gt;tables: mara , marc , ekko.&lt;/P&gt;&lt;P&gt;data : begin of it occurs 0,&lt;/P&gt;&lt;P&gt;      matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;       ebeln like ekko-ebeln,&lt;/P&gt;&lt;P&gt;       werks like marc-werks,&lt;/P&gt;&lt;P&gt;       aedat like ekko-aedat,&lt;/P&gt;&lt;P&gt;       end of it.&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;  select-options : s_matnr for mara-matnr modif id s1,&lt;/P&gt;&lt;P&gt;                   s_ebeln for ekko-ebeln modif id s2,&lt;/P&gt;&lt;P&gt;                   s_werks for marc-werks modif id s3,&lt;/P&gt;&lt;P&gt;                   s_aedat for ekko-aedat modif id s4.&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;selection-screen begin of block b2 with frame title text-002.&lt;/P&gt;&lt;P&gt;selection-screen begin of line.&lt;/P&gt;&lt;P&gt;parameters : r1 radiobutton group rg1 default 'X' user-command uc1.&lt;/P&gt;&lt;P&gt;selection-screen comment 5(20) text-003 for field r1.&lt;/P&gt;&lt;P&gt;selection-screen end of line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of line.&lt;/P&gt;&lt;P&gt;parameters : r2 radiobutton group rg1.&lt;/P&gt;&lt;P&gt;selection-screen comment 5(20) text-004 for field r2.&lt;/P&gt;&lt;P&gt;selection-screen end of line.&lt;/P&gt;&lt;P&gt;selection-screen end of block b2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;    IF r1 = 'X'.   "If Active Vendor is selected selects data from BSIK&lt;/P&gt;&lt;P&gt;    SELECT a~matnr&lt;/P&gt;&lt;P&gt;           b~werks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         INTO CORRESPONDING FIELDS OF TABLE it&lt;/P&gt;&lt;P&gt;         FROM mara AS a&lt;/P&gt;&lt;P&gt;         INNER JOIN marc AS b&lt;/P&gt;&lt;P&gt;         ON a&lt;SUB&gt;matnr = b&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;         WHERE a~matnr IN s_matnr&lt;/P&gt;&lt;P&gt;           AND b~werks IN s_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSEIF r2 = 'X'.     "If Inactive Vendor is selected selects data from BSAK&lt;/P&gt;&lt;P&gt;    SELECT ebeln aedat from ekko INTO CORRESPONDING FIELDS OF TABLE it where ebeln in s_ebeln and aedat in s_aedat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 06:55:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-in-coding/m-p/3145886#M747841</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T06:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: help me in coding..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-in-coding/m-p/3145887#M747842</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;The code seems to be fine..it should be working correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagrds,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 06:58:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-in-coding/m-p/3145887#M747842</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2007-12-19T06:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: help me in coding..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-in-coding/m-p/3145888#M747843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But I couldn't able to see the output when i press F8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mahathi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 07:00:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-in-coding/m-p/3145888#M747843</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T07:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: help me in coding..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-in-coding/m-p/3145889#M747844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; at selection-screen output.&lt;/P&gt;&lt;P&gt;     if  w_flag eq  'X'.&lt;/P&gt;&lt;P&gt;         loop at screen.&lt;/P&gt;&lt;P&gt;           if screen-name cp 's_matnr' or 's_werks'.&lt;/P&gt;&lt;P&gt;               screen-active = 0.&lt;/P&gt;&lt;P&gt;                modify screen&lt;/P&gt;&lt;P&gt;           endif.&lt;/P&gt;&lt;P&gt;          endloop.&lt;/P&gt;&lt;P&gt;     else.&lt;/P&gt;&lt;P&gt;       loop at screen.&lt;/P&gt;&lt;P&gt;           if screen-name cp 's_ebeln' or 's_aedat'.&lt;/P&gt;&lt;P&gt;               screen-active = 0.&lt;/P&gt;&lt;P&gt;                modify screen.&lt;/P&gt;&lt;P&gt;           endif.&lt;/P&gt;&lt;P&gt;  if screen-name cp 's_matnr' or 's_werks'.&lt;/P&gt;&lt;P&gt;               screen-active =1.&lt;/P&gt;&lt;P&gt;                modify screen&lt;/P&gt;&lt;P&gt;           endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          endloop.&lt;/P&gt;&lt;P&gt;      at selection-screen.&lt;/P&gt;&lt;P&gt;   if r1 eq 'X'.&lt;/P&gt;&lt;P&gt;   w_flag eq 'x'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt; clear w_falg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Plzz reward points if it helps.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 07:03:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-in-coding/m-p/3145889#M747844</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T07:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: help me in coding..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-in-coding/m-p/3145890#M747845</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; Change the code as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: mara , marc , ekko.&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF it OCCURS 0,&lt;/P&gt;&lt;P&gt;matnr LIKE mara-matnr,&lt;/P&gt;&lt;P&gt;ebeln LIKE ekko-ebeln,&lt;/P&gt;&lt;P&gt;werks LIKE marc-werks,&lt;/P&gt;&lt;P&gt;aedat LIKE ekko-aedat,&lt;/P&gt;&lt;P&gt;END OF it.&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;SELECT-OPTIONS : s_matnr FOR mara-matnr MODIF ID s1,&lt;/P&gt;&lt;P&gt;s_ebeln FOR ekko-ebeln MODIF ID s2,&lt;/P&gt;&lt;P&gt;s_werks FOR marc-werks MODIF ID s3,&lt;/P&gt;&lt;P&gt;s_aedat FOR ekko-aedat MODIF ID s4.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;PARAMETERS : r1 RADIOBUTTON GROUP rg1 DEFAULT 'X' USER-COMMAND uc1.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 5(20) text-003 FOR FIELD r1.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF LINE.&lt;/P&gt;&lt;P&gt;PARAMETERS : r2 RADIOBUTTON GROUP rg1.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN COMMENT 5(20) text-004 FOR FIELD r2.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF LINE.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: g_f_flag TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;  IF r1 = 'X'. "If Active Vendor is selected selects data from BSIK&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;g_f_flag = 'X'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ELSEIF r2 = 'X'. "If Inactive Vendor is selected selects data from BSAK&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;CLEAR: g_f_flag.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;START-OF-SELECTION.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;IF g_f_flag = 'X'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;SELECT a&lt;SUB&gt;matnr  b&lt;/SUB&gt;werks&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;INTO CORRESPONDING FIELDS OF TABLE it&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;FROM mara AS a&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;INNER JOIN marc AS b&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;ON a&lt;SUB&gt;matnr = b&lt;/SUB&gt;matnr&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;WHERE a~matnr IN s_matnr&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;AND b~werks IN s_werks.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;LOOP AT it.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;WRITE: / it-matnr, it-werks.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;ENDLOOP.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;ELSE.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;SELECT ebeln aedat FROM ekko INTO CORRESPONDING FIELDS OF TABLE it&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;WHERE ebeln IN s_ebeln AND aedat IN s_aedat.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;LOOP AT it.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;WRITE: / it-ebeln, it-aedat.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;ENDLOOP.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;END-OF-SELECTION&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You didn't use WRITE statement to display the data. Internal table data must be displayed between START-OF-SELECTION &amp;amp; END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ramesh Hirial on Dec 19, 2007 4:07 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 07:06:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-in-coding/m-p/3145890#M747845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T07:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: help me in coding..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-in-coding/m-p/3145891#M747846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you..but can u please explain me the logic..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 07:07:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-in-coding/m-p/3145891#M747846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T07:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: help me in coding..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-in-coding/m-p/3145892#M747847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  in the selection-screen output u r using loop at screen and modifying according to the radiobuttons.&lt;/P&gt;&lt;P&gt;if u have given the value then that value is validated in at selection-screen. and then it goes to at selection-screen output and displays the screen according to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Plzz reward points if it helps.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 07:13:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-in-coding/m-p/3145892#M747847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T07:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: help me in coding..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-in-coding/m-p/3145893#M747848</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;ur functionality is wwhen u check RB1 the fields below it should be enabled and the otehr fields in RB2 should be disabled ryt..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so u have to d like this'&lt;/P&gt;&lt;P&gt;at selection-screen output.&lt;/P&gt;&lt;P&gt;IF RB1 IS  INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CASE screen-name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        WHEN 'MATNR'.&lt;/P&gt;&lt;P&gt;          screen-input = 0.&lt;/P&gt;&lt;P&gt;          MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        WHEN 'WERKS'.&lt;/P&gt;&lt;P&gt;          screen-input = 0.&lt;/P&gt;&lt;P&gt;          MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CASE screen-name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        WHEN 'EBELN'.&lt;/P&gt;&lt;P&gt;          screen-input = 0.&lt;/P&gt;&lt;P&gt;          MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        WHEN 'AEDAT'.&lt;/P&gt;&lt;P&gt;          screen-input = 0.&lt;/P&gt;&lt;P&gt;          MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 07:23:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-in-coding/m-p/3145893#M747848</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2007-12-19T07:23:56Z</dc:date>
    </item>
  </channel>
</rss>

