<?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: Locking problem when calling FM in background OR destination NONE.... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-problem-when-calling-fm-in-background-or-destination-none/m-p/1662831#M293627</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you can try to call this function module with the extra exception error_message. Using this exception will only issue error messages to your user. Warning and information messages will be ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Arnold Mostert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Jan 2007 13:16:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-02T13:16:29Z</dc:date>
    <item>
      <title>Locking problem when calling FM in background OR destination NONE....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-problem-when-calling-fm-in-background-or-destination-none/m-p/1662824#M293620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've made a RF transaction to handle some movements from one Storage Unit to another one by creating a TO using standard FM L_TO_CREATE_SINGLE - so far, so good. &lt;/P&gt;&lt;P&gt;My problem is that this FM makes a lot of standard checks (which is fine!) and if any of them fails - it issues a message, although I certainly don't want any message to be issued in this RF screen other than the ones that can be displayed on another screen. &lt;/P&gt;&lt;P&gt;In order to avoid those annoying on-line messages I've tried to call the function in background, and even with DESTINATION 'NONE' - and here it is doing fine regarding the message handling (it is handled by the sy-subrc handler after the FM call) BUT now I'm having an even more annoying problem -&amp;gt; a lock is created (on tables LQUAX and VEKP) which I can't get rid of!!! (unless deleting manually the lock in SM12.......)&lt;/P&gt;&lt;P&gt;Anyone experienced this by performing L_TO_CREATE_SINGLE in background mode or DESTINATION 'NONE' ?&lt;/P&gt;&lt;P&gt;A check whether the TO is succesfully created or not is important, as after the TO creation I'm creating an Idoc (via L_SUB_INITIATION_FOR_PICK_HU) for that TO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Branko Jovanovic&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2006 14:12:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-problem-when-calling-fm-in-background-or-destination-none/m-p/1662824#M293620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-20T14:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Locking problem when calling FM in background OR destination NONE....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-problem-when-calling-fm-in-background-or-destination-none/m-p/1662825#M293621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what u do...after everything gets well use UNLOCK fm to unlock the tables...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using&lt;/P&gt;&lt;P&gt;BDL_UNLOCK_BDL2TRANS_TABLES&lt;/P&gt;&lt;P&gt;RTP_US_API_UNLOCK&lt;/P&gt;&lt;P&gt;TXW_TEMP_STORAGE_UNLOCK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Ramesh Babu Chirumamilla&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2006 14:16:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-problem-when-calling-fm-in-background-or-destination-none/m-p/1662825#M293621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-20T14:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Locking problem when calling FM in background OR destination NONE....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-problem-when-calling-fm-in-background-or-destination-none/m-p/1662826#M293622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ramesh, but strangely this lock occurs each time the FM is performed in background - as if the FM was locking itself in background mode. And this makes it of course impossible to use any unlock mechanism after the FM call as it's out of my reach. Moreover, I prefer to avoid to m'anually' unlock some standard FM's locks, but I'd rather use a way to have a better control of the background processing of this FM. ....or calling the FM in foreground but having full control of them ^*%&amp;amp;@# messages!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2006 14:22:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-problem-when-calling-fm-in-background-or-destination-none/m-p/1662826#M293622</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-20T14:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Locking problem when calling FM in background OR destination NONE....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-problem-when-calling-fm-in-background-or-destination-none/m-p/1662827#M293623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;L_TO_CREATE_SINGLE has a parameter, I_COMMIT_WORK. Set that parameter to 'X' and see if the problem persists.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2006 14:25:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-problem-when-calling-fm-in-background-or-destination-none/m-p/1662827#M293623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-20T14:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Locking problem when calling FM in background OR destination NONE....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-problem-when-calling-fm-in-background-or-destination-none/m-p/1662828#M293624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I've tried with I_COMMIT_WORK parameter when using BACKGROUND MODE, but then my TO isn't created at all! ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2006 14:28:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-problem-when-calling-fm-in-background-or-destination-none/m-p/1662828#M293624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-20T14:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Locking problem when calling FM in background OR destination NONE....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-problem-when-calling-fm-in-background-or-destination-none/m-p/1662829#M293625</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;When creating TO in backgroud you shoukd have the parameter I_update_task set and as for messages are concerned, capture them and display in standard RF message using FM 'CALL_MESSAGE_SCREEN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Suri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 19:38:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-problem-when-calling-fm-in-background-or-destination-none/m-p/1662829#M293625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-28T19:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Locking problem when calling FM in background OR destination NONE....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-problem-when-calling-fm-in-background-or-destination-none/m-p/1662830#M293626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We had locking issues during TO confirmation. Is the TO immediately confirmed during creation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make a call the function module. 'DEQUEUE_ALL'. This will release the locks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2006 22:25:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-problem-when-calling-fm-in-background-or-destination-none/m-p/1662830#M293626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-28T22:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Locking problem when calling FM in background OR destination NONE....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-problem-when-calling-fm-in-background-or-destination-none/m-p/1662831#M293627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you can try to call this function module with the extra exception error_message. Using this exception will only issue error messages to your user. Warning and information messages will be ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Arnold Mostert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2007 13:16:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-problem-when-calling-fm-in-background-or-destination-none/m-p/1662831#M293627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-02T13:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Locking problem when calling FM in background OR destination NONE....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-problem-when-calling-fm-in-background-or-destination-none/m-p/1662832#M293628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Indeed, this solved my problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'L_TO_CREATE_SINGLE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_lgnum               = whs_id&lt;/P&gt;&lt;P&gt;      i_bwlvs               = ltak-bwlvs&lt;/P&gt;&lt;P&gt;      i_matnr               = wa_lqua-matnr&lt;/P&gt;&lt;P&gt;      i_werks               = wa_lqua-werks&lt;/P&gt;&lt;P&gt;      i_lgort               = wa_lqua-lgort&lt;/P&gt;&lt;P&gt;      i_charg               = wa_lqua-charg&lt;/P&gt;&lt;P&gt;      i_anfme               = rl03t-anfme&lt;/P&gt;&lt;P&gt;      i_altme               = ltap-altme&lt;/P&gt;&lt;P&gt;      i_vltyp               = ltap-vltyp&lt;/P&gt;&lt;P&gt;      i_vlpla               = l_vlpla&lt;/P&gt;&lt;P&gt;      i_vlenr               = ltap-vlenr&lt;/P&gt;&lt;P&gt;      i_nltyp               = ltap-nltyp&lt;/P&gt;&lt;P&gt;      i_nlpla               = l_nlpla&lt;/P&gt;&lt;P&gt;      i_nlenr               = ltap-nlenr&lt;/P&gt;&lt;P&gt;      i_update_task         = c_true&lt;/P&gt;&lt;P&gt;      i_commit_work         = c_true&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      e_tanum               = g_tanum&lt;/P&gt;&lt;P&gt;      e_ltap                = itab_ltap&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      t_ltak                = itab_ltak_vb&lt;/P&gt;&lt;P&gt;      t_ltap_vb             = itab_ltap_vb&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;      error_message         = 01       "Shows errors if this is commented&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;      no_to_created         = 1&lt;/P&gt;&lt;P&gt;      bwlvs_wrong           = 2&lt;/P&gt;&lt;P&gt;      betyp_wrong           = 3&lt;/P&gt;&lt;P&gt;      benum_missing         = 4&lt;/P&gt;&lt;P&gt;      betyp_missing         = 5&lt;/P&gt;&lt;P&gt;      foreign_lock          = 6&lt;/P&gt;&lt;P&gt;      vltyp_wrong           = 7&lt;/P&gt;&lt;P&gt;      vlpla_wrong           = 8&lt;/P&gt;&lt;P&gt;      vltyp_missing         = 9&lt;/P&gt;&lt;P&gt;      nltyp_wrong           = 10&lt;/P&gt;&lt;P&gt;      nlpla_wrong           = 11&lt;/P&gt;&lt;P&gt;      nltyp_missing         = 12&lt;/P&gt;&lt;P&gt;      rltyp_wrong           = 13&lt;/P&gt;&lt;P&gt;      rlpla_wrong           = 14&lt;/P&gt;&lt;P&gt;      rltyp_missing         = 15&lt;/P&gt;&lt;P&gt;      squit_forbidden       = 16&lt;/P&gt;&lt;P&gt;      manual_to_forbidden   = 17&lt;/P&gt;&lt;P&gt;      letyp_wrong           = 18&lt;/P&gt;&lt;P&gt;      vlpla_missing         = 19&lt;/P&gt;&lt;P&gt;      nlpla_missing         = 20&lt;/P&gt;&lt;P&gt;      sobkz_wrong           = 21&lt;/P&gt;&lt;P&gt;      sobkz_missing         = 22&lt;/P&gt;&lt;P&gt;      sonum_missing         = 23&lt;/P&gt;&lt;P&gt;      bestq_wrong           = 24&lt;/P&gt;&lt;P&gt;      lgber_wrong           = 25&lt;/P&gt;&lt;P&gt;      xfeld_wrong           = 26&lt;/P&gt;&lt;P&gt;      date_wrong            = 27&lt;/P&gt;&lt;P&gt;      drukz_wrong           = 28&lt;/P&gt;&lt;P&gt;      ldest_wrong           = 29&lt;/P&gt;&lt;P&gt;      update_without_commit = 30&lt;/P&gt;&lt;P&gt;      no_authority          = 31&lt;/P&gt;&lt;P&gt;      material_not_found    = 32&lt;/P&gt;&lt;P&gt;      lenum_wrong           = 33&lt;/P&gt;&lt;P&gt;      OTHERS                = 34.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MOVE sy-subrc TO g_rc.&lt;/P&gt;&lt;P&gt;    message_id     = sy-msgid.&lt;/P&gt;&lt;P&gt;    message_number = sy-msgno.&lt;/P&gt;&lt;P&gt;    message_var1   = sy-msgv1.&lt;/P&gt;&lt;P&gt;    message_var2   = sy-msgv2.&lt;/P&gt;&lt;P&gt;    message_var3   = sy-msgv3.&lt;/P&gt;&lt;P&gt;    message_var4   = sy-msgv4.&lt;/P&gt;&lt;P&gt;    PERFORM error_message.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I'll reward Arnold eventhough I got the answer earlier .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2007 13:53:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-problem-when-calling-fm-in-background-or-destination-none/m-p/1662832#M293628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-02T13:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Locking problem when calling FM in background OR destination NONE....</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/locking-problem-when-calling-fm-in-background-or-destination-none/m-p/1662833#M293629</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 having a problem with the FM L_TO_CREATE_SINGLE. After passing all parameters TO is creating, but when you check the Transfer Order, it wat not reflecting Material document number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell me what are all the values you are passing to TABLES parameters T_LTAK and T_LTAP_VB.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If possible can you pls send me the block of code. my personnel ID is kishorereddy_mca@yahoo.co.in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&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;Nanda.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2007 13:14:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/locking-problem-when-calling-fm-in-background-or-destination-none/m-p/1662833#M293629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-16T13:14:46Z</dc:date>
    </item>
  </channel>
</rss>

