<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error/m-p/6168956#M1371315</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Sep 2009 17:00:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-29T17:00:30Z</dc:date>
    <item>
      <title>IDOC Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error/m-p/6168955#M1371314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to make a field mandatory ina  segment of IDOC. I guess this can be acheived by BD65.&lt;/P&gt;&lt;P&gt;However i need to do this for a specific output type. How can I do this. do I need to make coding changes for this issue. IF yes I also need to capture this error message and show against the IDOC number in the Errro message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ANy inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, BOB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2009 20:11:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error/m-p/6168955#M1371314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-28T20:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error/m-p/6168956#M1371315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2009 17:00:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error/m-p/6168956#M1371315</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-29T17:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error/m-p/6168957#M1371316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most IDoc function modules have a lot of user exits. Find one that is appropriate and write your logic in there. You cannot use the required field concept through a setting. You will have to do that in your own logic since it is conditionally required.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2009 17:44:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error/m-p/6168957#M1371316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-29T17:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error/m-p/6168958#M1371317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Srinivas for the suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the EXIT, EXIT_SAPLV56K_002 . In this EXIT I build my IDOC segments and know the place where i would do the check fro my condition. Pls suggest how to code for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BOB&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM CUSTOMER_FUNCTION_002
                USING VALUE(SEGNAM)      LIKE EDIDD-SEGNAM.

  CALL CUSTOMER-FUNCTION '002'
       EXPORTING
            CONTROL_RECORD_OUT = CONTROL_RECORD_OUT
            MESSAGE_TYPE       = CONTROL_RECORD_IN-MESTYP
            SEGMENT_NAME       = SEGNAM
            DATA               = DB_DATA
            TAB_IDOC_REDUCTION = TAB_IDOC_REDUCTION
       TABLES
            IDOC_DATA          = INT_EDIDD
       EXCEPTIONS
              ERROR_MESSAGE_RECEIVED        = 1
              DATA_NOT_RELEVANT_FOR_SENDING = 2.
  CASE SY-SUBRC.
    WHEN 1.
      MESSAGE ID      SY-MSGID
              TYPE    SY-MSGTY
              NUMBER  SY-MSGNO
              WITH    SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4
              RAISING ERROR_MESSAGE_RECEIVED.
    WHEN 2.
      MESSAGE ID      SY-MSGID
              TYPE    SY-MSGTY
              NUMBER  SY-MSGNO
              WITH    SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4
              RAISING DATA_NOT_RELEVANT_FOR_SENDING.
  ENDCASE.

