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 change the status of updated record?

Former Member
0 Kudos

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...

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

7 REPLIES 7

babu_kilari4
Active Contributor
0 Kudos

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

0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

Hi ,

But the second time old field will be deleted ..

How to delete old field?

thanks

0 Kudos

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

0 Kudos

Hi..

Means what field u want to delete ? give more description.

Regards,

Chintan