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

Custom fields in BAPI_INCOMINGINVOICE_PARK

former_member182371
Active Contributor
0 Likes
2,145

Hi,

i´ve added "custom" fields in RBKP table by means of an append structure following the instructions of a badi implementation.

i´d love to have this "custom" fields available when using BAPI_INCOMINGINVOICE_PARK.

That is, i need to have them available as input parameters of the bapi.

The structure used in the standard is BAPI_INCINV_CREATE_HEADER. What i need is to have within the former structure my z fields:

e.g. BAPI_INCINV_CREATE_HEADER-ZZCUSTOMFIELD_1,

BAPI_INCINV_CREATE_HEADER-ZZCUSTOMFIELD_2,

...etc.

is there a way to do this?

copying the standard bapi to a Z one is a feasable solution?

Best regards.

Hi,

i´ve added "custom" fields in RBKP table by means of an append structure following the instructions of a badi implementation.

i´d love to have this "custom" fields available when using BAPI_INCOMINGINVOICE_PARK.

That is, i need to have them available as input parameters of the bapi.

The structure used in the standard is BAPI_INCINV_CREATE_HEADER. What i need is to have within the former structure my z fields:

e.g. BAPI_INCINV_CREATE_HEADER-ZZCUSTOMFIELD_1,

BAPI_INCINV_CREATE_HEADER-ZZCUSTOMFIELD_2,

...etc.

is there a way to do this?

copying the standard bapi to a Z one is a feasable solution?

Best regards.

5 REPLIES 5
Read only

jordi_escodaruiz
Active Participant
0 Likes
1,792

Hi Pablo:

In case you are using SAP version ECC6, you can enhance interface for the BAPI.

You can read about Enhancement Framework:

http://help.sap.com/saphelp_nw04/helpdata/en/3e/0e1089c24611d1ad09080009b0fb56/content.htm

Best regards.

Jordi.

Read only

former_member182371
Active Contributor
0 Likes
1,792

Hi,

After reading the SAP documentation i still don´t have a clear idea of what i have to do in order to have my custom "Z" fields available in header structure of BAPI_INCOMINGINVOICE_PARK:

HEADERDATA LIKE BAPI_INCINV_CREATE_HEADER

Could someone please give a hint?

Best regards

Read only

0 Likes
1,792

Hi Pablo:

I didn't have the chance to enhance a BAPI interface, neither to use enhancement points, but I read it is possible.

Try this:

Go to SE37, and display the BAPI you wish.

Select the Import or Export Tab.

Go to Menu: Function Module -> Enhance Interface, and select an existing enhancement Interface, or create a new one. Follow the steps.

Later you will have to handle it by using enhancement points, and enhancement points implementation.

This works for ECC6. For 4.6C does not work. Enhancement framework is a new feature.

Hope this helps.

Read only

former_member182371
Active Contributor
0 Likes
1,792

Hi,

i´ve finally solved the question copying the standard bapi to a Z one and doing my changes

inside the fm.

Best regards.

Read only

0 Likes
1,792

Hi Pablo:

Of course, this is a solution.

But has the drawback that in the future, in case of an upgrade, if SAP modifies the BAPI, your ZBAPI may not work properly.

Best regards.

Jordi