Withholding taxes not updated when program run in background

Hi,
in a z1 report i do:
  SUBMIT z2
  VIA JOB lc_jobname
   NUMBER v_jobcount
     WITH p_fecha  = p_fecha                               
     WITH p_file   = v_file_in
     WITH p_e_file = p_efile 
     WITH p_client = p_client
     WITH p_test   = p_test  
      AND RETURN.
within this z2 report i do:
          PERFORM mrm_invoice_create_call(saplmrm_bapi)     USING     s_rbkpv
                                                       tab_frseg[]
                                                       tab_co[]
                                                       tab_ma[]
                                                       c_rbstat_posted
                                                       space
                                             CHANGING  invoicedocnumber
                                                       fiscalyear
                                                       return[]
                                                       f_subrc.
          IF test IS INITIAL.
            COMMIT WORK AND WAIT.
          ELSE.
            ROLLBACK WORK.
          ENDIF.
the question is that if i run z1 report online there is no problem but if
i run z1 report in background, withholding taxes are not calculated.
After debugging this is what i´ve found out:
1.- in PERFORM mrm_invoice_create_call(saplmrm_bapi) there is a call to fm FI_WT_POST IN UPDATE TASK
2.- in FI_WT_POST table WITH_ITEM is updated
i guess this could be due to a delay in updating the table so i´m considering doing a WAIT UP TO X SECONDS.
why is it working in online mode but not in background mode?
any idea?
Best regards.

Hi,
in case someone is interested this is how i solved the question:
i had badi MRM_WT_SPLIT_UPDAT implemented.
in this badi implementation i had this code (among other checks too):
CHECK sy-tcode = 'MIR4' OR sy-tcode = 'MIR7'.
this code avoided the background job case.
It seems that In a background job sy-tcode is empty.
so i just needed to add this:
CHECK sy-tcode = 'MIR4' OR sy-tcode = 'MIR7' OR  sy-batch = 'X'.
and then withholding taxes reappeared again.
(so sad, so true... one day of debugging,  sigh)
Best regards.
Edited by: Pablo Casamayor on Feb 2, 2012 4:53 PM

