cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_INCOMINGINVOICE_CREATE

Former Member
0 Kudos

Hi Experts,

I need to post PO IR with BAPI_INCOMINGINVOICE_CREATE.

But I need change the profit segment of the PO item.

I can change the profit segment in MIRO, but I cannot find where I can pass the profit segment into BAPI_INCOMINGINVOICE_CREATE. Please help.

Thanks,

Urchin

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Finally found out the solution, we can create a profit segment by calling COPA_PROFITABILITY_SEGMENT and then pass the PA segment number into the BAPI.

Former Member
0 Kudos

HI,

Coould you please cross check the values that are used in the

ACCOUNTINGDATA & GLACCOUNTDATA information in BAPI.

Here the PS Acct Assignment related information will be tracked.

BR,

Rajani

Former Member
0 Kudos

Dear both,

Thanks a lot. But I want to change the COPA profit segment (like the field in table CE4), not the profit center.

I find that there is a field PROFIT_SEGM_NO in the structure ACCOUNTINGDATA. Can I use this field? If so, how?

Thanks,

Urchin

Former Member
0 Kudos

HI Urchin,

Yes its possible, You can change COPA values whcih are replicated in CE4* table.

But you can not change using the PROFIT_SEGM_NO. The PROFIT_SEGM_NO will be generated after the document posting.

Let me know what are all the things you are trying to change accordingly i will guide you in detail process.

BR,

Rajani

Former Member
0 Kudos

Dear Rajani,

Thanks a lot.

We have included the field "customer" in the CE4 table.

When creating the PO, user has input the customer int he profit segment of the PO item.

However, user wants to split the amount into 2 different customers during IR.

I know that in the MIRO screen, we can change the account assignment and split the customers,

but I do not know how to do the same with the BAPI.

I need to provide an upload function for users to post PO IR,

if I cannot use BAPI, I cannot write the upload function.

Thanks,

Urchin

Former Member
0 Kudos

Hi,

For this requirement i am not sure about the BAPI.

For achieving the issue its better use the user exits mentioned below.

For COPA updation part:

EXIT_SAPLKEII_001 & EXIT_SAPLKEII_002.

As these two user exits are the final steps before generating COPA doc.

While updating the required data in the CE4* table use the FM: DB_UPDATE_TABLE

I hope this wil help your problem.

Regards,

Rajani

Former Member
0 Kudos

Dear Rajani,

Thanks a lot.

But if I use COPA user-exit, it will create inconsistency between COPA and the FI document.

Also, I may need to create a Z table to store the desired COPA values.

This is very not feasible for my case.

Thanks,

Urchin

Former Member
0 Kudos

Hi,

Check in this structure BAPI_INCINV_CREATE_GL_ACCOUNT this structure is used in the BAPI "BAPI_INCOMINGINVOICE_CREATE" you have to pass your profit center and all account related details into this structure.

For more info please check the where used list of the same bapi

Regards

Laxmi