When creating a file using OPEN DATASET, SAP creates the File with the owner as <sysID>adm
.
How t开发者_JAVA技巧o set this as the logged in user?
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.
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.
精彩评论