Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BDC Error (F-63) - Function Code Cannot Be Selected

aaron_morden2
Contributor
0 Likes
6,986

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!

10 REPLIES 10
Read only

Former Member
0 Likes
2,090

What happened in QA?

Rob

Read only

0 Likes
2,090

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

Read only

Former Member
0 Likes
2,090

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

Read only

0 Likes
2,090

It could be that configuration is different in PRD. What happens when you process the error session? Do you get the same screens?

Rob

Read only

0 Likes
2,090

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.

Read only

0 Likes
2,090

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

Read only

aaron_morden2
Contributor
0 Likes
2,090

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.

Read only

0 Likes
2,090

Thanks for the update.

Rob

Read only

0 Likes
2,090

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!

Read only

0 Likes
2,090

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!