SALESORDER_CREATEFROMDAT2: Logic system is not defined???

Question: Im trying to create sales orders with LSMW using bapi SALESORDER_CREATEFROMDAT2 and i get the error message 'logic system is not defined'. I think i've checked everything, the partner agreements and all that, but it still doesnt work. Can someone help me, please?
Thanks!

Answer:
Hello,

did you implement everything under tcode WE20?

Gordan

Answer:
Have a look at SAP note n° 442828 "BAPI SD: Error B2001 when creating sales documents

*********************
Symptom
You want to create a sales and distribution document by means of a BAPI for the creation of a sales and distribution document. However, you cannot create the document because the system issues

1. error B2001 "Local logical system is not defined"
2. error FI011 "Company code & is not assigned to an FM area".

Additional key words
BAPI_SALESORDER_CREATEFROMDAT2, SD_SALESDOCUMENT_CREATE, BAPI_SALESORDER_SIMULATE, BAPI_SALESORDER_CREATEFROMDAT1, B2001


Cause and preconditions
The problem is caused by the corrections from Notes:

377283 and
385345

1. The logical system is not maintained in client table T000.
2. The error processing is incorrect.

Solution
Implement the attached correction.

*********************
Copyright ?2007 - 2008 www.jt77.com