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

BAPI_ACC_DOCUMENT_POST

Former Member
0 Likes
1,227

Hi Experts,

I want to use the BAPI BAPI_ACC_DOCUMENT_POST to post an incoming non PO based Invoice (Vendor Invoice without PO).

I am not able to pass the correct values in the header structure for fields:

OBJ_TYPE

OBJ_KEY

OBJ_SYS

BUS_ACT

Please help me in this case.

I want to directly post the invocie from the data in my internal tables. I will have all the data required to post a invoice.

Thanks,

Prabhas.

11 REPLIES 11
Read only

Former Member
0 Likes
1,184

This message was moderated.

Read only

0 Likes
1,184

Hi Avinash,

That link is not helpfull to me as it do not populate the fields that I requested.

Thanks.

Read only

former_member376453
Contributor
0 Likes
1,184

Try it with leaving this field blank. That does work for me. Just have a try.

Kuntal

Read only

0 Likes
1,184

Hi Kuntal,

These fields are mandatory.

Read only

former_member206396
Active Participant
0 Likes
1,184

Hi,

Try passing BUS_ACT as 'RFBU'. As per i know, rest of the fields are not mandatory.

Please check once with above value. It may help u.

Read only

0 Likes
1,184

Hi Rama,

The rest of the fileds are mandatory, atleast in 4.6c

Thanks,

Prabhas.

Read only

Former Member
0 Likes
1,184

Hi,

OBJ_KEY should be doc.no + company code + year (this should actually be the next no. automatically generated by the system. you may call FM "NUMBER_GET_NEXT" to generate the no. by the system & use it.)

OBJ_SYS should be your SAP system id.

For detail check the below links.

Thanks,

Asit Purbey.

Read only

0 Likes
1,184

Hi Asit,

If I use the number range, and if there is an error wile posting the document, that number will be lost.

I dont want any missing numbers in the invoices.

Thanks,

Prabhas.

Read only

Former Member
0 Likes
1,184

BUS_ACT = 'RFBU'

for others pass $

reagrds

madan

Read only

0 Likes
1,184

Passing $ do not work.

Read only

Former Member
0 Likes
1,184

No Resolution !!