Application Development 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: 

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

SAPWorkerL
Participant
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

<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...

0 Kudos

>

> 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

0 Kudos

I agree with Alex Ayers.

Srinivas Nuthi - can you please elaborate?

0 Kudos

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 )

Former Member
0 Kudos

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

SAPWorkerL
Participant
0 Kudos

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.

0 Kudos

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