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: 

Mail to User on Credit Limit Exceeded

Former Member
0 Kudos

Dear Experts,

I am trying to set up Alert Management for a scenario "Whenever the customer credit limit is exceeded at the time of Sales Order creation (VA01) or at the time of Change SO (VA02) certain users should get an e-mail with the details of customer number, SO number, Credit Limit Exceeded Amont and so on...

Can anyone please help me on how to do this...?

Best Regards,

Venkat

6 REPLIES 6

Former Member
0 Kudos

I would do it from userexit_save_document, in include MV45AFZZ, probably. There you would need to code for email, call the email API as a separate task... I would probably maintain a variable table somewhere with a list of email IDs to be used, if I were going to send via the internet, as opposed to SAP workplace.

0 Kudos

Thanks for the reply with usefull information.

I have need some more help.

how can I catch the Static Credit information which I need to send to user but by the time the execution reaches to the program MV45AFZZ that information will not available.

the information which I need will be available while executing FM SD_ORDER_CREDIT_CHECK.

can I copy this FM to ZSD_ORDER_CREDIT_CHECK and call FM one more time in the exit USEREXIT_SAVE_DOCUMENT and catch the require and info and export to memory and import where I needed.

pl you and all experts let me know your opinion

Cheers

Venkat

Former Member
0 Kudos

Dear Experts,

my requirement will be fulfilled if I am able to modify the FM SD_ORDER_CREDIT_CHECK, can any one tell me that if I can modify this FM.

Regards

Venkat

0 Kudos

Hello Venkatesh ,

Even if you have enough authorizations to edit a standard function module, it is not recommended by SAP- Your modifications will be lost when system upgrade. Instead you can use enhancement to achieve the same result via a "modification-free" way when system is upgrade.

Display the function module in function builder, click "Edit"->"Enhancement Operations"->"Create" to create your own enhancement on the function module. Hope it helps.

Best Regards,

Jerry

Former Member
0 Kudos

This as been done using exits and field symbols

0 Kudos

Hi,

I'm facing similar problem. I trying to copy variable credit_limit_exceeded in form MESSAGE_EXCEEDED_VALUE to vbak-zzfield with USEREXIT_MOVE_FIELD_TO_VBAK. Can you please explain how you solved your problem?

Regards,

Robert