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: 

'Purchase order item 00010 still contains faulty account assignments' LSMW BAPI ME21N

narendra_gupta1
Explorer
0 Kudos

Hello All,

I am new to LSMW tool, I am getting error 'Purchase order item 00010 still contains faulty account assignments' while Start processing IDOC step.

Was successfully able to create a PO in ME21N using same Acc assignment category, G/l acc. and cost center.Also the BAPI(using BAPI_PO_CREATE1) report I created is successfully creating PO with same data.

Checked field mapping and every thing seems okay.

Please help with the issue.

Thanks,

Naren

7 REPLIES 7

narendra_gupta1
Explorer
0 Kudos

jrgen.lins I have seen you have helped many with LSMW , could you help me as it's urgent.

JL23
Active Contributor
0 Kudos

I do not see anything from LSMW here.

narendra_gupta1
Explorer
0 Kudos

jrgen.lins Not sure whether you meant that the problem is with idoc and not with LSMW. Maybe I am asking ths question in a wrong way due to my limited knowledge in this area. Here I am attaching few screenshot where i am facing the issue in Step 14 . I have check the maping which seems correct or various suggestion available in the forum. Acc.Assignment is passed in POitem structure and GLaccount, CO area and cost center is passed in POAccount structure

step14

14.1

14.2

14.3

The test data excel file that I have is working fine when I use the data to create PO in ME21N and the report I have created using BAPI_PO_CREATE1. but the requirement is of LSMW.

Regards,

Naren

Lakshmipathi
Active Contributor
0 Kudos

Whenever you add any post to your original query, please do so under "Comment" and not under "Answer", as you were not answering to a query but only providing additional informations as required by the member. Meanwhile, I have converted your above post from Answer to Comment.

Lakshmipathi
Active Contributor
0 Kudos

Whenever you add any post to your original query, please do so under "Comment" and not under "Answer", as you were not answering to a query but only providing additional informations as required by the member. Meanwhile, I have converted your above post from Answer to Comment.

narendra_gupta1
Explorer
0 Kudos

I know, my comment was not updating in reply section ..had to write the same in answer. thank for helping 🙂

JL23
Active Contributor
0 Kudos

re your 14.1 screenshot of selection screen for IDOC processing

You should use a pack size of 1, otherwise you may not be able to identify the Idoc with errors if you process more than 1 idoc at a time, just a recommendation until you are error free.

re 14.3.

double click the data record segments that are listed in red and show the content of the selected segment from the right window.

The segments in red indicate in which segments you have errors.

A usual mistake are missing leading zeros. In the online transaction SAP converts the entries to suit the expectations of the program. In a program and in an IDOC this is your task to submit the data in the right way, SAP does not do any conversion on its own.