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

Reg BAPI BAPI_ALM_ORDER_MAINTAIN

Former Member
0 Likes
2,386

Hi ,

We have upgraded from ECC 5.0 to ECC 6.0 and during our testing we encoutered an error to this BAPI BAPI_ALM_ORDER_MAINTAIN, saying that the order type is not defined for maintenance order(Msg class I0, msg No 505).We are trying to change production orders through this BAPI. we tried the same program in the old version(ECC 5.0) but there is no error. have you encountered this same scenario and how did you fixed it?

Thanks in advance ,

Nikhil

7 REPLIES 7
Read only

Former Member
0 Likes
1,715

Hi,

This error is by SP 15 for SAP_APPL 6.00. Temporarily, you can put in commentary the line 109 u201Cmtype = 'E'u201C in the function u201DIBAPI_H_EXEC_BU2_INTERNu201D while SAP fix it.

u201C* start of note 1275923

  • read t350

CALL FUNCTION 'T350_READ'

EXPORTING

auart = es_caufvd-auart

language = sy-langu

  • mtype = 'E' u201C<- Temporary fix

IMPORTING

t350_wa = ls_t350

EXCEPTIONS

no_t350_entry = 1

others = 2.

if sy-subrc <> 0.

message e505(i0) with es_caufvd-auart

raising save_not_possible.

endif.

  • end of note 1275923

  • start of note 1285912u201D

Regards,

Read only

scott_beeman4
Discoverer
0 Likes
1,715

Has SAP came back with a fix for this issue -

Scott

Read only

reinhard_gruber
Associate
Associate
0 Likes
1,715

BAPI BAPI_ALM_ORDER_MAINTAIN is named 'Process Maintenance-/Service Order', its doumentation states 'This Business Application Programming Interface (BAPI) is used to change maintenance or service orders and their subobjects'. It clearly was never meant to be used for production orders. It only supports order category 30. The system bahavour described is definitely not an error. A program 'correction' by SAP is not intended.

Best regards,

Reinhard Gruber

Read only

Former Member
0 Likes
1,715

Hi Nikhil,

Did you solve this issue by any way.

Is there any other BAPI to change the Process Orders.

Thanks adn Reagrds,

Vinay Mutt

Read only

0 Likes
1,715

Read Note 1694267 - BAPI_ALM_ORDER_MAINTAIN not for work orders

(Summary : Try BAPI_PRODORD_CHANGE production or BAPI_PROCORD_CHANGE process, or raise an OSS message to request SAP Note 1636321.)

Regards,

Raymond

Read only

0 Likes
1,715

Hi Raymond,

BAPI_PROCORD_CHANGE can be used to change the data at Header Level of Process Orders. My Requirement is to change the Quantities of Materials present in the Material section of COR2. it would be great if you can provide me the BAPI for this purpose. I believe BDC is not a recommended approach for this.

Thanks in advance,

Vinay Mutt

Read only

0 Likes
1,715

As long as the OSS note is not updated/obsolete due to a, new one, there is few hope that such a BAPI exists in the delivered standard, If i knew one be sure I would have provided it...

So BDC may be today only standard available solution (Excluding play with not-released FM) - or - (as written, in the Note) create an OSS message to be allowed to implement the restricted (internally released only) https://service.sap.com/sap/support/notes/1636321

Regards,

Raymond