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

Importing internal table data from FM to eCATT test script

Former Member
0 Likes
483

Hi all,

I am working on Workflow project where by i need to post invoices related to purchase orders sent as scanned imaages. Incase all the data in the incoming invoice(scanned) is correct then i am using BAPI_INCOMING_INVOICE_CREATE to post the invoice.

But when the data is wrong, i need to give the user MIRO transaction pre-populated with the invoice details so that he manually corrects them(after verification) and posts the invoice.

I understand MIRO is an ENJOY transaction hence BDC doesn't work properly(i have tried with all kinds of options on recording and the problem comes incase of multiple POs) hence i choose to use eCATT.

The recording worksfine but my real problem is the PO data (multiple PO details for same invoice) is in table form. In all my previous objects related to eCATT we used to upload the file, hence no problem of importing tables.

But now as i'll call this test script from a function module which has all the POs in the form of internal table, i need to import this into my test script.

Please any body tell me how to proceed in this case or please suggest me a better a way to record the MIRO.

Thank you,

Lakshmi Narayana.S

Hi all,

I am working on Workflow project where by i need to post invoices related to purchase orders sent as scanned imaages. Incase all the data in the incoming invoice(scanned) is correct then i am using BAPI_INCOMING_INVOICE_CREATE to post the invoice.

But when the data is wrong, i need to give the user MIRO transaction pre-populated with the invoice details so that he manually corrects them(after verification) and posts the invoice.

I understand MIRO is an ENJOY transaction hence BDC doesn't work properly(i have tried with all kinds of options on recording and the problem comes incase of multiple POs) hence i choose to use eCATT.

The recording worksfine but my real problem is the PO data (multiple PO details for same invoice) is in table form. In all my previous objects related to eCATT we used to upload the file, hence no problem of importing tables.

But now as i'll call this test script from a function module which has all the POs in the form of internal table, i need to import this into my test script.

Please any body tell me how to proceed in this case or please suggest me a better a way to record the MIRO.

Thank you,

Lakshmi Narayana.S

2 REPLIES 2
Read only

Former Member
0 Likes
407

Hi,

Do you know that there is a functionality to park the invoices and NOT post it?

This functionality is basically to populate the values and then park it. Users can then use a standard report to list all parked invoices and go and verify and make corrections and post. This could be achieved by your BAPI itself.

What do you think?

Raj

Reward points if helpful

Read only

0 Likes
407

Hello Raj,

First of all thank you for your inputs.

Yes, I know about Parking an invoice. even i am using it in some scenarios.

If everything on the invoice matches with the values in SAP then i am posting it using BAPI invoice_create also.

But for some scenarios like if the PO on the invoice doesnot match with actual PO then i need to create a work item in the Accounts Payable user's inbox and he will change invoice data manually (after getting confirmation and correction) and post it using MIRO.

Here i need to pre-populate the MIRO with the invoice data so that he can correct and post it.

Hence i was trying to write a BDC and as MIRO is an Enjoy transaction i thought writing a BDC is not a good idea (i tried writing BDC but had problems) hence i am using eCATT.

Hope i am clear about my problem. Any inputs to solve this are welcome.

Thanks,

Lakshmi Narayana.S