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

Issues with FM 'AC_DOCUMENT_GENERATE'

Former Member
0 Likes
2,003

Hi All,

We have a requirement to park an FI accounting document, change the amounts in the existing parked document and post the parked document with in a single custom program based on the some business criteria.

FM '<b>AC_DOCUMENT_GENERATE</b>' has been identified to meet the above requirements. Though this FM ''<b>AC_DOCUMENT_GENERATE</b>'' returns the accounting document number, we still have an issue of the account document number and the details not being written to the DB though we use explicit commit work statement (Tried using BAPI commit as well) after the function call in the custom program.

Appreciate if someone could help us in this regard.

Thanks a lot for your help.

Regards,

Hemanth

Hi All,

We have a requirement to park an FI accounting document, change the amounts in the existing parked document and post the parked document with in a single custom program based on the some business criteria.

FM '<b>AC_DOCUMENT_GENERATE</b>' has been identified to meet the above requirements. Though this FM ''<b>AC_DOCUMENT_GENERATE</b>'' returns the accounting document number, we still have an issue of the account document number and the details not being written to the DB though we use explicit commit work statement (Tried using BAPI commit as well) after the function call in the custom program.

Appreciate if someone could help us in this regard.

Thanks a lot for your help.

Regards,

Hemanth

6 REPLIES 6
Read only

Former Member
0 Likes
1,376

Hi All,

We are half way through the requirement. I am able to park the accounting document and change the amounts in the existing parked document using the FM 'AC_DOCUMENT_GENERATE' followed by the function call 'PRELIMINARY_POSTING_DOC_WRITE'.

However I still have the issue of posting the parked document using FM. Please let me know if there is any FM that posts the parked document.

Thank You,

Hemanth

Read only

0 Likes
1,376

Hi all,

can any one send me sample code of how I can park the documents using FM 'AC_DOCUMENT_GENERATE'?

Read only

0 Likes
1,376

Hi hemanth,

Even i have used FM 'AC_DOCUMENT_GENERATE' follwed by the FM PRELIMINARY_POSTING_DOC_WRITE. But for me only the header data is getting updated and item datas are not getting updated.

Can you me the code that u have used so that it would be very helpful for me.

Thanks in advance.

Read only

Former Member
0 Likes
1,376

You can use the BAPI_ACC_DOCUMENT_POST. You can check the FM documentation for how to populate the parameters..

<REMOVED BY MODERATOR>

regards

navjot

Edited by: Alvaro Tejada Galindo on Feb 25, 2008 5:38 PM

Read only

0 Likes
1,376

Hi Navjot,

Thank you for your prompt response.

The issue is resolved. We are using the FM 'PRELIMINARY_POSTING_POST_ALL' to post a parked document.

Regards,

Hemanth

Read only

Former Member
0 Likes
1,376

Hi Hemanth,

I also have a similar requirement and i am aslo facing some problems with the FM "PRELIMINARY_POSTING_DOC_WRITE" ,

Could you please provide me some sample code or documentation for the same so that i can move ahead,

Please sent in me the details at my personal id

<REMOVED BY MODERATOR>

Awaiting your response,

Taher

Edited by: Alvaro Tejada Galindo on Feb 25, 2008 5:39 PM