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

Adding a message to a certain application log

Former Member
0 Likes
1,680

Hi,

I am using Migo transaction for Goods Issue and I'm trying to display a message in the application log  when the safety stock is excedeed.  Is there a posibility to update/ add messages to application log?. Currently, it displays my application log  and Migo's application log.

Thanks

1 ACCEPTED SOLUTION
Read only

laurent_fournier2
Contributor
1,338

Hi,

You are not mentioning how you are trying to add the message. If you are using badi "MB_MIGO_BADI" in method check_document there is a bapiret parameter that will display your message in the application log if you fill it correctly.

Regards.

6 REPLIES 6
Read only

laurent_fournier2
Contributor
1,339

Hi,

You are not mentioning how you are trying to add the message. If you are using badi "MB_MIGO_BADI" in method check_document there is a bapiret parameter that will display your message in the application log if you fill it correctly.

Regards.

Read only

0 Likes
1,338

I am using MB_CHECK_LINE_BADI . The method CHECK_LINE doesn't have that kind of parameter, so I'm trying  to add the message using FM 'BAL_LOG_MSG_ADD' and 'BAL_DSP_LOG_DISPLAY'.

Read only

0 Likes
1,338

It seems that with this badi you cannot issue any messages to the application log of the transaction. Why don't you try to find/use another badi that has this functionality ?

Read only

0 Likes
1,338

I could use  LINE_MODIFY  and CHECK_ITEM methods of MB_MIGO_BADI  in order to read the values /  to display the message of but i can't figure out  how to pass values from 2 methods

Read only

0 Likes
1,338

If I remember correctly, CHECK_ITEM has all the necessary data to do the checks. What exactly do you need to pass ? Can you describe a bit the requirement ?

Read only

0 Likes
1,338

I've solved the problem. Check_item has 2 parameters: for line_id and for messages. I needed the value enterd in the quantity field, so i used LINE_MODIFY to read the data and transfer usind the following statement: EXPORT gs_goitem FROM gs_goitem TO MEMORY ID 'ZTRANS'. Then I imported gs_goitem  in CHECK_ITEM and I added a log message if the safety stock is excedeed by the quantity that I entered. Thank you for your help