Relationship between company code n plant
<i>Hi,
which table stores company code n plant info.
I wanna select all the plants belongs to a company code.
Thanks.
Senthil</i>
Hi,
I think T001W_EXT can help you.
types : begin of ty,
werks type t001w_ext,
bukrs type t001w_ext,
end of ty.
data : itab type standard table of ty,
wa type ty.
select werks bukrs into table itab from t001w_ext where bukrs = s_bukrs.
sort itab.
delete adjacent duplicates comparing all fields.
loop at itab into wa.
write wa.
endloop.
Kindly reward points by clicking the star on the left of reply,if it helps.
Similar Messages
-
Where can I find the relation between company code and plant?
where can I find the relation between company code and plant?
I need to the list of plants under a company code.
Which table?yes,wayne weng .What you said is right.
Thank you very much!
My MSN:[email protected] -
Can you tell me relationship between company code and shipping document
how to make the relationship between shipping document with company code .
i have selection criteria which having company code and shipping no.
but i am not able to make relationship, so please find and tell me the relationship table structure
Regards,
SivaHi Siva,
Read table TVKO to get the sales organizations (field VKORG) for the company code (BUKRS). This query might result into multiple VKORG entries.
Read deliveries (LIKP) with VKORG as input to get all deliveries for the sales organziation.
Regards,
Frank Umans -
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 -
Stock transfer between company codes
Dear Experts,
I am doing stock transfer between two different company codes. Purchasing order type wil be NB & SD delivery type will be : NLCC
i have done all w.r.t configuration requirement for between company code, when i go for ME21N, unable to get purchasing order type NB but its showing only UB & item category U. systme giving message like : item category U & pur order type is UB would like to proceed. But it would be for between plants within same company code.
Please assist me where i am doing wrong...
Best Regards
Badari
Edited by: badaripro on Feb 23, 2010 7:15 PM
Edited by: badaripro on Feb 23, 2010 7:15 PMDear Badari,
I don't understand. Do you say that you just start ME21N and can only choose order type UB there? In this case it has nothing to do with the question if the STO is cross-company or not, since the system doesn't know the plants yet.
I would assume somebody just deleted the document type NB in your customising or you are not authorised to use it - please start ME21N again, observe the error (can't choose NB), leave the trs and run trs SU53 to check your authorisations.
BR
Raf -
STO WITH OUT BILLING BETWEEN COMPANY CODES
Hai experts,
In my client , thy use following procedure for STO with out billing between company codes .
First create purchase order in receving plant after that they sales order in supply plant by using purchase order ,manually.Here the end user change the qty and other details.So the client wants that , I want create sales order with respect to purchase order.
give me suggestion7679,
Your proposed solution sounds like a lot of unnecessary work. A simple STO can usually meet all business requriements for either intra- or inter-company stock transfers, without adding the complexity of a sales doc.
Why can't you use a standard 'U' Stock Transport order?
Best Regards,
DB49 -
Stock Transfer Order between company code
What is the system setting for the STO between company codes.
Steps to make STO between two plants (Different company codes).
1) Create one Customer Master in XD01 with respect to Supplying Plant Sales Area and assign this Customer no with Receiving Plant in OLME->PO-> set up STO->Define shipping data for plant and for the supplying Plant assign the above sales area. (Make sure, In Customer Master, sales Area Tab: you are maintaining shipping condition)
2) For Receiving Plant Pur. Org and Co.Code Combination create Vendor master in XK01 and in this vendor master assign the Supplying plant in Pur.Org.Data screen->Extras--> Add.Pur.data
3) OLME->PO-> Set up STO------> for your supplying plant assign document type NB, Delivery type NLCC and Checking Rule RP
4) Then for your supplying Plant and receiving Plant assign Document type NB
5) Make sure you are maintaining Sales View for the material at supplying Plant and in Sales /Gen plant Data view maintain Availability check, Loading group and Transportation group.
6) In SPRO-->Logistics execution> Shipping->Basic shipping functions->Shipping point Determination>assign shipping points-> For your Loading group, Shipping Condition and Supplying plant combination, Assign shipping point
These are the configuration settings you have to do in background.
Then Create STO from Receiving Plant in ME21N with document type NB.
Based on that STO, Create Delivery in VL10B from supplying Plant
Do PGI in VL02N from Supplying plant
Do GR in MIGO at Receiving Plant keeping outbound delivery as a ref. document.
Sheetal -
Accounting document currency code for transfer between company code
Hi;
We have one business process here. 2 plant with 2 different company code.
Plant P1 -> Company code C1
Plant P2 -> Company code C2
Now we make material movement between P1 and P2 via MIGO_GR , movement type 301. Accounting document will be generated when MM document posting.
From SAP standard, the accounting document currency will pick up from company code currency code.
For example
C1 -> currency USD
C2 -> currency EUR
But now we would like to generate the accouting document with different currency code, for example accounting document under C1 will be EUR? is that possible except to change the company code currency. Because company code currency change will be a big impact.
Thanks in advance
BR TimHi,
Go to SPRO --> Financial Accounting (New) >Financial Accounting Global Settings (New)>Ledgers>Ledger>Define Currencies of Leading Ledger
Click on Define Currencies of Leading Ledger define currency
Thanks,
Raviteja -
Function Module to get Company code and Plant on the basis of infotype and pernr
Hi Experts,
I need to know the function module which will return company code and plant based on infotype and pernr(employee Number).
Thanks,
Salil BagchiI think thats the only way
CALL FUNCTION 'CU_READ_RGDIR'
EXPORTING
persnr = p0001-pernr
TABLES
in_rgdir = it_rgdir
EXCEPTIONS
no_record_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
check whether "Pay date for payroll result" with in Start Date and
End date, and "Reason for Off-Cycle Payroll" is initial
LOOP AT it_rgdir WHERE paydt >= v_begda
AND paydt <= v_endda AND
void IS INITIAL
AND ocrsn IS INITIAL
AND srtza = 'A'.
v_seqnr = it_rgdir-seqnr.
ENDLOOP.
Hope this helps.
Thanks
Kiran -
If Company has one to one relationship with Company code
Dear All,
If Company has one to one relationship with company code in the transaction system (ECC),
can we use company in place off company code - in the BCS system?
That is, in this case - under consolidation units
- company,
i will be using the ECC companies rather than ECC company codes as consolidation units.
Request your insights.
Cheers
KumarActually, I almost always use the company, not the company code. The difference is in the different number of attributes, and the type CHAR 4 or 6. 0COMPANY is the standard infoobject for using in SEM-BCS.
Though, I also used the custom infoobject for ConsUnit. Not a problem. Everything works. Just one needs to be careful with infoobjects which are the references to the Company IO. -
Netting process between company codes
Hi Gurus,
How do i configure a Netting process between company codes when they trade with each other.
Please advise,
Thanks,
TembaHello,
You can post the cross company code postings even between two controlling areas. The system does not prevent to post documents between two company codes in two controlling area. Need not necessarily they should be under one operating concern. Provided you have to make sure that you have followed the following points:
In OBY6 - To company codes must be assigned to same Company, meaning that you mus thave created a Company and that company must have been assigned to these two company codes.
OBYA - You should maintain the clearing accounts in both the company codes. Meaning that you are posting one leg in one company code and the other leg in the other company. Therefore, it is required to have the missing legs in each company code.
Company Code1 - Posting Key 40 - Clearing Account
Company Code1 - Posting Key 50 - Clearing Account
Company Code2 - Positng Key 40 - Clearing Account
Company Code2 - Posting Key 50 - Clearing Account
OB08 - In case if the two company codes have different local (company code) currencies, you may maintain the exchange rates.
You can now go to F-02 and post a cross company code transaction giving the first leg in first company code and the second leg in second company code. Missing leg in the first company code will be posted to the GL Account mentioned in OBYA and the missing leg in the second company code will be posted to the GL Account mentioned in OBYA. That means you will have four line items overall.
The system will post three document.
Document 1 in First Company Code
Document 2 in Second Company Code
and
Document3 - Cross Company Code Document.
The cross company code document consists of the first company code document number plus company code plus last two digits of the fiscal year.
Hope this must have clarified your doubts.
Please let me know in case if you need further details.
Thanks,
Ravi -
Clearing between company codes
Hi Experts,
I have done necessary settings for cross company code clearing.
I got the following error message while clearing the open items between company codes.
Error Message:
Company codes have different settings for withholding tax treatment.
Message no. F5786
Please help me to solve this issue.
ThanksHi,
I think you have entered a document containing at least one vendor or customer item and which has line items in several company codes.
The extended withholding tax treatment has been set to active in one company code and not in other company code. That is EWT has been activated in one company code and the same has not been activated in other company code. We need to activate EWT in other cross company code.
Path to activate / deactivate EWT:
IMG / FA/Financial Accounting Global Settings / Withholding Tax / Extended Withholding Tax / Calculation / India / Company Code/Activate Extended Withholding Tax
Here select the check box u201CEWTu201D against your company code and save it.
Hope it helps.
Regards,
Kannusamy S -
Which table contains both company code and Plant
HI,
Which table contains both company code and Plant?
which table contains Purchase requisition number and Company code?
Please help me.plant and company code <b>marc</b>
MANDT MANDT CLNT 3 0 Client
MATNR MATNR CHAR 18 0 Material Number
WERKS WERKS_D CHAR 4 0 Plant
Purchase requisition number and Company code in <b>ekpo</b>
MANDT MANDT CLNT 3 0 Client
BANFN BANFN CHAR 10 0 Purchase requisition number
reward fi usefull -
PGI-No Accounts maintained for company code clearing between company codes
Dear Expetrs,
When i am doing PGI getting error that is no accts maintained for company code clearing between 0010 to 0035. This is intercompany process. In our intercompany company codes is 0010 and 0020. So we maintained already clearing acconuts between 0010 and 0020 in OBYA. But when am doing post goods issue... getting error no accts maintained between 0010 to 0035. Actually here supposed to take clearing accts between 0010 to 0020. I couldnt understand why its taking 0010 to 0035. Could you please suggest me where i did mistake, Please suggest me ASAP.
Tanks & Regards,
VSDear Lakshmipathi,
Here am pasted the OBYA Screen...whatever i maintain pls check and suggest me. i am suspecting on Debit posting kes and credit posting keys maintain as 01 and 31 is corect.
Transaction BUV Clearing between company codes
Posted in 0016
Cleared against 0013
Debit posting key 01 Credit posting key 31
Account debit 7790000013 Account credit 7720000013
Posted in 0013
Cleared against 0016
Debit posting key 01 Credit posting key 31
Account debit 7790000016 Account credit 7720000016
Thanks & Regards,
Vasu -
Copy configuration between company codes tool
Hi,
I would like to know if we can copy configuration between company codes? If yes, how do we do that? I know there are some third party tools available, but couldnt recollect now. Any guesses?
Thanks,
AbdulSince it are more than 200 customers, a manual operation isn't very efficient.
As I understand, no standard SAP programs exist to copy multiple customers from 1 company code to another. A new CATT will have to be created.
Does anyone have this kind of program, otherwise I will create it from scratch.
Thanks in advance.
Best regards,
Danny
Maybe you are looking for
-
IdeaCentre b305 Partition details?
Hello: Could anybody post the details of factory partition from this system. Type, attributes , ID. I have a problem with my one key recovery, because I modified the partitions on my system and I have found this. http://lemon.soju.co.uk/2010/01/27/le
-
Coesistence ORACLE 9i and 8.1.7 on solaris 8 help!!!
Hi, i 'm tryng to install oracle 9i r2 db server on the same sun sparc computer where a previous oracle 8i db server insist . The 9i OUI deinstalls the oracle 8i JRE and installs the new JRE, in this way the 8i loadjava doesn't work, because the refe
-
Org.hibernate.AssertionFailure: scrollable result sets are not enabled
I am using hibernate with oracle and got the following code snippet: ScrollableResults results = criteria.scroll(ScrollMode.SCROLL_SENSITIVE); When I run the above snippet I get the following exception: org.hibernate.AssertionFailure: scrollable resu
-
Hi, I have a little question. I'm using EP6 and CRM 5.0, I want to connect my EP to my CRM, so I need to create my Systems into the SLD. Unfortunately there is no CRM 5.0 system only the CRM 4.0 in my current Content Repository. I heard that it is po
-
Forgotten email submitted form help
I have a forgotten email form... when you type your email, it goes to another php page that will query the db for that email and send your forgotten email to that email address. It may not be the best way, but I am learning and so far so good. Howeve