2007 Dec 26 7:13 AM
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.
2007 Dec 26 7:18 AM
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..
2007 Dec 26 7:18 AM
2007 Dec 26 7:23 AM
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
2007 Dec 26 7:27 AM
r u giving separate text elements for atwrt1, atwrt2,..atwrt4?
which variables are u using to print values on script.
2007 Dec 26 7:29 AM
2007 Dec 26 7:36 AM
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...
2007 Dec 26 7:23 AM
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
2007 Dec 26 7:33 AM
Hi Purva,
Call ur write_form inside the Loop ... EndLoop in
Driven Program.
Regards,
Azhar