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: 

getting dump at mesage

Former Member
0 Kudos

my program calls the l_create_dn function. Soon after calling the function, it creates a dump at the message. Message ... id, type number all are empty. But the transfer is created. The second time when we run, the program runs fine without any problem.

can any one have a idea of wat problem could be

plz help

1 ACCEPTED SOLUTION

Former Member
0 Kudos

After your function module call have you included the standard error handling?

IF SY-SUBRC <> 0.
 MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

If so, it is probably the case that the function module is raising an exception (and still creating the transfer), but hasn't issued an error message (so the SY fields are empty). Debug the program and code some error handling specific to your scenario.

Regards,

Nick

2 REPLIES 2

Former Member
0 Kudos

After your function module call have you included the standard error handling?

IF SY-SUBRC <> 0.
 MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

If so, it is probably the case that the function module is raising an exception (and still creating the transfer), but hasn't issued an error message (so the SY fields are empty). Debug the program and code some error handling specific to your scenario.

Regards,

Nick

Vijay
Active Contributor
0 Kudos

hi

u catch the exceptions in the this FM

if sy-subrc =1.

raise exception.

if sy-subrc =2.

raise exception.etc..

hope it helps

regards

vijay

<b>plz reward points if helpful</b>