cancel
Showing results for 
Search instead for 
Did you mean: 

Trash Can and Deletion flag set CJ20N

Former Member
0 Kudos


Hi,

what is the difference between Trash Can and Edit->Status->Deletion flag-> set   in CJ20N, i need to do different activities when clicked on Trash Can and when Deletion flag is set .

I'm using user exit   EXIT_SAPLCNAU_004

to catch deletion. using SAP_ACTVT = '06'.   but the program is catching SAP_ACTVT = '06'. for both.

what feild value will get me, what is clicked?

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

MTerence
Active Contributor
0 Kudos

Hi Prema,

May be take a trace to understand that.

When you click the Trash button, system will delete it.

Edit - Status - Deletion Flag is when you want to set a deletion status / flag.

Check whether you can differentiate using business operations

LKZS - Set deletion indicator

LVMS - Mark for deletion

LVMZ - Remove deletion flag

Regards

Terence

Former Member
0 Kudos

Thanks Maria.

any other suggestions?

I'm not able to catch this in validation also; once i delete or deletion flag set; its not appearing in validation. is there way to get the status change of the objnr?

Answers (4)

Answers (4)

Former Member
0 Kudos

any more suggestions to stop DLFL(only when deletion flag is set) ; either in
validation or in user exit it shoukd stop.

MTerence
Active Contributor
0 Kudos

Hi Prema,

This is what we can give from functional point of view.

Please check in ABAP forum, so technical experts will be able to answer your issue.

Just wanted to know some thing more... is your system allows to set deletion flag if the actual cost is posted ? Normally it cannot do.

Regards

Terence

varshal_kachole3
Active Contributor
0 Kudos

Hi,

Please check if Change Profile Configuration (Transaction OPSG) fullfil your requirement without having to code the validation.

Hope it Helps!

Thanks and Regards,

Varshal Kachole

Former Member
0 Kudos

it does allow DLFL if there is cost

MTerence
Active Contributor
0 Kudos

Hi Prema,

Are you talking about Planned cost or Actual cost.

Actual cost once the settlement rule is created, you will not able to set deletion flag on activities or network.

Regards

terence

Former Member
0 Kudos

cost/work in the NWA level in CJ20N for example.

Former Member
0 Kudos


In validation OPSI;  the network actvity which is marked 'deletion flag set' is not visible; except that everyother NW Ais visble.

But I could catch that NWA in user exit:EXIT_SAPLCNAU_004. On SAVE  but i'm not able stop save here;

 

CALL FUNCTION 'STATUS_CHANGES_GET'
EXPORTING
* CLIENT = SY-MANDT
OBJNR
= SAP_AFVGD-objnr
TABLES
T_CHANGES
= jest_tab1
T_JSTO_INS
= jest_tab2
T_JSTO_UPD
= jest_tab3.

read table jest_tab1 with key stat = 'I0076'
inact
= ' '

 

if sy-subrc = 0

Error MESSAGE

SAP_X_ACTVT = ' '.

Endif.


is not working.

Former Member
0 Kudos

Hi,

Trash can is to delete the object completely from the data base, deletion flag is used for archiving the object. Once you set the deletion flag the system will archive the object based on the number of days setting.

Deletion flag is a system status, you can find that this status through JEST by passing the object number and the filtering based on Deletion flag internal number.

hope this helps, please let know if you need any further information.

thanks

Former Member
0 Kudos

Thanks Maria and Mos,

my requirement is to check the cost/work (AFVC-PRKST / AFVV-ARBEI) value when user is trying to set the Deletion flag. throw error if the value is greater than zero.

but allow user to Trashcan without checking the value. as the system will automatically deletes value when used trashcan.

so where and when can I catch if user is trying to set the Deletion flag not thrashcan.

but the jest table will not get me current status of the AFVGD-objnr

I have used  CALL FUNCTION  'STATUS_CHANGES_GET'

Former Member
0 Kudos

Any more suggestions?  I'm not able to catch deletion in user validation as that objnr is not visible once i delete it in cj20n; and user exit : EXIT_SAPLCNAU_004 is there a way i can catch , whether it is DLFL or DLT?

 

I0076

 

Deletion Flag

 

DLFL

 

I0013

 

Deletion indicator

 

DLT

MTerence
Active Contributor
0 Kudos

Hi Prema,

Can you please describe your requirement ?

Are you planning to restrict access to these two trash can and deletion flag.

Regards

Terence