cancel
Showing results for 
Search instead for 
Did you mean: 

I need to make mandatory DMS LInk filed mandatory at the time of creation of notification

sandeep_praharaj
Contributor
0 Kudos

Hi Sap gurus,

  I  have created a new notification type  with Dms LINK screen but client needs to make that field to be mandatory.

with out that client will not able to save Notification.

Please any body help me to achieve this.

Thanks & Regards

Sandeep Kumar Praharaj

Accepted Solutions (1)

Accepted Solutions (1)

jogeswararao_kavala
Active Contributor
0 Kudos

Hello Sandeep,


I could work out a solution for your query tested and documented here:

Go through the notes given at the bottom of the post to apply the code to QM scenario. Hope it will be helpful to you.

Good luck

KJogeswaraRao

sandeep_praharaj
Contributor
0 Kudos

Sir,

  Thanks for the help I will test & get back to you if any query.

Thanks & Regards

Sandeep Kumar Praharaj

sandeep_praharaj
Contributor
0 Kudos

Hi sir,

Your answer helped me to solve the issue.

thanks once again sir for your help.

Thanks & Regards

Sandeep Kumar Praharaj

Answers (2)

Answers (2)

VigneshV
Participant
0 Kudos

Dear All,

Thanks for the input on DMS at notification stage.

My Quality dept personnel requested for DMS at Q.info stage as below.

Like Q.info with issue no: 1 to be made as void when Q.info with issue no:2 is released 9 Drawing release) & similar way.

Kindly guide in this.

Vignesh.V

jogeswararao_kavala
Active Contributor
0 Kudos

Hello Vignesh,

You should start a new discussion in more clear terms.

KJogeswaraRao

jogeswararao_kavala
Active Contributor
0 Kudos

Hello Sandeep,

Please close the thread if you are done.

KJogeswaraRao

VigneshV
Participant
0 Kudos

Dear SIr,

Will do.

Sorry for inconvenience caused.

Vignesh.V

anand_rao3
Active Contributor
0 Kudos

Is that the standard field you added? If so, explore OQM1 transaction code.

But if you have some custom logic then exit QQMA0014-QM/PM/SM: Checks before saving a notification - can be useful

Anand

sandeep_praharaj
Contributor
0 Kudos

Hi,

I tried for OQM1      i didn't get relevant  screen field name .

so tried for QQMA0014 there also we did not got screen field .

if you can help with table name we can write custom code over there.

thanks & regards    

Sandeep Kumar Praharaj

jogeswararao_kavala
Active Contributor
0 Kudos

Hello Sandeep,

You need to work with implicit Enhancements provided or with the runtime tables (internal tables) of the Standard program.


KJogeswaraRao

jogeswararao_kavala
Active Contributor
0 Kudos

See whether the following work-around using QQMA0014 itself, fulfills your need.


Code to be put in the include ZXQQMU20 of this exit.


IF SY-TCODE = 'IW22' AND I_VIQMEL-QMART = 'M2'.
   DATA: V_DOKOB TYPE DOKOB.
   SELECT SINGLE DOKOB FROM DRAD INTO V_DOKOB WHERE
     OBJKY = I_VIQMEL-QMNUM.
   IF V_DOKOB IS INITIAL.
     MESSAGE: 'Attach a DIR through ''CV02N''.' TYPE 'E' DISPLAY LIKE 'I'.
   ENDIF.
ENDIF.


Notes:

1. This does not stop user from Creating a Notification. This works on Change Notification viz,Tcodes QM02 or IW22 etc. (Replace the Tcode in the line1 accordingly).

2. Replace value 'M2' in Line1, with your Notification type.

3. The change mode of this Notification will be paralysed (would not allow any changes) until, this notification under question, is assigned a DIR through Tcode CV02n. (Note that, attaching of the first DIR from within the Notification would not work)

Good luck

KJogeswaraRao


busyaban7
Active Contributor
0 Kudos

Thank you Anand Rao, Jogeswara Rao Kavala Sir for your inputs!!