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
767

hi, in my fi posting through bapi it  showing the documnet has been successfully posted but it doesn't showing the documnet number,please provide the solution.

1 ACCEPTED SOLUTION
Read only

eduardo_hinojosa
Active Contributor
0 Likes
707

Hi

Read the table RETURN with message type S id RW and number 605, you must have the FI document number with this structure

belnr = return-message_v2(10).
bukrs = return-message_v2+10(4).
gjahr = return-message_v2+14(4).

I hope this helps you

Regards

Eduardo

5 REPLIES 5
Read only

Former Member
0 Likes
707

please provide more details

best regrads,

swanand

Read only

Former Member
0 Likes
707

hello,

Check if you rae using FM 'BAPI_TRANSACTION_COMMIT' after your BAPI call.

best regards,

swanand

Read only

0 Likes
707

yes , i have also done the  'BAPI_TRANSACTION_COMMIT' after bapi post..still it's not showing the documnet number, but in table the documnet number is showing which is identified by username ,date of posting, doc date and time.

Read only

eduardo_hinojosa
Active Contributor
0 Likes
708

Hi

Read the table RETURN with message type S id RW and number 605, you must have the FI document number with this structure

belnr = return-message_v2(10).
bukrs = return-message_v2+10(4).
gjahr = return-message_v2+14(4).

I hope this helps you

Regards

Eduardo

Read only

0 Likes
707

FOR GETTING THE DOC. NUMBER WE HAVE TO PASS THE OBJ TYPE ,OBJ KEY KEY AND OBJ SYS EMPTY IN HEADER OTHERWISE IT WILL TAKE THE OBJTYPE AS A DOC. NUMBER WHICH WE HAVE PASSING IN THE HEADER TABLE