‎2006 Dec 28 9:28 AM
hai,
i want to update the database of a ztable with one condition.wht i need to do now.
regards,
Max
‎2006 Dec 28 9:33 AM
Hi,
you can update ur z table like
update ztable
set fields to be updated
where ur condition
Regards
Ashutosh
Reward points if helpful
Message was edited by:
ashutosh ambekar
‎2006 Dec 28 9:30 AM
Use
IF <DATA> EQ <CONDITION>.
UPDATE <TABLE> FROM <WAREA>.
ENDIF.
or UPDATE proj SET txtsp = sy-langu WHERE pspid = wa_project-pspid.
Please post your code for better response.
Regards
Kathirvel
‎2006 Dec 28 9:31 AM
just write a program ,demo is -
update ztable set field1 = '123' where field2 = '2' and
field3 = '3' .
‎2006 Dec 28 9:33 AM
loop at itab.
update ztable set field1 = value1
where field2 = itab-value2 .
endloop.
‎2006 Dec 28 9:32 AM
Hi,
Write a program and using UPDATE the field with the condition.
UPDATE <filed> where <condition>
regards
Sabu
‎2006 Dec 28 9:33 AM
Hi,
you can update ur z table like
update ztable
set fields to be updated
where ur condition
Regards
Ashutosh
Reward points if helpful
Message was edited by:
ashutosh ambekar
‎2006 Dec 28 9:33 AM
UPDATE sflight SET seatsocc = seatsocc + 3
WHERE carrid = 'LH' AND
connid = '0400' AND
fldate = '20010228'.
‎2006 Dec 28 9:34 AM
HI Raju,
welcome to SDN.
just have a button ,so when u press the button ,hav the screen fields like ur screen and statement like
_______________________
tables Ztable.
case sy-ucomm.
when 'button1'.
INSERT ZTABLE .
endcase.
_______________________
regards,
siva
‎2006 Dec 28 9:40 AM
write a code for that condition, if success update the table.
Alex