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

BAPI for Internal Order

Former Member
4,332

Hi,

I am trying to change the system status of an internal order by doing a call transaction on the Tcode KO02,But in case of an error, like when I am trying to set a status that is not allowed, I do not get an error message in the BDCMSGCOLL ,So cannot display it.

When I try it out manually thru KO02,it gives a pop-up and then have to click on messages to get the actual message, for which I cannot code in the Call Transaction.

So was looking for an alternate way to modify the status of the internal order, maybe a BAPI or a Function Module.

Appreciate any help.

Thank you

Lalitha

9 REPLIES 9
Read only

Former Member
0 Likes
1,994

BAPI_INTERNALORDER_CREATE

Read only

0 Likes
1,994

Hello Seshu,

This is to create the Internal Order, I was looking to change the status of an already created internal order.

Was more interested in System status,

This is the sequence

CRTD (created)

REL (released)

TECO (technically complete)

CLSD (closed)

Thank you

Lalitha

Read only

0 Likes
1,994

Look at List of FM related Internal order

BAPI_INTERNALORDER_CREATE

BAPI_INTERNALORDER_GETDETAIL

BAPI_INTERNALORDER_GETLIST

BAPI_INTERNALORDER_SAVEREPLICA

RK_AUFTRAG_REFERENZ

K_PRE_BAPI_ORDER_TYPE_READ

Read only

0 Likes
1,994

Hi,

These give the current status or the header details, nothing to change the status of the internal order.

Tried a call transaction for KO02, but not able to capture the error message.

Thank you

Lalitha

Read only

0 Likes
1,994

did you use bdcmsgcoll structure,if so use format_message function module after call transaction and keep call transaction update mode 'S' ..

Read only

0 Likes
1,994

Yep, tried that, but the problem is that the transaction does not give the error message directly, but it gives a pop-up and the buttons, messages, continue, cancel.

If you click on the messages button, it would display the error message, So am not sure how I can anticipate the pop-up.

The message ID and number are BS 014, but I cannot capture this, since this is not included in BDCMSGCOLL,

hence the lookout for a BAPI.

Read only

0 Likes
1,994

I have the same problem. Has anyone thrown some light on this?

This is kinda urgent. Any help would be appreciated.

Thanks

Message was edited by:

GOLDUST

Read only

Former Member
0 Likes
1,994

Hi Lalitha,

I need to make the call transaction (KO02) to change the system status

CRTD (created)

REL (released)

TECO (technically complete)

CLSD (closed)

Could you please help me sharing the source code.

Thanks in advance.

Maikel

Read only

0 Likes
1,994

Hi Maikel,

We never really found a solution for this, so did not use the call transaction.

Will check if we used a FM or BAPI.

Thank you

Lalitha