0

When creating a file using OPEN DATASET, SAP creates the File with the owner as <sysID>adm.

How to set this as the logged in user?

Sandra Rossi
  • 11,934
  • 5
  • 22
  • 48
Raja
  • 1

2 Answers2

2

I believe you would need to create an External OS Command in SM69 for CHOWN (or similar) and then execute that (use FM SXPG_COMMAND_EXECUTE) after you've finished creating the dataset.

Bryan Cain
  • 1,736
  • 9
  • 17
  • Sorry, it's been a while since I did any real UNIX. I think the point remains, there isn't an option to specify who owns the file in ABAP - it needs to be done at the OS level. – Bryan Cain Oct 16 '09 at 15:35
1

You can NOT set SAP user as owner of some file. SAP user is not a user in UNIX. More exact answer can be given if you would specify your requirements.

user109758
  • 51
  • 2