‎2010 May 20 8:40 AM
Hello All,
Im using BAPI_INCOMINGINVOICE_CREATE for posting the Incoming Invoice through MIRO.I populated related fields into header and item tables .The problem is , i want to select the PLANNED DELIVERY COSTS from the dropdown (extreme right) in the PO reference tab of Miro.The field for this is XWARE_BNK.To which field in the header/item i need to MAP this field ?
Since i have'nt mapped this yet,the system by default takes the first from the drop down i.e.(Goods/Service Items) and the flow is going wrong...
Please help resolve...
Regards,
‎2010 May 20 9:43 AM
Hi,
the main problem is, that this field is not saved 1:1 to the database. the field XWARE_BNK control the fields
XWARE and XBNK in table RBKPB.
Example coding
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.
i tried to find the filelds in the BAPI: --> FOUND !
ADDITIONALHEADERDATA-sel_goods TO e_rbkpv-xware,
ADDITIONALHEADERDATA-sel_deliv_costs TO e_rbkpv-xbnk,
So, accordingly the example coding you have to fill the two fields to get the respective XWARE_BNK value
sel_goods = 'X' and sel_deliv_costs = SPACE -> XWARE_BNK = '1'
sel_goods = SAPCE and sel_deliv_costs = 'X' -> XWARE_BNK = '2'
sel_goods = 'X' and sel_deliv_costs = 'X' -> XWARE_BNK = '3'
Hope this helps, Mike
<removed by moderator>
Edited by: Thomas Zloch on May 20, 2010 3:59 PM
‎2011 May 10 5:19 PM
I want to find field RM08M-XWARE_BNK in BAPI_INCOMINGINVOICE_CREATE
I can not see additional hearder data 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 Sep 19 9:08 PM
Dear ramdass_abap and jeet S,
I had the same situation and here is the way I solved it by using the BAPI_INCOMING_INVOICE create. The field in MIRO that defines the planned delivery costs is the result of the combination of the fields COND_TYPE, COND_ST_NO and COND_COUNT in the function. You can see below what is the rule to use it.
Posting purchase order items or planned delivery costs
1. If the fields Condition Type (COND_TYPE), Level Number (COND_ST_NO), and Condition Counter (COND_COUNT) are blank, the system creates an invoice for a purchase order item.
2. If the fields Level Number (COND_ST_NO field) and Condition Counter (COND_COUNT field) or Condition Type (COND_TYPE field) are populated, the system creates an invoice for a purchase order item with planned delivery costs.
If you do not enter any data in the following fields, the system determines the data according to the priorities specified. If the system cannot determine any data, it returns appropriate return messages from the method call. These are listed in the return parameter.
I had the same situation and that was the way I solve it.
Best regards,
Rafael Verediano