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

Former Member
0 Likes
510

Hi All,

I am using parallel processing technic inside a method like this.

CALL FUNCTION 'BAPI_PLANNEDORDER_CREATE' STARTING NEW TASK L_TASK_NAME DESTINATION 'NONE' PERFORMING CREATE_PLANNEDORDER ON END OF TASK

EXPORTING

headerdata = W_HEADERDATA.

but as i expected it gave an error when i wrote the form logic inside the same method.

Then i realized i have to use like this

CALL FUNCTION 'BAPI_PLANNEDORDER_CREATE' STARTING NEW TASK L_TASK_NAME DESTINATION 'NONE' CALLING ZCREATE_PLANNEDORDER on end of task

EXPORTING

headerdata = W_HEADERDATA.

When i double click on method ZCREATE_PLANNEDORDER, its trying to create a new attribute ZCREATE_PLANNEDORDER. I am confused and dont understand where to write my form logic.

Here is my form logic.

RECEIVE RESULTS FROM FUNCTION 'BAPI_PLANNEDORDER_CREATE'

IMPORTING

RETURN = W_RETURN

PLANNEDORDER = W_PLORDER.

Can anybody tell me where and how should i write my logic for calling zcreate_plannedorder.

Can i just add a method ZCREATE_PLANNEDORDER in same class of my original method?

I am very new to oops and confused a lot, A piece of code would be appreciated.

Points will be rewarded for helpful answers.

Thanks in advance

Rajesh.

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
454

Is this implemented in a BADI, or a global class or a local class?

Regards,

Rich Heilman

Read only

0 Likes
454

Actually i am doing an inbound interface using ABAP proxy, i am writing this code in Proxy class.

Thanks,

Rajesh.

Read only

vishal
Contributor
0 Likes
454

Hi Rajesh,

create method in same class and do not forget to create input parameter for task.

Thanks

Guruvardhan