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

MIRO BAPI

Former Member
0 Likes
1,296

I want to find a field for RM08M-XWARE_BNK in BAPI_INCOMINGINVOICE_CREATE to map

I can not see in this BAPI. Can someone help me?

If this field is not there then does it need to be created if so then how I can create it?

Thanks!

2 REPLIES 2
Read only

former_member191735
Active Contributor
0 Likes
791

Seems it is not being used in the BAPI you have provided but here is more info about the field you are looking for

There is no direct relationship to other fields in any table but see the following code from MIRO

check rm08m-referenzbelegtyp eq '1' or

rm08m-referenzbelegtyp eq '5'.

case rm08m-xware_bnk.

when 1.

rbkpv-xware = 'X'.

rbkpv-xbnk = space.

when 2.

rbkpv-xware = space.

rbkpv-xbnk = 'X'.

when 3.

rbkpv-xware = 'X'.

rbkpv-xbnk = 'X'.

endcase.

This one sets values to two other fields based on the selection. So when you run the bapi, you better look for XWARE and XBNK and do your magic to set them as per the requirement.

Then XWARE and XBNK are used in the structure BAPI_INCINV_SAVE_HEADER_BACKGR and the same structure used in business object bus2081 which is incoming invoice. unfortunately, this is not being used in the BAPI that you are searching for but in BAPI_INCOMINGINVOICE_SAVE.

Read the bapi documentation for functions and restrictions.

in other words, you can try using EXTENSIONIN parameter in bapi incoming invoice create. Search google and/or SDN for sample code. You have to do some debug and also try creating without even providing that particular indicator.

good luck.

Read only

0 Likes
791

So I either have to use this piece of code you have provided OR

create these two fields in BAPI structure EXTENSION1 ?

Am i right?