cancel
Showing results for 
Search instead for 
Did you mean: 

Intercompany PO process, Error F5165 while doing PGI in outbound delivery

kumarg5
Participant
0 Kudos

Hi all,

I am doing an inter-company PO with delivery & billing process.

i have configured the one step procedure in the STO config so that the movement type triggered while PGI in delivery will be 645.

But when i do the PGI (Post Goods Issue) in the outbound delivery, i am getting an error message no: F5165 "company code ' ' not defined".

I have checked the settings like both the supplying site & receiving site have company codes & sales orgs assigned in respective companies.

I am not sure why this error F5165 is coming.

how to identify what is the issue.

Please help.

regards,

kumar

Accepted Solutions (0)

Answers (1)

Answers (1)

kumarg5
Participant
0 Kudos

hi,

more information.

the exact error message details are as mentioned below.

-


Company code is not defined

Message no. F5165

Diagnosis

Colmpany code "" has not been created in financial accounting.

System response

System error

Procedure

Correct the entry or create the company code using the financial accounting customizing functions.

-


regards,

kumar

jpfriends079
Active Contributor
0 Kudos

Hello,

This b'coz, while Function module FM_CO_ASS_INPUT_GET_SD was called in background without company code.

And customizing is incomplete concerning

- company code (T001K-BUKRs) or

- valuation area (T001W-BWKEY).

Or may be field WERKS is not maintained in the preceding document (order) for the corresponding delivery item. As a result, the system does not find a valuation area in table T001W as well.

For further reference you can refer following SAP Note

- 509033: Goods issue: Error F5165 when posting goods movements

Regards

JP

kumarg5
Participant
0 Kudos

thanks Prakash for the quick reply.

i have checked this note 509033.

but i could not understand the reason why the FM FM_CO_ASS_INPUT_GET_SD was called without company code?

any ideas on how to identify the reason or how to resolve this issue..

please help.

regards,

kumar

jpfriends079
Active Contributor
0 Kudos

The SAP Note which you referred is consulting note.

Check the fields as I mentioned in my previous post

- company code (T001K-BUKRS) or

- valuation area (T001W-BWKEY).

- may be field WERKS is not maintained in the preceding document (order) for the corresponding delivery item. As a result, the system does not find a valuation area in table T001W as well

So, in case to avoid this error your config should have these table-field combination which you are used transaction data

Table-Field

Table-desc

Field-desc

T001K-BUKRS

T001K-Valuation area

BUKRS-Company Code

T001W-BWKEY

T001W-Plants/Branches

BWKEY-Valuation Area

T001W-WERKS

T001W-Plants/Branches

WERKS-Plant

Regards

JP

kumarg5
Participant
0 Kudos

hi JP,

I have checked these tables T001K, T001W for both the supplying site & receiving site.

The sites/ valuation area & company codes exist.

i have also checked the preceding document (purchase order) table EKPO for the field WERKS and EKKO-BUKRS

& LIKP, LIPS tables also.

the valuation area & company code fields are not blank or inconsistent in any of the above mentioned tables.

can you please help me how to resolve this issue.

regards,

kumar

jpfriends079
Active Contributor
0 Kudos

Ok. try with following SAP Note

- 1569831 - MAA2: Composite SAP Note after Support Package SAPKH60504 (Program Error - valid since 17.08.2011)

Regards

JP

kumarg5
Participant
0 Kudos

hi JP,

thanks for the note.

but, this note is not applicable for our system. we have support package SAPKH50***.

checked with basis team, note is not applicable.

can you please suggest how to resolve this issue.

regards,

kumar