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

ME21N runtime error while using BAPI_PO_CREATE1 to upload multiple PO's

Former Member
0 Likes
1,273

Hi All,

 

I am getting runtime error as RAISE_EXCEPTION when creating multiple

PO's using bapi BAPI_PO_CREATE1, for your reference i am attaching

below files.

1. File contains the ST22 dump details

2. File contains the program code

3. Flat contains the details of multiple PO's to be created in the form

of flat file

Program works fine when i create multiple PO's in normal way also when

i create single PO with reference to Outline Agreement number (contract

number) but when i try to create two PO's with reference to Outline

Agreement number (contract number) system creates the first PO and

throws an rutime error while creating the second PO as below.

Termination occurred in the ABAP

program "CL_PO_ITEM_HANDLE_MM==========CP" -

in "GET_DATA".

The main program was "YBAPI_PO_CREATE1 ".

Should i refresh some thing before creating the second PO, kindly help

me to resolve this issue.

Thanks & Regards,

Ranjithkumar Chidurala

Hi All,

 

I am getting runtime error as RAISE_EXCEPTION when creating multiple

PO's using bapi BAPI_PO_CREATE1, for your reference i am attaching

below files.

1. File contains the ST22 dump details

2. File contains the program code

3. Flat contains the details of multiple PO's to be created in the form

of flat file

Program works fine when i create multiple PO's in normal way also when

i create single PO with reference to Outline Agreement number (contract

number) but when i try to create two PO's with reference to Outline

Agreement number (contract number) system creates the first PO and

throws an rutime error while creating the second PO as below.

Termination occurred in the ABAP

program "CL_PO_ITEM_HANDLE_MM==========CP" -

in "GET_DATA".

The main program was "YBAPI_PO_CREATE1 ".

Should i refresh some thing before creating the second PO, kindly help

me to resolve this issue.

Thanks & Regards,

Ranjithkumar Chidurala

2 REPLIES 2
Read only

Former Member
0 Likes
874

Hi,

Go to SAP Support portal and search for SAP Notes.

I could see some relevant notes for this issue there.

Search with CL_PO_ITEM_HANDLE_MM==========CP.

Note 891356 - BAPI EnjoySAP: Exception Raise Failure

Note 1518346 - RAISE_EXCEPTION when calling BAPI several times

Thanks,

Shambu

Read only

0 Likes
874

Hi Shambu,

Thanks for reply....

I already searched SAP Notes for the above issue but these Notes are not applicable for our system because in our system component SAP_APPL contains package level 0018 of release 600 and all related notes are belongs to 604 or 605.

I also try to implement SAP Note 0000891356 which belongs to release 600 but systems says

SAP Note 0000891356 cannot be implemented...

What to do next please help me.....

Thanks,

Ranjith