Application Development 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: 

BAPI_PO_CREATE1 with fixed asset problem

Former Member
0 Kudos

Hello Guys,

I'm having a problem with the bapi BAPI_PO_CREATE1. I'm filling all the structures correctly but when I enter a line in the table BAPIMEPOACCOUNT with an asset and run it, i get the message that the asset i'm using does not exist, and the asset does exist since i can visualize it in the transaction AS03.

Any helpful answers will be highly appreciated.

Regards,

Roberto

2 REPLIES 2

Former Member
0 Kudos

Run the asset through FM CONVERSION_EXIT_ALPHA_INPUT before passing it to the BAPI.

Rob

Former Member
0 Kudos

Hi,

Before you run the FM, put a break point in BAPI_PO_CREATE1 and test. You should be seeing data being formatted accordingly.

In your report, pass your data through CONVERSION_EXIT_ALPHA_INPUT to convert data from external to internal format-

Example:

(Input field and output field are both eight characters in length)

1. '1234 ' --> '00001234'

2. 'ABCD ' --> 'ABCD '

3. ' 1234 ' --> '00001234'

Regards,

Ajay