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

Problem using CALL_FB08

Former Member
0 Likes
4,165

Hi all,

I am using CALL_FB08 for reversing a document. When I run my program in debug mode, the document is posted, but if I execute it directly, the document is not getting posted!

I tried commit and work, changed the update parameter to "S" and "L" too. But doesnt work.

Is there a way of overcoming this?

Thanks,

Shruti

5 REPLIES 5
Read only

Former Member
0 Likes
2,464

Hi Shruti,

Try to set the i_update parameter as 'S' instead of 'A'. and then use the commit statement after the call to this FM.

Check the documentation for this FM:

It is generally necessary to fill in the parameters for transaction

FB08, although the posting date, posting period and the void reason code

are optional. If a posting date is not entered, the system checks

whether the old period is still open. If this is not the case, the

system date is entered as the posting date. The date determined can be

called up with the export parameter.

If the document is part of a general transaction, all the related

documents are reversed (unlike transaction FBU8). It is also possible to

enter the general transaction instead of the document number.

Payments by check can only be dealt with if a void reason code is

entered.

Having been started in simulation mode, the function module then informs

you whether you still need to run transaction FBRA (Reset Cleared Items)

before the actual reversal.

Hence call CALL_FBRA after the call_fb08.

Regards,

Ravi

Regards,

Ravi

Read only

Former Member
0 Likes
2,464

Hi Ravi,

I tried your suggestion. Still not working.

Also I am not running it in simulation mode. Hence I dont think I need to call FBRA.

Thanks,

Shruti

Read only

Former Member
0 Likes
2,464

hi shruti,

I have also en-countered same problem once, Before calling this function module you put one Commit work.

and then once the function module is called you add one more commit.

You can use enquee_sleep function module and give 2 seconds as wait time.

eg:

commit work.

call_fb08.

enquee_sleep.

commit work.

if you are working on BAPI the commit Work will not work instead you have to use BAPI_Trasaction_commit.

hope this will help you.

Regards,

krishna

Read only

Former Member
0 Likes
2,464

Hello All,

Well the solution provided by Krishna is not working. Even after the enque_sleep and commit work the entry for reversal does not occur.

I m sorry to continue in the same thread instead os creating a new one as i m stuck with same kind of problem. If it is offensive please let me know.

Thanks for looking into the matter!

Zankruti.

Read only

Former Member
0 Likes
2,464

did u get the solution, if not can I see your code.....