<?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: Idoc Error 51 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-51/m-p/4652831#M1094845</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the below code&lt;/P&gt;&lt;P&gt;Maintain the Mesasge within a Message class and provide the same as below .&lt;/P&gt;&lt;P&gt;idoc_status-docnum = idoc_contrl-docnum.&lt;/P&gt;&lt;P&gt;      idoc_status-segnum = tb_segnum.&lt;/P&gt;&lt;P&gt;      idoc_status-status = '51'.&lt;/P&gt;&lt;P&gt;      idoc_status-msgty  = &amp;lt;MESg-type&amp;gt;.&lt;/P&gt;&lt;P&gt;      idoc_status-msgid  = &amp;lt;Mesgid&amp;gt;.&lt;/P&gt;&lt;P&gt;      idoc_status-msgno  = &amp;lt;Msgnumber&amp;gt;.      &lt;/P&gt;&lt;P&gt;       idoc_status-msgv1  = &amp;lt;msgv1&amp;gt;..&lt;/P&gt;&lt;P&gt;      idoc_status-msgv2  = &amp;lt;-message_v2&amp;gt;.&lt;/P&gt;&lt;P&gt;      idoc_status-msgv3  = &amp;lt;message_v3&amp;gt;.&lt;/P&gt;&lt;P&gt;      idoc_status-msgv4  = &amp;lt;-message_v4&amp;gt;.&lt;/P&gt;&lt;P&gt;Hope it is helpful ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Oct 2008 11:08:28 GMT</pubDate>
    <dc:creator>shishupalreddy</dc:creator>
    <dc:date>2008-10-24T11:08:28Z</dc:date>
    <item>
      <title>Idoc Error 51</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-51/m-p/4652824#M1094838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;I am writing some code in an exit to check the netweight values for variable weight within certain interval.this exit is in function module&lt;/P&gt;&lt;P&gt;IDOC_INPUT_DELVRY. So the values to check are coming from an Idoc (Inbound) .Now my requirement is to provide error message of 51 to the Idoc.&lt;/P&gt;&lt;P&gt;Here i have coded as : &lt;/P&gt;&lt;P&gt;IF lv_result NE ' '.&lt;/P&gt;&lt;P&gt;                IF lv_var &amp;lt;= lv_result AND lv_result &amp;lt;= lv_var1.&lt;/P&gt;&lt;P&gt;                ELSE .&lt;/P&gt;&lt;P&gt;                  MESSAGE text-001 TYPE 'E'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where text-001 = "Variable weight not available in interval definition."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when i see the error in the generated Idoc i get this error:&lt;/P&gt;&lt;P&gt;"Variable weight not available in interval definition Variable weight not"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So basically the error gets repeated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone rectify this or is there any other method to send the error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2008 09:04:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-51/m-p/4652824#M1094838</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-24T09:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Idoc Error 51</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-51/m-p/4652825#M1094839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Probably the text-001 is getting assigned twice somehow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend you create a message in SE91 instead of using the text-001 or check if the text-001 has any value before assigning the value to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2008 09:13:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-51/m-p/4652825#M1094839</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-24T09:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Idoc Error 51</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-51/m-p/4652826#M1094840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But this text comes from the Text Elements.so there is no way we can clear it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2008 09:56:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-51/m-p/4652826#M1094840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-24T09:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Idoc Error 51</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-51/m-p/4652827#M1094841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please populate the messages (May be E,W,I) into Idocs Status records Instead of using MESSAGE statement .So that once Idoc Processed you can see the status ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it is helpfull ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2008 10:09:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-51/m-p/4652827#M1094841</guid>
      <dc:creator>shishupalreddy</dc:creator>
      <dc:date>2008-10-24T10:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Idoc Error 51</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-51/m-p/4652828#M1094842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can pass the message type as 51 to the idoc status records but where to pass the message itself. Can u please tell me in which field i can pass these 2 values. May be the table is EDIDC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2008 10:14:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-51/m-p/4652828#M1094842</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-24T10:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Idoc Error 51</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-51/m-p/4652829#M1094843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use the following code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0. " Something failed&lt;/P&gt;&lt;P&gt;    CLEAR T_PROT.&lt;/P&gt;&lt;P&gt;    T_PROT-VBELN = VBELN_VL. " delivery number&lt;/P&gt;&lt;P&gt;    T_PROT-MSGID = SY-MSGID.&lt;/P&gt;&lt;P&gt;    T_PROT-MSGTY = SY-MSGTY.&lt;/P&gt;&lt;P&gt;    T_PROT-MSGNO = SY-MSGNO.&lt;/P&gt;&lt;P&gt;    T_PROT-MSGV1 = SY-MSGV1.&lt;/P&gt;&lt;P&gt;    T_PROT-MSGV2 = SY-MSGV2.&lt;/P&gt;&lt;P&gt;    T_PROT-MSGV3 = SY-MSGV3.&lt;/P&gt;&lt;P&gt;    T_PROT-MSGV4 = SY-MSGV4.&lt;/P&gt;&lt;P&gt;    APPEND T_PROT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the T_PROT is a table with messages . It refers to the structure prott. Its also passed to the user exit functions as changing parameter called 'PROCESSING_PROTOCOL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2008 10:26:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-51/m-p/4652829#M1094843</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-24T10:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Idoc Error 51</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-51/m-p/4652830#M1094844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But PROCESSING_PROTOCOL is in the EXPORTING part. So i cannot use it.&lt;/P&gt;&lt;P&gt;i have IDOC_CONTROL as changing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2008 10:44:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-51/m-p/4652830#M1094844</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-24T10:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Idoc Error 51</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-51/m-p/4652831#M1094845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the below code&lt;/P&gt;&lt;P&gt;Maintain the Mesasge within a Message class and provide the same as below .&lt;/P&gt;&lt;P&gt;idoc_status-docnum = idoc_contrl-docnum.&lt;/P&gt;&lt;P&gt;      idoc_status-segnum = tb_segnum.&lt;/P&gt;&lt;P&gt;      idoc_status-status = '51'.&lt;/P&gt;&lt;P&gt;      idoc_status-msgty  = &amp;lt;MESg-type&amp;gt;.&lt;/P&gt;&lt;P&gt;      idoc_status-msgid  = &amp;lt;Mesgid&amp;gt;.&lt;/P&gt;&lt;P&gt;      idoc_status-msgno  = &amp;lt;Msgnumber&amp;gt;.      &lt;/P&gt;&lt;P&gt;       idoc_status-msgv1  = &amp;lt;msgv1&amp;gt;..&lt;/P&gt;&lt;P&gt;      idoc_status-msgv2  = &amp;lt;-message_v2&amp;gt;.&lt;/P&gt;&lt;P&gt;      idoc_status-msgv3  = &amp;lt;message_v3&amp;gt;.&lt;/P&gt;&lt;P&gt;      idoc_status-msgv4  = &amp;lt;-message_v4&amp;gt;.&lt;/P&gt;&lt;P&gt;Hope it is helpful ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2008 11:08:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-51/m-p/4652831#M1094845</guid>
      <dc:creator>shishupalreddy</dc:creator>
      <dc:date>2008-10-24T11:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Idoc Error 51</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-51/m-p/4652832#M1094846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes , its not Changing you are right, but you can still append your message to that parameter as it is importing when called and exporting in the function itself. So if you append anything to the T_PROX , it will be imported in the program IDOC_INPUT_DELVRY and later processed in the subroutine   PERFORM DGMSD_UPDATE, when it updates the messages to the status records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2008 11:33:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-51/m-p/4652832#M1094846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-24T11:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Idoc Error 51</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-51/m-p/4652833#M1094847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2008 12:00:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error-51/m-p/4652833#M1094847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-27T12:00:00Z</dc:date>
    </item>
  </channel>
</rss>

