‎2011 May 10 5:42 PM
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!
‎2011 May 10 7:00 PM
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.
‎2011 May 10 9:26 PM
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?