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

ERROR_CNTL_CREATE while calling BDC from call transaction

Former Member
0 Likes
1,736

Hi Friends,

I am using call transaction for MM change. Its working fine in both ( foreground and background). but when i put it in background at that time it is raising exception ERROR_CNTL_CREATE which is not happening in foreground.

call transaction 'MM02' using bdcdata

mode 'N'.

update 'S'

messages into mestab.

i know in background SAPGui is not available thats why it is raising above exception. but how can i avoid it.

anybody have an idea then please let me know

Thanks in advance,

Parag

10 REPLIES 10
Read only

Former Member
0 Likes
1,226

Hi Parag

you have to avoid that particular control which is throwing error.

Regards

Naresh

Read only

Former Member
0 Likes
1,226

Use BAPI to avaoid such errors.

It is easier than batch-input and less tiresome.

This may help:

BAPI_MATERIAL_MAINTAINDATA_RT

-


if it helps please give points.

Read only

Former Member
0 Likes
1,226

I am having the same problem with MM01 and MM02 when trying to do BDC for LONG TEXT.

I know it's because the object containter is not created in batch mode. But is there anyway to get around this?

Read only

0 Likes
1,226

Hello Charlie,

you can fill the Long Text by clicking on the longtext editor.(eg. for the sales-Longtext BDC_OKCODE= LTEX or TEAN).

Then you can fill the longtext without using the

control-element and your BI should work.

Greetings

Frank Brackmann

Read only

Former Member
0 Likes
1,226

I am already using LTEX already, I tried TEAN, but it only allow me switch language, but still uses the same object control for text edit. All this are in MM01->additional data->basic data text

Read only

0 Likes
1,226

Hello Charlie,

if you use the graphical text editor you first have to change the editor to the alphanumeric text editor(OKCODE =XEDC). Then it should work fine.

Greeting

Frank Brackmann

Read only

0 Likes
1,226

Hi Frank,

I am having the same problem as Charlie. I believe I am set up to use the sapscript text editor. When I use MM02 online, or when I run my BDC to add the basic text in the foreground, the screen comes up in the sapscript editor. Even so, when I run the BDC in background, I am getting the ERROR_CNTL_CREATE dump. Any ideas for me?

Regards,

Diane

Read only

0 Likes
1,226

Hi Diane

I think you are using some front end control in your transaction. Which doesn't support batch input.

You can go through the OSS note 311440 for the details and possible solutions.

Best Regards

Naresh

Read only

0 Likes
1,226

Hi Naresh,

I don't believe I am using any front end controls. According to 311440, the transaction recorder does not record actions that cannot be performed in a BDC. All the actions I am performing were recorded using the transaction recorder. What was recorded is the same as how Frank described how it should be set up (in this thread), but it still does not work.

BR,

Diane

Read only

0 Likes
1,226

I end up solving thsi probme by using function module SAVE_TEXT.

Couldn't find any way around this.