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 issue with BAPI_EXCINV_CREATE_FROMDATA

Former Member
0 Likes
581

Hi Friends,

I am using BAPI_EXCINV_CREATE_FROMDATA BAPI for excise posting of material documents.But while doing it, i am not able to post the excise as bapi is not reflecting the data into the respective tables J_1IEXCHDR and J_1IEXCDTL.

In OBJHEADER,i am passing values of following fields:

comp code

plant

excgrp

excise year

vendor

ref doc 1

year

rtype

PROCESS_FLAG - 'I'

In OBJ_ITEM,i am passing following fields:

excise date

excise year

excise grp

document item

storage loc

material no

chapterid

ref doc1(po)

ritem1

ref doc2(po)

rdoc year

ritem2

Still i am not able to post the excise.Please tell me the mistake done with this process or any alternatives.

Thanks,

Gaurav

3 REPLIES 3
Read only

Former Member
0 Likes
495

Have you used BAPI_TRANSACTION_COMMIT after this BAPI??

Read only

0 Likes
495

Hi Sachin,

Thanks for the reply.But i am explicitly inputting the values in FM in se37 and checking whether excise details is getting hit or not.Also i want to make sure whether this FM or this approach is correct or not.

Thanks and Regards,

Gaurav

Read only

0 Likes
495

Hi,

You can use the option Function Module -> Test-> Test Sequences option form SE37 menu. Call BAPI_EXCINV_CREATE_FROMDATA and then BAPI_TRANSACTION_COMMIT.

As per the FM apporach, if it meets your requirements, it is fine

Regards,

Sachin