‎2011 May 13 12:20 AM
Hi experts,
Background: we added a custom field to transaction FBD1 and FBD5, it works perfectly, I used BADI FI_HEADER_SUB_1300.
F.14 is a standard transaction that creates batch sessions for FBD5. I have also added code to standard transaction F.14 and it creates the batch session perfectly (I activated an enhancement spot). Here comes the problem: the batch session work in foreground but in background it says that my custom field does not exist. I can even see the screens of the sessions and my field is there, even populated.
If I create a recording manually from SM35, it works, no matter which options (background, foreground)
Any ideas?
Thanks
Edited by: carlosrv on May 13, 2011 1:23 AM
‎2011 May 13 12:31 AM
The documentation for this program (SAPF120) talks about running SAPF120G and SAPF120R in case there was any screen modification done. Did you run those?
‎2011 May 13 3:28 PM
Thanks Tamas,
I actually executed SAPF120G and re-generated SAPF120, however I still have the issue.
‎2011 May 13 4:46 PM
As an update, I realized that the error is "Field ZFI_TA4_CODES-ZTA4COD. does not exist in the screen SAPMF05A 0125" however that field is in a subscreen, seems that SAP does not detect that is a subscreen while running in background mode.
The lines that I am adding to my BDC table are:
BDC_SUBSCR SAPMF05A 1300APPL_SUB_T
BDC_SUBSCR SAPLZFI_BADI_1300 1300APPL_SUB
ZFI_TA4_CODES-ZTA4COD 118
Again, it works perfectly in foreground