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

BAPI modification, BAPI_INCOMINGINVOICE_CREATE

Former Member
0 Likes
1,101

Hi,

I want to add a table to the following BAPI as it is not fullfilling my requirement.

Is there anyway to do this. Please let me know how to do this. If you have any example please share with me. My mail ID: <b>k_nreddy@yahoo.com</b>

FUNCTION bapi_incominginvoice_create.

*"----


""Lokale Schnittstelle:

*" IMPORTING

*" VALUE(HEADERDATA) LIKE BAPI_INCINV_CREATE_HEADER STRUCTURE

*" BAPI_INCINV_CREATE_HEADER

*" VALUE(ADDRESSDATA) LIKE BAPI_INCINV_CREATE_ADDRESSDATA

*" STRUCTURE BAPI_INCINV_CREATE_ADDRESSDATA OPTIONAL

*" EXPORTING

*" VALUE(INVOICEDOCNUMBER) LIKE BAPI_INCINV_FLD-INV_DOC_NO

*" VALUE(FISCALYEAR) LIKE BAPI_INCINV_FLD-FISC_YEAR

*" TABLES

*" ITEMDATA STRUCTURE BAPI_INCINV_CREATE_ITEM

*" ACCOUNTINGDATA STRUCTURE BAPI_INCINV_CREATE_ACCOUNT OPTIONAL

*" GLACCOUNTDATA STRUCTURE BAPI_INCINV_CREATE_GL_ACCOUNT OPTIONAL

*" MATERIALDATA STRUCTURE BAPI_INCINV_CREATE_MATERIAL OPTIONAL

*" TAXDATA STRUCTURE BAPI_INCINV_CREATE_TAX OPTIONAL

*" WITHTAXDATA STRUCTURE BAPI_INCINV_CREATE_WITHTAX OPTIONAL

*" VENDORITEMSPLITDATA STRUCTURE BAPI_INCINV_CREATE_VENDORSPLIT

*" OPTIONAL

*" RETURN STRUCTURE BAPIRET2

*"----


4 REPLIES 4
Read only

Former Member
0 Likes
853

Hi,

What do you mean by "adding table". Please clarify your requirement.

Regards,

RS

Read only

0 Likes
853

I want to pass some extra data(in a table) to the BAPI and write logic as per the business requirement inside the BAPI.

Read only

0 Likes
853

Hi,

There is no "Extension" structure/table in this BAPI. You cannot add extra data in any table.

Let me know your complement requirement, there may be an alternative.

Regards,

RS

Read only

0 Likes
853

Hi RS,

Thanks for your reply. My requirement is...........

I have to post Incomming Invoice data coming from legacy system through XI using BAPI_INCOMINGINVOICE_CREATE. We have an interface already developed and working fine at the moment.

But, now we get some more additional data(CO-PA) along with the invoice data in the same file. We have to modify the interface so as to post the CO-PA data also.

But, the above mentioned BAPI has no Import, Export or Table parameters to handle this. So, i wanted to modify it by adding new table parameter to accept additional data and change the logic accordingly to post the CO-PA data.

I dont know if it is possible. If you have any other idea to solve this problem please share with me..