Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Multiple confirmations IW42

Hello Gurus,

In T-code IW41, when we trying to time confirm the already "Final Confirmed" operation it will give a error message as "Order XXX is already confirmed which is acceptable behavior.


But I just wondering why this is not validating in IW42,

In T-code IW42 final confirmed operations are loaded and all the time are repeating and accumulated

End-User can Time confirm the operation n times even final confirmation indicator ticked.


IS this the stranded behavior? how to prevent this?

Do I need to use CONF*? or can I prevent this from config?

If so which one? Please help


Thanks


Ashok M



replied

Ashok,

User Exit CONFPM03 (include ZXCOFU03).

Put this code

IF afvgd_imp-rmzhl IS NOT INITIAL.

   DATA: v_opr TYPE char4,

        v_text TYPE char40.

   DATA:i_stat LIKE jstat OCCURS 0 WITH HEADER LINE.

   CALL FUNCTION 'STATUS_READ'

     EXPORTING

       objnr       = afvgd_imp-objnr

       only_active = 'X'

     TABLES

       status      = i_stat.

   LOOP AT i_stat.

     IF i_stat-stat = 'I0009'.

       v_opr = afvgd_imp-vornr.

       CONCATENATE v_opr 'Operation already confirmed' INTO v_text SEPARATED BY space.

       MESSAGE: v_text TYPE 'E'.

       CLEAR: v_text, v_opr.

     ENDIF.

   ENDLOOP.

ENDIF.

This should address your issue.

I was trying to arrange an error message while confirming already confirmed operation. The error message was appearing in IW41  as expected and stopping user from confirming already confirmed operation.

The good news is that this code is suppressing the confirmed operations from list of operation in IW42. This is exactly anyone's requirement like yours too, who does not want to confirm operations multiple times. You may test and confirm. I tested it repeatedly.

Best of Luck

KJogeswaraRao



10/02/2016

Above Code improvised to make it applicable to only fully confirmed Operations.

1 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question