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

Getting Correct data to call a BAPI

Former Member
0 Likes
745

Hi,

I'm using BAPI_ACC_DOCUMENT_POST to post an Invoice to the sap system without a purchase order.

I have creates variables for all the structure, and about to call the BAPI.

How do I get , or how can I look up data in the system which I can use in my variables to execute the BAPI for test purposes?

I am working on IDES 4.7 system, and can use data from it.

Thanks.

6 REPLIES 6
Read only

Former Member
0 Likes
699

Hi SIMS,

ACC_BAPI_TEST_DOCUMENT

Run this Report , it uses BAPI_ACC_DOCUMENT_POST and check what values it is passing.

Rgds,

Mano Sri

Read only

0 Likes
699

Hi,

that really helpful. Could you please help me a little further.

when running the report I pick POST DOCUMENT , from the radio button. And for the Logical System I type T90CLNT090.

This Comes back and tells me "IDOC CREATED", but I can not see the invoice in MIR4 or MIR6.

Could you please also tellme how you worked out to se this report.

Many Thanks

Sims

Read only

0 Likes
699

Hi Sims,

Go go to We05 check for mesg type ACC_DOCUMENT, it might have run to error and reason could be missing entries for

RCVPRN Partner number

RCVPRT Partner type

RCVPFC Partner function

MESTYP Logical message

MESTYP Message code

MESCOD Message function

TEST Test indicator

If you want check the postign you need to maintain these entires (using We20).

Rgds,

Mano Sri

Read only

0 Likes
699

Is there an easy way to pick one which would have the correct data anda pass it to the report mentioned?

Which table does the Partner go into?

thanks

Read only

0 Likes
699

Easy way wish i know one .

Did you say you want to know the values to be passed to the BAPI?

EDP13 stores the values i guess.

rgds,

Mano Sri

Read only

0 Likes
699

We don't have BAPI ACC_BAPI_TEST_DOCUMENT.

Please, send to us this script.

P.S. SAP 4.6c