cancel
Showing results for 
Search instead for 
Did you mean: 

Validation using OPSI based on user/system status DLFL

Former Member
0 Kudos

Hi,

I have requirement to create validation when user clicks on 'delete' or set status to 'delete'. How do I get this status on validation step or in user-exit?

The validation should trigger when user clicks on delete.

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

Paulo_Vitoriano
Active Contributor
0 Kudos

Hi,

Check the point 5 in OSS Note 440186.

Anyway OPSI validations are triggered on saving master data.  Otherwise you have to check for available BADIes.

Cheers,

Former Member
0 Kudos

Thanks Paulo.

do you know what BADI's i need here.

Paulo_Vitoriano
Active Contributor
0 Kudos

Are you talking about WBS or NWA?  For NWA check exit EXIT_SAPLCNAU_004.

Former Member
0 Kudos

Hi Paulo.

thanks for the reply.  its for NWA.

I'm some how not able to catch the DLFL(I0076) status.

for example:

- Tcode CN22.

- entered Network

- clicked on activity overview

- went into 'Total' tab. & if i have 4 objnr.  

     objnr1

     objnr2

     objnr3

     objnr4

- selected objnr1 and selected menu: Edit -> status-> deletion flag. ( i want to catch DLFL here)

- now it is removed from the CN22 screen.

- when i save. the validation takes place from Objnr2 ( system doesnt take into consideration the objnr1)

atleast i thpought i will catch DLFL here. and in jest table i dont see the status change for objnr1 at this stage.

based on some condition i need to stop DLFL from user.

any input is highly appreciated.

Thanks.

Prema

Paulo_Vitoriano
Active Contributor
0 Kudos

Hi Prema,

Please check this link:

CNEX0002 for creating authorization check logic - Product Lifecycle Management - SCN Wiki

And OSS note 554415.

Thanks.

Former Member
0 Kudos

Thanks Paulo.

I'm already using Validation exit:   ZGGBR010

I'm not sure how to include the Cmod exit here. i will try. and please let me know if could you provide anymore info. appreciate your help.

Thanks!

Paulo_Vitoriano
Active Contributor
0 Kudos

Hi Prema,

Authorisation exit will work on status set, while validation exit will work on master data save.  These are two different approaches.

Paulo

Former Member
0 Kudos

Thanks Much Paulo.

I resolved issue using EXIT_SAPLCNAU_004. there was no need of validation here. could ctach DLFL in exit.


IF SAP_ACTVT = '06'.

   SAP_X_ACTVT = ' '.

*required coding here

ELSE.

   SAP_X_ACTVT = 'X'.

ENDIF.

Answers (0)