BADI implementation is not working in background for MRRL

Hai frnds,
BADI: MRM_WT_SPLIT_UPDATE is used for deducting withholding tax in MRRL(Invoice verification). This BADI was implemented and working fine in foreground, but not working in background.
After implementing the BADI, the standard method of calculating TDS(from vendor master) is over written by BADI implementation.Now standard deduction is also not workijng in background.Plz help me to solve it.
Bala.V

HI,
COR6N is the Enjoy Transaction and sap does not suggest to write the BDC on these transaction as most of these transaction uses the GUI elements foe better display and which cannot be recorded while processing the BDC in back ground.
Check for the Normal transaction and write the BDC for it.
Or
Pass X to Rcommit flag in the CTU_PARAMS option and check.

Similar Messages

  • BDC is not working in background for Transaction COR6N

    Hi ,
       We have written the BDC program for transaction COR6N. BDC works perfectly in foreground but it's not working for background option.
        SELECT SINGLE AUFPL INTO W_AUFPL FROM AFKO
                  WHERE AUFNR = W_AUFNR.
        SELECT AUFPL VORNR INTO TABLE IT_PHASE FROM AFVC
                WHERE AUFPL = W_AUFPL
                  AND PHFLG = 'X'.
        LOOP AT IT_PHASE.
        WA_BDCDATA-PROGRAM  = 'SAPLCORU_S'.
        WA_BDCDATA-DYNPRO   = '0100'.
        WA_BDCDATA-DYNBEGIN = 'X'.
        APPEND WA_BDCDATA TO BDCDATA.
        CLEAR WA_BDCDATA.
        WA_BDCDATA-FNAM     = 'AFRUD-AUFNR'.
        WA_BDCDATA-FVAL     = W_AUFNR.
        APPEND WA_BDCDATA TO BDCDATA.
        CLEAR WA_BDCDATA.
        WA_BDCDATA-FNAM     = 'AFRUD-VORNR'.
        WA_BDCDATA-FVAL     = IT_PHASE-VORNR.
        APPEND WA_BDCDATA TO BDCDATA.
        CLEAR WA_BDCDATA.
        WA_BDCDATA-FNAM     = 'BDC_OKCODE'.
        WA_BDCDATA-FVAL     = '/00'.
        APPEND WA_BDCDATA TO BDCDATA.
        CLEAR WA_BDCDATA.
        WA_BDCDATA-PROGRAM  = 'SAPLCORU_S'.
        WA_BDCDATA-DYNPRO   = '0100'.
        WA_BDCDATA-DYNBEGIN = 'X'.
        APPEND WA_BDCDATA TO BDCDATA.
        CLEAR WA_BDCDATA.
        WA_BDCDATA-FNAM     = 'AFRUD-LMNGA'.
        WA_BDCDATA-FVAL     = w_qty. "'60'.
        APPEND WA_BDCDATA TO BDCDATA.
       CLEAR WA_BDCDATA.
       WA_BDCDATA-FNAM     = 'AFRUD-BUDAT'.
       WA_BDCDATA-FVAL     = w_date. "'31.12.2008'.
       APPEND WA_BDCDATA TO BDCDATA.
        CLEAR WA_BDCDATA.
        WA_BDCDATA-FNAM     = 'BDC_OKCODE'.
        WA_BDCDATA-FVAL     = '=BU'.
        APPEND WA_BDCDATA TO BDCDATA.
        clear X_OPTIONS.
        X_OPTIONS-DISMODE = 'N'.  ' works perfectly for 'A'
        X_OPTIONS-UPDMODE = 'S'.
        X_OPTIONS-CATTMODE = ' '.
        X_OPTIONS-DEFSIZE = ' '.
        X_OPTIONS-RACOMMIT = ' '.
        X_OPTIONS-NOBINPT = 'X'.
        X_OPTIONS-NOBIEND = ' '.
        CALL TRANSACTION 'COR6N'  USING BDCDATA  OPTIONS FROM X_OPTIONS
                           MESSAGES INTO ITAB.
                     MODE 'N'  MESSAGES INTO ITAB UPDATE 'S'.
       WAIT UP TO 3 SECONDS.
        COMMIT WORK AND WAIT.
        CLEAR:BDCDATA[],WA_BDCDATA.

    HI,
    COR6N is the Enjoy Transaction and sap does not suggest to write the BDC on these transaction as most of these transaction uses the GUI elements foe better display and which cannot be recorded while processing the BDC in back ground.
    Check for the Normal transaction and write the BDC for it.
    Or
    Pass X to Rcommit flag in the CTU_PARAMS option and check.

  • BADI - "REDUCT_TRIP_AMOUNT" implementation is not working

    Dear all,
    While creating or changing trip data i got one badi "REDUCT_TRIP_AMOUNT".  i was implemented badi.
    Badi implementation is not working. There was hard code break point "BREAK-POINT." i was writen in badi , But is not comes in way of execution.
    Since BADI name i am getting, BADI implementation is not working..
    Let me know any config required or what...
    Regards,
    Vipul

    Hello Vipul,
    I am having the same problem, I am trying to implement the BADI ''REDUCT_TRIP_AMOUNT'' for deducting the TRIP Amount for leave days , but when I put the hardcode breakpoint , it is not stopping anywhere.
    Kindly help .
    Regards,
    Vishal Chauhan

  • BADI   "EXIT_SAPLFMWR_002"  is not working

    Hi All,
    We have upgraded from 4.6C to 6.0 and
    BADI   "EXIT_SAPLFMWR_002"  is not working . please suggest some solution for this.

    Look at OSS <a href="https://service.sap.com/sap/support/notes/834826">Note 834826 - Replacement for customer enhancement SAPLFMWR 002</a>
    <b>
    Symptom</b>
    After the upgrade to SAP_APPL 4.70, the CMOD-exit EXIT_SAPLFMWR_002 for the derivation of the commitment item from the current G/L account does not work anymore.
    <b>
    Solution</b>
    Do not activate the EA-PS enhancement or the Funds Management, but go to the general exit instead, in other words: Transfer the function to a separate implementation of the BADI 'TR_GET_ACCNT_ASSIGN' (Transaction SE19).
    You can find example code for the implementation of the strict derivation logic in the source code of the method GET_ACCNT_ASSIGN below. If you already have a BADI implementation with a separate logic (for example, from the migration of the exit EXIT_SAPLFMCH_001) the specified logic should be prepended to your own logic.
    Regards

  • Open dataset is not working in background in PRD

    Dear All,
    Open dataset is not working in background in PRD .
    OPEN DATASET filepath FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    Whike running in foregroundits working dev as well as prd.
    but when i am running in background  its giving error like file not found .
    but al11 is working (i mean my file path is working ).
    Thanks N Regards,
    Srinivasa Reddy

    your authority team shall check the batch user of that abap!
    Could you please tell us the detailed error message?
    grx
    Andreas

  • Gui_download Function module is not working in Background Scheduling

    Hi Experts,
    Function modules like GUI_DOWNLOAD are not working in background scheduled jobs, It is raising an exception. Though it is working fine in foreground execution.
    Please provide me solution for this challenging task.
    you could be rated well for this question.
    Thanks,
    Rama Krishna.

    Hello,
    work with open dataset and close dataset...
    just loop over itab and transfer itab field for field into a string field separated by ;
    Here is an extract of coding:
    OPEN DATASET p_dath FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
      LOOP AT itab_pos.
        CLEAR satz.
        MOVE itab_pos-vbeln TO satz-vbeln.
        MOVE ';' TO satz-fill1.
        MOVE itab_pos-kunnr TO satz-kunnr.
        MOVE ';' TO satz-fill2.
        MOVE itab_pos-ktgrd TO satz-ktgrd.
        MOVE ';' TO satz-fill3.
        MOVE itab_pos-fkdat TO satz-fkdat.
        MOVE ';' TO satz-fill4.
        MOVE itab_pos-budat TO satz-budat.
        MOVE ';' TO satz-fill5.
        MOVE itab_pos-cpudt TO satz-cpudt.
        MOVE ';' TO satz-fill6.
        MOVE itab_pos-fkimg TO satz-fkimg.
        MOVE ';' TO satz-fill7.
        MOVE itab_pos-netwr TO satz-netwr.
        MOVE ';' TO satz-fill8.
        MOVE itab_pos-vrkme TO satz-vrkme.
        MOVE ';' TO satz-fill9.
        MOVE itab_pos-ktgrm TO satz-ktgrm.
        MOVE ';' TO satz-fill10.
        MOVE itab_pos-matnr TO satz-matnr.
        MOVE ';' TO satz-fill11.
        MOVE itab_pos-mattxt TO satz-mattxt.
        MOVE ';' TO satz-fill12.
        MOVE itab_pos-gewei TO satz-gewei.
        MOVE ';' TO satz-fill13.
        MOVE itab_pos-brgew TO satz-brgew.
        TRANSFER satz TO p_dath.
      ENDLOOP.
      CLOSE DATASET p_dath.
    It is not so comfortable as it is with GUI_DOWNLOAD but it works in background!

  • Program not working ib background

    Moderator message: background/foreground/GUI problems = FAQ, please search before posting.
    Hi All,
    I have a program which is not working in background.It actuly takes the file and using GUI_upload i upload it into ITAb and then modify the database table based on this. But when i process this in foreground it working and updating the table.But when i scedule in background the job is getting over in 1-2 sec and not updating the table.
    Please help me. below is the code for your refrence:
    data:begin of i_tab occurs 0,
          Bp1 like DATAbase table,
          Bp2 like  database table,
         trf1 type string,
         trf2 type string,
         status type string,
      end of i_tab.
    data: BP_ver type STANDARD TABLE OF DATAbase table      with header line ,
          w_ver type  ZVERS_BUT050_CUR .
    DATA: it_tab type filetable,
        gd_subrc TYPE i,
        file_name TYPE string,
        path TYPE string.
    DATA : lw_file TYPE file_table.
    DATA: LIN TYPE I.
    *Input File
    SELECTION-SCREEN begin of block blk with frame title text-100.
    SELECTION-SCREEN SKIP 2.
    parameters : p_file like rlgrap-filename .
    SELECTION-SCREEN end of block blk.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CLEAR:  file_name.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          window_title     = 'Select only Text File'
          default_filename = '*.txt'
          multiselection   = ' '
        CHANGING
          file_table       = it_tab
          rc               = gd_subrc.
      READ TABLE  it_tab INTO lw_file INDEX 1.
      file_name = lw_file.
      p_file = file_name.
    START-OF-SELECTION.
    *Upload the file
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME                      = FILE_NAME
         FILETYPE                      = 'ASC'
       HAS_FIELD_SEPARATOR           = 'X'
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
      DAT_MODE                      = ' '
      CODEPAGE                      = ' '
        TABLES
          DATA_TAB                    = i_tab
    EXCEPTIONS
       FILE_OPEN_ERROR               = 1
       FILE_READ_ERROR               = 2
       NO_BATCH                      = 3
       GUI_REFUSE_FILETRANSFER       = 4
       INVALID_TYPE                  = 5
       NO_AUTHORITY                  = 6
       UNKNOWN_ERROR                 = 7
       BAD_DATA_FORMAT               = 8
       HEADER_NOT_ALLOWED            = 9
       SEPARATOR_NOT_ALLOWED         = 10
       HEADER_TOO_LONG               = 11
       UNKNOWN_DP_ERROR              = 12
       ACCESS_DENIED                 = 13
       DP_OUT_OF_MEMORY              = 14
       DISK_FULL                     = 15
       DP_TIMEOUT                    = 16
       OTHERS                        = 17
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      loop at i_tab.
        if i_tab-status = 'Yes'.
          i_tab-status = 'V'.
        else.
          i_tab-status = 'I'.
        endif.
        modify i_tab.
      endloop.
      if i_tab is not INITIAL.
        select * from DATAbase table into CORRESPONDING FIELDS OF TABLE  BP_ver FOR ALL ENTRIES IN i_tab
          where PARTNER1 = i_tab-Bp1 and PARTNER2 = i_tab-bp2  .
      endif.
    *Update the table
      loop at BP_ver .
        clear i_tab.
        read TABLE i_tab  with key bp1 = BP_ver-PARTNER1 bp2 = BP_ver-PARTNER2  .
       if i_tab-bp1 = w_ver-PARTNER1 and i_tab-bp2 = w_ver-PARTNER2.
        BP_ver-PARTNER1 = i_tab-bp1 .
        BP_ver-PARTNER2 = i_tab-bp2 .
        BP_ver-Z_CURRENTLY_VALI = i_tab-status .
        modify BP_ver TRANSPORTING Z_CURRENTLY_VALI .
       endif.
      endloop.
      update DATAbase table from table bp_ver[] .
      if sy-SUBRC eq 0.
        commit work.
        message 'Table DATAbase table Updated Sucsussfully' type 'S'.
      else.
        message 'Table Not Updated !!! Check the file data or input' type 'S'.
      endif.
    Edited by: Thomas Zloch on Nov 12, 2010 11:03 AM

    Hi,
         Look at the coding in FM GUI_UPLOAD ... This does not work in background ....
    Batch mode is not supported
      IF sy-batch = 'X'.
        MESSAGE ID 'FES' TYPE 'E' NUMBER '002' RAISING NO_BATCH.
      ENDIF.
    Regards,
    Srini.

  • YouTube will not work on safari for me on the ipad. Is there anyway to fix this? I can go anywhere else on the internet fine and it works on google chrome, but on safari it shows a blank screen with the bar on top after it loads.

    YouTube will not work on safari for me on the ipad. Is there anyway to fix this? I can go anywhere else on the internet fine and it works on google chrome, but on safari it shows a blank screen with the bar on top after it loads, if it's even loading at all.
    I do not know if it's relevant or not, but I got a message on my ipad while on safari saying that my iPhone has a virus. I looked it up and it seems it might have just been an ad from the website I was on, but it happened around the same time YouTube stopped working.

    You will find that using the YouTube app will provide a better viewing experience for YouTube videos.

  • In c200 chat is not working on background like 273...

    In 2730 c i will get sound alart when i get a im i will be 24hours online Chat is not working in background in c200 like 2730 c so i cant use im all time how to make it work like 2730 c in my c200 both are s40 no

    Dude, make sure u are on a 3G network to ensure clarity, then also, install skype so that you can get some of those neccessary files/apps to carry out voice stuffs...

  • Submit and return exporting list to memory is not working in background

    Hi gurus,
    i am using submit statement and exporting list to memory. it works fine in foreground and i am able to get the output. but in case of background , it is not exporting the list.PLease help me on this.
    Thanks and regards,
    Rajeshwar

    Hello Rajeshwar,
    This is a duplicate thread. You have a thread with the same question.
    [list_to_memory is not working in background;
    Jayant Sahu

  • Not working my setting for my icloud

    not working my setting for my icloud

    In what way is it not working?   Please give us more info.

  • SUBMIT does not work in background...

    Hi guys,
    We have a copy program of a standard transaction and once we use this copy program in the main program via SUBMIT... it does not work in background...
    Why is this so,,, Please advice...
    THanks!

    Hi,
    When executing some program using the statement like SUBMIT prog_2 WITH parameters and RETURN.
    In foreground PROG_2 is executed, and once you click on the BACK button the code written after this SUBMIT statement will be executed.
    If you are executing the same in the BACKGROUND mode, no feasibility of clicking on BACK button, hence control will remain in the PROG_2 only after executing its logic.
    Please code accordingly.

  • I have downloaded the latest Adobe Flash on my laptop and it is not working on safari for youtube.I have uninstalled and installed it multiply times and it still wont show me youtube videos

    I have downloaded the latest Adobe Flash on my laptop and it is not working on safari for youtube.I have uninstalled and installed it multiply times and it still wont show me youtube videos

        Enable Plug-ins
        Safari > Preferences > Security
        Internet Plug-ins >  "Allow  plug-ins"
        Enable it.
        Press " Manage Website Settings" button for more options.

  • Workflow not working in Background Processing

    Hi All,
    I am relatively new to Workflow.  Currently, I am creating Deliveries (preferably in background) once a Sales Order is created.  I am using an ABAP Class as the object method to submit the sales order number to the delivery processing method (which just submits basic information to standard SAP transaction VL04).  I found that if the execution of the delivery creation task is not in Background Processing (the user manually kicks off the Delivery creation in SBWP) the workflow works as expected and creates the deliveries.  However, if the Background Processing is checked, the workflow does not process and does not create a delivery.  Is there any specific reason as to why the workflow will not work in background?
    Any help you can give would be greatly appreciated.  Thanks.
    John

    Hi,
    John
    See to process a Back ground task, there should be a proper parameter flow.
    Please look at the import parameters in the method you are using to process the back ground task..
    If proper import parameters are passed then the task will work
    This should help..
    Thanks,
    Shanky

  • Java it not working on pogo for me

    i dont know whats going on, me and my husband both need java to get our internet games to work. well it works on his, but it will not work on pogo for me. first it was saying that the java was messed up or not right i mean up to date but i have takin it out and put it back in over and over and it still wouldnt work. and now it is saying that the pogo is messed up so i took that out and put it back in. needless to say it still wont work so if someone could give me some thing else to do or try i would appreciate it or knows why its doing thisand has some kind of info for me. thats all ty lisa.

    What's a "pogo"?

Maybe you are looking for

  • Using USB preamp with Garageband

    Garageband will not recognize my microphone for some reason. I am using an M-Audio USB Preamp, with a Behringer condensor microphone. I have changed the input/output settings in both the mac settings and the garageband settings to "M-Audio Mobilepre

  • HOW TO DISPLAY HTML FILE

    I'm trying to display a help file created in html when a menu item is clicked.Can someone please help with the code to do that... Thanking you in advance...

  • Computer has fried due to an ill repair!

    Hello all, I have an older MacBook Pro, my keys kept coming off and it so I took it in to the Apple Store and even though I was outside of my 3 yr. Apple Care they said that they would fix it for free since I was only about 3 weeks out of the warrant

  • Can't find javac after the installation

    I am a beginner and just start learning Java. I successfully downloaded and installed j2sdk-1_4_0-win.exe to my hard drive. However, when I tried to compile, I always got the message "Bad command". Based on some suggestions in the tutorial, I checked

  • Acrobat 8.1.0 Delete Not Visable

    Hello. I have cloned my old hard drive to a new large capacity hard drive. The delete fuction now does not work. I have just reinstalled the Acrobat 8.1.0 software and still the delete function is greyed out. Before cloning all functions worked. Any