on 05-29-2007 4:03 PM
Hi,
I am giving country code in the selection screen.
Based on the country i want to fetch plant and sales organization .
which table i want to use for this.
After getting sales organization i want to fetch the sales order .
regards,
vijay
Hi,
For sales ordes Table VBAK
For Sales org/Company code relation table TVKO
Reward points if useful
Regards,
Amrish Purohit
Message was edited by:
AMRISH PUROHIT
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Narayana
Message was edited by:
manam narayana
Message was edited by:
manam narayana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for suggestions.
iam able to fetch the WERKS VKORG from the table TVKO.
Now my problem is for sales orders.
how i can fetch the SO for corresponding WERKS and VKORG.
What table i have use for SO.
regards,
vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can use T001 to get the company codes for the given country...t001-land1.
Then You can use table T001K, TVKO to get the plants and sales organization for the given company codes..
Thanks,
Sadhu Kishore
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
give me ur mail id i will send a mail
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Table joining country code and plant T001W
Table joining plant and Sales org TVKWZ
Tables joining sales org and sales documents VBAK
Item level details of the sales document VBAP
Schedule line details of sales document VBEP.
So if your requirement is to find out all sales documents for a specific country code, the logic should be
SELECT VBAK-VBELN
WHERE VBAK-VKORG=TVKWZ-VKORG AND
TVKWZ-WERKS=T001W-WERKS
WHERE
T001W-LAND1=ENTERED COUNTRY CODE
But make sure you have only one plant assigned to a country code. If you use many plants for a country, then the documents for all the plants will come up.
There can be another way of coding also where sales order plant equals to the plant of a given country. It solely depends on your purpose and the details you want to have in the report.
Pls lemme know if you need further info.
Reward point if it helps.
You can also download the std tables used in SD from website (just put a search SAP-SD Tables in google)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This contains the entire list of tables..
Reward points if useful !!!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.