<?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: Validation Code Required in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-code-required/m-p/3520675#M846779</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;Does that have parameters,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if r1 = 'X'.&lt;/P&gt;&lt;P&gt;if p1 is not initial.&lt;/P&gt;&lt;P&gt;do the process..&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;raise error msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if r2 = 'X'.&lt;/P&gt;&lt;P&gt;if p2 is not initial.&lt;/P&gt;&lt;P&gt;do the process..&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;raise error msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where r1 and r2 r the radio button and p1 and p2 r the parameters..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the below case only the coressponding parameters will be displayed for the particular radio button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables sscrfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_r1 radiobutton group grp1 user-command us default 'X',&lt;/P&gt;&lt;P&gt;            p_r2 radiobutton group grp1.&lt;/P&gt;&lt;P&gt; parameters: p_pfile type rlgrap-filename modif id bl1 ,&lt;/P&gt;&lt;P&gt;            p_afile type rlgrap-filename modif id bl2.&lt;/P&gt;&lt;P&gt;at selection-screen output.&lt;/P&gt;&lt;P&gt;  loop at screen.&lt;/P&gt;&lt;P&gt;    case screen-group1.&lt;/P&gt;&lt;P&gt;      when 'bl1'.&lt;/P&gt;&lt;P&gt;        if p_r1 = 'X'.&lt;/P&gt;&lt;P&gt;          screen-active = 1.&lt;/P&gt;&lt;P&gt;        else.&lt;/P&gt;&lt;P&gt;          screen-active = 0.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;      when 'bl2'.&lt;/P&gt;&lt;P&gt;        if p_r1 = 'X'.&lt;/P&gt;&lt;P&gt;          screen-active = 1.&lt;/P&gt;&lt;P&gt;        else.&lt;/P&gt;&lt;P&gt;          screen-active = 0.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          endcase.&lt;/P&gt;&lt;P&gt;    modify screen.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves the problem,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arunsri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Mar 2008 11:14:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-04T11:14:11Z</dc:date>
    <item>
      <title>Validation Code Required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-code-required/m-p/3520668#M846772</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;I have 2 flat files and 2 internal tables. flat file1 with 5 columns and another flat file2 with 9 columns.The first internal table has 5 fields and second internal table has 9 fileds.And i kept two radio buttons R1 and R2.when i select 1st radio button (R1) and select flat file1 it is uploaded into internal table (itab1) Properly.Similarly when i select R2 and select flat file2 it is uploaded into internal table (itab2) Properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now,if i select Radio Button R1 and Flat file2 then it has to show Error.Similarly if i select Radi Button R2 and Flat file1 it has to show error.&lt;/P&gt;&lt;P&gt;How can i write Code for this One?.&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Narasimha Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2008 10:57:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-code-required/m-p/3520668#M846772</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-04T10:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Validation Code Required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-code-required/m-p/3520669#M846773</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;Have u kept parameter for the flat file..that is thru f4 help?? if u r using separate parameter for the flat file., the validation can be done..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arunsri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2008 11:03:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-code-required/m-p/3520669#M846773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-04T11:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Validation Code Required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-code-required/m-p/3520670#M846774</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;Simply check this combination in the IF.. ENDIF condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and put the error message there can use call transaction &amp;lt;tcode&amp;gt; between the IF and ENDIF statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dhruv Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2008 11:04:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-code-required/m-p/3520670#M846774</guid>
      <dc:creator>dhruv_shah3</dc:creator>
      <dc:date>2008-03-04T11:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Validation Code Required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-code-required/m-p/3520671#M846775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi  narasimaha reddy &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hi if select radio button 1 write &lt;/P&gt;&lt;P&gt; perform gui_upload using table itab type i_tab1 .&lt;/P&gt;&lt;P&gt; else &lt;/P&gt;&lt;P&gt; perform gui_upload using table itab type i_tab2 .&lt;/P&gt;&lt;P&gt;this time it's didn't get error . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt; medi kadapa na reddy kada andhuke adiga&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;kk.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2008 11:05:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-code-required/m-p/3520671#M846775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-04T11:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Validation Code Required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-code-required/m-p/3520672#M846776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi do like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if  r1 = 'X' and f1 = 'X'.&lt;/P&gt;&lt;P&gt;write:/ 'something'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;elseif  r1 = 'X' and f2 = 'X'.&lt;/P&gt;&lt;P&gt;write:/ 'something.&lt;/P&gt;&lt;P&gt;elseif    r1 = 'X' and f2 = 'X'.&lt;/P&gt;&lt;P&gt;write:/ 'error'.&lt;/P&gt;&lt;P&gt;elseif   r2 = 'X' and f1 = 'X'.&lt;/P&gt;&lt;P&gt;write:/ 'error'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;venkat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Mar 4, 2008 2:19 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2008 11:05:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-code-required/m-p/3520672#M846776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-04T11:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Validation Code Required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-code-required/m-p/3520673#M846777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anusri,&lt;/P&gt;&lt;P&gt;I kept F4 help for Flat file in Selection screen...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2008 11:05:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-code-required/m-p/3520673#M846777</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-04T11:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Validation Code Required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-code-required/m-p/3520674#M846778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; You can upload data to string type internal table.And split the data based on the delimiter.While spliting data keep one extra field.For example,if you are uploading file1 with 5 columns.Split the data and move data to corresponding 5 variables and 6th data should be moved to 6th variable.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Now check if 6th variable is intial.If it is intial file is having only 5 columns and its ok.Same can be done in case of file2 also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shibin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Mar 4, 2008 2:20 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2008 11:13:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-code-required/m-p/3520674#M846778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-04T11:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Validation Code Required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-code-required/m-p/3520675#M846779</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;Does that have parameters,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if r1 = 'X'.&lt;/P&gt;&lt;P&gt;if p1 is not initial.&lt;/P&gt;&lt;P&gt;do the process..&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;raise error msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if r2 = 'X'.&lt;/P&gt;&lt;P&gt;if p2 is not initial.&lt;/P&gt;&lt;P&gt;do the process..&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;raise error msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where r1 and r2 r the radio button and p1 and p2 r the parameters..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the below case only the coressponding parameters will be displayed for the particular radio button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables sscrfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: p_r1 radiobutton group grp1 user-command us default 'X',&lt;/P&gt;&lt;P&gt;            p_r2 radiobutton group grp1.&lt;/P&gt;&lt;P&gt; parameters: p_pfile type rlgrap-filename modif id bl1 ,&lt;/P&gt;&lt;P&gt;            p_afile type rlgrap-filename modif id bl2.&lt;/P&gt;&lt;P&gt;at selection-screen output.&lt;/P&gt;&lt;P&gt;  loop at screen.&lt;/P&gt;&lt;P&gt;    case screen-group1.&lt;/P&gt;&lt;P&gt;      when 'bl1'.&lt;/P&gt;&lt;P&gt;        if p_r1 = 'X'.&lt;/P&gt;&lt;P&gt;          screen-active = 1.&lt;/P&gt;&lt;P&gt;        else.&lt;/P&gt;&lt;P&gt;          screen-active = 0.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;      when 'bl2'.&lt;/P&gt;&lt;P&gt;        if p_r1 = 'X'.&lt;/P&gt;&lt;P&gt;          screen-active = 1.&lt;/P&gt;&lt;P&gt;        else.&lt;/P&gt;&lt;P&gt;          screen-active = 0.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          endcase.&lt;/P&gt;&lt;P&gt;    modify screen.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves the problem,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arunsri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2008 11:14:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-code-required/m-p/3520675#M846779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-04T11:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Validation Code Required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-code-required/m-p/3520676#M846780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anusri,&lt;/P&gt;&lt;P&gt;I haven't given file name by default.i will select files through f4 help..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2008 11:31:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-code-required/m-p/3520676#M846780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-04T11:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Validation Code Required</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-code-required/m-p/3520677#M846781</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;ya ok.. do u get the file in F4 help with parameters(input field) or just it pop ups a window to select a file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is the second case, then u need to check which radio button is selected by if r1 = 'X', then do the remaining process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Arunsri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Arunsri on Mar 4, 2008 12:40 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2008 11:38:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-code-required/m-p/3520677#M846781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-04T11:38:55Z</dc:date>
    </item>
  </channel>
</rss>

