<?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: create TOs in background in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-tos-in-background/m-p/5403923#M1241152</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ROB/ ARS, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are numerous error messages in this FM,   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is really strange to have error messages directly in the function module, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does any one have any idea how to over come these..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PERFORM RUECKPLATZ_SPERREN USING RETURNCODE.
  IF RETURNCODE = R_PLATZ_GESPERRT.
    PERFORM PROT_MESSAGE USING '145' LTAP-RLPLA BL BL BL.
    MESSAGE E145 WITH LTAP-RLPLA.
  ENDIF.

*........Rückquant prüfen...............................................

  PERFORM RUECKQUANT_PRUEFEN USING RETURNCODE.
  CASE RETURNCODE.
    WHEN R_OK.
    WHEN R_QUANT_NICHT_ANGEG.
    WHEN R_QUANT_NICHT_VORHA.
    WHEN R_SPERRE_EINLAG.
         PERFORM PROT_MESSAGE USING '014' BL BL BL BL.
         MESSAGE E014.
    WHEN R_ZULAG_VERBOTEN.
         PERFORM PROT_MESSAGE USING '035' LTAP-MATNR LTAP-RLTYP BL BL.
         MESSAGE E035 WITH LTAP-MATNR LTAP-RLTYP.
    WHEN R_MISCH_VERBOTEN.
         PERFORM PROT_MESSAGE USING '036' LTAP-RLTYP BL BL BL.
         MESSAGE E036 WITH LTAP-RLTYP.
  ENDCASE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Apr 2009 15:35:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-01T15:35:36Z</dc:date>
    <item>
      <title>create TOs in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-tos-in-background/m-p/5403910#M1241139</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 am using l_to_create_single in a program which is run in background mode. I am using this FM in a loop to create TO's. But if at all, any line of the loop has a problem creating a TO, then I am unable to go to the next line in the loop. The function module returns an error in itself, i.e., if there is any error with the material or bin, then it fails inside the function module itself. Does any one have any idea to override this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Mar 2009 01:08:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-tos-in-background/m-p/5403910#M1241139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-21T01:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: create TOs in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-tos-in-background/m-p/5403911#M1241140</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;may be you can do some check before calling the FM to avoid it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Mar 2009 02:11:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-tos-in-background/m-p/5403911#M1241140</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-21T02:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: create TOs in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-tos-in-background/m-p/5403912#M1241141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any one had the similar requirement/situation. any ideas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2009 19:35:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-tos-in-background/m-p/5403912#M1241141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-23T19:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: create TOs in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-tos-in-background/m-p/5403913#M1241142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is the fm throwing an error message then probably u can chage the type of error message or supress it, i'll can let u know how to do it, once i'll reach my sap system tommorow&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2009 19:41:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-tos-in-background/m-p/5403913#M1241142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-23T19:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: create TOs in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-tos-in-background/m-p/5403914#M1241143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks -can wait till tomorrow.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2009 20:04:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-tos-in-background/m-p/5403914#M1241143</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-23T20:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: create TOs in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-tos-in-background/m-p/5403915#M1241144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you check the code inside the fm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  if i_kompl = con_x and i_anfme &amp;gt; ltap-vsola.
    message e332 raising no_to_created.
  endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this will be caused by data . (strange!!!! error message inside fm)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2009 20:20:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-tos-in-background/m-p/5403915#M1241144</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-03-23T20:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: create TOs in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-tos-in-background/m-p/5403916#M1241145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE level="1"&gt;&lt;/BLOCKQUOTE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(strange!!!! error message inside fm)&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Not really - the raising just sets the return code and if the calling program checks for the exception, I don't think the error is produced.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2009 20:23:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-tos-in-background/m-p/5403916#M1241145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-23T20:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: create TOs in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-tos-in-background/m-p/5403917#M1241146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wrong. sorry about this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is documentaiton&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If the MESSAGE-statement is processed with the addition RAISING during processing of a method or a&lt;/EM&gt; &lt;EM&gt;function module whose caller assigns a return value to the  exception exception with the addition&lt;/EM&gt; &lt;EM&gt;EXCEPTIONS of the statement CALL, it has the same effect as the statement RAISE. If no return value is&lt;/EM&gt; &lt;EM&gt;assigned to the exception exception, then the addition RAISING is ignored and the message is processed&lt;/EM&gt; &lt;EM&gt;according to its message type&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2009 20:32:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-tos-in-background/m-p/5403917#M1241146</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-03-23T20:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: create TOs in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-tos-in-background/m-p/5403918#M1241147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been tripped up on that myself a number of times. But if you put a break-point at the keyword 'message' and then run a standard SAP transaction, you might be surprised to see how often this is done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2009 20:52:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-tos-in-background/m-p/5403918#M1241147</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-23T20:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: create TOs in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-tos-in-background/m-p/5403919#M1241148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So is it that I am looking it wrong or is there any work around for my above requirement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2009 21:01:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-tos-in-background/m-p/5403919#M1241148</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-23T21:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: create TOs in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-tos-in-background/m-p/5403920#M1241149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hard to say - you haven't given enough information for a good response. You haven't said which FM you are using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bear in mind that using unreleased, undocumented FMs can lead to problems. I'd look for a BAPI or failing that use BDC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or take the first suggestion and capture the error before calling the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry - I just saw that you did mention the FM, so if you catch the exception, it should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Mar 23, 2009 5:09 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2009 21:09:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-tos-in-background/m-p/5403920#M1241149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-23T21:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: create TOs in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-tos-in-background/m-p/5403921#M1241150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - if you think that this is not coming from  FM, then you can try to uncomment the exception after calling the FM, and try to handle the error accordingly, if you get any sy-subrc other than 0, then probably u can give an "continue" to go to next line of loop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kuntal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2009 21:29:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-tos-in-background/m-p/5403921#M1241150</guid>
      <dc:creator>former_member376453</dc:creator>
      <dc:date>2009-03-23T21:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: create TOs in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-tos-in-background/m-p/5403922#M1241151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this FM  &lt;STRONG&gt;CM_F_MESSAGE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;it has BADI &lt;STRONG&gt;buiaddin_contr_msg-&amp;gt;modify_controllable_message&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Use this to change the standard message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="16" __jive_macro_name="size"&gt;кu03B1ятu03B9к&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 08:35:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-tos-in-background/m-p/5403922#M1241151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T08:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: create TOs in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-tos-in-background/m-p/5403923#M1241152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ROB/ ARS, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are numerous error messages in this FM,   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is really strange to have error messages directly in the function module, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does any one have any idea how to over come these..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PERFORM RUECKPLATZ_SPERREN USING RETURNCODE.
  IF RETURNCODE = R_PLATZ_GESPERRT.
    PERFORM PROT_MESSAGE USING '145' LTAP-RLPLA BL BL BL.
    MESSAGE E145 WITH LTAP-RLPLA.
  ENDIF.

