Application Development 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: 

Find the Physical Location of an attachment

Former Member
0 Kudos
4,132

Hi,

One of the user's has attached a 'Test Document' in FB03/FB02 transaction. When I try to view the document (word document), it shows up. I need to know where this particular document is PHYSICALLY stored in SAP.

I tried to debug and got some indirect references, but I could not find a place where exactly this document is stored in SAP/UNIX. Even finding out a UNIX path (if it is being stored in UNIX and called by reference) would be helpful.

8 REPLIES 8

Former Member
0 Kudos
359

Hi Tejassu,

If you don't have direct access to your UNIX server (for example ssh) try transaction AL11 and it might help you out to find your document if it's at the server.

Hope this helps,

Ville

0 Kudos
359

Ville,

Thanks for your response.

What I need to know is where this document is stored (physically), then I can go and see the UNIX directory (if it is stored in UNIX). Right now, I don't even know if it is stored in SAP DB or UNIX.

Finding the physical location of the document is what I need right now.

0 Kudos
359

Hi Tejassu,

Right now I am not in front of the system but is it possible that this file you are looking at is defined as a logical file? If so, you can use tcode FILE to look at the definition of the logical file. In it will be the logical directory and in the definition of the logical directory, you should find the physical location..

Good to see you here.

Srinivas

0 Kudos
359

Hi Tejassu,

You can use transaction AL11 to look for your file from SAP directories.

And of course if you have the acces to your UNIX server and you know the filename you can try unix commands (in ssh console) like <i>locate yourefilename.doc</i> or <i>find yourfilename.doc</i>

Hope this helps,

Ville

Former Member
0 Kudos
359

Srinivas,

It was a great surprise to see you in the forum.

I don't know the logical/physical location. I am trying to figure out if any of the function modules or classes gives me the reference or link to any logical or physical location.

I have debugged the SAP code, but could not find any place where the location is stored. I was ending up going to tables storing the document ID or folder ID (ex: SOFD).

Does anyone of you know if there is a way to find the logical or physical location based on the document ID or folder ID.

Ville, I don't think going to AL11 will help me in anyway without my knowing either the logical or physical location. Still, I will give it a shot and see if it is helpful.

0 Kudos
359

it the documents is transaction specific (object specific) yu would most probably get it thru transaction OAOR.

let me expalin a scenario. for example you store document against a invoice, in this case to find the attachments, go to transaction OAOR , enter BKPF as object, type as BO and click execute, you will be prompted for company code, doc no and year, enter the detail and hit enter you will see the list of documents. to get the physical path of this thru program, try BAPIBusinessdocument in se 37 for a fucntion module, i dont remember the exact name.

Regards

Raja

Former Member
0 Kudos
359

If they are using the little Generic Object Services button on the toolbar, and you haven't specifically set up any alternate repositories, then the document will be stored in the default content repository for the BDS.

Which is in the R/3 database, I believe. Do you have to find the physical file? It's a service rather than a filesystem.

Have a look in the SAP library for Generic Object Services (GOS) and the Business Document System.

I don't think you'll get far with AL11...

Former Member
0 Kudos
359

Hi All,

Thanks for helping me out. I found the answer for my question in one of the SAP notes - note number is 530792 in case someone needs this info.