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

By pass error in BAPI_PO_CREATE1

Former Member
0 Likes
931

Dear experts,

I am using BAPI_PO_CREATE1 to create a PO. Its doing well, but its issuing an error when a vendor has a rebate agreement with condition class 'C'. I am trying to use the parameter MEMORY_UNCOMPLETE = 'X' to put the faulty PO on hold but it fails to do that.

My requirment is to by-pass the error and create the PO. I also applied the note 1158138 that only explains what exactly the error is.

Can someone tell me how to do this?

thanks

Harikumar

Dear experts,

I am using BAPI_PO_CREATE1 to create a PO. Its doing well, but its issuing an error when a vendor has a rebate agreement with condition class 'C'. I am trying to use the parameter MEMORY_UNCOMPLETE = 'X' to put the faulty PO on hold but it fails to do that.

My requirment is to by-pass the error and create the PO. I also applied the note 1158138 that only explains what exactly the error is.

Can someone tell me how to do this?

thanks

Harikumar

6 REPLIES 6
Read only

Former Member
0 Likes
879

If that is an hard error setup done in config and you want to by pass it then i think you cannot. May be it should be a warning message in config? Or else, do not pass that condition in your structure and also do not flag them in BAPIPOITEMX or other releavant X structures.

Thanks,

SKJ

Read only

Former Member
0 Likes
879

Hi,

"I am trying to use the parameter MEMORY_UNCOMPLETE = 'X' to put the faulty PO on hold but it fails to do that."

I have tried to do this for a requirement however according to SAP, through a SAP NOTE, this is no longer possible.

You should find an alternative.

Regards,

Gilberto Li

Read only

Former Member
0 Likes
879

Hello,

Check if the data you are sending to the bapi is the same as doing it mannualy, or directly to the tcode.

Bye

gabriel

Read only

0 Likes
879

Hi Gabriel P.

I am able to create & save the PO directly using ME21n even though it has an error.

The error is shown up only in the logs when i press the hold button.

Pls suggest.

Thanks

Read only

0 Likes
879

just try: use other bapis, like BAPI_PO_CREATE etc........just as trail

thanq

Read only

0 Likes
879

Hi SAP ABAPer ,

Thanks. BAPI_PO_CREATE does not has any parameter to pass condition records. In my case pricing conditions are very much necessary to pass.

thanks