cancel
Showing results for 
Search instead for 
Did you mean: 

Batch Imput for ME21N

Former Member
0 Kudos

Hi all.

I'm programing a batch imput to execute the ME21N for create a service PO.

It fills all fields standard (header, items, services, account asignment), but it doesnt recognize header customer fields, and this customer fields are mandatory.

What can be happend?

Regards.

Gregory.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

It is always advisable to make use of BAPI's for the creation of purchase orders.

And generally avoid the usage of BDC's for enjoy transactions.

Regards,

Sowmya.

Answers (2)

Answers (2)

raymond_giuseppi
Active Contributor
0 Kudos

I agree with previous posts, BAPI are better.

But did you try to use the non-enjoy transaction ME21.

Regards

Former Member
0 Kudos

No i didnt.

Gregory.

Former Member
0 Kudos

Gregory,

Did you get this one working, I have the same problem? Is it really obligatory to have sub-packages?

Thanks

PC

Former Member
0 Kudos

Hi

Better to use the BAPI for PO creation

BAPI_PO_CREATE1

Reward points if useful

Regards

Anji

Former Member
0 Kudos

Hi,

You can use the bapi BAPI_PO_CREATE1, and use the structure EXTENSIONIN to fill the customer fields.

Alexandre

Former Member
0 Kudos

Hi thx both, for the answer.

I already try with BAPI_PO_CREATE1 and I cant create the PO after 5 days of trying, my problem with this bapi is that i dont find the relationship between the tables poitem, poaccount, poservices and posrvaccessvalues, beacause of that i decide to try with the batch input.

Regards.

Gregory.

Former Member
0 Kudos

Hi Gregory,

Do not forget to fill poitemx, poaccountx and poservicex ... tables.

Also, if you do not know what to put in the tables for the BAPI, you can try to create a document with m21n, check what SAP fills EKBE,EKPO,EKET,EKKN .... tables, this will probably an idea ..

Batch input is not a good solution for enjoy transactions such as ME21N.

It would be easier to help if you could send us the "RETURN" table from the BAPI.

Former Member
0 Kudos

the BAPI is a better solution, but if you decide to stay with batch input, use transaction ME21 instead of ME21N. ME21N is an EnjoySAP transaction and not suitable for batch input.

Rob

Former Member
0 Kudos

Thx for ur answers.

Saribas, of course I'm filling the tables that u say. I already create a doc by the transaction and see what are into the tables then i did try to reproduce this into my program and doesnt work. The return has the following:

W - Error transferring ExtensionIn data for enhancement CI_EKKODB

E - No instance of object type PurchaseOrder has been created. External reference:

E - Purchase order still contains faulty items

W - Start of validity period is in the past

E - No account assignment exists for service line 0000000001

I'm tryng to create two items and several services to each one, one item make account input to costcenters and the other to wbs.

Sowmya as i say before, i cant create the PO by the item, because of that I try with batch input.

Rob I will try me21.

Regards.

Gregory.

Former Member
0 Kudos

Please i need help on that. With the batch input or the bapi.

Its urgent.

Regards.

Gregory.

Former Member
0 Kudos

Hi, sorry about the delay.

I did run the me21n normally and save a document, then i look the regs in the tables ekko, ekpo, esll and eslh and note that I wasnt ceating a service with a subpackage. Doing this i get the error <b>No account asignment exists for service line</b> and without doiing this i get the error <b>In case of account asignment, please enter acc. asignment data for item</b>

Regards.

Gregory.