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

Odata FAC_GL_DOCUMENT_POST_SRV

ragupta
Explorer
9,816

Hi Experts,

I need to call Odata - FAC_GL_DOCUMENT_POST_SRV for Journal Entry posting.

Can anyone here advise if there is any standard guide or documentation available from SAP ?

I am calling it from Postman but need to consume from .net.

The postman call gets failed.

Following is the error I get

{"error":{"code":"FINS_ACDOC_POST/100","message":{"lang":"en","value":"We’re sorry, but an error occurred"},"innererror":{"application":{"component_id":"FI-FIO-GL","service_namespace":"/SAP/","service_id":"FAC_GL_DOCUMENT_POST_SRV","service_version":"0001"},"transactionid":"A592B9D487BE0050E005ED0BD6BDFB14","timestamp":"20200603073413.9839460","Error_Resolution":{"SAP_Transaction":"For backend administrators: use ADT feed reader \"SAP Gateway Error Log\" or run transaction /IWFND/ERROR_LOG on SAP Gateway hub system and search for entries with the timestamp above for more details","SAP_Note":"See SAP Note 1797736 for error analysis (https://service.sap.com/sap/support/notes/1797736)"},"errordetails":[{"code":"FDC_POSTING_001/025","message":"Your session has ended. Please go back and start again.","propertyref":"","severity":"error","transition":false,"target":""},{"code":"/IWBEP/CX_MGW_TECH_EXCEPTION","message":"We’re sorry, but an error occurred","propertyref":"","severity":"error","transition":false,"target":""}]}}} --72569D92F571A3CF84084E4630FC2C120

Hi Experts,

I need to call Odata - FAC_GL_DOCUMENT_POST_SRV for Journal Entry posting.

Can anyone here advise if there is any standard guide or documentation available from SAP ?

I am calling it from Postman but need to consume from .net.

The postman call gets failed.

Following is the error I get

{"error":{"code":"FINS_ACDOC_POST/100","message":{"lang":"en","value":"We’re sorry, but an error occurred"},"innererror":{"application":{"component_id":"FI-FIO-GL","service_namespace":"/SAP/","service_id":"FAC_GL_DOCUMENT_POST_SRV","service_version":"0001"},"transactionid":"A592B9D487BE0050E005ED0BD6BDFB14","timestamp":"20200603073413.9839460","Error_Resolution":{"SAP_Transaction":"For backend administrators: use ADT feed reader \"SAP Gateway Error Log\" or run transaction /IWFND/ERROR_LOG on SAP Gateway hub system and search for entries with the timestamp above for more details","SAP_Note":"See SAP Note 1797736 for error analysis (https://service.sap.com/sap/support/notes/1797736)"},"errordetails":[{"code":"FDC_POSTING_001/025","message":"Your session has ended. Please go back and start again.","propertyref":"","severity":"error","transition":false,"target":""},{"code":"/IWBEP/CX_MGW_TECH_EXCEPTION","message":"We’re sorry, but an error occurred","propertyref":"","severity":"error","transition":false,"target":""}]}}} --72569D92F571A3CF84084E4630FC2C120

7 REPLIES 7
Read only

nilesh_bhayani2
Explorer
0 Likes
7,912

Hi Rahul,

did you get any solution for it?

Read only

7,912

Hi Nilesh,

Yes, there are two fields in this Odata - 'TmpId' and 'TmpIdType'.

You need to make calls to the server to get values of these and then in subsequent calls, you need to pass these same values there.

Just keep debugging network calls of its actual FIORI app and you will find the answer in more clarity.

Read only

nilesh_bhayani2
Explorer
0 Likes
7,912

Thanks Rahul for your reply. I will try it once I have access to Fiori apps, currently I have only backend access. By chance do you have sample payload that you tried from postman or any other http client, please share if you have one.

Also if you have some time to discuss that would help.

Read only

0 Likes
7,912

It was long back but I will check if I still have the payload.

You can share your actual requirement as this is SAP's internal Odata that has no documentation or support if you may need in future.

Read only

nilesh_bhayani2
Explorer
0 Likes
7,912

My actual requirement is to post journal entries (GL to GL) and also create attachment while creating journal entries

Read only

Kura_Bharadwaj
Explorer
0 Likes
7,912

Hi Rahul,

Can you please provide the payload to test this API.

Thanks & Regards
Kura Bharadwaj

Read only

sangwan
Explorer
0 Likes
7,912

Hi Rahul, Can you provide a detailed implementation of how to use FAC_GL_DOCUMENT_POST_SRV to post a Journal Entry?