<?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: BAPI PO Create Function fails to pass Blank/Space/Empty/NULL values to date Field in SAP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-function-fails-to-pass-blank-space-empty-null-values-to-date/m-p/401197#M10265</link>
    <description>&lt;P&gt;Try it manually in ME22N and report what message you get&lt;/P&gt;</description>
    <pubDate>Tue, 20 Dec 2016 05:28:13 GMT</pubDate>
    <dc:creator>JL23</dc:creator>
    <dc:date>2016-12-20T05:28:13Z</dc:date>
    <item>
      <title>BAPI PO Create Function fails to pass Blank/Space/Empty/NULL values to date Field in SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-function-fails-to-pass-blank-space-empty-null-values-to-date/m-p/401193#M10261</link>
      <description>&lt;P&gt;I am trying to Create a PO using the .NET Connector (C#) (Version 3.3) in SAP. &lt;/P&gt;&lt;P&gt;Delivery date field is optional in SAP but when trying to pass Blank/Space/Empty/NULL it fails. &lt;/P&gt;&lt;P&gt;Below mentioned is the code that im using for the Optional Field(Date Field)&lt;/P&gt;&lt;P&gt;IRfcStructure POItemSchedule = rfcRepository.GetStructureMetadata("BAPIEKET").CreateStructure(); POItemSchedule.SetValue("DELIV_DATE", "0000-00-00");&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;... &lt;/P&gt;&lt;P&gt;//Connect and create PO in SAP&lt;/P&gt;&lt;P&gt;BAPI_PO_CREATE_FuncOBJ.Invoke(rfcDestination); BAPI_TRANSACTION_COMMITOBJ.SetValue("WAIT", "X"); BAPI_TRANSACTION_COMMITOBJ.Invoke(rfcDestination);&lt;/P&gt;&lt;P&gt;I tried passing the following values.&lt;/P&gt;&lt;P&gt;"0000-00-00"&lt;/P&gt;&lt;P&gt;"000-00-00"&lt;/P&gt;&lt;P&gt;" "&lt;/P&gt;&lt;P&gt;"0"&lt;/P&gt;&lt;P&gt;String.Empty &amp;amp;&lt;/P&gt;&lt;P&gt;DBNULL &lt;/P&gt;&lt;P&gt;When trying these I get the below errors &lt;/P&gt;&lt;P&gt;"Cannot Convert String into Date" Or "Please enter a valid delivery date" &lt;/P&gt;&lt;P&gt;Please advise if there are any ways to overcome this error and pass the NULL/Empty Value.&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2016 15:31:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-function-fails-to-pass-blank-space-empty-null-values-to-date/m-p/401193#M10261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-12-16T15:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI PO Create Function fails to pass Blank/Space/Empty/NULL values to date Field in SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-function-fails-to-pass-blank-space-empty-null-values-to-date/m-p/401194#M10262</link>
      <description>&lt;P&gt;Date in SAP is in format YYYYMMDD so try to pass for example '20161217'&lt;/P&gt;</description>
      <pubDate>Sat, 17 Dec 2016 17:25:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-function-fails-to-pass-blank-space-empty-null-values-to-date/m-p/401194#M10262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-12-17T17:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI PO Create Function fails to pass Blank/Space/Empty/NULL values to date Field in SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-function-fails-to-pass-blank-space-empty-null-values-to-date/m-p/401195#M10263</link>
      <description>&lt;P&gt;If you want to use an external data format you must also set field DEL_DATCAT_EXT to a non initial value, else use internal format YYYYMMDD.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Raymond&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 06:57:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-function-fails-to-pass-blank-space-empty-null-values-to-date/m-p/401195#M10263</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2016-12-19T06:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI PO Create Function fails to pass Blank/Space/Empty/NULL values to date Field in SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-function-fails-to-pass-blank-space-empty-null-values-to-date/m-p/401196#M10264</link>
      <description>&lt;P&gt;Thank you for responding, I am able to save the date values. I need help on saving NULL/EMPTY in the Delivery Date Field as it is optional.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2016 15:30:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-function-fails-to-pass-blank-space-empty-null-values-to-date/m-p/401196#M10264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-12-19T15:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI PO Create Function fails to pass Blank/Space/Empty/NULL values to date Field in SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-function-fails-to-pass-blank-space-empty-null-values-to-date/m-p/401197#M10265</link>
      <description>&lt;P&gt;Try it manually in ME22N and report what message you get&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2016 05:28:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-po-create-function-fails-to-pass-blank-space-empty-null-values-to-date/m-p/401197#M10265</guid>
      <dc:creator>JL23</dc:creator>
      <dc:date>2016-12-20T05:28:13Z</dc:date>
    </item>
  </channel>
</rss>

