2 Part question pertaining to changing PMW DMEE output file name to include our specific "FILETYPE"
1. How do I change the filename dynamically and... (I've been reading about event 21)
2. If the resolution is to use event 21, can I access any fields in the tree to pass file type to event 21?
DMEEX Tree is used is configured to a specific Payment Method
During the setup for F110 Payment Run users enter info in the Free Selection tab to narrow down further the TYPE of open items. There are 3 different TYPES.
I use an EXIT to determine the FILE TYPE in the mapping and outputting it in the 2nd line of my formatted file. Basic logic is to look at one of the Vendors and check their Acct Group with a CASE statement.
WHEN 'N_2260445360' or 'N_3155287310'.
SELECT SINGLE KTOKK
From lfa1 INTO V_ACCT_GRP
WHERE LIFNR = <I_ITEM>-FPAYH-GPA1R." VENDOR NUMBER
IF V_ACCT_GRP = 'Z006'.
C_VALUE = 'TRAVEL'.
ELSEIF V_ACCT_GRP = 'Z004'.
C_VALUE = 'FOREIGN'.
C_VALUE = 'VENDOR'.