‎2009 Jul 02 6:42 PM
I have a BDC for transaction F-63 that parks accounting documents. When it is time to save the document, it sets the OKCODE to '=BP'. It then produces an error session and the error is "Function Code Cannot Be Selected".
When I run the same file through the BDC in Dev, it processes fine saving the document. It is ony in Production that I get the error.
Does anybody have any ideas??
Thanks!
‎2009 Jul 02 6:46 PM
‎2009 Jul 02 6:49 PM
Works fine in QA.
When I step through All Screens in the foreground in both environments, the screen flow and OKCODES are identical.
Edited by: Aaron Morden on Jul 2, 2009 1:50 PM
‎2009 Jul 02 6:50 PM
Hi ,
It seems that there is a difference in the screen flows in the two systems, the ok codes that you are passing to the BDCDATA internal table is not right. Check the differneces in the screen flows in the two systems.
Regards,
Himanshu
‎2009 Jul 02 6:51 PM
It could be that configuration is different in PRD. What happens when you process the error session? Do you get the same screens?
Rob
‎2009 Jul 02 6:53 PM
When we process the error session we get the same screens. After we get the "Function Code Cannot Be Selected" message, we are able to click the save icon and the document gets parked successfully.
‎2009 Jul 02 7:48 PM
Hi,
Check the okcode in the program for the last screen where you hit the save button might be thats not right in the program.
Regards,
Himanshu
‎2009 Dec 17 7:56 PM
I changed the value of the OKCODE in the BDC to '=PBBP' and it is working now. Not sure why '=BP' was not working in Prod.
If I display the Function List in transaction SE41 for program SAPLF040, it lists BP & PBBP as the Function Code for Save.
‎2009 Dec 17 8:10 PM
‎2009 Dec 17 8:14 PM
No problem. I'm glad it's working, but I'm still curious why =BP all of a sudden decided not to work in Prod only.
Oh well, thanks for your help!
‎2010 Oct 19 8:15 AM
Check TCODE FB00, there is an option 'Document must be complete for parking'. if this check box is on then OK code should be 'PBBP'( BDC will check whether parking document is complete ). If the check box is off then OK code is 'BP' ( save only ). Hope this can help your guys!