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

bapi_material_savedata

Former Member
0 Likes
486

Hi,

I take the Function "bapi_material_savedata" to change a field of MARC.

Normally i get back an importing field RETURN, which says me, if the change ist

correctly done.

Now i want to call the "bapi_material_savedata" with

with "starting new task ... destination ...". Therefore, i get a syntax error, that i isn't allowed to take import parameters.

Has anyone an idea, how i can see, if the material in "bapi_material_savedata" was

correctly changed, without taking the importing field return?

Thanks a lot

Sabine

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
423

Yes you cannot import back from the functionmodule in case of STARTING NEW TASK.

Suppose program A makes a call to this bapi(consider the bapi module as program B) in new task , then the moment call is made to bapi the program B will start its execution in a seperate task(seperate LUW) . The calling program A will not wait for the return and it will continue its execution in parallel with the execution of the bapi module. Suppose the last line of program A is the call to bapi then program A will end before the execution of BAPI as these are being executed in parallel and their execution is not dependent on each other.

Only during these kind of cases we need to go for NEW TASK.

Reward pointf if found useful

Regards,

barath.

1 REPLY 1
Read only

Former Member
0 Likes
424

Yes you cannot import back from the functionmodule in case of STARTING NEW TASK.

Suppose program A makes a call to this bapi(consider the bapi module as program B) in new task , then the moment call is made to bapi the program B will start its execution in a seperate task(seperate LUW) . The calling program A will not wait for the return and it will continue its execution in parallel with the execution of the bapi module. Suppose the last line of program A is the call to bapi then program A will end before the execution of BAPI as these are being executed in parallel and their execution is not dependent on each other.

Only during these kind of cases we need to go for NEW TASK.

Reward pointf if found useful

Regards,

barath.