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

Return value from Update FM

Former Member
0 Likes
1,226

Dear ABAPers

I'm using a function module in update task to update some Z tables, i need a return value from the FM ie., successfull / failure of update process , which will enable me to issue message with some document number, but i couldn't use any export/changing parameter in the update FM. What should i do to get a return value from update FM.

Regards

Prabumanoharan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
904

You could use COMMIT WORK AND WAIT along with Exception handling

Regards,

Sathish

3 REPLIES 3
Read only

former_member404244
Active Contributor
0 Likes
904

Hi,

Try to use exceptions and see.

Regards,

Nagaraj

Read only

Former Member
0 Likes
904

Hi,

Use the Table Parameter to get the message.

You can decalre the Table like BAPIRETURN2 and append the message to this table.

later read the table for error messages and display the error.

Read only

Former Member
0 Likes
905

You could use COMMIT WORK AND WAIT along with Exception handling

Regards,

Sathish