Similar Messages

  • Withhold taxes not withheld - F110 Program

    Hi SCN members,
    When the users performed the F110 program and generated the txt file to the bank (That is who print the bank slip.), the bank noticed that the gross amount was printed in the bank slip without subtract the taxes.
    These documents were generated from billing process VF04.
    Apparently, the issue is in the billing documents and not in F110 process because with the user, we have reversed a payment of one document and we have tried to pay it on F110. The result was the same.
    All taxes are not been subtract and not only the taxes withheld in F110. The IRRF tax is withheld in billing process and also is not been subtract.
    I’ve never seen something like that. Have you seen?
    Thanks so much!

    Hi ,
    have you configured Withholding tax on Payment .
    System deduct the withholding tax  In f110 when you configure  Withholding tax type for payment and assign to you comapny code . and then Mainatin in Vendor/ customer master.
    Please check the setting and let us know .

  • 1099:  Withholding tax not updating 1099

    Hello SAP Guru's,
    We updating the Withholding Tax Code under vendor master, then we ran the RFWT0010 program and confirmed the updates were made and now we are trying to re-print the 1099 via S_P00_07000134 and the 1099 still shows the value in the wrong tax code field. 
    What is the problem?

    Just to clarify-
    I updated the tax code from 07 to 01 and after updated via the program and try to re-print the 1099, it is still showing as 07.  I need it to say 01 like it shows in cleared items.
    I need to be able to re-print 1099 using S_P00_07000134 with changes.  I thought by executing the program and reprinting via S_P00_07000134, it would do that.  It still shows amount in tax code 07 and not 01 which it was changed too.
    I appreciate your help!
    Edited by: AMS on Apr 26, 2010 5:23 PM

  • File generated when program run in background

    Hi,
    I have program that generates a report & all the data in the report output is down loaded to a file .please somebody make it clear:
    if I run the report in background will the file still be generated.
    thanks,
    reddy.

    Hi,
    If the program has logic to transfer the data to appliacation layer, then it works. Other wise it is not possible to download the data into your desktop by running in Background.
    Regards,
    Ashok

  • Layout Change when program run in background.

    Hi All,
    I have a layout field on the selection screen. When I run the program in foreground, iam able to see the change in the layout in the output. When I select a layout name and run the report in background, Iam sending a file to the application server. Now, when I give the layout and run the report in background, the file iam sending to the app server should have the same layout which i have selected in the selection screen.
    Please help with some example code.
    Thanks,
    Guru Charan.

    Hi Amit,
    Thanks for the reply. The program can be run both the ways. When it is run in the foreground, Iam changing the layout with the help of REUSE_ALV_GRID_DISPLAY. It is working.
    But when iam running in the background, I have to send a file to application server with the same layout.
    thanks,
    Guru Charan.

  • Some events are not dispatched when app runs in background

    My Android app has a TIMER event which fires once every second to connect a TCP socket (class flash.net.Socket) and send a request.
    A packet sniffer confirms that a socket is in fact connecting, request is sent, reply comes back and connection is closed, all happening once per second.
    Clearly, even with the app in the background, the TIMER event is occurring every second, because the timer handler is initating every socket.
    But not every closing connection causes a CLOSE event to dispatch, because my close handler is called less frequently.  Sometimes once in 3 seconds, 8 seconds or even longer.
    The CLOSE dispatches correctly once per second when the app is in the foreground.
    Why are CLOSE events being missed when the app is in the background?  What is the difference between a TIMER event and a CLOSE event, causing one to dispatch correctly but not the other?
    Thanks.

    I've narrowed my problem down by chopping pieces of code until it works, and I think I have it narrowed down to the code that uses FlexGraphing but need to check a bit more...
    It's odd that it works in Flex3 builder though, and there are no errors when I run in as AIR. In fact, the app RUNS, since it is in the task manager, but it won't appear.

  • Why does Firefox give this message when I do not have another program running "Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system."

    Question
    why does Firefox give this message when I do not have another program running or another window open - "Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system." edit

    See also "Hang at exit":
    *http://kb.mozillazine.org/Firefox_hangs
    *https://support.mozilla.com/kb/Firefox+hangs

  • My mail program does not update when I delete emails in my other email programs (i.e. it still shows messages in my mail inbox when I've deleted them).  I think this started with Maverick?  Any solutions?

    My mail program does not update when I delete emails in my other email programs (i.e. it still shows messages in my mail inbox when I've deleted them).  I think this started with Maverick?  Any solutions?

    one is gmail, one is a university email and they are both IMAP accounts (not that I know what that means)....

  • "How are local and state taxes setup/updated when employee's address change

    Hi All
    I wanted to know "How are local and state taxes setup/updated when employee's address changes . - How is it done in SAP? -
    Thanks in Advance

    This defeats the purpose of trying to centralize SAP-related web resources on the SAP server. Typically IIS/Apache or other non-SAP servers are under the control of IT and not the SAP BASIS group.
    We simply would like to have a centralized location to store static web files so that they are not overwritten during Portal support pack applications.

  • The Horizontal & vertical scroll is not visible or not working when i run the form in Forms 6i.

    Hi all,
    The Horizontal & vertical scroll is not visible or not working when i run the form.
    In this form , there are 5 canvas namely
    CANVAS2 - Stacked Canvas
    PASS - Content Canvas
    MAT_RATES - Content Canvas
    DATE - Content Canvas
    PREVIOUS - Content Canvas
    I have set "Show Horizontal Scroll Bar" to "Yes" and  "Show Vertical Scroll Bar" to "Yes" in the WINDOW Property.
    I have  set "Show Horizontal Scroll Bar" to "Yes" and  "Show Vertical Scroll Bar" to "Yes" in the STACKED CANVAS Property .
    But still the Horizontal and Vertical Scroll Bar is not working when i run the Form.
    Help me with this please. How do i make it visible??
    Oracle Forms 6i..
    Thank You.

    Vijetha wrote:
    Hi all,
    The Horizontal & vertical scroll is not visible or not working when i run the form.
    I have set "Show Horizontal Scroll Bar" to "Yes" and  "Show Vertical Scroll Bar" to "Yes" in the WINDOW Property.
    I have  set "Show Horizontal Scroll Bar" to "Yes" and  "Show Vertical Scroll Bar" to "Yes" in the STACKED CANVAS Property .
    But still the Horizontal and Vertical Scroll Bar is not working when i run the Form.
    Help me with this please. How do i make it visible??
    Oracle Forms 6i..
    Thank You.
    hello vijetha,
    window and canvas show scroll bar when it need.
    You should show block property
    and set block scroll bar
    hope this helps..
    Hamid

  • IPod will not update when plugged into computer?

    Just recently my iPod with not update when I plug it into my computer. My iPod does not show up on my Mac or my iTunes. When I plug it in the screen shows the do not disconnect sign. I have tried to reset my iPod and checked for new updates, but they haven't worked. If anyone knows what to do that would be great.
    Thanks

    Yes. Since I installed the new system software (10.4.6) update Sunday night, I cannot update any of my iPods except the iPod video. The iPods also do not show up on my desktop. The battery charges but that's all that happens.

  • HT1277 Mail on my Mac computer does not update when I update my mail on my phone and iPad.  Can anyone help me with this?  Is there a setting I need to check?

    Mail on my Mac computer does not update when I update my mail on my iPhone and iPad. Can anyone help me with this?  Is there a setting that I need to check?

    All that you had to do was to sign into the old account in order to update those apps. What I mean is that you just needed to sign into that account in the store settings like I described and that should have worked. You didnt need to enter the credit card information again - you justed needed to use the old ID and password.
    Anyway, I think the good news is that if everything else is OK with the new account, just download iBooks with the new ID - it's a free app so its not like you have to pay for it again. I'm not sure what the other App is that you are talking about - but if it is the Apple Store App - that is free as well.
    Try this anyway, when you try to update iBooks, just use the old password if the old ID still pops up.
    Did you try signing into the store settings with your new ID and see what happens with the updates then?

  • Why the PO action history is not updating when i perform the vacation rules

    Hi,
    Can any one explain why the action history is not updating when performed the vacation rules using the below example
    Example: A >B>C>D are in the approval hierarchy here I have defined the vacation rules by login to the user C here I selected the item type as “All” and delegated to D.
    Now the buyer “A” has sent the document for approval. The user “B” can successfully reserve funds and approved the document. Now the document is automatically delegated to D. Here D can open the document from open notifications and approved the document. Now when I checked the Action history here I cannot find the performed name D who has actually approved the document.
    Note:we are using the 11.5.10.2 version.
    The Action History in the following manner
    Seq Action Performed By
    ================================
    4 Approve C
    3 Forward B
    2 Reserved B
    1 Forward A
    0 Submit A
    From the above action history why the user D name is not showing. Can any one let me know ASAP?
    Regards,
    Keivn.
    Edited by: user10960960 on May 5, 2009 3:36 AM

    When you set up the vacation rule, if you simply delegate the ownership to D, then C retains the ownership and the approval occurs with C's limits. And hence D is treated as the approver.
    If you transfer the ownership, then C is out of the picture. The notification goes to D and when he/she approves, D's limits kick in and he will be seen as approver.
    Hope this helps,
    Sandeep Gandhi

  • ITunes play count does not update when iPod is connected

    iTunes keeps track of how many times i play the song on my computer but does not update when I connect my iPod. Is there a way to fix this??
    thanks!!

    I just checked and it does update for me. I'm still waiting to see if it updates from the AppleTV though.

  • Content does not update when published

    My content is not updating when I publish updates to my app. Side loading shows the updates, but an updated published folio doesn't. On the third try, I got a blank light grey screen. I finally had to unpublish and republish the content, which is obviously not an ideal situation.
    Are there any known bugs or problems at the moment that could be causing this issue? The DPS Status page doesn't have any info.
    Thanks
    -Scott

    I'm not aware of a way to get out of this state cleanly. Uninstalling and reinstalling the app fixes the problem (unless your unpublish/republish again), but it's difficult to tell your customers to uninstall/reinstall. Another option is to unpublish and then publish the affected folios as different folios, but then some of your users will end up with two versions of a similar folio until they archive the older version.
    Let me ask around to make sure that I'm correct about the cause and to see if there's a cleaner workaround.

Maybe you are looking for

  • Can't save a word document in pages

    hello all, hopefully someone can help me because i am very frustrated with pages. I recently bought my 2011 macbook pro for school this fall. I transferred all my data from old macbook to this macbook. I needed a new word processing program, so I dec

  • Printing in the background: InDesign 6?

    Is it possible to relegate printing to a background task in InDesign 6?

  • Packet filtering on BGP communities

    Hi all I want to achieve the following scenario: I have a BGP feed that gives me routes with community X. I have an input ACL on an interface. I want to be able to say: if src or dst of packet = any route with community x then drop I can do this with

  • Keyboard size difference in 11" and 13" MBA

    I plan to purchase a new MBA in the next week or so, to replace my 2010 11" MBA.  I love the 11" form factor, but since I do a lot of writing, I'm wondering about the keyboard differences in a 13" MBA.  My Apple store is over an hour's drive, so I th

  • Is my Xperia Ray unlocked or Not ??

    Dear friends, I tried to unlock my xperia ray... Finally i got this error.. Solved! Go to Solution.