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

Run time - Time out

Former Member
0 Likes
477

I am getting into runtime error as the the program is timing out as time taken to process is more than teh runtime.

My code goes as below:

if s_oifpbl-lgort+0(2) = 'WP'.
      concatenate s_final-zeubcd  s_final-mvgr1 into lv_wascode separated by space.
      else.
        lv_wascode = ' '.
      endif.

Will it solve the problem if I write it

concatenate s_final-zeubcd  s_final-mvgr1 into lv_wascode separated by space.
if s_oifpbl-lgort+0(2) <> 'WP'.
        lv_wascode = ' '.
      endif.

As the problem only started after I added this code part in the program .The program was runnig fine before addition of this.

Thanks

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
439

> I am getting into runtime error as the the program is timing out as time taken to process is more than teh runtime.

> My code goes as below:

>

if s_oifpbl-lgort+0(2) = 'WP'.
>       concatenate s_final-zeubcd  s_final-mvgr1 into lv_wascode separated by space.
>       else.
>         lv_wascode = ' '.
>       endif.

I don't think above said "concatenate" giving you the runtime dump. i think it because of some other code.

I am getting into runtime error as the the program is timing out as time taken to process is more than teh runtime.

My code goes as below:

if s_oifpbl-lgort+0(2) = 'WP'.
      concatenate s_final-zeubcd  s_final-mvgr1 into lv_wascode separated by space.
      else.
        lv_wascode = ' '.
      endif.

Will it solve the problem if I write it

concatenate s_final-zeubcd  s_final-mvgr1 into lv_wascode separated by space.
if s_oifpbl-lgort+0(2) <> 'WP'.
        lv_wascode = ' '.
      endif.

As the problem only started after I added this code part in the program .The program was runnig fine before addition of this.

Thanks

2 REPLIES 2
Read only

Former Member
0 Likes
439

HI,

Try this way..

CONCATENATE s_final-zeubcd  s_final-mvgr1 INTO lv_wascode 
                SEPARATED BY space.
IF s_oifpbl-lgort+0(2) EQ 'WP'.
  CLEAR lv_wascode .
ENDIF.

Read only

former_member194669
Active Contributor
0 Likes
440

> I am getting into runtime error as the the program is timing out as time taken to process is more than teh runtime.

> My code goes as below:

>

if s_oifpbl-lgort+0(2) = 'WP'.
>       concatenate s_final-zeubcd  s_final-mvgr1 into lv_wascode separated by space.
>       else.
>         lv_wascode = ' '.
>       endif.

I don't think above said "concatenate" giving you the runtime dump. i think it because of some other code.