<?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: Calling a function from a DLL, exectution in background mode. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-function-from-a-dll-exectution-in-background-mode/m-p/1700240#M307040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gabriel, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know where is the folder(path), that a need to put physcally the file in the server? There is some procedure to make it work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Nov 2006 17:48:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-21T17:48:06Z</dc:date>
    <item>
      <title>Calling a function from a DLL, exectution in background mode.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-function-from-a-dll-exectution-in-background-mode/m-p/1700237#M307037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have created an ABAP report the calls a function from a DLL file. If the report is executed in on-line mode the program calls and executes the function from the DLL, but if the ABAP programa is executed in background mode it doesnt calls the DLL function. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know a way to solve the problem when executing in background mode?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards. &lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 12:57:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-function-from-a-dll-exectution-in-background-mode/m-p/1700237#M307037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-21T12:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a function from a DLL, exectution in background mode.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-function-from-a-dll-exectution-in-background-mode/m-p/1700238#M307038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is happening is that the file should be in the server, not in the computer, rememeber that background jobs can donwload, upload or execute files that in the server, not in you computer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should put your dll file there, not in your computer.&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;Dont forget to reward!!&lt;/P&gt;&lt;P&gt;Gabriel P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 13:01:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-function-from-a-dll-exectution-in-background-mode/m-p/1700238#M307038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-21T13:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a function from a DLL, exectution in background mode.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-function-from-a-dll-exectution-in-background-mode/m-p/1700239#M307039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gabriel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The DLL file is located in the server, even so it doesnt work. Could it be another kind of problem? In theory it should be working pretty well, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 13:44:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-function-from-a-dll-exectution-in-background-mode/m-p/1700239#M307039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-21T13:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a function from a DLL, exectution in background mode.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-function-from-a-dll-exectution-in-background-mode/m-p/1700240#M307040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gabriel, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know where is the folder(path), that a need to put physcally the file in the server? There is some procedure to make it work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2006 17:48:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-function-from-a-dll-exectution-in-background-mode/m-p/1700240#M307040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-21T17:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a function from a DLL, exectution in background mode.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-function-from-a-dll-exectution-in-background-mode/m-p/1700241#M307041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Antonio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the delay, what does your dll function return?, check if that dll works properly on the server..., also you can check the permisions on the folder and tha file access, it coulb be restricted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dont forget to reward if this was helpfull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gabriel P,.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2006 12:36:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-function-from-a-dll-exectution-in-background-mode/m-p/1700241#M307041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-22T12:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a function from a DLL, exectution in background mode.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-function-from-a-dll-exectution-in-background-mode/m-p/1700242#M307042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gabriel, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My DLL function is a phonetic function, it generates a phonetic string and return the string to the abap program. If I execute the abap programa in on-line mode in the server it works good, but in background mode it doesnt works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2006 15:25:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-function-from-a-dll-exectution-in-background-mode/m-p/1700242#M307042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-22T15:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a function from a DLL, exectution in background mode.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-function-from-a-dll-exectution-in-background-mode/m-p/1700243#M307043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Antonio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the delay again, i guess we r in different times...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phonetic function? Is this for speech recognition??, tell me more about what you are doing...why do you want it on background, how do you call the function, which are the parameters, wich is your program flow...do you get any interaction during execution?...try to avoid all dialogs during execution....etc....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gabriel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 05:55:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-function-from-a-dll-exectution-in-background-mode/m-p/1700243#M307043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-23T05:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calling a function from a DLL, exectution in background mode.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-function-from-a-dll-exectution-in-background-mode/m-p/1700244#M307044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gabriel, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me explain in details about my DLL function. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are importing the business partners from legacy system into the SAP CRM system, so at the moment we created the BP master data via BAPI, I get the name of the BP and this moment I call the function in the DLL file. I export the parameter name and I receive back a simplified string with the name reduced to a code. This code I get back from the dll it is insert in a Z table, so there is no interaction in the screen, all must be executed in background mode, because there are a lot of business partners to be converted in SAP system. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sending my code for your considerations. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Instancia a DLL&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CREATE OBJECT dll 'MTCODE.CPFONET'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    RAISE without_dll.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Move para a tabela interna IT_NAME os valores recebidos na TI_NAME&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  it_name[] = ti_name[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Para cada registro importado&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  LOOP AT it_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLEAR v_string_ret.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    wa_matchcode-zregid     = it_name-zregid.&lt;/P&gt;&lt;P&gt;    wa_matchcode-name1_text = it_name-name1_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    v_string = it_name-name1_text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CONDENSE  v_string.&lt;/P&gt;&lt;P&gt;    TRANSLATE v_string TO UPPER CASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD  OF dll 'SetNome' EXPORTING #1 = v_string.&lt;/P&gt;&lt;P&gt;    CALL METHOD  OF dll 'ExecMatch'.&lt;/P&gt;&lt;P&gt;    CALL METHOD  OF DLL 'GetMCData' = v_string_ret.&lt;/P&gt;&lt;P&gt;    FREE OBJECT dll.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Preenche os campos do match-code de acordo com o retorno da DLL&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    SPLIT v_string_ret&lt;/P&gt;&lt;P&gt;    AT '|'&lt;/P&gt;&lt;P&gt;    INTO wa_matchcode-zparmcln&lt;/P&gt;&lt;P&gt;         wa_matchcode-zparmcfn&lt;/P&gt;&lt;P&gt;         v_empty&lt;/P&gt;&lt;P&gt;         wa_matchcode-name_first&lt;/P&gt;&lt;P&gt;         wa_matchcode-name_last&lt;/P&gt;&lt;P&gt;         wa_matchcode-namemiddle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Adiciona o registro com o match-code correspondente na TE_MATCHCODE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    APPEND wa_matchcode TO te_matchcode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2006 15:13:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-a-function-from-a-dll-exectution-in-background-mode/m-p/1700244#M307044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-23T15:13:28Z</dc:date>
    </item>
  </channel>
</rss>

