Cross Company Posting through FB01
I am facing an issue in cross company posting through FB01. The program used for posting is RFEBBU00 and it is internally calling function module 'Posting_interface_document'. I am mapping cross-company code field 'RF05A-NEWBK' inside a user-exit to the BDC data structure FTPOST.
Through this mapping the program is able to do cross-company posting. But the field 'RF05A-NEWBK' is appearing in both first screen ( SAPMF05A,0100 )as well as second screen (SAPMF05A,0300). Actually it should come only to second (0300) screen.
Due to its appearance on first screen the system gives information message like 'field RF05A-NEWBK' does not exist in screen 0100. On hitting a ENTER key it is posting nicely in Foreground.
But when I run the program in background, it is not posting due to the above message.
I am doing mapping into a database table 'FEBEP' inside a user-exit. This table has 3 reserved bdc field names and 3 bdc field values.fnam1,fnam2,fnam3 and fval1,fval2,fval3.
mapping like this FEBEP-FNAM1 = 'RF05A-NEWBK'.
FEBEP-FVAL1 = 'second Cocode'.
There is no screen controling field in FEBEP.
Any help is welcome.