Mass Creation of Company Code
Hi,
I am trying to upload 300 company code from another system into SAP. I looked into BAPI but find only COMPANYCODE_GETLIST. I would appreciate if anyone can tell me if there is anyone can tell me if there is any other way I can mass create Company Code in SAP beside LSMW.
Thank you in advance,
Sunny
Message was edited by: sansanee hanveerawong
Sunny,
There is no BAPI for creating this. There is no standard LSMW either. Probably because Company Codes load is done in Config and there are usually not many.
However, you can use the Business Object BUS0002 (Transaction SWO1).
In your SAP system, use this object in a custom program by passing the relevant information to the macros. The method CompanyCode.Create is the one for you. Your program should have this statement:
INCLUDE <OBJECT>.
The <OBJECT> include program by SAP has all the useful macros, such as swc_set_element, swc_call_method etc.
Good Luck,
Bhanu
Similar Messages
-
Automatic creation of Company Code and Sales Area Data for Customer Master
Hi,
We have a organisation structure setup with multiple company codes and sales areas.
A customer will be created using VD01 via the Sales Order VA01. Because the customers are created using VD01 we need to automatically extend the customer for the various company codes and sales areas. The data on these views will be populated using reference customers.
Any recommendations on the best approach (technically) to auto extend the customer master would be appreciated.
I'm reluctant to use BDC's because of performance. We are in a Retail environment.
Thanks in advance
CraigThe sample code has been taken from the SAP notes - in which have the affected as outlined in the example.
The codes does not do what my requirements are, which is to identify the next available number in isolation of the BP type. -
I have created a company code by copying (coppy as ) the standard company code 0001.
While copying it was shown that some of the entries was copied successfully but some of was not .
I have mainted P.org, site , storage location . But while craeting a material for that company code I am having a error as following
"Company code 4000 is not set up for Materials Management
Message no. M3152"
Please suggest what is wrong and also how to create a Company code with all entries.
Thanks in advance.
Regards,
AnupamHello Anupam Halder ,
This is because you have not activated the Co.cd in Transaction:OMSY
You will find the company co.cd in OMSY and give the Current Year and Period for you co.cd and also Allow Back posting for the previous period.
You issue will be solved.
Hope this helps
Arshad -
Restrict PO at company code level
Hi,
We have near about 10 number of company code and lot of plants attached to each company code.
and only one purchase organisation.
Now business require that PO shold be created only for 2 company codes not for all. there are alreday roles available for PO creation .
Now how to restrcit the PO creation at company code level because at plant level it is not possible due to large number of plants.
Regards,
Pardeep MalikHi,
Please kindly be informed that the following authorization objects are checked when an Enjoy purchase order is created (activity 01) or changed (activity 02):
- M_BEST_BSA (document type in PO)
- M_BEST_EKG (purchasing group in PO)
- M_BEST_EKO (purchasing organization in PO)
- M_BEST_WRK (plant in PO)
So this is somthing you can not solve by only using roles. You will need as suggested to make the check in the BADI.
Best Regards,
Arminda Jack. -
No company code data available in XD01
Hi All,
I'm facing a issue in XD01 transaction code.
In my current client process of creation of customer is first Master data team is responsible for creation of General data segment of the customer once general segment is created it comes to SD user who is responsible for creation of company code and sale are segment. SD user donu2019t have authorization to create general segment u2013once general segment is created by MDM then only system will allow to create other segment by SD user.
In production system when SD user use XD01 to create company and sale area segment that user is not able to see Company code segment and user is calming that earlier they are able to see company code segment. I checked with S&A team as per them there is no changes in roles and authorization for that particular user since beginning.
So to test what is the problem I requested S&A to create a test id in quality system with same role and authorization what SD user having in production system. I asked MDM to create a customer but when I (I mean test user created in Quality system )try to use XD01 to create other segment then system through a error saying u201CCustomer 830587 has already been created company code NLYQ sales area NLYQ SV PHu201D. Mean system is not allowing me to enter inside through XD01 because customer is already created but user is able to enter through XD01 in production. How it is possible Iu2019m using same roles and authorization what User having in production system. if in production user is able to enter then with help of test id it should also allow to enter inside XD01 in quality also .
I checked SU53 also even I asked S&A to activate tracing on Test id in quality so that we will find missing authorization during my testing in su53 and log we found nothing.
So just wanted to know how it is possible or how I can get company code data in production system for that particular user.
Thanks
Prakash SharmaDear Madhu ,
Yes user is giving company code in selection parameter and there is BDC for creation of Customer. MDM is using that BDC for creation of general segment of customer
Regards
Prakash Sharma
Edited by: Prakash Sharma on Jun 20, 2011 2:23 PM -
Remove assignment of profit centers to company codes
Dear all,
I have to remove assignment of profit centers to company codes, we have about 300 profit centers which need to be corrected, is there any easier way to correct the profit center master data other than manually uncheck the assignment using KE56. your advaices will be greatly apprectiated.See if you have access to SE38 and enter the program RCOPCA60_2
I want to highlight the text that goes like
"To create the report proceed as follows:
1. Create report RCOPCA60_2 using Transaction SE38.
Enter the following for the program attributes:
Title: Mass change of company code assignment SAPNet 316440
Type: Executable program
Status: SAP standard production program
Application: Cost accounting
In the 'Display Object Directory Entry' dialog box enter KE1 as a development class.
2. Implement the attached source code into the newly created report and activate it.
3. Enter the following entries via the menu path 'Goto -> Text elements -> Selection texts'" -
Cannot change company code for functional location in PM module
Dear Gurus,
When I try to change the maint plant for topmost level hierarchy FL, I get error. So I cleared the data in organization tab (planning plant....) and tried to click location tab but receive warning (After changing PM planning plant, please check dependent objects) & cannot proceed. Kindly advice me on how I can change the company code for all the functional location in the plant.
Thank you.Dear Gurus,
Is there any way I can mass change the company code for all FLs?
Thank you. -
Creation of SC or POs based on the Company Code restriction
Dear All,
I am abaper and I am new to SRM. Ours is SRM 4.0 using Extended Classic Scenario
we got one requirement that one company ex: SE04 should be blocked for further ordering of SC and POs. i.e. when creating any SC or PO they dont want to use 'SE04'. If selected it should throw an error message "Company Code SE04 can't be used for Procurement".
I wrote code in BBP_DOC_CHECK_BADI-BBP_DOC_CHECK like this..
IF flt_val = 'BUS2121'. "When create SC
LOOP AT lt_item INTO ls_item WHERE be_co_code = 'SE04'
AND del_ind <> 'X'.
CLEAR ls_message.
ls_message-msgty = 'E'.
ls_message-msgid = 'BBP_PU'.
ls_message-msgno = '001'.
ls_message-msgv1 = text-001.
APPEND ls_message TO et_messages.
ENDLOOP.
endif.
and for po also BUS2201 we done the same.
it is working fine for creation of SC and POS, but when we are chaning old SC or POs for 'SE04' then also error is coming "Company Code SE04 can't be used for Procurement".
When I put break point in BBP_DOC_CHECK_BADI-BBP_DOC_CHECK it is not stopping there also.
Please guide me for this..
Thanks,
Kiran MadineniI written code like this: now working for old SC and POs.
IF flt_val = 'BUS2121'. "When create SC
IF cs_header-created_at >= '20110110000000'.
*if sy-title = 'Shop' and ( sy-tcode = 'BBPSC01' or sy-tcode = 'BBPSC02' or sy-tcode = 'BBPSC03' ).
IF sy-tcode = 'BBPSC01' OR sy-tcode = 'BBPSC02' OR sy-tcode = 'BBPSC03'
OR ( sy-tcode = 'BBPSC04' AND sy-title = 'Change Shopping Cart' ).
LOOP AT lt_item INTO ls_item WHERE be_co_code = 'SE04'
AND del_ind <> 'X'.
CLEAR ls_message.
ls_message-msgty = 'E'.
ls_message-msgid = 'BBP_PU'.
ls_message-msgno = '001'.
ls_message-msgv1 = text-001.
APPEND ls_message TO et_messages.
ENDLOOP.
ENDIF.
ENDIF.
ENDIF.
For POS BUS2201
Thanks
Kiran. -
PO creation-ME21n-Why SAP does not check company code and Plant relation
Hi All,
Does someone know, why SAP does not check Plant and company code relation at the time of PO creation or how can we put validation between plant and company code at the time of PO creation.
<b>Example:</b> Suppose i have a company 0001 which is assinged to Plant 0001. when i am creating a PO with another company code 0002(Entering at header level-Org, data) and using Plant 0001 at line item level. SAP does not do this validation.
How can we put this check in place?
Thanks in advance.
DeepakHello Deepak,
There are three types of purchasing
- Company code specific :You need to assign company code to Pur organization
- Plant specific : You must assign plant to pur organization
- Cross company purchasing: No assignment between company code and pur organization.
In the case 3, the system will not check company code and plant relationship, but it will check plant and pur organization specific.
The following is the copy of sap help text:
You can assign a purchasing organization to one company code. This is company-specific purchasing.
You can assign a purchasing organization to no company code. This purchasing organization can then procure for all plants assigned to it, irrespective of the company code to which the plant belongs.
Since each plant must be assigned to a company code, the company code can be determined via the plant in each procurement transaction, even if the procuring purchasing organization is not assigned to a company code.
A purchasing organization must be assigned to one or more plants. This is plant-specific purchasing.
Now, check your company-code and purchase organization assignment.
Hope this helps.
Regards
Arif Mansuri -
Hi All,
When I am creating company code I am getting an error as below.
"you may not change the currency since documents exist with this currency"
Above issue is coming while new co code creation or copying of existing co code also.
Please advice on the above issue.
Regards,
RiyazHi,
I hope you are creating new company code by copying from the exiting company code. If you copy one company code to another company code then you will get few pop- up message like do you want to use same chart of account or do you want to use same currecny like that. So may be you have selected different currecny. Sap has come up with country template for each country. So you can use country template to create the new company code.
Thanks & Regards
R.K -
Company code creation...what option is better?
Hi Gurus,
My client has an existing company code in US and the parant company code abroad. They have now acquired another company is US. I need to decide whether we create a new company code for the new acquired company or do we just merge the acquired company with the existing company code in US.
What are the pros and cons of merging vs, creation of a new company code?
Note: Using FI-Consolidation is out of scope.
I am not sure how the FI entries are transfered from the legacy system to the new company code or merged with an existing company code.
Would appreciate any insite and links on such a topic.
Thanks & RegardsHi Sunny this is a very wide question.
Here are some questions to consider.
Do you need to show the new company code as a seperate company code?
Can they use your Chart of Accounts?
Is the new company keeping its name?
Have you got any common master data, customers, vendors?
When will you be making the transfer?
Do you use ERP 6.0? If you did not want to create a new company code you could use document splitting.
You can copy your US Company Code, and then extend any common master data, GL accounts, Customers Accounts and Vendor Accounts?
Are you buying all of the debt from the new company, if so you will need to keep the debt seperate to that of your current debtors.
Hope some of this helps. -
Problem for creation of PO for different company code
I have problem for creation of PO using ME21 for different company code.Order is not created.
Please give reply it is urgent.Hi Mansih,
I don´t understand what is your exact problem, as I don´t see any company code being specified. But maybe you should check in XK03 that the vendor master data is created for this company code/purchasing organisation!
Have a nice day! -
Hi,
Client wants to split one company code to 8 company codes.
Could you please explain what are the neccessary steps to take for this ?
What are the precautions to take in creating Company code, Chart of accounts, AP,AR related,AA and consolidation ?
Regards
MadanHello,
You can keep concentration on the following transaction codes.
These may be useful guide to you.
FI Enterprise Structure Transaction Codes
Transaction Code Description
OBY7 Copy Chart of Accounts
OB29 Fiscal Year Variant
OBBO Posting Period Variant
OX02 Company Codes - Create Check and Delete
OBY6 Company Code Global Parameters
EC01 Copy Company code
OY01 Country Definitions
OB22 Parallel Currencies
OX03 Business Areas
OKBD Functional Areas
FI Enterprise Structure Transaction Codes (Continued)
Transaction Code Description
OBBG Assign Country to Tax Calculation Procedure
OBCO Specify Structure for Tax Jurisdiction Codes
OBCP Define Tax Jurisdiction Codes
FTXP Maintain Tax Rates
OBCL Set Tax Codes for Non-Taxable Transactions
General Ledger / Chart of Accounts Transaction Codes
Transaction Code Description
OBD4 Account Groups
OB53 Retained Earnings Variant
OB15 Sample Account Rule Types
FSK2 Sample Account Data Transfer Rules
OB67 Allocate a Company Code to a Sample Account Rule Type
OBY9 Transport Chart of Accounts
OBY2 Copy GL Accounts from the Chart to the Company Code
OBC4 Field Status Variants
OB41 Posting Keys
FBKP Automatic Account Assignments
OB40 Define Tax Accounts
OBYA Cross Company Code Automatic Account Assignment
OBYC MM Automatic Account Assignment
VKOA SD Revenue Account Assignment
OB58 Financial Statement Version
O7Z3 Line Item Layouts
OBVU Special Fields
O7S7 Sort Variants
O7R1 Totals Variants
OBA4 Tolerance Groups
OB57 Allocate Users to Tolerance Groups
FBN1 GL Number Ranges
OBA7 Document Types
OBU1 Assign Default Posting Keys to Document Types
O7E6 Fast Entry Screens
ORFB Financial Accounting Configuration Menu
OBL1 Automatic Postings Documentation
OB32 Maintain Document Change Rules
General Ledger / Chart of Accounts Programms
Transaction Code Description
RFBISA10
RFBISA20
RFTAXIMP
General Ledger / Chart of Accounts Tables
Transaction Code Description
BSEG GL Document Line Item Table
TTXD Tax Jurisdiction Code Structure Table
T030 Automatic Account Assignments Table
TZUN GL Account Sort Key (Allocation Field) Table
Accounts Payable Transaction Codes
Transaction Code Description
FI12 House Banks
FCHI Check Lots
FCHV Void Reason Codes
FBZP Payment Programme
OBD3 Vendor Groups
XKN1 Create Number Ranges for Vendor Groups
OBAS Assign Number Ranges to Vendor Account Groups
FK15 Copy Vendor Master Records Creation Programme
FK16 Copy Vendor Master Records Creation Programme
Accounts Receivable and Credit Management Transaction Codes
Transaction Code Description
OBB8 Terms of Payment AP and AR
OB46 Interest Indicator
OB82 Make Interest Indicator Available to the Interest Calculation Program
OBAC Reference Interest Rates
OB81 Assign Reference Interest Rates to Interest Indicators
OBV1 Interest Calculation Automatic Account Assignment
OBBE Reason Codes
OBCR Reason Code Conversion Version
OBCS Map External Reason Codes to Internal Reason Codes
OBXL Assign GL Accounts to Reason Codes
OBXI Cash Discount Amount
OBA3 Customer Tolerance Groups
OB45 Credit Control Areas
OB01 Credit Risk Categories
OB02 Credit Representative Groups
OB51 Assign Employees to Credit Representative Groups
OB39 Days in Arrears Calculation
OBD2 Customer Groups
Treasury Transaction Codes
Transaction Code Description
OB10 Create Lockbox Accounts
OBAY Define Lockbox Control Parameters
OBAX Lockbox Posting Data
OT05 Source Symbols
OT14 Planning Levels
OT13 Planning Groups
OT47 Assign Logistics Transactions to Planning Levels
OT17 Treasury Groupings
OT18 Treasury Grouping Headers
OT16 Cash Management Account Names
OT29 Activate Company Code Treasury Updates
OBBY Electronic Bank Statement Transaction Types
OT55 Assign Transaction Types to House Banks
OT57 Electronic Bank Statement Posting Rules
OT51 Map External Transactions to Posting Rules
OT59 Posting Rules Automatic Account Assignment
GCRF Currency Translation Ratios
Regards,
Ravi -
New company code creation in sap
Dear Experts
I want to configure new company code in sap. can anybody share the templates for data collection, which are required during company code creation and configuration steps to be followed for the same.
Thanks
VenugopalHi Venugopal,
For all configuration questions please use help.sap.com
Thanks.
Sebastian -
New Company Code Creation Problem
Hi Experts..
We are having 10 company codes, i got a requirement to create another company code. I have used one of the earlier company code to create a new company code.
It is giving me the following error while trying to post a document in a testing server.
<b>Could not determine the year for TDS Certificate number range</b>
Message No: 8I017
Diagnosis
The excise year could not be determined for generating the numbers for TDS Certificates. The number range is linked to the excise year and not on the fiscal year directly.
Procedure
Check the customizing done for the company code in the India Version IMG. Maintain the start month for the excise year correctly.
Please provide me your valuable inputs on this.
Thanks
KiranHi Naveen
Thank you so much for your reply...
The company code which i have choosen to copy is functioning properly in the production server. That is why i have copied. I need to create some more company codes.. Creation of codes involves from the scratch involves lot of work.
Please guide me how to rectify the error.
Thanks
Kiran
Maybe you are looking for
-
Header Images not all the time in APEX 3.1.1.06
Hi I'm running APEX on a Oracle 11gR1 server and a Oracle 10gR2 XE Server. Both these servers don't load the images in my application all the time, refreshing the page either loads the images or not and its random which ones load or not. The images a
-
I need info on how to use ipad 1, the first one
Is there a tutorial or user's guide for the first IPAD, and where do I find it? Thank you.
-
Why is there some missing information when I try to restore a new iPhone from my most recent backup?
-
Edit decision table from the web module
Hello every one <br>I am using decision table to create rules and my question is can I edit decision table from the web module <br> i.e. can I change decision table values from jsp files(invoke.jsp) and if yes can any one please tell me the steps I s
-
Hi Experts, I am working on Single click entry tool, my requirement is 1. I want to know how many sessioned i have opened in SAP through Macros in a popup. 2. suppouse i am getting 2 sessions in popup and i am selecting any one then automatically mac