ME22N这种新的TCODE因为有新的控件在屏幕上,所以执行BDC会出错。
解决办法就是用BAPI或者ME22老TCODE来做。
具体请见http://sapfans.com/forums/viewtopic.php?t=272362&view=next&sid=3fe9a01071e5e08614ed42b46beaca50
Hi All,
I am using a report to update confirmation control in ME22N through BDC.
If i run the report in foreground it works fine and the conf contrl has been updated. But while running the report in Background mode(Program->Execute in Background) record has not been updated and spool is created with the below error Msg.
Unable to initialise ABAP Control
Control Framework: Fatal error -
Runtime error RAISE_EXCEPTION has occured
Please can you help to overcome this and thanks in advance.
ME22N being enjoy transaction, is not suitable for BDC. Also, it uses some frontend controls, which are not available in background mode.
Use BAPI_PO_CHANGE, which works nice.
In case you must use BDC, use transaction ME22.