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

What is return code, sy-subrc = '03'

colin_cheong
Contributor
0 Likes
3,987

Hi,

My custom printing program call a standard SAP printing routine thru function call.

The return code given as "03".

I am not able to understand what causes it.

Can some expert share with me what is code "03" and how should I overcome it?

Thanks a million.

Bye

Hi,

My custom printing program call a standard SAP printing routine thru function call.

The return code given as "03".

I am not able to understand what causes it.

Can some expert share with me what is code "03" and how should I overcome it?

Thanks a million.

Bye

4 REPLIES 4
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
2,339

Which function ?

Read only

0 Likes
2,339

    call function 'WFMC_MESSAGE_SINGLE'

       exporting

          pi_nast        = nast

       importing

          pe_rcode       = retco.

Read only

0 Likes
2,339

In the standard code the below code returns 3

* don't process locked entries (but don't perform this check

* in preview mode)

  if us_screen ne on.

    returncode = 3.

Please debug the function for better understanding.

Read only

0 Likes
2,339

Function 'WFMC_MESSAGE_SINGLE' calls FORM EINZELNACHRICHT(RSNAST00): In here, we can see this line of code:

perform programm_aufrufen using xscreen.

In form programm_aufrufen:

*******************************************************************************************************************************

* don't process locked entries (but don't perform this check
* in preview mode)
  if us_screen ne on.
    returncode = 3.

*******************************************************************************************************************************
^^It is probably at this code where SUBRC gets the value of 3...