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: 

Required suggestion to implement the code in BADI

Former Member
0 Kudos

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.

2 REPLIES 2

Former Member
0 Kudos

Dear Team,

Is there nobody in forums to give suggession on this.Really shocked.......I didnot expect this in forums.

Regards,

Anand.

0 Kudos

Refer this thread...http://scn.sap.com/thread/878139 . As per this this BADI is meant for raising error messages and it shouldnt be an issue