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

Insert Production Order Component via interface inbound throws exception (SE24)

jackyhjj_sn28
Explorer
0 Likes
1,421
Hi all, I am creating a services (inbound to SAP) to update production version and updating production order component using a custom class (SE24). Everything works fine until updating production order components. It throws exception "Sending of dynpro SAPLKOBS 0130 not possible: No windows system type specified". I am using function "CO_XT_COMPONENT_ADD" to add component to the production order. The exception was thrown when calling function "CO_XT_ORDER_PREPARE_COMMIT". I did the same process using program (SE38) and it has no problem and no exception was thrown. I have debugged into function "CO_XT_ORDER_PREPARE_COMMIT" and it turns out that the exception was thrown when call function "POPUP_TO_CONFIRM_WITH_MESSAGE". My initial hyphothesis is that the class doesn't behave like what usually program behaves. Hence there is no handler for popup message. Is there any workaround or any class/interface to be included in my class to avoid this exception ?
5 REPLIES 5
Read only

FredericGirod
Active Contributor
0 Likes
1,360

If you have a dump you could check the Call stack to identify where SAP would like to call a window. Otherwise you have to put a break point at statement.

This error is not related to class, but how you call the code

Read only

jackyhjj_sn28
Explorer
0 Likes
1,360

thanks frdric.girod for the response.
I have identified it inside the function "CO_XT_ORDER_PREPARE_COMMIT".
There is no parameter to be sent to suppress the popup window. Any other ideas ?

Read only

FredericGirod
Active Contributor
0 Likes
1,360

Your FM is not release by SAP, you will have to find another one

Read only

jackyhjj_sn28
Explorer
0 Likes
1,360

HI frdric.girod , just saw your comment.
May I know how to verify whether a FM is released or not by SAP ?

Is it via the attributes of the FM ?

on other note, what will happen if we use FM that is not released by SAP ?

Read only

FredericGirod
Active Contributor
0 Likes
1,360

The information is in the first screen of the transaction SE37