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 transaction MM02 for Text Editor

Former Member
0 Likes
2,136

Hi Friends,

I am using transaction MM02 when creating Purchase Order Text . Its working fine in foreground, but when I run it in background it is raising exception ERROR_CNTL_CREATE when calling the Text Editor.

I know in background SAPGui is not available and thats why it is raising the exception. But is there a way I can avoid it?

Thanks in advance,

Victoria

Here is the dump info:

The termination occurred in the ABAP program

"CL_GUI_TEXTEDIT===============CP"

In "CONSTRUCTOR".

The main program was "SAPMMG01 ".

The termination occurred in line 6 of the source code of the (Include)

program "CL_GUI_TEXTEDIT===============CM002" (when calling the editor 60).

The program "CL_GUI_TEXTEDIT===============CP" was started as a background job.

Error occurred during batch input processing

Here is the source code where the error occurs:

1 *creates and links TextEdit control

2 METHOD constructor .

3 DATA prog_id(80).

4

5 if parent is initial.

>>>>> raise error_cntl_create.

7 endif.

8

9 CLASS cl_gui_cfw DEFINITION LOAD.

10

11 * assign prog_id to get the frontend specific control

12 if not activex is initial.

13 prog_id = 'SAPGUI.TextEditCtrl.1'.

14 elseif not javabean is initial.

15 prog_id = 'com.sap.components.controls.textEdit.SapTextEdit'.

endif.

Hi Friends,

I am using transaction MM02 when creating Purchase Order Text . Its working fine in foreground, but when I run it in background it is raising exception ERROR_CNTL_CREATE when calling the Text Editor.

I know in background SAPGui is not available and thats why it is raising the exception. But is there a way I can avoid it?

Thanks in advance,

Victoria

Here is the dump info:

The termination occurred in the ABAP program

"CL_GUI_TEXTEDIT===============CP"

In "CONSTRUCTOR".

The main program was "SAPMMG01 ".

The termination occurred in line 6 of the source code of the (Include)

program "CL_GUI_TEXTEDIT===============CM002" (when calling the editor 60).

The program "CL_GUI_TEXTEDIT===============CP" was started as a background job.

Error occurred during batch input processing

Here is the source code where the error occurs:

1 *creates and links TextEdit control

2 METHOD constructor .

3 DATA prog_id(80).

4

5 if parent is initial.

>>>>> raise error_cntl_create.

7 endif.

8

9 CLASS cl_gui_cfw DEFINITION LOAD.

10

11 * assign prog_id to get the frontend specific control

12 if not activex is initial.

13 prog_id = 'SAPGUI.TextEditCtrl.1'.

14 elseif not javabean is initial.

15 prog_id = 'com.sap.components.controls.textEdit.SapTextEdit'.

endif.

5 REPLIES 5
Read only

rajashekar_gangula
Discoverer
0 Likes
1,480

Dear Vici Reed,

I encounter same raise exception ERROR_CNTL_CREATE in MM02 while maintaining material texts in different languages.

Can you please let me know how you resolved this issue in your case.

Thanks in advance .

Warm Regards,

RajaShekar Gangula.

Read only

rajashekar_gangula
Discoverer
0 Likes
1,480

Dear Vicki Reed,

I encounter same raise exception ERROR_CNTL_CREATE in MM02 while maintaining material texts in different languages.

Can you please let me know how you resolved this issue in your case.

Thanks in advance .

Warm Regards,

RajaShekar Gangula.

Read only

rajashekar_gangula
Discoverer
0 Likes
1,480

Dear Vicki Reed,

I encounter same raise exception ERROR_CNTL_CREATE in MM02 while maintaining material texts in different languages.

Can you please let me know how you resolved this issue in your case.

Thanks in advance .

Warm Regards,

RajaShekar Gangula.

Read only

Former Member
0 Likes
1,480

This message was moderated.

Read only

0 Likes
1,480

Don't resurrect old threads, also don't try current text editor with BDC, look for BAPI that supports the long text as BAPI_MATERIAL_SAVEDATA.

Regards,

Raymond