10-21-2009 9:37 PM
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!
10-23-2009 3:43 PM
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.
10-27-2009 2:50 PM
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
10-27-2009 2:50 PM
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