Skip to Content
0
Former Member
May 23, 2012 at 04:09 AM

Required suggestion to implement the code in BADI

59 Views

Dear Supporters,

After implementing the note 1612987 does not implement a check for the existence of the shipment

cost document. In the ECC default system behavior, a goods receipt can

be posted even if no shipment costs have been created for the underlyingshipment. As a result of implementing the corrections delivered with

this note, shipment cost documents that are created during the user

interaction in MIGO (therefore, before the actual goods receipt) are

taken into account as delivery costs.

Conversely, shipment cost documents that are deleted during the user

interaction in MIGO are not taken into account as delivery costs.

You can implement a check for the existence of the shipment cost

documents using BAdIs and check routines for delivery processing or

using transaction MIGO.

For the above statement the code implemented by us contains error message.Is it ok if we implement the error messages in BADI MB_CHECK_LINE_BADI.

after the requirement the code is mentioned as below,is it ok orelse any change required.Does it impact anywhere else if the coding is given with error message as below.From some notes it is said not to use error messages in BADI's ...Is the statement correct?

if sy-subrc <> 0.
message e000(zz) with 'Shipment cost doc. not yet been processed for delivery' is_dm07m-vbeln_vl.
endif.
else.
message e000(zz) with 'Shipment doc. not yet been processed for delivery' is_dm07m-vbeln_vl.
endif.

Waiting for the reply to implement.

Many Thanks,

Anand.