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

Problem in BADI- MIGO Posting

Former Member
0 Likes
539

HI,

I have faced one problem while posting MIGO. As per the Badi , if Material price not maintained then system Should give error message. But for us ABAP dump is coming.

In our Method, we are writing as

message a999(zfi) with 'ZFI999 : Posting Not Possible'.

in Function Module MB_POST_GOODS_MOVEMENT , the following place only got error.

IF NOT sy-subrc IS INITIAL.

MESSAGE ID sy-msgid TYPE x NUMBER sy-msgno WITH "385830

sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

  • MESSAGE A263.

ENDIF.

My Requirement is , how can i write the Message in my class and i need only error message .

With Thanks,

Neptune.M

HI,

I have faced one problem while posting MIGO. As per the Badi , if Material price not maintained then system Should give error message. But for us ABAP dump is coming.

In our Method, we are writing as

message a999(zfi) with 'ZFI999 : Posting Not Possible'.

in Function Module MB_POST_GOODS_MOVEMENT , the following place only got error.

IF NOT sy-subrc IS INITIAL.

MESSAGE ID sy-msgid TYPE x NUMBER sy-msgno WITH "385830

sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

  • MESSAGE A263.

ENDIF.

My Requirement is , how can i write the Message in my class and i need only error message .

With Thanks,

Neptune.M

2 REPLIES 2
Read only

Former Member
0 Likes
438

you yourself has asked for a dump.

message <b>a</b>999(zfi) with 'ZFI999 : Posting Not Possible'. Here the message type is A. Change it to an error message, u ll get rid of the short dump.

Read only

0 Likes
438

Hi,

I have tested for error message E, I, S. But if i use other than A, then system will allow to post the GRN.

But My requirement is i need error message . not dump and not allow to post.

With Regards,

Neptune.M