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

Parallel Processing

0 Likes
443

Hi,

Call BAPI using Parallel Processing with below code

CALL FUNCTION 'BAPI_********'

                    STARTING NEW TASK va_task DESTINATION 'NONE'

                    PERFORMING process ON END OF TASK


RECEIVE RESULTS FROM FUNCTION 'BAPI_********''

IMPORTING

         return          = wa_return.

need display results in output screen.

1) Return parameter valve not coming to call FM. unable to pass parameters to perform.

     if write in receive it is triggering after output screen display.

How to handle error records here. Please give solutions dont past any links.

1 REPLY 1
Read only

Former Member
0 Likes
395

hi R

The specified subroutine subr can have exactly one USING parameter, and it is must be task name.

DATA: va_task TYPE xxxx.

CALL FUNCTION 'BAPI_********'

                    STARTING NEW TASK va_task DESTINATION 'NONE'

                    PERFORMING process ON END OF TASK.

FORM process USING va_task.

RECEIVE RESULTS FROM FUNCTION 'BAPI_********''

IMPORTING

         return          = wa_return.

ENDFORM.

Check sample example here, http://help.sap.com/saphelp_nw70ehp2/helpdata/en/fa/096e92543b11d1898e0000e8322d00/content.htm?frame...

regards,

Archer