<?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: Function Module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1103989#M104225</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any update friends?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Nov 2005 12:23:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-29T12:23:20Z</dc:date>
    <item>
      <title>Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1103984#M104220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Friends,&lt;/P&gt;&lt;P&gt;   Please help me in resolving the below issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to create a new profile by copying the existing profile in SPRO Transaction. To acheive the same I performed a recording and then I created a function module based on the recording.&lt;/P&gt;&lt;P&gt;   When I execute the function module I am facing the below issues&lt;/P&gt;&lt;P&gt;   1) The profile is not copied - meaning I am unable to see new profile in SPRO&lt;/P&gt;&lt;P&gt;   2) The sy-subrc has a value called 1.000, what does this value mean.&lt;/P&gt;&lt;P&gt;   3) Once after the execution of the function module I get the message tab filled, how to analyse the messages in the message tab&lt;/P&gt;&lt;P&gt;   4) In my recording I could see a BDC_OKCODE with a value =%_GC 126 35. What does this mean?&lt;/P&gt;&lt;P&gt;   5) I wanted to know the set of BDC_OKCODE values-Where can I get it from.&lt;/P&gt;&lt;P&gt;Thanks in Advance for your replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Usha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2005 10:07:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1103984#M104220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-29T10:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1103985#M104221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Usha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;2) The sy-subrc has a value called 1.000, what does this value mean.&lt;/P&gt;&lt;P&gt;This means the call transaction failed in your FM.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;3) Once after the execution of the function module I get the message tab filled, how to analyse the messages in the message tab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass these mssages variables to the FM FORMAT_MESSAGE to see what those messages actually mean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;4) In my recording I could see a BDC_OKCODE with a value =%_GC 126 35. What does this mean?&lt;/P&gt;&lt;P&gt;OKcodes are the functin codes that are attached to user actions(Like pressing buttons etc.)&lt;/P&gt;&lt;P&gt;One button-one ok_code.&lt;/P&gt;&lt;P&gt;You can see all the OK_Codes in a screen(For which you have done the recording) by going to the transaction se51 and see the element list.&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>Tue, 29 Nov 2005 10:19:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1103985#M104221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-29T10:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1103986#M104222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Usha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you paste the recording and your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, run the transaction thru 'A' mode- All screens mode, you might findout why its failing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2005 10:36:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1103986#M104222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-29T10:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1103987#M104223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;   Your answer was very much helpful.&lt;/P&gt;&lt;P&gt;When I formatted the message I get the information below&lt;/P&gt;&lt;P&gt;"No batch input data for screen SAPLSHI01 0200".&lt;/P&gt;&lt;P&gt;I just like to jot down the steps of my recording.&lt;/P&gt;&lt;P&gt;1. I went to the transaction SPRO.&lt;/P&gt;&lt;P&gt;2. Then I choose the tree node CRM&lt;/P&gt;&lt;P&gt;3. Then I choose IC Web Clients and so on&lt;/P&gt;&lt;P&gt;When I tried executing the session in foreground, the sequences are as follows&lt;/P&gt;&lt;P&gt;1. It reaches the transaction SPRO but it does not choose the tree node CRM. &lt;/P&gt;&lt;P&gt;can you help me resolve the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2005 10:39:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1103987#M104223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-29T10:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1103988#M104224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Below is my code&lt;/P&gt;&lt;P&gt;subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_nodata      using NODATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform open_group      using GROUP USER KEEP HOLDDATE CTU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLS_IMG_TOOL_5' '0100'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'D0100_FAVORITES_1-PROJECT_ID(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=REF_IMG'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLSHI01' '0200'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=%_GC 126 35'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLCRM_IC_PROFILE' '0100'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'CRMV_IC_PROF-PROFILE(14)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=KOPE'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VIM_MARKED(14)'&lt;/P&gt;&lt;P&gt;                              VIM_MARKED_14_001.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLCRM_IC_PROFILE' '0100'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'CRMV_IC_PROF-TEXT(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=KOPF'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'CRMV_IC_PROF-PROFILE(01)'&lt;/P&gt;&lt;P&gt;                              PROFILE_01_002.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'CRMV_IC_PROF-TEXT(01)'&lt;/P&gt;&lt;P&gt;                              TEXT_01_003.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLSPO2' '0300'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=OPT1'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLCRM_IC_PROFILE' '0100'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'CRMV_IC_PROF-TEXT(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=SAVE'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLSTRD' '0300'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'KO008-TRKORR'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=LOCK'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KO008-TRKORR'&lt;/P&gt;&lt;P&gt;                              TRKORR_004.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLCRM_IC_PROFILE' '0100'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'CRMV_IC_PROF-TEXT(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=BACK'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLSHI01' '0200'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=TRRT'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLS_IMG_TOOL_5' '0100'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'D0100_FAVORITES_1-PROJECT_ID(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=BACK'.&lt;/P&gt;&lt;P&gt;perform bdc_transaction tables messtab&lt;/P&gt;&lt;P&gt;using                         'SPRO'&lt;/P&gt;&lt;P&gt;                              CTU&lt;/P&gt;&lt;P&gt;                              MODE&lt;/P&gt;&lt;P&gt;                              UPDATE.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  subrc = sy-subrc.&lt;/P&gt;&lt;P&gt;  exit.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform close_group using     CTU.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2005 10:41:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1103988#M104224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-29T10:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1103989#M104225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any update friends?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2005 12:23:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1103989#M104225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-29T12:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1103990#M104226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Usha, For what part of the recording are you getting this&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;perform bdc_dynpro using 'SAPLSHI01' '0200'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;'=%_GC 126 35'.&amp;lt;/b&amp;gt;??&lt;/P&gt;&lt;P&gt;when i do a sample recording for the steps you have mentioned, i did not get any ok_code for this step?&lt;/P&gt;&lt;P&gt;try commenting the high lighted code and see what happens.&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>Tue, 29 Nov 2005 12:28:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1103990#M104226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-29T12:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1103991#M104227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Normally one can't use the SPRO for BDC postings. We need to get the actual transaction code which will be used for posting of the data. As mentioned, SPRO&lt;DEL&gt;&amp;gt;CRM&lt;/DEL&gt;&amp;gt;so..on, u will get to a screen wherein actually the data is been populated. At this point just check the tcode which is been used by SAP and from here do the BDC recording and use the same. Use the transaction code in the call transaction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Nov 2005 12:36:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1103991#M104227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-29T12:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1103992#M104228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ramesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Tons of thanks for your timely reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;usha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Nov 2005 07:09:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1103992#M104228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-30T07:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1103993#M104229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i already entered t/code &lt;SPAN style="font-size: 13.3333330154419px;"&gt;0VRF &lt;/SPAN&gt; in my record but i have this error when run the batch&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H3&gt;No batch input data for screen SAPLS_IMG_TOOL_5 0100&lt;/H3&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i don't know where is the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 11:15:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/1103993#M104229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-08-17T11:15:11Z</dc:date>
    </item>
  </channel>
</rss>

