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

SALERT_CREATE

Former Member
0 Likes
564

Hi,

I have a bug in following code which is strange

DATA: l_count_age TYPE i.

l_container TYPE string,

*--Find 'Number of Records in ITAB t_msg_tab_age

DESCRIBE TABLE t_msg_tab_age LINES l_count_age.

l_container = l_count_age.

*--Minutes-Value

CLEAR: lt_container.

lt_container-element = 'VALUE'.

lt_container-tab_index = 7.

lt_container-elemlength = 8.

lt_container-type = 'C'.

lt_container-value = l_container.

APPEND lt_container.

CLEAR l_container.

CALL FUNCTION 'SALERT_CREATE'

EXPORTING

ip_cat = t_proact-alrct

TABLES

it_container = lt_container

EXCEPTIONS

alert_category_unknown = 1

alert_no_recipients = 2

alert_error_unknown = 3

OTHERS = 4.

sometimes

l_count_age holds value 1, after the FM also but while getting a alert mail l_count_age value is 0.000

And somtimes

l_count_age holds value 5, after the FM also but while getting a alert mail l_count_age value is 5

Is that there is some problem in FM or a declaration problem please guide me.

Regards,

Savitha.

3 REPLIES 3
Read only

Former Member
0 Likes
482

hai savitha ,

r u getting worng values or what si the problem

declaration is correct and also callign function module

as u r assigning integer to character may be some problem

but after funcion module call u said ur getting 1 as .000

and 5 as 5 can u just clarify that

m.a

Read only

0 Likes
482

Hi,

l_count_age hold N values suppose n = any number

In alert mail l_count_age = N sometimes and sometimes l_count_age = 0.000.

Thanks in Advance,

Savitha.

Read only

Former Member
0 Likes
482

hai savitha,

can u give me detailed description about this fm please?