on 07-14-2010 6:45 AM
Hi All,
I want to know how do we find the Purchasing ORG and Purchasing group related to particular company code.
I know that based on the ORG ID of the company code we can search in org structure and find it, but in which tables does that relation exist. Also I have looked in BBP_PDORG, but there we can find the Purchasing org and Purchasing group for a particular user created SC know... but how we find if we want to find the Purchasing ORG & Purchasing group based on company code in tables .. at least is there any function module for that???
hello,
please try function BBP_OM_FIND_SC - provide SEARCH_FOR parameter only.
to get the object id of company code you can use BBP_OM_READ_COMPANY_ID.
ls_search_buk-cocode = iv_company_code.
ls_search_buk-backend = iv_logsys.
CALL FUNCTION 'BBP_OM_READ_COMPANY_ID'
EXPORTING
is_search_buk = ls_search_buk
IMPORTING
es_company = ls_company
EXCEPTIONS
internal_error = 1
no_authority = 2
nothing_found = 3
OTHERS = 4.
CHECK sy-subrc = 0.
ls_object-otype = ls_company-otype.
ls_object-objid = ls_company-objid.
CALL FUNCTION 'BBP_OM_FIND_SC'
EXPORTING
search_for = ls_object
IMPORTING
hitlist = et_purch
EXCEPTIONS
internal_error = 1
nothing_found = 2
no_authority = 3
OTHERS = 4.
CHECK sy-subrc = 0.
Kind regards,
Marta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ganesh,
Thanks for the reply... I have checked that.. but basically i want to know the Tables or Function modules where it gets stored.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
check in PPOSA_BBP in the function tab.
For a particular company code you can check the Purchasing org and purchasing group if assignment is made.
Basically this is coming from ECC 6.0 only . Assignment of purchasing organisation and company code
In ECC 6.0 - check T.code : EC01 and EC02
Regards
G.Ganesh Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.