<?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 Validations in RFC Programming in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validations-in-rfc-programming/m-p/3059100#M724516</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have to add a field by name (vendor reference) in RFC Table and that should be an optional field and the validations that i have to do is that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The entered value should exist in the table LFA1 and in the field LIFNR (LFA1-LIFNR) or the entered value should me a text with"NO-ALLOC"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise it should show an error,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide me the code and i have to write the code in RFC's&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Nov 2007 13:57:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-28T13:57:34Z</dc:date>
    <item>
      <title>Validations in RFC Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validations-in-rfc-programming/m-p/3059100#M724516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have to add a field by name (vendor reference) in RFC Table and that should be an optional field and the validations that i have to do is that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The entered value should exist in the table LFA1 and in the field LIFNR (LFA1-LIFNR) or the entered value should me a text with"NO-ALLOC"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise it should show an error,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide me the code and i have to write the code in RFC's&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2007 13:57:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validations-in-rfc-programming/m-p/3059100#M724516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-28T13:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Validations in RFC Programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validations-in-rfc-programming/m-p/3059101#M724517</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;say the field name in RFC is V_LIFNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;If not V_LIFNR is initial and ne 'NO-ALLOC'.
select single LIFNR from LFA1
into l_lifnr where lifnr eq v_lifnr.
if sy-subrc ne 0.
RAISE NO_DATA.
endif.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In EXCEPTIONS tab, mention NO_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2007 03:31:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validations-in-rfc-programming/m-p/3059101#M724517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-29T03:31:27Z</dc:date>
    </item>
  </channel>
</rss>

