cancel
Showing results for 
Search instead for 
Did you mean: 

Physical Location and BAPI BAPI_DOCUMENT_CREATE2

ged_hurst
Participant
0 Kudos

Hi everyone,

I've realized that the BAPI_DOCUMENT_CREATE2 raises an exception Error while checking in and storing until I pass on the parameter

documentfiles-docfile = '/usr/sap/DG2/SYS/global/TEST.TXT'. 

Now the thing is, how can I grab the path '/usr/sap/DG2/SYS/global/' programmatically?

This parameter is defined in OAC0 but does anybody know the name of the function module to invoke to get it?

Thanks!

Accepted Solutions (0)

Answers (1)

Answers (1)

christoph_hopf
Advisor
Advisor
0 Kudos

Hi,

could you please test if the SAP note 1480104 is already implemented in your system. Because this could help to avoid the mentioned error.

Best regards,

Christoph

ged_hurst
Participant
0 Kudos

Hi,

when I try to access that note I get: The requested SAP Note is either in reworking or is released internally only.

However, I would like to know what's the function module to use to retrieve the path associated to a certain storage category.

In fact, if I pass on the right path (which I can find out in customizing, like /usr/sap/....) I'm able to upload files. But I need to retrieve this path programmaticaly through a function module call.

Any ideas about this?