Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Difference between read/write and read with filter/write with filter

SAPWorkerL
Participant
0 Likes
1,280

Does anyone know the difference between read/write and read with filter/write with filter? These are activities 33/34 and A6/A7 in S_DATASET.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,040

You will find more usefull information in transaction ABAPDOCU than SU21.

Use the yellow "?" to search for the keyword "OPEN DATASET ... WITH FILTER" and read the explanation for what a developer can do with this, and whether or now an authorized user can then use the filter extention on the dataset command from the code.

Cheers,

Julius

7 REPLIES 7
Read only

Former Member
0 Likes
1,040

<removed_by_moderator>

Edited by: Julius Bussche on Dec 28, 2009 3:25 PM

So that no one else has to waste their time with a random link...

Read only

0 Likes
1,040

>

> Hi,

>

> can you please check the Happy New Year

>

> Regards,

> Srinu

I don't see anything in that link that answers the question, can you please paste the text which does?

Edited by: Julius Bussche on Dec 28, 2009 3:26 PM

Link -> Happy New Year

Read only

0 Likes
1,040

I agree with Alex Ayers.

Srinivas Nuthi - can you please elaborate?

Read only

0 Likes
1,040

Hi,

I guess below link might give you a little more help..

http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3d5c358411d1829f0000e829fbfe/frameset.htm

Happy debugging )

Read only

Former Member
0 Likes
1,041

You will find more usefull information in transaction ABAPDOCU than SU21.

Use the yellow "?" to search for the keyword "OPEN DATASET ... WITH FILTER" and read the explanation for what a developer can do with this, and whether or now an authorized user can then use the filter extention on the dataset command from the code.

Cheers,

Julius

Read only

SAPWorkerL
Participant
0 Likes
1,040

Thanks to Julius. Here is the information from ABAPDOCU. This seems to be the most information that is found anywhere. Help.sap.com doesn't say anything helpful.

************************

OPEN DATASET

Addition 9

... FILTER f

Effect

If you are working under UNIX or Windows NT, you canspecify an operating system command in the field f.

Example

Under UNIX, the following:

DATA dsn(20) VALUE '/usr/test.dat'.

OPEN DATASET dsn FOR OUTPUT FILTER 'compress'.

opens the file dsn and writes the data to the file incompressed form because of the UNIX command 'compress'.

OPEN DATASET dsn FOR INPUT FILTER 'uncompress'.

Reads the fila again.

Read only

0 Likes
1,040

If you want to do some advanced security, then try to track down where the value of the field f is coming from, and where the file path can be input as well (possibly without local customizing over-writing a configuratable path in config).

There are some programs which use this and even let the user influence them.

This is why restricting the program name in object S_DATASET should be your first weapon of choice....

Cheers,

Julius