<?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: Company Code not defined in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/company-code-not-defined/m-p/2195515#M468519</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;Probably the program does some controls using the value of SY-TCODE, so u should find and replace them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you have : IF TCODE = 'FB60', you should replace it with IF TCODE = 'ZFB60'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not easy to create a copy of FB60, because the main program (SAPMF05A) of FB60 is called by many transactions, so it has a different behavior for every trx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 May 2007 10:24:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-09T10:24:13Z</dc:date>
    <item>
      <title>Company Code not defined</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/company-code-not-defined/m-p/2195511#M468515</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 have copied the standard program behind FB60 and created a new transaction named ZFB60. There is no change in the code except that I have added a field on the main screen.&lt;/P&gt;&lt;P&gt;Now the problem is when I run my transaction, it pops a dialog box and asks me&lt;/P&gt;&lt;P&gt;for the Company code. After entering that, it takes me to the main screen where when I enter fields 'Vendor' , 'Invoice date' and 'Reference', it gives me an error "Company code  is not defined". But if with the same set of data I execute the original transaction FB60, it gives me no error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that can any one tell me, why this error is coming, when I have made no changes to the original code. The only change that I have made is adding a field in the tablecontrol that comes on the main screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me?&lt;/P&gt;&lt;P&gt;Points assured for helpful answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 09:29:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/company-code-not-defined/m-p/2195511#M468515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T09:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Company Code not defined</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/company-code-not-defined/m-p/2195512#M468516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you run the trasaction first time it will ask you for the company code, because the Com. Code is mandatory.&lt;/P&gt;&lt;P&gt;But once successsful completion of the trasaction the company code value will be reatined for the next process level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the company code value in T001 table, whether it is existing or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 10:14:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/company-code-not-defined/m-p/2195512#M468516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T10:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Company Code not defined</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/company-code-not-defined/m-p/2195513#M468517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;  Check in Table T001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sreeram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 10:16:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/company-code-not-defined/m-p/2195513#M468517</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2007-05-09T10:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Company Code not defined</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/company-code-not-defined/m-p/2195514#M468518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this part of code in Screen 1000 of the standard program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  field bkpf-bukrs: module check_comp_code on input.        "P00K020831&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  module user_command_1000.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 10:18:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/company-code-not-defined/m-p/2195514#M468518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T10:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Company Code not defined</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/company-code-not-defined/m-p/2195515#M468519</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;Probably the program does some controls using the value of SY-TCODE, so u should find and replace them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you have : IF TCODE = 'FB60', you should replace it with IF TCODE = 'ZFB60'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not easy to create a copy of FB60, because the main program (SAPMF05A) of FB60 is called by many transactions, so it has a different behavior for every trx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 10:24:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/company-code-not-defined/m-p/2195515#M468519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T10:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Company Code not defined</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/company-code-not-defined/m-p/2195516#M468520</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;there might be the following reason.&lt;/P&gt;&lt;P&gt;1-while converting the FB60 to ZFB60 some of the function module might not be copied properly,so open the main program in se80 and activate all the includes programs.&lt;/P&gt;&lt;P&gt;2-while creating the z* tcode you might not have mentioned the program name properly in se93.&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>Wed, 09 May 2007 10:39:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/company-code-not-defined/m-p/2195516#M468520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T10:39:38Z</dc:date>
    </item>
  </channel>
</rss>

