Application Development and Automation 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: 
Read only

Validations In MIGO

Former Member
0 Likes
547

Hi ,

Is there any user exit where i can check excise details while posting MIGO Document.

Requirement is like while posting MIGO with Excise details system should validate excise group and storage location combination.

Can anyone let me know which exit i need to use.

I have used J_1I7_MIGO_SAVE fucntion module but its of no use because system is giving dump if we write error messages

as it is update module.

Best Regards,

Venkat.

3 REPLIES 3
Read only

madhu_vadlamani
Active Contributor
0 Likes
501

Hi,

check this badi MB_MIGO_BADI. Check the method and validate your data.

Regards,

Madhu.

Read only

0 Likes
501

Hi Madhu,

Thanx for your response.

I have checked this BADI already,its not working.

Read only

0 Likes
501

Hi

Madhu is right. Check with method CHECK_ITEM (for instance, the same for CHECK_HEADER).

and set this coding:



  data it_error type bapiret2.

  call function 'Z_MB_BADI_CHECK'
    exporting
      line  = i_line_id
    importing
      error = it_error.

  if not l_error is initial.
      append it_error to et_bapiret2.
  endif.

For Z_MB_BADI_CHECK



  read table i_items into goitem with key zeile = line.

  check sy-subrc = 0.

* do your checks with the values of GOITEM

  if is true.
    clear error.
    error-type = 'E'.
    error-id   = 'ZTYPE'.
    error-number = '001'.
    error-message_v1= 'TEXT1'.
    error-message_v2 = 'TEXT2'.
  endif.

I hope this helps you

Regards

Eduardo

Edited by: E_Hinojosa on Jul 12, 2011 3:57 PM