Skip to Content
0

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

Mar 05 at 06:25 PM

41

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
Former Member

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

0

I do not see anything from LSMW here.

0

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.

0
Former Member

@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

step1.jpg (23.8 kB)
step14.jpg (24.7 kB)
step141.jpg (12.3 kB)
step142.jpg (7.1 kB)
step143.jpg (17.1 kB)
0

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.

0
Former Member
G Lakshmipathi

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

0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Jürgen L
Mar 08 at 02:36 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded