Uhm
As you can see you've two codes for every wt lines, the first code is not editable
Both the codes are the same values:
- First CB, CB
- Second CF, CF
The wt codes you need to transfer to your posting are from master data (I don't know if it's for vendor, LFBW, or customer, KNBW)
I suppose the order to show the wt depends on how they are set in master data
Now, I've never used fm POSTING_INTERFACE_DOCUMENT directly, but it's used by BI standard RFBIBL00 and I've used it many many times.
Usually the lines of wt have to have both codes, if it doesn't need to fill a code, this code has to fill with 'blank'
So if It moved the wt for RFBIL00:
- CB lines:
WITH_ITEM-WITHT = 'CB'
WITH_ITEM-WT_WITHCD = SPACE
WITH_DIALG-WT_BAS = 0.
- CF lines:
WITH_ITEM-WITHT = 'CF'
WITH_ITEM-WT_WITHCD = 'CF'
WITH_DIALG-WT_BAS = 500.
I repeat this is how the wt lines should be preparated for RFBIBL00, but this program calls POSTING_INTERFACE_DOCUMENT so I suppose it should be preparated in the same way.
You can also considere to use RFBIBL00 instead of fm
Max