Skip to Content
avatar image
Former Member

Open Dataset Doubt

Hi Experts,

I have a small doubt . In a report , in te selection screen I have a checkbox(p_file) for down loading it to Unix .

Then I have parameter(p_unix) for mentioning the appln server path.

In the report i am writing

if p_unix is initial.

message e208 with

'Please enter the Unix File Path'.

else.

<b>open dataset p_unix for output in text mode. </b>

if sy-subrc <> 0.

message e208 with

'Unix Path Incorrect'.

endif.

But even if I give incorrect Unix path (say for eg jahfhsas) the sy-subrc is always 0.

The error message 'Unix Path Incorrect' is not getting triggered.

Can anyone help me out with this .

Thanks and Regards

Arshad

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Aug 21, 2007 at 08:07 AM

    Hi!

    I've found it in the OPEN DATASET help. The path is not a problem, because the command will create a the given filename.

    Addition 2

    ... FOR OUTPUT

    Effect

    OPEN ... FOR OUTPUT tries to open the file in 'write/update' mode as long as the user has read authorization.If the authorization is missing, the system opens the file in 'write' mode. If the file already exists, its existing content isdeleted. If the file does not exist, the system creates it.

    Check out transaction AL11 for the created file...

    Regards

    Tamá

    Add comment
    10|10000 characters needed characters exceeded