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

Returncodes

Former Member
0 Likes
417

Hi

i am populating 0requester by calling this form "bbp_get_requester"

when this doent find any values then what wud be the return code and how i will handle it? because when this form doent find values it is not allowing to load data instead it throws an error "Record 1 :No value found for attribute 0REQESTER for InfoObject 0USERNAME = ".

please tell me how will i handle it?

following is the code for 0REQUESTER in transfer rules.

DATA: l_s_errorlog TYPE rssm_s_errorlog_int.

DATA: l_s_errorlog TYPE rssm_s_errorlog_int.

data: l_rc type i.

perform bbp_get_requester using TRAN_STRUCTURE-afnam

RECORD_NO

g_s_minfo

changing RESULT

g_t_errorlog

l_rc.

returncode <> 0 means skip this record

RETURNCODE = l_rc.

abort <> 0 means skip whole data package !!!

ABORT = 0.

Full points will be assigned.

Thanks & Regards,

Vijaya

2 REPLIES 2
Read only

Former Member
0 Likes
384

Hi the returncode will come to L_RC. If the l_rc value is zero then you can consider that as Success. Not equal to zero means treat that as no data found. That's it. Generally the return code will be 4 or 8 for not found. But any not zero value indicates error.

Read only

Former Member
0 Likes
384

Thanks!