cancel
Showing results for 
Search instead for 
Did you mean: 

CO-PA postings

Former Member
0 Kudos

Hi,

I have an exisgting interface for posting Incoming Invoice. I get the data from Legacy through XI interface. Legacy side i have File adapter and R/3 side ABAP Proxies. This interface uses BAPI_INCOMINGINVOICE_CREATE function call.

But, now my requirement is, i will get some more extra fields related to COPA along with incoming invoice data through the same interface. Where should i implement the logic to post the COPA data. There are no parameters in BAPI_INCOMINGINVOICE_CREATE function module related to COPA fields !!

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

HI,

Clarify with functional team to gt n exact diff of BAPI and if enhancements are required then use Custom BAPI.

Regards

Chilla..

prabhu_s2
Active Contributor
0 Kudos

also u can check with BAPi_ACC_DOCUMENT_POST for CO-PA post

Former Member
0 Kudos

you mean we have to use another BAPI without disturbing the existing one ?

Former Member
0 Kudos

if you dont have that field in bapi you have to use other BAPI which have all the fields

prabhu_s2
Active Contributor
0 Kudos

yes u need to use another bapi for this case. try with the bapi i'd given u

Former Member
0 Kudos

Hi Prabhu,

even in the BAPI that u mentioned ( BAPi_ACC_DOCUMENT_POST ) I dont have all the CO-PA related fields i do have some but not all...

In this case is it possible to add some more fields to the COPA structure of the above BAPI ?

Former Member
0 Kudos

yes you can add by extending that BAPI which is ZBAPI . i would suggest use our current and extended it by adding missing fields and make it zbapi

regards

sreeram.g.reddy

prabhu_s2
Active Contributor
0 Kudos

we can add the fields in a customized BAPI but again if u cannot find it in a std bapi then functionalites for updating those fields values in sap willnot be handeled. u need to check for other bapi or u may need to have on created which adds all ur fields defintion for target

prabhu_s2
Active Contributor
0 Kudos

also u can check with: BAPI_COPAACTUALS_POSTCOSTDATA

Former Member
0 Kudos

Hi,

In any case i have about 10 COPA fields to be posted. So, Is it okay if I add those fields to the existing COPA structure in one of those BAPI ?

Do we ge all the functionality if we copy the std BAPI to ZBAPI as suggested by Sreeram ?

prabhu_s2
Active Contributor
0 Kudos

i hope u cant get this functionality done just by inlcuding those in the cutomized bapi. first u need to check with the bapi if those fields are handeled.. if not then u cannot do this. As per sreeram he had meant on customization of bapi and pls note that all bapi f/n mod starts with bapi* and not with Z prefixed. so u need first check if the fiedls are handeled in the bapi or u may need to write on new bapi to address this fucntionality

Former Member
0 Kudos

Prabhu & Sreeram,

Thanks for your time in answering my questions with patience. I will look into this problem indetail as suggested and shoot out any questions that may arise.

Thanks,

knreddy.

prabhu_s2
Active Contributor
0 Kudos

sure. keep us posted for issues on the same. also if ur prev post on learning xi is anwsered kindly close the thread with points given to helpful replies

Former Member
0 Kudos

Hi Prabhu,

I was looking at BAPI_ACC_DOCUMENT_POST but, the problem is that I receive the Header Data for Invoice which can't be used in BAPI_ACC_DOCUMENT_POST header. Because, this BAPI meant for posting Accounting Data .

Is there any other BAPI which can take COPA data directly (or along with Invoice data) and post into the application ?

Waiting for reply

prabhu_s2
Active Contributor
0 Kudos

not much sure but need to search for it. goto se37 and give bapi* and search for it. will keep u posted on this.

Former Member
0 Kudos

KN,

try with this BAPI's.

BAPI_ACC_INVOICE_RECEIPT_CHECK Accounting: Check Invoice Receipt

BAPI_ACC_INVOICE_RECEIPT_POST Accounting: Post Invoice Receipt BAPI_ACC_INVOICE_REV_CHECK Accounting: Check Reversal of Invoice

BAPI_ACC_INVOICE_REV_POST Accounting: Post Invoice Receipt Reversal

Former Member
0 Kudos

Hi Prabhu,

I was searching for a BAPI that could fulfill my req. But, end up with none.

Here are the filds that i get from XI and these are crrently posted by BAPI_INCOMMINGINVOICE_CREATE.

You can also see in the bottom additional filds that will come now. I need to post them aswell. Please help me with this issue. I struck with this for 2 days.

<u><b>INVOICE HEADER DETAILS</b></u>

Line Indicator

Transaction/Event

Document Type

Document date

Posting Date

Reference

Amount

Currency

Tax amount

Tax code

Text

Company Code

Payment Terms

Payment Method

Payment block

Assignment

Header Text

Invoicing Party

Payee

Partner Bank

<u><b>INVOICE ITEM DETAILS.</b></u>

Line Indicator

Purchase Order

Purchase OrderLine item

Amount

Quantity

Unit of Measure

Tax Code

Jurisdiction Code

Line Item Text

GL Account

Cost Center

Order

Asset

Profit Center

<u><b>New ITEM details (COPA fields) </b></u>

Region

Carline

Model Year

Model Code

MSC Code

Accessory Code

Source

Parts Major Class

Part Minor Class

Parts Location

Part Adjustment Code

Customer Type

Warranty Product Type Code

prabhu_s2
Active Contributor
0 Kudos

u may need to check in mapping. for his ensure that COPA fields are there in the BAPI

Former Member
0 Kudos

That is my problem, I dont have the COPA fields in my BAPI

Any Idea how to overcome this problem....