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_PO_CREATE1 wrong positions

Former Member
0 Likes
568

Hi:

I have a problem wit bapi BAPI_PO_CREATE1 in 4.6c, I need help and I hope ypu could help me.

This bapi returns error messages in table i_return , but I would like to know if it is possible to link this error with the wrong position of Purchase Order. The problem is the next, If you create a large number of orders, and each order has a large number of position, how is possible to know which is the wrong position? If is a PO with, for example, 100 positions, it is not easy to find the wrong position.

Someone knows how to do it? Is it possible to locate exactly the wrong position using BAPI_PO_CREATE1?

Thanks in advance for your response.

Best regards.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
488

Hi,

Check the following links:

http://www.sapbrain.com

http://www.sap-img.com

Regards,

Bhaskar

3 REPLIES 3
Read only

Former Member
0 Likes
488

HI mario,

the Return table usually tells exactly what error has occured.

You can use the fm: FORMAT_MESSAGE to build a meaningful text out of the message that you get from the BAPI return table.

Regards,

Ravi

Read only

0 Likes
488

Hi Ravi:

I have tried to build a message, but in message is not possible to link an error to a position. For example, if have an error with a material in position 30, in error message error I have information about the problen with the material, but no information about the problem is in position 30. Is it possible to solve it?

Thanks and best regards.

Mario

Read only

Former Member
0 Likes
489

Hi,

Check the following links:

http://www.sapbrain.com

http://www.sap-img.com

Regards,

Bhaskar