ENDFORM.                               " CUSTOMER_FUNCTION_002
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Bob Dan on Sep 29, 2009 8:19 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2009 18:19:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error/m-p/6168958#M1371317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-29T18:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error/m-p/6168959#M1371318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am assuming you know the process of activating the user exits. As you probably know already, this user exit is called once for each segment of the IDoc(shipments?). So in order for you to know what the output type (or was it order type) is, you will need certain data from a certain segment and the field that you want to check for may be in another segment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you have to make sure that you do this check only once and you have all the data you need to do the check. Please see what data you are getting by putting a single IF statement in debugging. Then you can decide on the code yourself. Please also check the data in DATA parameter of the function module. I think it will have almost all the data you need to do your check.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2009 18:31:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error/m-p/6168959#M1371318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-29T18:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error/m-p/6168960#M1371319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take that functions name and go to CMOD. GO to utilities tab and click on find. There go to additional selection and put FM name where you will get the exitname. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now go to SMOD create project and give exit name you found from above process and activate the component for that user exit. you will get a Z* include and write your code there or you put breakpoint there ans check the interface what are the importing and exporting parameter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Nirad Pachchigar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2009 19:08:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error/m-p/6168960#M1371319</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-29T19:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error/m-p/6168961#M1371320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Srinivas for the Advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know the user EXIT and its activated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know the place to write the code and also am aware that this FM would trigger once fro each segment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;within the IF Statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for E.g &lt;/P&gt;&lt;P&gt;if type = 'ABC'.&lt;/P&gt;&lt;P&gt;here i need some help as how would i stop the further processing of the IDOC and terminate it. Also I need to have a custom error and show it in the IDOC. ( when I see the IDOC in WE02, i need to see this custom error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2009 17:29:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error/m-p/6168961#M1371320</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-30T17:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error/m-p/6168962#M1371321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All you need to do is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF type = "ABC'.
  MESSAGE Ennn(Zxxx) WITH text-001 text-002 text-003 text-004 RAISING ERROR_MESSAGE_RECEIVED.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where nnn is your message number, Zxxx is your message class and text-001----text-004 are the variable pieces of your message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure you raise it as E(rror) message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2009 18:37:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error/m-p/6168962#M1371321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-30T18:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error/m-p/6168963#M1371322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can even pick a generic one like E398(00) and pass your message in 4 variables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2009 18:40:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error/m-p/6168963#M1371322</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-30T18:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error/m-p/6168964#M1371323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Srinivas for the suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried this option but the problem is i dont see the IDOC when i see in WE02. I want to see the IDOC in WE02 with a error status and the custom message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any further suggestions.&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2009 15:04:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error/m-p/6168964#M1371323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-02T15:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error/m-p/6168965#M1371324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TO give more infrormation about the IDOC, Its an OUTBOUND IDOC. i dont want it to be sent across to the third party based on my condition. However i dont want to just miss his with an error. i want an IDOC Number with a fialed status in WE02, so i can correct the data and re process it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hoep this explains it all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2009 15:40:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error/m-p/6168965#M1371324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-02T15:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error/m-p/6168966#M1371325</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;In your case, your are making the system to Stop by providing the E message and hence there wont be any idoc cretaed with error status.&lt;/P&gt;&lt;P&gt;One thing you can do is try to change the status of Idoc (if possible) after generation of Idoc number from the customer exit avaialble if any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2009 16:00:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error/m-p/6168966#M1371325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-02T16:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error/m-p/6168967#M1371326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you see if you can use the exit EXIT_SAPLV56K_001 and set the status field on the control record to an error status?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2009 21:54:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error/m-p/6168967#M1371326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-02T21:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error/m-p/6168968#M1371327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Srinivas. I have already done this but not succesful. I had changes to Status 51 but it changed back to Status 3 when i see the IDOC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2009 21:12:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error/m-p/6168968#M1371327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-05T21:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: IDOC Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error/m-p/6168969#M1371328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me ask you this question; Why do you want to generate an IDoc with the an error status when you already know that IDoc would never be sent out? While asking this question I'm perhaps assuming that you are not thinking to modify the errored IDoc itself to correct the data before sending it. The best practice is to go back to the original document and correct the data there and reprocess the output. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess the answer to my question is - you need a mechanism to determine the documents with error/missing data. Correct? If answer to this is yes - this what I have impletemented at one of my clients.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write customer exit "EXIT_SAPLV56K_002 - Transmit Shipments to IDOC Type" to check the contents of specific segment and raise exception in the event data is not provided for mandatory field.&lt;/P&gt;&lt;P&gt;Once exception is triggered no IDoc will be generated and error gets updated in the NAST protocol. The output status for that output turns red.&lt;/P&gt;&lt;P&gt;Goto transaction VL71 (for Delivery related ouput) or VT70 (for Shipment related output) run the report selecting specific type and Processing mode "3 - Error Processing". This will provide you with a list of documents where error has occured. Then one can go to individual document and correct the error before reprocessing the output with the same transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gajendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2009 23:12:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/idoc-error/m-p/6168969#M1371328</guid>
      <dc:creator>former_member723628</dc:creator>
      <dc:date>2009-10-05T23:12:46Z</dc:date>
    </item>
  </channel>
</rss>

