Skip to Content
avatar image
Former Member

Sales order Output Options: Save a file

I would like to save a data file on the SAP server when a sales order is saved. I have set up a message category in the output options of the PO (T-CODE NACE). My set up looks like:

Output Type: ZTEST

Medium: Special Function

Program name: ZZTEST

Form: ENTRY

The program form looks like:

open DATASET '/tmp/ZTEST' for INPUT IN TEXT MODE ENCODING DEFAULT.

CHECK sy-subrc = 0.

transfer 'test OK' to '/tmp/ZTEST'.

CLOSE DATASET '/tmp/ZTEST'.

But this is not working.

Any suggestion please?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Jul 29, 2008 at 09:26 AM

    Hi,

    You have to open the dataset in OUTPUT MODE instead of INPUT MODE (Here u opend in INPUT MODE) because you are writing the contents into application server.

    I think it solves your problem. IF not please let me know.

    Thanks,

    Phani Diwakar.

    Add comment
    10|10000 characters needed characters exceeded