cancel
Showing results for 
Search instead for 
Did you mean: 

Create a Folder in a BSP page

Former Member
0 Kudos

Hi,

We want to create/open a folder from a drive (hard- or network). This has to be done from a CRM BSP-page (Portal). We achieved this in online but we use function modules and classes that checks if you are using the gui.

Does anyone have an idee how to achieve this??

Regards,

Ralph

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

There are similar functions modules available (can't think of the names right now) that allow you to run commands on the file system.

But with those FM's you can create a folder or load the contents into your BSP.

Or you can use ActiveX it's a high security risk. Check out this thread for an example of reading folders with ActiveX (client side)

Former Member
0 Kudos

Hi Craig,

Thanks for your answer...

I know that there are some function modules that can create folders. But the problem is that they do a GUI check. Since we are in the portal there is no SAP GUI available and the FM (e.g. DSVAS_DOC_WS_EXECUTE_50) generates a dump.

Also we can't use your solution given with the ActiveX control because BSP's in CRM different then ordinary BSP's. These BSP's work with blueprint tables and therefor I can't build in some JavaScript code.

Now my problem still exist. I can open a directory on my hard disk or on a networddrive. But I can not create a folder. Do you have any other suggestions??

Regards,

Ralph

Former Member
0 Kudos

The ones I am referring to do not deal with the GUI (looking now for the names) but they only work with the server your SAP is running on. Like transaction AL11

For the client side you need ActiveX or Java Applet - something that runs local.

Former Member
0 Kudos

Hi Craig,

We are also trying to get your javascript to function. The one you described in the other link. But when we call up the function selectfolder(), we get an error message at

"objFolder = objShell.BrowseForFolder(0, myText, 0, ssfWINDOWS);".

We recieve the error "Permission denied".

Any ideas how to solve this??

Thanks

Former Member
0 Kudos

Sounds like a rights issue, do you perhaps have ActiveX blocked through a policy or your Internet Options (Security Settings) - like I said ActiveX is a security risk that most tend to avoid.

Former Member
0 Kudos

Yes, you are wright it is a security issue. Do you have any other ideas how to create a simple javascript to check if a folder exist when not create the folder.

Former Member
0 Kudos

JavaScript <b>can't</b> do this without ActiveX or another control that interacts with the system.