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

Function Code Cannot be selected in BDC mode E only.

Former Member
0 Likes
3,525

Dear all,

I have a program to post a transaction in F-30 via BDC. For certain company codes, user will purposely insert invalid cost center in upload file in order to reach the error screen via BDC mode "E" to manually correct it instead of using the system default cost center. However,user encountered error message "Function code cannot be selected 00 025". BUT, user did not encounter this error message if they select BDC mode "A" with same steps !!!. Do anyone of u encounter this before and know the reason and how to resolve it? Thanks in advanced.

Regards,

CN

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,257

Hi CN,

  There are 2 different modes during BDC processing, Display mode and Update mode. If you want to stop right at the error screen, the modes should be set as below,

Display mode = 'E'  ( Stop only if error occurs )

Updtae Mode = 'L' ( Local update mode )

for more details on local update please do refer the below links.

http://scn.sap.com/thread/832996

Hope this will help you.

Regards,

Praveenkumar T.

14 REPLIES 14
Read only

Former Member
0 Likes
2,257

It is because message type you have used

Read only

0 Likes
2,257

Hi, I did not touch any message type there. Might to explain in further? Thanks

Read only

Former Member
0 Likes
2,259

Hi CN,

  There are 2 different modes during BDC processing, Display mode and Update mode. If you want to stop right at the error screen, the modes should be set as below,

Display mode = 'E'  ( Stop only if error occurs )

Updtae Mode = 'L' ( Local update mode )

for more details on local update please do refer the below links.

http://scn.sap.com/thread/832996

Hope this will help you.

Regards,

Praveenkumar T.

Read only

0 Likes
2,257

Hi, I want to resolve the "Function code cannot be selected" in mode "E" with update mode "L" because user cannot use mode "A" to change desired cost center for high volume of transactions. Please advice. THanks

Read only

0 Likes
2,257

Hi,

What is the Function code which is not getting accepted?

Is it 'BP', if yes try with 'PBBP'.

Thanks,

Shambu

Read only

0 Likes
2,257

Hi,

It is "=BS".

The BDC will have "SIMULATE" function, then user will double click on the line item they want to change the cost center. And then error message appeared.

Best regards,

CN

Read only

0 Likes
2,257

Hi CN,

It seems like the Simulate option in not enabled after the error message.

After entering the correct cost center, can you check whether the option Simulate is enabled in the screen?

Thanks,
Shambu

Read only

0 Likes
2,257

Hi Shambu,

Please refer to the following for more details:

Situation A with incorrect cost center in text file

1) User inserted invalid cost center in text file and run the program in BDC mode 'E'. The error screen will be shown and user corrected the cost center here, then click on "Tick" button.

2) The overview screen with all line items are shown. DR CR are balanced now. "SIMULATE" function is DISABLED. Double click on the GL account and hit "Function Code cannot be selected" error message

Situation B with CORRECT cost center in text file

1) User inserted valid cost center in text file and run the program in BDC mode 'E'.

2) The overview screen with all line items are shown. DR CR are balanced now. "SIMULATE" function is DISABLED. Double click on the GL account and hit "Function Code cannot be selected" error message

I think "Simulate" function is working fine as overview screen has balanced DR CR then thus it is disabled.

However, the message "Function code cannot be selected" is appeared as successful type in BDC MODE "A". Any idea?

Thanks in advanced.

Regards,

CN

Read only

0 Likes
2,257

Function code cannot be selected means you are trying to run an action which is currently disabled.

Can you check the part where the user is pressing tick mark? Does the program go through the same path when its 'A'? I mean instead of tick mark, does the program go through to the overview screen in some other way?

Read only

0 Likes
2,257

Hi Shambu,

The message "Function Code cannot be selected" is appeared with message 'S' or 'E' when trying to double click the GL account line item. I also tried NOT to doubleclick but choose the function "Display Line Item XYZ" but same thing happened. Any idea? Thank you very much.

REgards,

CN

Read only

0 Likes
2,257

Hi Shambu,

For GL line item > More data, there is a pop up window "Coding Block" to key in Business Area, Cost Center, Profit Center etc. And user will press the "TICK" to take the input effective.

Regards,

CN

Read only

0 Likes
2,257

Hi,

I have replaced '=BS' to '/00' before double clicking the line item. '=BS' is "Simulate" function. The message is not shown after this change.

Thanks for everyone for your kindly advise and help.

REgards,

CN

Read only

Former Member
0 Likes
2,257

And also, only certain GL accounts will hit this issue. I have checked the field status, the cost center field is "optional". I do not understand why this error message will appear in Mode "E" only for GL Acct A but it does not appear in mode "A" with SAME GL Acct.

Read only

Former Member
0 Likes
2,257

You can check with the FI consultant for what type of GLs the cost centre is mandatory and accordingly keep the validation before calling the BDC.