05-19-2011 8:27 AM
Hi All,
In Delivery exit MV50AFZZ, we are facing an issue. we need two fields to be filled when doing goods issue. If those fields are not filled, we are throwing an error message. The issue is, after this error message pop up, it comes out of delivery screen on hit enter. So the details entered are lost and again we have to re-enter them in fresh transaction.
To avoid re-entering the input, we are trying to give the error message as soft error and to retain in the same delivery screen.
We tried different ways of changing the message type, either it saves the delivery after showing the message or stays in display mode after the message hence we are not able to feed the two required fields.
Making the two fields mandatory in customizing will not help as this is required for certain conditions only.
Could anyone please help.
Thanks,
Srilakshmi.
05-19-2011 1:39 PM
MV50AFZZ is the wrong exit. Use the BADI LE_SHP_DELIVERY_PROC, method :DELIVERY_FINAL_CHECK. After validation, fill the error log in the internal table parameter CT_FINCHDEL.
See the documentation of interface IF_EX_LE_SHP_DELIVERY_PROC (method : DELIVERY_FINAL_CHECK) for reference.
Regards, Vinod
05-19-2011 9:41 AM
In the PAI module put tose in chain endchain with on request and then handle them in case of error message it will redisplay the screen with errorenous fields ready for input again.
05-19-2011 11:12 AM
Hi Srlakshmi,
Regarding those two fileds enable after giving error message. Try to use Export and Import.
PBO:
EXPORT FILED1 TO 'xyz'.
EXPORT FILED2 TO 'ABC'.
PAI:
IMPORT FROM 'XYZ' TO FILED1.
IMPORT FROM 'ABC' TO FILED2.
--Syerra
05-19-2011 1:29 PM
Hi ,
Dont through the POP-UP with error message.
Instead you can do it like this.
MESSAGE TEXT-001 TYPE 'I' DISPLAY LIKE 'E'.
Where TEXT-001 is the Text Symbol which contains errors message string.
Thanks & regards,
Bhargav.
05-20-2011 5:08 AM
MESSAGE TEXT-001 TYPE 'I' DISPLAY LIKE 'E'.
Will the above statement stop the transaction from processing further or will it act like just an information message which lets us proceed further.
Thanks,
K.Kiran.
05-20-2011 5:26 AM
Hi Kiran,
It just shows the Popup message as Information with a Red triangle exclamatory Mark.
Just check it out once. open se38 write only one line of code for message after report statement. and try to execute u will come to know.
Thanks,
Bhargav
05-19-2011 1:39 PM
MV50AFZZ is the wrong exit. Use the BADI LE_SHP_DELIVERY_PROC, method :DELIVERY_FINAL_CHECK. After validation, fill the error log in the internal table parameter CT_FINCHDEL.
See the documentation of interface IF_EX_LE_SHP_DELIVERY_PROC (method : DELIVERY_FINAL_CHECK) for reference.
Regards, Vinod
05-23-2011 8:36 AM
Hi Vinod,
Thanks for your input.
We implemented the method DELIVERY_FINAL_CHECK of BADI LE_SHP_DELIVERY_PROC to achieve our result.
Thanks,
Srilakshmi.