RH_INSERT_INFTY is not working in BADI

Hello.
I've got the following issue:
I'm using RH_INSERT_INFTY within a BADI, just to limit a record in INFTOTYPE 1000 and is not working, even i don't get any error messages.
The thing is that i'm using the same function within a single report and works fine, it looks like the behaviour of the FM is different within a BADI (I guess).
Any ideas?

I'm locking the object in a previous form.....
FORM infotipo_1010
            USING  p_plaza TYPE objektid
                   p_fecha TYPE datum
                   p_plvar TYPE plvar..
  DATA:    l_t_hrp1010         TYPE STANDARD TABLE OF p1010,
           l_t_aux_hrp1010     TYPE STANDARD TABLE OF p1010,
           l_wa_t_hrp1010      TYPE p1010,
           l_wa_t_aux_hrp1010  TYPE p1010,
           l_t_objects         TYPE STANDARD TABLE OF hrobject,
           l_wa_t_objects      TYPE hrobject.
  l_wa_t_objects-plvar = p_plvar.
  l_wa_t_objects-otype = 'S'.
  l_wa_t_objects-objid = p_plaza.
  APPEND l_wa_t_objects TO l_t_objects.
  CALL FUNCTION 'RH_READ_INFTY'
   EXPORTING
   AUTHORITY                  = 'DISP'
   WITH_STRU_AUTH             = 'X'
     infty                      = '1010'
   ISTAT                      = ' '
   EXTEND                     = 'X'
   SUBTY                      = ' '
   BEGDA                      = '19000101'
   ENDDA                      = '99991231'
   CONDITION                  = '00000'
   INFTB                      = '1'
   SORT                       = 'X'
   VIA_T777D                  = ' '
   TABLES
     innnn                      = l_t_hrp1010
     objects                    = l_t_objects
    EXCEPTIONS
     all_infty_with_subty       = 1
     nothing_found              = 2
     no_objects                 = 3
     wrong_condition            = 4
     OTHERS                     = 5
  IF sy-subrc = 0.
    SORT l_t_hrp1010 BY subty endda ASCENDING.
    LOOP AT   l_t_hrp1010
         INTO l_wa_t_hrp1010.
      l_wa_t_aux_hrp1010 = l_wa_t_hrp1010.
      AT END OF subty.
        l_wa_t_aux_hrp1010-endda = p_fecha.
        REFRESH: l_t_aux_hrp1010.
        APPEND l_wa_t_aux_hrp1010 TO l_t_aux_hrp1010.
        CALL FUNCTION 'RH_INSERT_INFTY'
           EXPORTING
             fcode                     = 'CUTI'
             vtask                     = 'B'
           ORDER_FLG                 = 'X'
           COMMIT_FLG                = 'X'
           AUTHY                     = 'X'
           PPPAR_IMP                 =
           OLD_TABNR                 = ' '
           REPID                     = ' '
           FORM                      = ' '
           KEEP_LUPD                 =
           WORKF_ACTV                = 'X'
           TABLES
             innnn                     = l_t_aux_hrp1010
             ilfcode                   = l_t_objects
          EXCEPTIONS
             no_authorization          = 1
             error_during_insert       = 2
             repid_form_initial        = 3
             corr_exit                 = 4
             begda_greater_endda       = 5
             OTHERS                    = 6.
      ENDAT.
    ENDLOOP.
  ENDIF.

