Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

To remain in same screen after an error message in delivery?

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

7 REPLIES 7

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Venkat_Sesha
Advisor
Advisor
0 Kudos

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.

0 Kudos

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.

0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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.