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

LE_DSP_REMOTE function

Former Member
0 Likes
3,296

Hi,

In my ABAP program I'm using LE_DSP_REMOTE function by filling the following fields.

if_confirm_decentral = 'X'.

if_pmode = '0003'.

IT_RES-resno = '0001'.

IT_RES-vbeln = delivery_number.

IT_RES-posnr = delivery_item_number.

IT_RES-akmng = 'A'.

IT_RES-lfimg = delivery_amount_tobe_splitted.

In my program when I push a button I fill these fields and call this program it works fine for the first time, but when I call the program again for different values it gives the following message: " Function module LE_DSP_REMOTE was terminated with exception INTERNAL_ERROR (CRPOINxxxx)". Do you have any ideas about the problem?

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
1,700

Dear Mr. Dynasty

Have you ever tried calling the function in this way:

data: taskname type string.

CALL FUNCTION 'LE_DSP_REMOTE' STARTING NEW TASK taskname

EXPORTING

IF_SIMULATE = IF_SIMULATE1

IF_CONFIRM_DECENTRAL = IF_CONFIRM_DECENTRAL1

IF_PMODE = IF_PMODE1

TABLES

IT_RES = IT_RES2

ET_DETAIL = ET_DETAIL1

ET_SUMM = ET_SUMM1

ET_SUMM_23 = ET_SUMM_231

EXCEPTIONS

ERROR_IN_SUBFUNCTIONS = 1

OTHERS = 2

The key point here is using the STARTING NEW TASK addition. Otherwise you cannot use the function more than once in your

ABAP program.

1 REPLY 1
Read only

Former Member
1,701

Dear Mr. Dynasty

Have you ever tried calling the function in this way:

data: taskname type string.

CALL FUNCTION 'LE_DSP_REMOTE' STARTING NEW TASK taskname

EXPORTING

IF_SIMULATE = IF_SIMULATE1

IF_CONFIRM_DECENTRAL = IF_CONFIRM_DECENTRAL1

IF_PMODE = IF_PMODE1

TABLES

IT_RES = IT_RES2

ET_DETAIL = ET_DETAIL1

ET_SUMM = ET_SUMM1

ET_SUMM_23 = ET_SUMM_231

EXCEPTIONS

ERROR_IN_SUBFUNCTIONS = 1

OTHERS = 2

The key point here is using the STARTING NEW TASK addition. Otherwise you cannot use the function more than once in your

ABAP program.