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: 

how to clear value

Former Member
0 Kudos
120

hi friends,

clear:atwrt,atwrt1,atwrt2,atwrt3,atwrt4.

select single ATWRT from ausp into ATWRT

where objek = itab-matnr

and atinn = '37'.

select single ATWRT from ausp into ATWRT1

where objek = itab-matnr

and atinn = '13'.

select single ATWRT from ausp into ATWRT2

where objek = itab-matnr

and atinn = '54'.

select single ATWRT from ausp into ATWRT3

where objek = itab-matnr

and atinn = '59'.

select single ATWRT from ausp into ATWRT4

where objek = itab-matnr

and atinn = '65'.

my problem is i am able to print only last value.

plz correct me how 2 clear value.

8 REPLIES 8

Former Member
0 Kudos
76

hi Purva,

Follow the below syntax..

clear:atwrt,atwrt1,atwrt2,atwrt3,atwrt4.

select single ATWRT from ausp into ATWRT

where objek = itab-matnr

and atinn = '37'.

*clear atwrt.

clear atwrt.

select single ATWRT from ausp into ATWRT1

where objek = itab-matnr

and atinn = '13'.

*clear atwrt1.

clear atwrt1.

select single ATWRT from ausp into ATWRT2

where objek = itab-matnr

and atinn = '54'.

*clear atwrt2.

clear atwrt2.

select single ATWRT from ausp into ATWRT3

where objek = itab-matnr

and atinn = '59'.

*clear atwrt3.

clear atwrt3.

select single ATWRT from ausp into ATWRT4

where objek = itab-matnr

and atinn = '65'.

*clear atwrt4.

clear atwrt4.

Award points if helpful.

Kiran Kumar.G

Have a Nice Day..

former_member188827
Active Contributor
0 Kudos
76

how r u printing values..

send ur write stmt

0 Kudos
76

i am printing value in sap script.

mat char

111 test1

112 test2

113 test3

i am able to retrive value properly but while printing only last

value is printed.

111 test3

0 Kudos
76

r u giving separate text elements for atwrt1, atwrt2,..atwrt4?

which variables are u using to print values on script.

0 Kudos
76

no

i am printing values in same element.

0 Kudos
76

instead of giving all variables try giving only one variable such as atwrt which is not printing otherwise in text elment and see if it gets prinited...remove all others just print one which is not getting prinited...

Former Member
0 Kudos
76

we can use

CLEAR V1 to clear single value

CLEAR : V1 V2 V3 to clear multiple variables

or we can use

REFRESH / FREE in the same way

Former Member
0 Kudos
76

Hi Purva,

Call ur write_form inside the Loop ... EndLoop in

Driven Program.

Regards,

Azhar