<?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 Regarding : Lock Object ,Sapscript &amp; BDC in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-lock-object-sapscript-bdc/m-p/1347408#M174789</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai this is Umesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Query : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         1.Can any one tell me how the lock objects&lt;/P&gt;&lt;P&gt;           exclusive not cumulative works ?&lt;/P&gt;&lt;P&gt;         2.I am Unable to display amount in words in&lt;/P&gt;&lt;P&gt;           sapscript?&lt;/P&gt;&lt;P&gt;         3.Source code for Error Handling in Call transaction?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 May 2006 10:59:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-15T10:59:06Z</dc:date>
    <item>
      <title>Regarding : Lock Object ,Sapscript &amp; BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-lock-object-sapscript-bdc/m-p/1347408#M174789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai this is Umesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Query : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         1.Can any one tell me how the lock objects&lt;/P&gt;&lt;P&gt;           exclusive not cumulative works ?&lt;/P&gt;&lt;P&gt;         2.I am Unable to display amount in words in&lt;/P&gt;&lt;P&gt;           sapscript?&lt;/P&gt;&lt;P&gt;         3.Source code for Error Handling in Call transaction?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2006 10:59:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-lock-object-sapscript-bdc/m-p/1347408#M174789</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-15T10:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding : Lock Object ,Sapscript &amp; BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-lock-object-sapscript-bdc/m-p/1347409#M174790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;follow these links&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for lock objects&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sap.com/www.sap-img.com/abap/" target="test_blank"&gt;www.sap-img.com/abap/&lt;/A&gt; type-and-uses-of-lock-objects-in-sap.htm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for Call transaction&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.sap.com/www.sap-img.com/abap/question-about-bdc-program.htm" target="test_blank"&gt;www.sap-img.com/abap/question-about-bdc-program.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2006 11:06:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-lock-object-sapscript-bdc/m-p/1347409#M174790</guid>
      <dc:creator>sbhutani1</dc:creator>
      <dc:date>2006-05-15T11:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding : Lock Object ,Sapscript &amp; BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-lock-object-sapscript-bdc/m-p/1347410#M174791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;2) Use the function module : SPELL_AMOUNT to write the amount in words.&lt;/P&gt;&lt;P&gt;3) Immediately after call transaction,&lt;/P&gt;&lt;P&gt; check for sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;and call the fm 'FORMAT_MESSAGE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: i_return type standard table of bdcmsgcoll.&lt;/P&gt;&lt;P&gt;call transaction.....messages into i_return.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;   loop at i_return.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'FORMAT_MESSAGE'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          ID              = i_return-id&lt;/P&gt;&lt;P&gt;          LANG            = sy-langu&lt;/P&gt;&lt;P&gt;          NO              = i_return-number&lt;/P&gt;&lt;P&gt;          V1              = i_return-MESSAGE_V1&lt;/P&gt;&lt;P&gt;          V2              = i_return-MESSAGE_V2&lt;/P&gt;&lt;P&gt;          V3              = i_return-MESSAGE_V3&lt;/P&gt;&lt;P&gt;          V4              = i_return-MESSAGE_V4&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          MSG             = l_message&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          NOT_FOUND       = 1&lt;/P&gt;&lt;P&gt;          OTHERS          = 2&lt;/P&gt;&lt;P&gt;                .&lt;/P&gt;&lt;P&gt;      check sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      write: / l_message.&lt;/P&gt;&lt;P&gt;   endloop.&lt;/P&gt;&lt;P&gt;endif.&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, 15 May 2006 11:08:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-lock-object-sapscript-bdc/m-p/1347410#M174791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-15T11:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding : Lock Object ,Sapscript &amp; BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-lock-object-sapscript-bdc/m-p/1347411#M174792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;GOOD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1- CAN YOU GIVE SOME CLEAR IDEA ABOUT YOUR FIRST REQUIREMENT.&lt;/P&gt;&lt;P&gt;2-CAN YOU GIVE THE DETAILS LIKE HOW YOU R DISPLAYING THE AMOUNT VALUE.&lt;/P&gt;&lt;P&gt;3-&lt;/P&gt;&lt;P&gt;DATA : bdcdata LIKE bdcdata    OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA : messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : ws_mode type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ws_mode = 'N'.&lt;/P&gt;&lt;P&gt;call transaction 'F-32' using bdcdata mode ws_mode&lt;/P&gt;&lt;P&gt;                          messages into messtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*perform close_group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  bdc_dynpro&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_0015   text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_0016   text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM bdc_dynpro  USING  program&lt;/P&gt;&lt;P&gt;                        dynpro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR bdcdata.&lt;/P&gt;&lt;P&gt;  bdcdata-program  = program.&lt;/P&gt;&lt;P&gt;  bdcdata-dynpro   = dynpro.&lt;/P&gt;&lt;P&gt;  bdcdata-dynbegin = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND bdcdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " bdc_dynpro&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  bdc_field&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_0075   text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_0076   text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM bdc_field  USING fnam&lt;/P&gt;&lt;P&gt;                      fval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA : nodata VALUE '\'.&lt;/P&gt;&lt;P&gt;  IF fval &amp;lt;&amp;gt; nodata.&lt;/P&gt;&lt;P&gt;    CLEAR bdcdata.&lt;/P&gt;&lt;P&gt;    bdcdata-fnam = fnam.&lt;/P&gt;&lt;P&gt;    bdcdata-fval = fval.&lt;/P&gt;&lt;P&gt;    APPEND bdcdata.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;P&gt;MRUTYUN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2006 11:27:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-lock-object-sapscript-bdc/m-p/1347411#M174792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-15T11:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding : Lock Object ,Sapscript &amp; BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-lock-object-sapscript-bdc/m-p/1347412#M174793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii&lt;/P&gt;&lt;P&gt;1)Lock Objects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a system where many users can access the same data, it becomes necessary to control the access to the data. In R/3 system this access control is built-in on database tables. Developers can also lock objects over table records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To lock an object you need to call standard functions, which are automatically generated while defining the lock object in ABAP/4 dictionary. This locking system is independent of the locking mechanism used by the R/3 system. This mechanism also defines LUW i.e. Logical Unit of Work. Whenever an object is locked, either by in built locking mechanism or by function modules, it creates corresponding entry in global system table i.e. table is locked. The system automatically releases the lock at the end of transaction. The LUW starts when a lock entry is created in the system table and ends when the lock is released.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating Lock Objects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lock object is an aggregated dictionary object and can be defined by using the following steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;o	From initial data dictionary screen, enter the name for the object, Click Lock object radiobutton and then click on Create. The system displays a dialog box for Maintain Lock Objects screen&lt;/P&gt;&lt;P&gt;o	Enter short text as usual and the name for primary table.&lt;/P&gt;&lt;P&gt;-Save&lt;/P&gt;&lt;P&gt;-Select Tables option&lt;/P&gt;&lt;P&gt;From this screen you can:&lt;/P&gt;&lt;P&gt;Select secondary tables, if any, linked by foreign key relationship.&lt;/P&gt;&lt;P&gt;Fields for the lock objects. This option allows you to select fields for objects (R/3  system allows locking up to record level). Lock object argument are not selected by user but are imposed by the system and includes all the primary keys for the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) for error log&lt;/P&gt;&lt;P&gt;use function module 'FORMAT_MESSAGE' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regards&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2006 11:31:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-lock-object-sapscript-bdc/m-p/1347412#M174793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-15T11:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding : Lock Object ,Sapscript &amp; BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-lock-object-sapscript-bdc/m-p/1347413#M174794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi umesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the documentation for lock modes from SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Access by more than one user can be synchronized in the following ways:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Exclusive lock: The locked data can only be displayed or edited by a single user. A request for another exclusive lock or for a shared lock is rejected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Shared lock: More than one user can access the locked data at the same time in display mode. A request for another shared lock is accepted, even if it comes from another user. An exclusive lock is rejected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Exclusive but not cumulative: Exclusive locks can be requested several times from the same transaction and are processed successively. In contrast, exclusive but not cumulative locks can be called only once from the same transaction. All other lock requests are rejected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, last but not the least, locking the object is &amp;lt;b&amp;gt;logical&amp;lt;/b&amp;gt; (locking with any enqueue ) .so, you have to use the lock object while trying to access from second program .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will give you some insight into locking concept.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vicky&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Award points if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2006 15:42:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-lock-object-sapscript-bdc/m-p/1347413#M174794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-15T15:42:27Z</dc:date>
    </item>
  </channel>
</rss>