Similar Messages

  • HR_INFOTYPE_OPERATION not working in badi HRBAS00INFTY

    Hi All,
    I need to create a record in IT0019 when IT0024 is updated.
    For that purpose I have created an implementation of badi HRBAS00INFTY and added my code in method IN_UPDATE.
    I try to create the record in IT0019 using FM HR_INFOTYPE_OPERATION.
    The problem is that the record is not created but the FM doesn't return any error( return param is empty ).
    I added 'commit WORK.' after the FM but this doesn't work neither.
    Do you have any idea why ths FM is not working in the badi.
    kr
    Karim

    Hi,
    Try with the BADI HRPAD00INFTY, If it not working try creating dynamic action for INFTY 0024.
    Dynamic actions : SPRO -> SAP Reference IMG -> Personnel Management -> Personnel Administration - >Customizing procedures -> Dynamic Actions.
    ~~~ Ganesh Kumar K.

  • Macbook pro camera not working -- very bad support

    I have a macbook pro bought around October 2010. It has 3 years international warranty.
    Few months back when I wanted to use skype, I figured out that the camera is not working. Took it to Apple care centre in Bangalore.
    They found the camara to be defective. From their notes
    " Reset SMC and PRAM. No go. Tried with known good OS. No go. Found camera not detected in system profiler. Checked with known good display. Camera working. Denied coverage as dent on the display clamshell"
    Chatted with the relationship officer Joana,
    1. I fail to understand that replacing the camera requires relplacing the whole display
    2. Small scrach (can send the picture to you) on the outer cover of teh display is not the root cause of the camera not working
    3. Display is working perfectly fine. Only camera not working
    The relationship officers are such dumb and techically challenged people, that they fail to understand the real issue and instead just try to console you.
    If camera is not working due to a defect, it needs to be replaced in warranty, if Apple's design dictates camera replacemnt to the whole display replacement, so be it.
    Due to my feedback, some of my colleges (10+ guys) took Macbook pro. Extreamely dis-satisfied with the support cell and their techical abilities. Did not expect this from Apple. Will not take any Apple product and will not recommend anyone. Thinkpad rocks!!

    read this: http://support.apple.com/kb/ht2090

  • Deletion of index not working (GT085) - Bad performance

    Hi experts,
    our table COEP has around 90 MIO entries and now it seems like one index is not any longer working.
    Therefore I wanted to rebuild the index ith SE14.
    However, on rebuilding the index I get error GT085. Does anybody know how I can go on?
    Kind regards

    Hi,
    Was the index actually rebuild or not?
    Please give us a bit more detail. 
    What do you see in se14 if you run Extras -> Database Object -> check ?
    Regards,
    Johan

  • Just upgraded to Lion an am discovering that I cannot send email photos from within iPhoto. Error message says bad Internet connection or server not working, when that's not the case. Never happened in Snow Leopard! Help!!!

    Just upgraded to Lion an am discovering that I cannot send email photos from within iPhoto. Error message says bad Internet connection or server not working, when that's not the case. Never happened in Snow Leopard! Help!!!

    what email service - Yahoo mail have been acting up lately
    you can try setting Mail as your email client - it resolves this pfoblem for some people
    LN

  • 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.

  • Hi. I habe one old ID and now i have one new ID. The old one is bad , because the Email not working. But i hav a lot of Apps and i want to copy this apps in my new ID. How can i do this?

    Hi. I habe one old ID and now i have one new ID. The old one is bad , because the Email not working. But i hav a lot of Apps and i want to copy this apps in my new ID. How can i do this?

    You don't. Apps are permanently tied to the ID used to purchase them. Instead of creating a new ID, change the primary email address on your existing ID.

  • ME21N badi ME_GUI_PO_CUST - not working in PO creation

    Hi All,
    I am working on badi ME_GUI_PO_CUST to create a custom tab on PO header. I have implemented the BADI with custom fields in the custom screen. However, in ME21N, this new tab is not appearing. At the same time, it is appearing in ME23N. If i take a PO in display mode, the tab appears and then switch to chaneg mode, the tab disappears.
    Any solution for this pleas.??
    Regards,
    Arun.

    Hi Arun,
    You can use MM06E005 exit for adding the tab for item level in ME21n transaction. In general, you go to smod and you give this exit there and then press on documentation then you will find all the information regarding function module exits.
    Give this exit in SMOD and then press Attributes--> click on Components, then you will find all the function module exits and subscreen areas where you can add your custom field on the subscreens.
    I am giving you the subscreen :
    SAPMM06E 0111 CUSTSCR1 SAPLXM06 0111 Subscreen: PO item
    Function module exit:
    EXIT_SAPMM06E_018 Import Data from Customer Subscreen for purchasing document
    Then you start adding the custom field in Custom include of EKPO table and then you go to SE51 and then you import I mean ( Get from dictionary ) that particular Z field and then activate it. These all the thing you need to create a project and implement in CMOD transaction.
    Then you write the respective code in Functionmodule exit to populate the data to the database.
    Thanks,
    Swamy Kunche
    Edited by: Swamy Kunche on Dec 7, 2009 10:58 AM

  • All of my apps on my new ipad2 are not working. I had this iPad about 4 months and nothing bad has happened before this. I need help on how to make my apps stop crashing. All my built in apps are fine though.

    All of my apps on my new ipad2 are not working. I had this iPad about 4 months and nothing bad has happened before this. I need help on how to make my apps stop crashing. All my built in apps are fine though. WHATBCAN I DO TO MAKE MY APPS STOP CRASHING. I ALREADY TURNED IT OFF THEN ON AGAIN AN IT STILL CRASHES. HELPPP!!!!

    Try a reset. Hold the Sleep and Home button down for about 10 seconds until you see the Apple logo. Ignore the red slider.

  • T40 sound not working after motherboard replaced....bad sound card?

    Hello, 
    I recently brought back to life my old t40 2373-75U by switching out the motherboard (it would no longer charge batteries) with a used R51 1830 motherboard (which I believe was a recommended upgrade by someone on this site).  
    Anyways, long story short - I have the gently used motherboard now installed and the machine is up and running with my old T40 hard drive.  I also have XP-SP3 installed on it, and just had to make a few minor driver updates...everything seems to be working great, EXCEPT I have no sound.
    I have tried everything I can think of:  
    Software:
    -un-installing and re-installing the audio driver several times
    -installing the 2004 version of the hotkey driver (the 2013 version did not work with my system) because the Access IBM and volume buttons were not working and I thought that might be the culprit
    -I believe I updated the BIOS drivers, but not sure if I "flashed" it...admittedly, I don't even know how to do that.
    Hardware:
    -the hardware in device manager shows that it's working properly
    -I've performed the "test hardware" function through the control panel/device manager and it shows a signal with my USB "test" microphone going in and a signal coming out, but still no sound is actually coming out
    -lastly, I've tried connecting external speakers to the headphones jack and still nothing..
    At this point, all I can think is that the sound card is bad.
    Would you agree with this assessment or am I forgetting something?
    Thanks for your help.
    Solved!
    Go to Solution.

    I'm not familiar with Linux Mint as I have been a Fedora guy for a long time, but since LM7 was
    released in 2009, all audio drivers should be present for your machine. But, as I said, that could
    be different for LM.
    But you shouldn't have to do anything further regarding codecs or anything else, and since the Soundmax
    uninstallation also removed the device as well, then it should be completely reset in the OS. Alas, is there
    anything from Via in Control Panel - Add/Remove programs? If so, you should remove that before proceeding.
    The driver for your machine is here:
    Audio driver for Windows XP
    And if you already installed this version, the driver can be found @ C:\DRIVERS\WIN\AUDIO
    I did some rummaging through various forums today in regards to your issue, and found this one,
    a couple of R51 users chime in there too.
    http://forums.windrivers.com/printthread.php?t=73987&pp=40
    and in the above link, a user found a solution by following the advise in this post:
    http://www.techspot.com/community/topics/audio-drivers-not-found.14328/#post-184512
    But instead of getting the drivers mentioned there, you could point to the installation location I
    posted above.
    One thing they mention in these threads, is running
    sfc /scannow 
    in a command prompt, which checks your OS for essential system files, but for XP you'll
    almost certainly need the Windows XP installation media.
    Finally, here is another thread on audio issues for a R51 user:
    http://www.techsupportforum.com/forums/f19/solved-ibm-r51-no-sound-512806.html
    Sorry for a bit muddled reply, but there you go... something to sink your teeth in at least.
    ThinkPad W540 (20BG) - i7-4800MQ/24GB // ThinkPad T440s (20AQ) - i7-4600U/12GB
    ThinkPad T440p (20AW) - i7-4800MQ/16GB // ThinkPad Helix (3698-6EU) - i5-3337U/4GB
    ThinkPad W520 (4282-W4Q) - i7-2720QM/32GB // ThinkPad T400 (2767-W1C) - P9500/8GB
    ThinkPad T61 (7665-CTO) - T7700/4GB // ThinkPad T60p (8741-C2G) - T7400/4GB

  • Hello. after updating to Ios 8 my iPhone is terribly! Discharged very quickly, many transitions between applications, the program takes off, ringtones do not work - works a standard call, the keyboard freezes, bad messages are sent, often loses the n

    Hello. after updating to Ios 8 my iPhone is terribly! Discharged very quickly, many transitions between applications, the program takes off, ringtones do not work - works a standard call, the keyboard freezes, bad messages are sent, often loses the network. what have you done with your phone moym ?! solve all these problems! I beg of you!

    Hello. after updating to Ios 8 my iPhone is terribly! Discharged very quickly, many transitions between applications, the program takes off, ringtones do not work - works a standard call, the keyboard freezes, bad messages are sent, often loses the network. what have you done with your phone moym ?! solve all these problems! I beg of you!

  • While working on BADI coping from PR to PO, it's not triggering

    Hi,
    I am working on BADI to get one field VENDOR MATERIAL NO to get displayed in PO while coping from PR to PO in IDES version.
    I have created PR and based on that PR, I want to create PO but one particular field VENDOR MATERIAL NO  is not copied from PR to PO.
    I have used on BADI ...ME_PROCESS_PO_CUST  and Method is PROCESS_HEADER.
    I have used this below code
    method IF_EX_ME_PROCESS_PO_CUST~PROCESS_HEADER.
    method IF_EX_ME_PROCESS_PO_CUST~PROCESS_HEADER.
        DATA: po_items TYPE purchase_order_items,
        po_item_obj TYPE purchase_order_item,
        lv_BANFN type eban-banfn,
        lv_BNFPO type eban-bnfpo,
        lv_idnlf type eban-idnlf,
        po_item TYPE mepoitem.
    *-Get All Line Items
        po_items = im_header->get_items( ).
    *-Set vendor material no For Each Line Item
        LOOP AT po_items INTO po_item_obj.
          po_item = po_item_obj-item->get_data( ).
    Get the Vendor Material Number
          SELECT SINGLE
          BANFN
          BNFPO
          idnlf
          FROM EBAN
          into (lv_BANFN , lv_BNFPO , lv_idnlf)
          WHERE BANFN = po_item-BANFN
          AND BNFPO = po_item-BNFPO.
          if sy-subrc EQ 0.
            po_item-idnlf = lv_idnlf.
            po_item_obj-item->set_data( po_item ).
            clear: lv_BANFN,
            lv_BNFPO,
            lv_idnlf.
          endif.
        ENDLOOP.
    endmethod.                    "IF_EX_ME_PROCESS_PO_CUST~PROCESS_HEADER
    endmethod.                    "IF_EX_ME_PROCESS_PO_CUST~PROCESS_HEADER
    But this BADI not getting trigerred in IDES... ECC6.
    So can any one help me on this
    Waiting for quick response.
    Best Regards,
    BDP

    Dear Jürgen,
    Thanks for the prompt revert. I create a PR by using the ME51N and later create a PO via ME21N with reference to the PR. After I drag and drop the PR into the basket (PO screen), subsequently, the system ask me to fill up all the information again about the account assignment. I tested with other account assignment category, such as "K", it is able to copy the reference (PR's account assignment information) to the PO without any problem.
    Thank you.
    Regards,
    Edwin

  • EXPORT/IMPORT through FMs in BADI not working

    Hi Experts,
    I have checked several posts and implemented my requirement but it's not working. PFB my requirement:
    We have a BADI in which I need to EXPORT an itab and the same is to be IMPORTed into ZFM. I have created 2 FMs under same FG. Now, in the FM which is being called in BADI i have EXPORT and in ZFM i have IMPORT. Code is given below:
    FM from BADI: ZBADI_FM
      IF lv_flag EQ 'X'.
        EXPORT gt_msg TO MEMORY ID 'CHANGED_DATES'.
      ENDIF.
    Another ZFM under same FG: ZFM
      IMPORT gt_msg FROM MEMORY ID 'CHANGED_DATES'.
    gt_msg is declared in TOP that is common for both FMs. However, IMPORT is not happening. I am not getting the values that I exported. sy-subrc is 4.
    Can anyone help me out? Your help is appreciated.

    Hi,
    I can't believe that it will work:
    EXPORT TO MEMORY
    A data cluster in the ABAP memory is available to all programs within a call sequence, whereby data can be handed over to called programs.
    call sequence
    This sequence is created if you can return from the called program to the calling program at the call of an ABAP-Program with SUBMIT ... AND RETURN or CALL TRANSACTION. For this purpose, the data of the internal session of the caller remains on a stack. The programs of a call sequence have collective access to the ABAP Memory. A call sequence can be left completely using the statement LEAVE TO TRANSACTION.
    Regards,
    Klaus

  • 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

  • Maos in ios6 is working extramly bad. I do not find streets and it shows the wrong position.

    The new Map in IOS 6 is working very bad. It shows the wrong position on an adress and it do not find streets. For exempel Kärleksbacken 3 in Sollentuna Sweden.
    Is there an update comming soon?
    Maps in IOS 5 Fromm Google worked greate, so tjis is à Step down for Apple.
    Best regard

    If this is an iCloud account the Outbox only appears when sending an email, so if it is still trying I suppose it should be showing now (not sure though, hard to replicate this)
    What type of email account?

Maybe you are looking for

  • Exporting into pdf

    What do you do when InDesign stops responding in the middle of exporting a book into pdf?

  • Flv option showing up on one computer but not another.

    at work on one computer the flv option in Compressor shows up when i add a "QuickTime export Component preset." however, it doesn't show up on one of the other computers. I don't remember if i did anything to get the flv option available in the first

  • How do u find an offline ipod?

    how do u find an offline ipod?

  • Sending public key to not java application

    Hi, I'm trying to send through a socket connection a public key encoded on X.509 standard, but the key.getEncoded() method returns a array of bytes,How can I convert this array of bytes to a sequence of characters that can be readable by any not java

  • Quotes idoc

    Good morning: I am trying to implement Quotes idoc, and i think that i has implement all correct, but i am not obteining any idoc, when i implemented Matmas i have to use BD10. Is it not automatically generated or i am missing a transaction for creat