04-28-2009 6:48 AM
Hi All,
how to change the status of updated record?
new record should be active version(X) and old version will be deleted.
Plz suggest..
Thanks in advance...
04-28-2009 7:17 AM
Hi...
Babu is right..
use Modify <Ztable> from <Workarea> for same but before
assign 'X' value to ur workarea field and then use
Modify <Ztable> from <Workarea>.
Regards,
Chintan.
04-28-2009 6:56 AM
Can you tell your requirement clearly ? What are you trying to do and What is the output that you are expecting ? Please explain the problem.
Thanks,
Babu Kilari
04-28-2009 7:04 AM
Hi Babu,
I am trying to modify a record in ztable and when the record is modified the new version will be generated with X value and old version will be deleted with blank value?
thanks and regards
Steve
04-28-2009 7:08 AM
Steve,
You can simply use the Modify statement right.
Modify <Ztable> from <Workarea>
Note: Work area will contain the new record which needs to be updated.
Thanks,
Babu Kilari
04-28-2009 7:17 AM
Hi...
Babu is right..
use Modify <Ztable> from <Workarea> for same but before
assign 'X' value to ur workarea field and then use
Modify <Ztable> from <Workarea>.
Regards,
Chintan.
04-28-2009 7:41 AM
Hi ,
But the second time old field will be deleted ..
How to delete old field?
thanks
04-28-2009 7:47 AM
Steve,
In the actual question, you mentioned that the old record needs to be deleted and hence the solution provided.
Now, you are talking about field. May I know which field are you talking about??
Jst get in to ABAP Editor and try debugging the code with the solution provided and let us know if that is working fine or not.
Also, I recommend you to take a look at the transaction ABAPDOCU. There you wil find hell lot of examples explaining all the scenarios. You will get a good idea .
Please check that and try to implement it yourself. You will be able to make it after doing mistakes.
If you stuck up again after many attempts, paste your code here. We will help you out
Hope you got my concern.
Thanks,
Babu Kilari
04-28-2009 7:53 AM
Hi..
Means what field u want to delete ? give more description.
Regards,
Chintan