<?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: Call BAPI_USER_CHANGE from RFC in a visual basic application in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-bapi-user-change-from-rfc-in-a-visual-basic-application/m-p/6529417#M1426342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  J@Y,&lt;/P&gt;&lt;P&gt;thanks!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jan 2010 18:20:52 GMT</pubDate>
    <dc:creator>former_member577095</dc:creator>
    <dc:date>2010-01-19T18:20:52Z</dc:date>
    <item>
      <title>Call BAPI_USER_CHANGE from RFC in a visual basic application</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-bapi-user-change-from-rfc-in-a-visual-basic-application/m-p/6529414#M1426339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;we are developing a tool in order to update users info (SU01).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The BAPI involved is BAPI_USER_CHANGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a table which contains a set of actions. Each action change one field at time. So, if I nedd to change the first name and last name, I call the BAPI two times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More or less it works but, some time, it seems that a buffer (some where) is not cleared and one user is filled with the data of the previous user in the table of actions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To specify the USER ID we use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            &lt;STRONG&gt;Set paramUserName = rfcFunction.Exports("USERNAME")&lt;/STRONG&gt;            &lt;/P&gt;&lt;P&gt;            &lt;STRONG&gt;paramUserName.VALUE = USER_ID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To specify one filed value we use the structures (ADDRESS, LOGONDATA, DEFAULTS, ecc):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         &lt;STRONG&gt;Set paramFieldName = rfcFunction.Exports("ADDRESS")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;         &lt;STRONG&gt;paramFieldName("FIRSTNAME") = "Wallace"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course we set the corresponding X in the fileld name involved of the structure ADDRESSX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have used other BAPI (eg. PRGN_RFC_DEL_AGRS_IN_COLL_AGR) which invold tables.&lt;/P&gt;&lt;P&gt;In such case we use the freetable statement to clear the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the a correspoind statement to clear a structure (like ADDRESS in BAPI_USER_CHANGE) ?&lt;/P&gt;&lt;P&gt;Where I can find a detailed documentation of SAP DLL used to make RFC calls ?&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;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 17:44:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-bapi-user-change-from-rfc-in-a-visual-basic-application/m-p/6529414#M1426339</guid>
      <dc:creator>former_member577095</dc:creator>
      <dc:date>2010-01-19T17:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: Call BAPI_USER_CHANGE from RFC in a visual basic application</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-bapi-user-change-from-rfc-in-a-visual-basic-application/m-p/6529415#M1426340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have seen in other post that calling &lt;STRONG&gt;BAPI_TRANSACTION_COMMIT&lt;/STRONG&gt; could be necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When is mandatory call BAPI_TRANSACTION_COMMIT ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 18:04:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-bapi-user-change-from-rfc-in-a-visual-basic-application/m-p/6529415#M1426340</guid>
      <dc:creator>former_member577095</dc:creator>
      <dc:date>2010-01-19T18:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Call BAPI_USER_CHANGE from RFC in a visual basic application</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-bapi-user-change-from-rfc-in-a-visual-basic-application/m-p/6529416#M1426341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BAPI_TRANSACTION_COMMIT is neccesary... the Logical Unit of Work of changing the user details need to be committed in SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when is it mandatory:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when the change what you wanted to make is successfull, than BAPI_TRANSACTION_COMMIT need to be called to commit the work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 18:09:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-bapi-user-change-from-rfc-in-a-visual-basic-application/m-p/6529416#M1426341</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2010-01-19T18:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Call BAPI_USER_CHANGE from RFC in a visual basic application</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-bapi-user-change-from-rfc-in-a-visual-basic-application/m-p/6529417#M1426342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  J@Y,&lt;/P&gt;&lt;P&gt;thanks!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 18:20:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-bapi-user-change-from-rfc-in-a-visual-basic-application/m-p/6529417#M1426342</guid>
      <dc:creator>former_member577095</dc:creator>
      <dc:date>2010-01-19T18:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Call BAPI_USER_CHANGE from RFC in a visual basic application</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-bapi-user-change-from-rfc-in-a-visual-basic-application/m-p/6529418#M1426343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do I need to call BAPI_TRANSACTION_COMMIT for each call of BAPI_USER_CHANGE of only once at the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other words:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case 1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;while not .eof actions&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;BAPI_USER_CHANGE&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;BAPI_TRANSACTION_COMMIT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wend&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;while not .eof actions&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;BAPI_USER_CHANGE&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wend&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BAPI_TRANSACTION_COMMIT&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 18:38:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-bapi-user-change-from-rfc-in-a-visual-basic-application/m-p/6529418#M1426343</guid>
      <dc:creator>former_member577095</dc:creator>
      <dc:date>2010-01-19T18:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Call BAPI_USER_CHANGE from RFC in a visual basic application</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-bapi-user-change-from-rfc-in-a-visual-basic-application/m-p/6529419#M1426344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be your call, but the Logical Unit of work need to be committed before coming out of the Unit..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 19:03:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-bapi-user-change-from-rfc-in-a-visual-basic-application/m-p/6529419#M1426344</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2010-01-19T19:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Call BAPI_USER_CHANGE from RFC in a visual basic application</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-bapi-user-change-from-rfc-in-a-visual-basic-application/m-p/6529420#M1426345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have added the BAPI_TRANSACTIONS_COMMIT but the results is not changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My loop have 11670 actions (12 filelds to update for 1000 users).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems tha the some fields values are not refreshed and the value is the same as the previous users.&lt;/P&gt;&lt;P&gt;The e-mail field is changed for alla users but always with the value of the first user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My opinion is that is necessary to clear the input parameters of the structure ADDRESS and ADDRESSX before fill it again and call tha BAPI again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried to use the freetable statement but it is not accepted by VBA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2010 20:24:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-bapi-user-change-from-rfc-in-a-visual-basic-application/m-p/6529420#M1426345</guid>
      <dc:creator>former_member577095</dc:creator>
      <dc:date>2010-01-19T20:24:35Z</dc:date>
    </item>
  </channel>
</rss>

