<?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: SD_SALESDOCUMENT_CREATE problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sd-salesdocument-create-problem/m-p/6919494#M1484024</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;Instead of checking sy-subrc, do the below checking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;read table return with key type = 'E'.
      if sy-subrc = 0.
        "Sales order not Created"
      else.
        "Sales Order Created"
      endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 May 2010 08:47:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-05T08:47:22Z</dc:date>
    <item>
      <title>SD_SALESDOCUMENT_CREATE problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sd-salesdocument-create-problem/m-p/6919493#M1484023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we are calling SD_SALESDOCUMENT_CREATE to create Sales order in back ground and it is working, but some times this function module returning SY-SUBRC 0 with out Creating Sales Order Document( ibapivbeln retuns has empty value) and also retun table does not contain any error message ( Type 'E' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'SD_SALESDOCUMENT_CREATE'&lt;/P&gt;&lt;P&gt;      sales_header_in               = sohdr&lt;/P&gt;&lt;P&gt;      sales_header_inx             = sohdrx&lt;/P&gt;&lt;P&gt;   importing&lt;/P&gt;&lt;P&gt;      salesdocument_ex            = so_vbeln&lt;/P&gt;&lt;P&gt;   tables&lt;/P&gt;&lt;P&gt;      return                              = itret2&lt;/P&gt;&lt;P&gt;      sales_items_in                = itsoitm&lt;/P&gt;&lt;P&gt;      sales_items_inx               = itsoitmx&lt;/P&gt;&lt;P&gt;      sales_partners                = itparnr&lt;/P&gt;&lt;P&gt;      sales_schedules_in         = itschdl&lt;/P&gt;&lt;P&gt;      sales_schedules_inx       = itschdlx&lt;/P&gt;&lt;P&gt;      sales_conditions_in          = itcond&lt;/P&gt;&lt;P&gt;      sales_conditions_inx        = itcondx&lt;/P&gt;&lt;P&gt;      sales_text                         = isotext&lt;/P&gt;&lt;P&gt;      partneraddresses             = itparadr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0 and not so_vbeln is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;   loop at itret2.&lt;/P&gt;&lt;P&gt;        lv_text = itret2-message&lt;/P&gt;&lt;P&gt;       perform bulid_ret_msg using lv_text.&lt;/P&gt;&lt;P&gt;   endloop. &lt;/P&gt;&lt;P&gt;      delete  itret2 where type ne 'E'.&lt;/P&gt;&lt;P&gt;      lv_text =  'Creating Sales Doc Failed.&lt;/P&gt;&lt;P&gt;      perform bulid_ret_msg using lv_text.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some times it executes ELSE statements and returns 'Creating Ssales Doc Failed'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 08:32:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sd-salesdocument-create-problem/m-p/6919493#M1484023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-05T08:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: SD_SALESDOCUMENT_CREATE problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sd-salesdocument-create-problem/m-p/6919494#M1484024</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;Instead of checking sy-subrc, do the below checking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;read table return with key type = 'E'.
      if sy-subrc = 0.
        "Sales order not Created"
      else.
        "Sales Order Created"
      endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 08:47:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sd-salesdocument-create-problem/m-p/6919494#M1484024</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-05T08:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: SD_SALESDOCUMENT_CREATE problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sd-salesdocument-create-problem/m-p/6919495#M1484025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read and implement OSS [Note 1012581 - Document is not saved|https://service.sap.com/sap/support/notes/1012581]&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Information messages are regarded as errors in function module SD_SALES_DOCU_MAINTAIN.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Also when reading return table select error 'E'  and &lt;STRONG&gt;abort 'A'&lt;/STRONG&gt; message types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 09:23:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sd-salesdocument-create-problem/m-p/6919495#M1484025</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2010-05-05T09:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: SD_SALESDOCUMENT_CREATE problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sd-salesdocument-create-problem/m-p/6919496#M1484026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks All&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 10:30:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sd-salesdocument-create-problem/m-p/6919496#M1484026</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-05T10:30:37Z</dc:date>
    </item>
  </channel>
</rss>

