<?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 reg :blocking idoc from procesing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-blocking-idoc-from-procesing/m-p/4085102#M976780</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have one segment  e1edp28 in idoc invoic02. i should block the idoc if herkl field in e1edp28 segment is initial.could u plz suggest me how to do it?&lt;/P&gt;&lt;P&gt;plz see if the following code works or not &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF  ztype  EQ c_zinvoic02&lt;/P&gt;&lt;P&gt;                AND ztype1 EQ c_invoic02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       if edi_e1edp28-herkl is initial.&lt;/P&gt;&lt;P&gt;          MESSAGE E018 WITH 'Country of origin of material needs to be entered'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jul 2008 08:29:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-09T08:29:15Z</dc:date>
    <item>
      <title>reg :blocking idoc from procesing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-blocking-idoc-from-procesing/m-p/4085102#M976780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have one segment  e1edp28 in idoc invoic02. i should block the idoc if herkl field in e1edp28 segment is initial.could u plz suggest me how to do it?&lt;/P&gt;&lt;P&gt;plz see if the following code works or not &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF  ztype  EQ c_zinvoic02&lt;/P&gt;&lt;P&gt;                AND ztype1 EQ c_invoic02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       if edi_e1edp28-herkl is initial.&lt;/P&gt;&lt;P&gt;          MESSAGE E018 WITH 'Country of origin of material needs to be entered'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 08:29:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-blocking-idoc-from-procesing/m-p/4085102#M976780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T08:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: reg :blocking idoc from procesing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-blocking-idoc-from-procesing/m-p/4085103#M976781</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;You have to update the status table with your error message. &lt;/P&gt;&lt;P&gt;Check the std FM IDOC_INPUT_ORDERS is you scroll down in the FM you will see how the status message is updated..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* füllen IDOC_Status
* fill IDOC_Status
      IF ok = space.
        idoc_status-docnum = idoc_contrl-docnum.
        idoc_status-status = beleg_nicht_gebucht.
        IF check_orga = 'X'.
          idoc_status-msgty  = 'E'.
          idoc_status-msgid  = 'VG'.
          idoc_status-msgno  = '204'.
          idoc_status-msgv1  = xvbak-kunnr.
          idoc_status-msgv2  = lieferant.
          APPEND idoc_status.
        ELSE.
          idoc_status-msgty  = sy-msgty.
          idoc_status-msgid  = sy-msgid.
          idoc_status-msgno  = sy-msgno.
          idoc_status-msgv1  = msgv1.
          idoc_status-msgv2  = msgv2.
          idoc_status-msgv3  = msgv3.
          idoc_status-msgv4  = msgv4.
          APPEND idoc_status.
        ENDIF.
      ELSE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;VJ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 08:32:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-blocking-idoc-from-procesing/m-p/4085103#M976781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T08:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: reg :blocking idoc from procesing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-blocking-idoc-from-procesing/m-p/4085104#M976782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;for my case could u plz tell me how to do &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 08:38:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-blocking-idoc-from-procesing/m-p/4085104#M976782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T08:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: reg :blocking idoc from procesing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-blocking-idoc-from-procesing/m-p/4085105#M976783</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 believe that you are having a custom posting program to update the segments. If you have custom program then just update the status segments as i have posted in my previous post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have std function module and not a custom program then you will have a USER EXIT to update the status segments. Kindly check and see where you can update the status segments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know if you need more info.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;VJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jul 2008 08:40:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-blocking-idoc-from-procesing/m-p/4085105#M976783</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-09T08:40:49Z</dc:date>
    </item>
  </channel>
</rss>

