‎2011 Jul 12 12:20 PM
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.
‎2011 Jul 12 12:48 PM
Hi,
check this badi MB_MIGO_BADI. Check the method and validate your data.
Regards,
Madhu.
‎2011 Jul 12 1:26 PM
Hi Madhu,
Thanx for your response.
I have checked this BADI already,its not working.
‎2011 Jul 12 2:56 PM
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