Hi Sandeep,
Kindly check whether the ERP system ( RFC ) and APO system ( RFC ) are maintained in the system data container.
Try recording both the process seperately.
Refer the scripts with target system which should be maintained in the System data Container.
Eg :-
REF( VA01 , VA01_1 , TARGET_SYSTEM ).
This will help the eCATT to switch between the target system.
Regards,
Sheetal