cancel
Showing results for 
Search instead for 
Did you mean: 

Sales order Output Options: Save a file

Former Member
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Former Member
0 Kudos

Thanks Phani for your answer. I have changed the source code. Bu it is still not working. I am getting an error in the update mode: PERFORM_TOO_MANY_PARAMETERS

Any idea?

Former Member
0 Kudos

The problem is solved. I have added a parameter to my form:

Form MAIN USING return_code us_screen

Thanks for your help

Answers (0)