Application Development 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: 

using BAPI_INCOMINGINVOICE_CREATE with custom field

Former Member
0 Kudos

Hi,

we are using BAPI_INCOMINGINVOICE_CREATE to upload some invoices.

The problem is that we have amended the BSEG table by adding a custom filed for capturing some information (e.g BSEG-ZFIELD).

Is it possible somehow to enhance this BAPI to populate this custom field in the BSEG table, e.g.

1) append structure to the parameter BAPI_INCINV_CREATE_ACCOUNT

2) find an exit in the BAPI to map BAPI_INCINV_CREATE_ACCOUNT-ZFIELD to BSEG-ZFIELD?

any advise would be appreciated

Thanks!

3 REPLIES 3

Former Member
0 Kudos

check there must be a parameter of name "extensionin" under importing parameter in BAPI, you can pass ur appended BSEG fields in that.

you need to append the BSEG fields in related BSEG structures.

for more information check the extensionin long-texts under table tab in BAPI.

Or you can search for BAPI-EXTENSIONS in SCN or google, you'll find useful stuff.

0 Kudos

Thanks!

This BAPI does not have the extensionin parameter.

Seems the solution is to append structure to BAPI_INCINV_CREATE_ACCOUNT (ACCOUNTINGDATA table) to pass zfield to the BAPI and then to use an implicit enhancement point at the end of the form "cobl_mrm_fill"(LMRM_BAPIF04 include) to assign e_cobl_mrm-zfield = i_accountingdata-zfield.

(BSEG table was amended with the customer include CI_COBL, which automatically changed all the structures with this CI).

Looks like it worked

0 Kudos

Thanks!

This BAPI does not have the extensionin parameter.

Seems the solution is to append structure to BAPI_INCINV_CREATE_ACCOUNT (ACCOUNTINGDATA table) to pass zfield to the BAPI and then to use an implicit enhancement point at the end of the form "cobl_mrm_fill"(LMRM_BAPIF04 include) to assign e_cobl_mrm-zfield = i_accountingdata-zfield.

(BSEG table was amended with the customer include CI_COBL, which automatically changed all the structures with this CI).

Looks like it worked