Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Intercompany code posting using Idoc ACC_DOCUMENT , ACC_DOCUMENT03

Former Member
0 Likes
3,725

Dear Experts,

I am using ACC_DOCUMENT03 idoc to post the FI document  through excel data. I need to  enhance  the same program  to post inter company code  FI document  as well.

I have checked the segment types  E1BPACHE09,E1BPACGL09 fields  but i  could not find any field related to cross company code  field.

Can you please help me on this.

As per my knowledge . we can post inter company code posting using the tcode FB01.

Thanks and regards,

Purna

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,985

Hi

If the field you need is not managed in the standard segments you can try use the enhancement, that means to use the segment  E1BPPAREX.

Your idoc should use the BAPI  BAPI_ACC_DOCUMENT_POST and the data of E1BPPAREX are transfered to table parameter  EXTENSION2 of the BAPI

Then you need to implement the BADI ACC_DOCUMENT in order to get the data from extensios and put them in your document (I suppose ACCIT structure)

Max

8 REPLIES 8
Read only

Former Member
0 Likes
1,986

Hi

If the field you need is not managed in the standard segments you can try use the enhancement, that means to use the segment  E1BPPAREX.

Your idoc should use the BAPI  BAPI_ACC_DOCUMENT_POST and the data of E1BPPAREX are transfered to table parameter  EXTENSION2 of the BAPI

Then you need to implement the BADI ACC_DOCUMENT in order to get the data from extensios and put them in your document (I suppose ACCIT structure)

Max

Read only

0 Likes
1,985

Hi Max,

Thanks  for your reply  and helping me here .

I can pass extra fields(Cross company code  ) from my program to IDoc extension segment and read that data  from C_EXTENSION2  of  BADI  but here problem is that the  badi ACC_DOCUMENT parameters dont have cross company  code  field to map .

I am not able  see cross company code field value (BKPF-BVORG)   in structures  ACCIT , ACCHD.

Thanks and Regards,

Purna

Read only

0 Likes
1,985

Hi Max,

Please see  my requirement below .

We can use the F-02 tcode to post the  cross company code FI  posting , means  two documents will be created at a time. Same functionality I have to do through my idoc program.

if we  use BDC recording  for F-02, we can post two documents at a time (one in normal co code and another one in cross co code )  but in my case  i cannot use  BDC , have to do this through idoc

Thanks and regards,

Purna.

Read only

0 Likes
1,985

I suppose the field BKPF-BVORG can be used by FI posting only, so it's not available in the structure ACCIT:


this structure is used to transfer accounting data from other module or other system  to FI




The easier solution should be to use the BDC, you can use the standard program RFBIBL00 or an your own recording: so why can't you use a BDC?

Read only

0 Likes
1,985

Hi Max,

Thanks for your time and  helping me here .....

Business asked  us to  use idoc only for posting FI documents  why because if it is a idoc they can easily track the posted data and use reporting  purpose too.

as we know if it is a idoc we can reprocess the failed  idoc too .

I almost completed My development  and FI document is posting through idoc, now I need to enhance my program to work for cross company code too and can't use BDC.

Thanks and Regards,

Purna

Read only

0 Likes
1,985

Hi

I mean: you can use a Z-idoc instead of the std one?

Your Z-idoc can be created as copy of the std one, but you can use BDC instead of the BAPI

Honestly I can't know if the BAPI  BAPI_ACC_DOCUMENT_POST (used by  IDOC ACC_DOCUMENT3) supports what you need

Max

Read only

0 Likes
1,985

Hi Max,

   I am able to post  the FI documents in both company codes (normal co code and cross company code ) by following below thread.

in case of cross company code posting using  ACC_DOCUMENT03 idoc type,  we have to do coding like below.

First line item of idoc segment  company code should match with header company code segment  and we have  to populate the  cross company code form second line item on wards as per excel data then both documents will be posted .

Thanks and Regards,

Purna

Read only

0 Likes
1,985

Thank you very much to share these informations

I didn't know it

Very well