cancel
Showing results for 
Search instead for 
Did you mean: 

Cause code & text check during TECO

former_member224809
Active Participant
0 Kudos

Hi friends,

Our requirement is to maintain (using pop up) OR mandate the cause code and cause text field during TECO.

  • Searched similar discussion but no clear picture
  • Cause code & text should be maintained before TECO
  • Since its maintained during order processing we are unable to check URCOD & URTXT during buffer
  • Found an FM --> READ_NOTIFICATION_BUFFER but not able to use effectively

suggest some leads to enter cause code as pop up or to achieve warning message during TECO.

Regards

Varun.M

Accepted Solutions (0)

Answers (5)

Answers (5)

jogeswararao_kavala
Active Contributor
0 Kudos

Try the code given below in user-exit IWO10004. Here when user tries to TECO an Order without filling URCOD and URTXT the following error pops up.

Error pop-up in case of blank Cause code

Similar pop-up will be there in case of blank Cause text also.

Now the code


DATA: LV_URCOD TYPE VIQMUR-URCOD,
       LV_URTXT TYPE VIQMUR-URTXT.

SELECT SINGLE URCOD FROM VIQMUR INTO LV_URCOD
   WHERE QMNUM = CAUFVD_IMP-QMNUM.
IF LV_URCOD IS INITIAL.
   MESSAGE: 'Please fill the Cause code before TECO.' TYPE 'E' DISPLAY LIKE 'I'.
ENDIF.

SELECT SINGLE URTXT FROM VIQMUR INTO LV_URTXT
   WHERE QMNUM = CAUFVD_IMP-QMNUM.
IF LV_URTXT IS INITIAL.
   MESSAGE: 'Please fill the Cause text before TECO.' TYPE 'E' DISPLAY LIKE 'I'.
ENDIF.

Note:

After the error pop-up, user will fill the Cause code and/or Cause text and then Save the Order/Notification, come again to Order (IW32) to TECO.

KJogeswaraRao

jogeswararao_kavala
Active Contributor
0 Kudos

The mandatory settings through OIAL might not be acceptable to you, because you needed this mandatory feature at the time of TECO. Now the user-exit IWO10004  comes into picture.

MTerence
Active Contributor
0 Kudos

Hi Varun,

We have done a similar requirement using exit IWOC0002. Currently we have developed this exit to display warning message, but you can also make it has error message.

Regards

Terence

rakesh_mane
Active Contributor
0 Kudos

Hello

Please try use User Exit QQMA0014 Or BADI-NOTIF_EVENT_SAVE

Br

Rakesh

jogeswararao_kavala
Active Contributor
0 Kudos

Hello Varun,

It should be possible to mandate these fields with user-exit QQMA0014.  Have you tried? Even this looks possible through Notification field settings through Influencing button (Notification type) in Tcode OIAL.