Reg:Updating NAST Table
In my requirement i want to set the data base field VSTAT as 1 in NAST table when the order is processed. I'm using UPDATE statement to update the database field but it does not work. i write the code like this
update nast set vstat = 1
where kappl = 'EF' and
objky = '5500000002' and
kschl = 'LEFT'.
but it doesn't work fine sy-subrc set to 4. Is there any way to set the value of vstat as 1. Please help me.
same here, you need to write your issue clearly. Why are you trying to update NAST. it contains the output from the transaction, why not letting it processed instead of doing something stupid bu updating in in the code. if you dont weant output to be processed remove the condition record.
You would help yourself if you write the problem yiu are facing more clearly. eg you are writing the code but where? which program ? user exit? how can one imagin what your issue is