cancel
Showing results for 
Search instead for 
Did you mean: 

How i can restrict to delete network if PR was assigned.

Former Member
0 Kudos

Dear Experts,

How i can restrict to delete network if PR was assigned for that network in CJ20N.

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Ganesh

you can try to check on exit CNEX0002 and specifically EXIT_SAPLCNAU_004 that affects activities.

I think that would give you a solution.

Best Regards

Panagiotis

Former Member
0 Kudos

Hi Panagiotis,

Thank your for your quick response, this exit not working when deleting network.

0 Kudos

Hi....

i assume you have  created a exit project in CMOD and then implement the exit mentioned.

Could you add the following code in your exit code

IF SAP_ACTVT = '06'.

   SAP_X_ACTVT = ' '.

ELSE.

   SAP_X_ACTVT = 'X'.

ENDIF.


and please also activate it..

what happens if you try to delete the network in this case?


Cheers

Panagiotis


ps: activity 06 is the deletion. That means if you try to delete the network the system would popup an error message not allowing the deletion.

(i have tried it and it works)

Former Member
0 Kudos

Hi  Panagiotis Papaspyridakos

Excellent, Thank You...:-)

Answers (1)

Answers (1)

former_member341917
Active Participant
0 Kudos

Hi,

In Standard SAP, if a PR is assigned to a Network Activity system will throw error if u try to delete network.

Regards

Avinash

Former Member
0 Kudos

Hi Kusam,

Thank your for your quick response, sorry it is deleting if PR was assigned to network if that PR have PO error message was throwing error message, other wise it is deleting the network activity.

Any SPRO settings or exit's is there to restrict to delete network if PR was assigned.