I have a scenario in Business Workflow where I want to catch the data(BKPF & BSEG) after SAP transaction processing - event is to change parked FI-document with FBV2. I´m trying to use BTE to receive the data after processing transaction.
All BTE steps seems to be activated - because I can debug my functions when processing FBV2 - but I cannot reach any data into my coding after processing.
I have created my project in BF24:
ZXXX Testing: WF-memory ID
00001130 ZXXX ZXXX_FIPP_CHANGE_BTE
00002213 ZXXX ZXXX_FIPP_CHANGE_BTE
00002217 ZXXX ZXXX_FIPP_CHANGE_BTE
DATA: memid(15) VALUE 'ZXXX_2217'.
FREE MEMORY ID 'ZXXX_2217'.
*Backtracking of BTE
TO MEMORY ID memid.
data: memid(15) value 'ZXXX_2217'.
CALL TRANSACTION 'FBV2'.
*Import memory of BTE
FROM MEMORY ID memid.
*Free memory id
FREE MEMORY ID memid.
When I set a breakpoint to both of the functions and I execute FBV2 I reach the breakpoints. Problem is that the data is not passed from memid 'ZXXX_2217' into function after FBV2(this syntax: IMPORT t_vbkpf t_vbsegs FROM MEMORY ID memid.)
What could be missing. So both functions are called but NO DATA is passed from memory ID to my internal tables? This seems to be a problem with memory ID´s. Also in my BTE function ZXXX_FIPP_CHANGE_BTE I receive a sy-subrc value 4 when executing syntax "FREE MEMORY ID 'ZXXX_2217'. ".
All hints appreciated,