cancel
Showing results for 
Search instead for 
Did you mean: 

Purchasin Org

Former Member
0 Kudos

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???

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

Ganesh,

Thanks for the reply... I have checked that.. but basically i want to know the Tables or Function modules where it gets stored.

Former Member
0 Kudos

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