We have a landscape wherein, POS transaction data is posted from 3rd party POS to POSDM thro XI and then to SAP ERP Retail, thro Idocs.
We have done all configurations for two step processing with respect to Sales & Payment transactions and everything is working fine in POS Workbench.
But our client requirement is that in case of payment (tender) by credit card, the Credit transaction ID needs to be captured in payment message (WPUTAB) and has to be posted in SAP ERP. We tried posting the data into POSDM with the necessary transaction ID field populated using the Idoc message type /POSDW/POSTR_CREATEMULTIPLE01, but when the outbound Idoc for payment (WPUTAB) is generated in POSDM, the transaction Id field is not available.
We debugged the issue and found that during processing of the outbound task, the value of the nested fields for credit card data (CREDITCARD) in the aggregation structure /POSDW/TT_AGGR_TENDER_W_DETAIL is null, because of which the Transaction ID field is not populated in the idoc segment.
Can u pls let us know if you have any idea why this is happening or any other means of resolving this issue ?
I am sure the 3rd Party POS is capturing the Transaction ID for the credit card and why dont you incorporate this logic in the inbound mapping(POS to POSDM),in such a way that /POSDW/BAPITENDER has this transaction id passed on to REFERENCE ID - field if the TENDERTYPE CODE is VISA(for eg) which then can be picked up at the time of outbound processing and passed on to REFERENZ1 field of WPUTAB idoc using segment E1WPZ02
Alternatively,you can use customer enhancement segment E1WXX01 and use foer eg Field Group - CRED,Field Name as TRANSID Field Value - XXXXXXX
Hope it helps.