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

IDoc Dbts

Former Member
0 Likes
496

Hi All,

I have an IDoc of message type INVOIC01 wiht process code INVM which calls up the FM IDOC_INPUT_INVOIC_MM. There is a user exit within the FM I am doing some validations within that User Exit.

So my problem is if partner no is not meeting some conditions I have to put a stop to the IDOC processing and Post the Status as 51 to the status record with my own Customised message .

Is that possible through any FM Please give me the code for that

Thanks and Regards

Arshad.A

Hi All,

I have an IDoc of message type INVOIC01 wiht process code INVM which calls up the FM IDOC_INPUT_INVOIC_MM. There is a user exit within the FM I am doing some validations within that User Exit.

So my problem is if partner no is not meeting some conditions I have to put a stop to the IDOC processing and Post the Status as 51 to the status record with my own Customised message .

Is that possible through any FM Please give me the code for that

Thanks and Regards

Arshad.A

2 REPLIES 2
Read only

Former Member
0 Likes
473

Hi EveryOne,

Can you please look into this as it is very urgent.

Thanks and Regards

Arshad.A

Read only

0 Likes
473

Put debug in all user exit.

And pass some error value to the table, for example in debug mode pass invalid vendor number and see which table fills error message and in the same table pass your custom message.

Because before invoice posting the code checks error table. if there is any entry in the error table idoc goes to 51 status.

Thanks,

Narayan