*........Rückquant prüfen...............................................

  PERFORM RUECKQUANT_PRUEFEN USING RETURNCODE.
  CASE RETURNCODE.
    WHEN R_OK.
    WHEN R_QUANT_NICHT_ANGEG.
    WHEN R_QUANT_NICHT_VORHA.
    WHEN R_SPERRE_EINLAG.
         PERFORM PROT_MESSAGE USING '014' BL BL BL BL.
         MESSAGE E014.
    WHEN R_ZULAG_VERBOTEN.
         PERFORM PROT_MESSAGE USING '035' LTAP-MATNR LTAP-RLTYP BL BL.
         MESSAGE E035 WITH LTAP-MATNR LTAP-RLTYP.
    WHEN R_MISCH_VERBOTEN.
         PERFORM PROT_MESSAGE USING '036' LTAP-RLTYP BL BL BL.
         MESSAGE E036 WITH LTAP-RLTYP.
  ENDCASE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2009 15:35:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-tos-in-background/m-p/5403923#M1241152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-01T15:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: create TOs in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-tos-in-background/m-p/5403924#M1241153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry if i am pushing this again. I am still having this issue, can anyone suggest something here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2009 13:30:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-tos-in-background/m-p/5403924#M1241153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-14T13:30:39Z</dc:date>
    </item>
  </channel>
</rss>

