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

T-Code: OAOH

Former Member
0 Likes
1,139

Hi,

I can create archive link with OAOH transaction. After I have created archive link, I am getting 'Document ID'. I want to create archive link and get Document ID by programatically. I can use batch input to create archive link, but I can not get document ID. What can I do? Is it possible to get Document ID using batch input? If not, how can I get the Document ID?

Thanks.

4 REPLIES 4
Read only

Former Member
0 Likes
964

If you are using BDCDATA, then can you do a call transaction instead of batch input? That way you can get the messages back to you which you can read and find out the document id.

Read only

0 Likes
964

Srinavas,

After OAOH, the document id is not return with message, it can be seen on the screen. Is there any solution for this?

Read only

0 Likes
964

check if any parameter id is set with the document id that was created. If yes, you can retreive the same using GET PARAMETER statement.

You could also do a select on the database table where this value is stored and retreive from there.

Hope this helps.

Sudha

Read only

0 Likes
964

Getting from db table is a solution, I am already using this solution. But, getting from db is not solve our problem completely. The full solution should be getting the document id from OAOH. I have debugged OAOD to find which functions have used. But its implementation is complex, and there are a lot of controls. I can not trust to call OAOH functions directly. Why there is no BAPI to implement OAOH?