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

Query in Function Module!!!!

Former Member
0 Likes
383

Hi all,

I have a requirement which requires me to put a custom message in the error log in a transaction.

I have successfully achieved it through a Function Module 'CRM_MESSAGE_COLLECT'.

But on double clicking the Message in the error log I want the navigation to happen to a field.

Kindly tell me how to achieve the above.

Please reply immediately as this is bit urgent.

Regards,

Vijay

2 REPLIES 2
Read only

Former Member
0 Likes
355

Hi,

could you paste the code how you have written message in transaction.?

Thanks in Advance,

venkat n

Read only

0 Likes
355

Hi,

I have used the follwoign code:

DATA : i_bal_r_idno TYPE bal_r_idno,

wa_bal_r_idno TYPE bal_s_idno,

lv_message TYPE char80.

break-point.

wa_bal_r_idno-sign = 'I'.

wa_bal_r_idno-option = 'EQ'.

wa_bal_r_idno-low-msgid = 'ZTEST_MESSAGE'.

wa_bal_r_idno-low-msgno = '000'.

APPEND wa_bal_r_idno TO i_bal_r_idno.

**Delete old messages

CALL FUNCTION 'CRM_MESSAGES_DELETE'

EXPORTING

it_r_msgidno = i_bal_r_idno

iv_ref_object = IV_GUID

iv_ref_kind = 'A'

iv_caller_name = 'ORDERADM_H'

EXCEPTIONS

appl_log_error = 1

OTHERS = 2.

CLEAR lv_message.

MESSAGE ID 'ZTEST_MESSAGE' TYPE 'E' NUMBER '000' INTO lv_message.

CALL FUNCTION 'CRM_MESSAGE_COLLECT'

EXPORTING

iv_caller_name = 'ORDERADM_H'

iv_ref_object = IV_GUID

iv_ref_kind = 'A'

iv_fieldname = 'CURRENCY'.

Please gide me on how to navigate to the currency field under the Prices Tab.

Kindly reply immediately as this is bit urgent.

Regards,

Vijay