‎2007 May 22 10:56 PM
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
‎2007 May 22 11:37 PM
‎2007 May 22 11:41 PM
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
‎2007 May 22 11:44 PM
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
‎2007 May 22 11:52 PM
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
‎2007 May 22 11:56 PM
did you use bdcmsgcoll structure,if so use format_message function module after call transaction and keep call transaction update mode 'S' ..
‎2007 May 23 12:22 AM
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.
‎2007 Oct 08 11:07 AM
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
‎2012 Nov 15 10:15 PM
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
‎2012 Nov 24 5:37 AM
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