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

OPEN DATASET Not running properly & SXPG_COMMAND_EXECUTE.

SantiMoreno
Participant
0 Likes
1,089

Hi ABAPers...

I'm having a problem on using sentence OPEN DATASET.

I'm trying to create, from an starting path (let's say /dira/dirb/dirc/) a complete path of non-existing directories. Plus, due to customer's requisites, it should contain spaces (let's say /dir test1/dir test2/dir test3/).

Destination Application Server is UNIX (Solaris).

So, we've also tested on performing FM "SXPG_COMMAND_EXECUTE" to create the directory (prior to a further execution of OPEN DATASET) but, as long as we try to execute an MKDIR -p command, it seems that the system consider the param above as serveral ones, so it only creates part of the path ... in this case /dira/dirb/dirc/dir).

Researching, we've found an OSS note in which it's described a problem similar to the described one and says that the program which executes the command, should recibe something between delimiters '% and %', but the result remains the same.

So, have you ever found any issue like this?

Is it there an easy way to solve it?

Kind Regards.

Santiago.

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
900

Did you try fm BRAN_DIR_CREATE

Hi ABAPers...

I'm having a problem on using sentence OPEN DATASET.

I'm trying to create, from an starting path (let's say /dira/dirb/dirc/) a complete path of non-existing directories. Plus, due to customer's requisites, it should contain spaces (let's say /dir test1/dir test2/dir test3/).

Destination Application Server is UNIX (Solaris).

So, we've also tested on performing FM "SXPG_COMMAND_EXECUTE" to create the directory (prior to a further execution of OPEN DATASET) but, as long as we try to execute an MKDIR -p command, it seems that the system consider the param above as serveral ones, so it only creates part of the path ... in this case /dira/dirb/dirc/dir).

Researching, we've found an OSS note in which it's described a problem similar to the described one and says that the program which executes the command, should recibe something between delimiters '% and %', but the result remains the same.

So, have you ever found any issue like this?

Is it there an easy way to solve it?

Kind Regards.

Santiago.

5 REPLIES 5
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
901

Did you try fm BRAN_DIR_CREATE

Read only

0 Likes
900

Didn't knew that one...

I'll try, but the problem I see is that dir name is too short for what I need.

Thanks.

Read only

0 Likes
900

Hi,

Does the unix syntax allow spaces between directory names ?? May be because of this reason .

Read only

0 Likes
900

Hi.

Yes, it does... Prior to carry out the tasks, that was the first test we performed.

Thanks.

Read only

0 Likes
900

Hi again.

We tried to execute the FM mentioned above but got no enough permissions.

So, after several tests, we gonna try to open an OSS note. I'll keep forum open for possible comments and giving solution if available.

Thanks to all.