Function module works correctly in debugger, but hangs otherwise.

I am having an issue with a standard function module that 'hangs' when ran.  If i look in sm37, the calling job will just continuously run.  If i look in SM50, there aren't any sql statements which are bringing back large results, it seems to be running a large number of sequential reads against a certain table.  The odd thing is, if i break in this function module, then press F8 to continue, the function module successfully executes and the job finishes. 
The function module in question is ISU_DUNNING_DEACT_INSTPL_0350, which i have attached to a dunning activity.  This function module SHOULD deactivate any active installment plans for the dunned account.  The FM is odd, as it calls another FM and does a hard EXIT, even though there is code below this line that it can never access. 
If I set a breakpoint in the function module, and run FPVB (dunning transaction), it will break into the function module.  I can then press F8, the FM completes successfully, then the job completes.  If i do NOT break it (just run in background as normal), the job just continuously runs.  SM50 reveals reads to the BUT000 table (even though i cannot find any calls to this table in the fm).
Any ideas?

Nishikant,
Thanks very much for the help. 
I did this, and I can see where its getting stuck.  The following entries are repeated indefinitely (until i stop it )
      374 BUT000     FETCH       1      0
        3 BUT000     REOPEN             0 SELECT WHERE "CLIENT" = '120' AND "PARTNER" = '0007024125'
      420 BUT000     FETCH       1      0
        3 BUT000     REOPEN             0 SELECT WHERE "CLIENT" = '120' AND "PARTNER" = '0007024125'
      365 BUT000     FETCH       1      0
        3 BUT000     REOPEN             0 SELECT WHERE "CLIENT" = '120' AND "PARTNER" = '0007024125'
If i double click the SQL statement, i see these details
SQL Statement
  SELECT
    "CLIENT"
  FROM
    "BUT000"
  WHERE
"CLIENT" = :A0 AND "PARTNER" = :A1
Variable
A0(CH,3)  = 120
A1(CH,10) = 0007024125
I caught it in SM50 where the read was, and it says the select exists in Function Pool SAPLBPT1.  I have done a search in this for anything containing BUT000, but have found nothing.  Any suggestions on how to find where this is occurring, or what might be going on?

Similar Messages

  • Function Module working only in debug mode

    Hi all,
    The following Function Module works only in debug mode. The purpose of this FM is to create a notification and to put it in progress status. If I put a breakpoint before "CALL FUNCTION 'BAPI_ALM_NOTIF_PUTINPROGRESS'" it works. If I execute this FM without putting a breakpoint at that place it creates the notification but doesnt put it in progress status.
    In other words, the last BAPI call doesnot work if I dont put a breakpoint before.
    Can somebody help me to find out where is the problem?
    Thanks,
    Younes
    FUNCTION ZFM_CREATE_NOTIF_IN_PROCESS.
    ""Local interface:
    *"  IMPORTING
    *"     VALUE(NOTIFTYP) TYPE  CHAR2
    *"     VALUE(NOTIFHEADER) TYPE  BAPI2080_NOTHDRI
    *"  EXPORTING
    *"     VALUE(NOTIFNUMBER) TYPE  CHAR12
    *"     VALUE(NOTIFCURSTATUS) TYPE  CHAR40
    DATA: gs_bapi2080_nothdre TYPE bapi2080_nothdre,
          gt_return TYPE TABLE OF bapiret2.
    The notification is created with a temporary number
    CALL FUNCTION 'BAPI_ALM_NOTIF_CREATE'
      EXPORTING
        notif_type         = NOTIFTYP
        notifheader        = NOTIFHEADER
      IMPORTING
        notifheader_export = gs_bapi2080_nothdre
      TABLES
        return             = gt_return.
    READ TABLE gt_return TRANSPORTING NO FIELDS WITH KEY type = 'E'.
    CHECK sy-subrc IS NOT INITIAL.
    *The notication will be saved with a number which isnt temporary
    CALL FUNCTION 'BAPI_ALM_NOTIF_SAVE'
      EXPORTING
        number      = gs_bapi2080_nothdre-notif_no
      IMPORTING
        notifheader = gs_bapi2080_nothdre
      TABLES
        return      = gt_return.
    READ TABLE gt_return TRANSPORTING NO FIELDS WITH KEY type = 'E'.
    CHECK sy-subrc IS NOT INITIAL.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    The Notif is already created, it will be put in progress status
    NOTIFNUMBER = gs_bapi2080_nothdre-notif_no.
       CALL FUNCTION 'BAPI_ALM_NOTIF_PUTINPROGRESS'
            EXPORTING
              NUMBER             = NOTIFNUMBER
              LANGU              = SY-LANGU
           IMPORTING
             SYSTEMSTATUS       = NOTIFCURSTATUS
           TABLES
             RETURN             = gt_return.

    Hi Emmanuel,
    Now I get your problem: you want to wait to have the commit finished! The call to BAPI_TRANSACTION_COMMIT has an optional parameter 'WAIT' which is space by default which causes only a commit. When you set this parameter to 'X' it will do a commit work and wait.
    This should solve your problem!
    Regards,
    John.

  • HT1937 My iPhone was working correctly with FaceTime but now it's not , say (waiting for activiation) what should I do ??  Kindly if you can help!!

    My iPhone was working correctly with FaceTime but now it's not , say (waiting for activiation) what should I do ??  Kindly if you can help!!

    Thanks for your answer...
    My iPhone was connected to a wifi internet when I tried to activate it and when I tried activation by iTunes I was using my laptop with windows 7 which was connected to internet by cable.
    I updated my iPhone to IOS 7 when I was in Egypt and I had no problems with updating it and I can't remember if finding my iPhone option was on or off before updating to IOS 7 and as i understood from searching internet that to use iCloud Finder on web from computer to find my iPhone it should be set up already on my iPhone and I didn't set up iCloud on my iPhone before and my Apple ID wasn't verified for iCloud till today, I verfied it by logging in iCloud from a friend iPad.
    I was considering already the option that my iPhone has been hacked but if this happened so how I would unlock my iPhone and activate it to back to work? who would help me with that? I'm so tired of being without my phone for almost 4 days and I started to consider not having any Apple product anymore... I think that this way to secure the consumer has a lot of conflicts...

  • The javascript functions are working correctly, but still get scripting error messages

    When you open or run any javascript functions in this form, error messages pop up, but functions work correctly. Anyone that can help me get rid of error messages? Screenshots are attached.

    can you please share the error messages.

  • SSF function module to disable pop window but OTF data is not coming.

    Hi Experts,
    My requirement is to get the PDF from the SSF function module and email it and i don want to display the pop option
    I passed these parameters
    1.no_dialog = c_x.
    2.-preview = c_x.
    3.-no_open   = c_x.--|
    4.no_close  = c_x.---| if i add these two conditions i don get printer pop up but i don get the data for " job_output_info  " also.
    to this function module ,
    Please tell me how to get data into " job_output_info "  import parameter by not displaying the pop up for printer.
    Thanks and Regards in advance.

    Hello,
    we did it using the following code.
    DATA: w_ctrlop TYPE  SSFCTRLOP,
            w_return TYPE  SSFCRESCL.
      DATA ls_job_output_info TYPE ssfcrescl.
      DATA p_pdf_len          TYPE i.
      DATA pt_tlines          TYPE TABLE OF tline.
    (function_name is the name of the smartform)
    W_CTRLOP-GETOTF = 'X'.
    W_CTRLOP-NO_DIALOG = 'X'.
        CALL FUNCTION function_name
          EXPORTING
            CONTROL_PARAMETERS         = W_CTRLOP
            USER_SETTINGS              = 'X'
         IMPORTING
            JOB_OUTPUT_INFO            = ls_job_output_info
          EXCEPTIONS
            FORMATTING_ERROR           = 1
            INTERNAL_ERROR             = 2
            SEND_ERROR                 = 3
            USER_CANCELED              = 4
          OTHERS                       = 5.
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        REFRESH pt_tlines.
        CLEAR:  p_pdf_len.
        CALL FUNCTION 'CONVERT_OTF'
         EXPORTING
            FORMAT                      = 'PDF'
         IMPORTING
            BIN_FILESIZE                = p_pdf_len
          TABLES
            OTF                         = ls_job_output_info-otfdata
            LINES                       = pt_tlines
         EXCEPTIONS
           err_max_linewidth           = 1
           err_format                  = 2
           err_conv_not_possible       = 3
           err_bad_otf                 = 4
           OTHERS                      = 5.
        IF sy-subrc <> 0.
        ENDIF.
        CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
           bin_filesize                    = p_pdf_len
           filename                        = p_filename
           filetype                        = 'BIN'
          TABLES
            data_tab                        = pt_tlines
         EXCEPTIONS
           file_write_error                = 1
           no_batch                        = 2
           gui_refuse_filetransfer         = 3
           invalid_type                    = 4
           no_authority                    = 5
           unknown_error                   = 6
           header_not_allowed              = 7
           separator_not_allowed           = 8
           filesize_not_allowed            = 9
           header_too_long                 = 10
           dp_error_create                 = 11
           dp_error_send                   = 12
           dp_error_write                  = 13
           unknown_dp_error                = 14
           access_denied                   = 15
           dp_out_of_memory                = 16
           disk_full                       = 17
           dp_timeout                      = 18
           file_not_found                  = 19
           dataprovider_exception          = 20
           control_flush_error             = 21
           OTHERS                          = 22.
        IF sy-subrc <> 0.
          MESSAGE s614(zef) DISPLAY LIKE 'E'.
      ENDIF.

  • HT4773 I have upgraded to Lion and I have a new Apple keyboard, however none of my function keys work correctly. Any idea what is the solution?

    I have upgraded to Lion and have a new keyboard. The problem I have is that the function keys are not working correctly - none of them. F1 -> F6 are not working at all and F7 - F12  do what F1 etc are supposed to do. Any ideas for a solution?
    Thanks in advance

    That message is telling you to update iTunes on your computer, not your phone. You need iTunes 11.1 on your computer in order to sync your devices.

  • Mod function not working correctly

    I wrote a code to decimal to binary number system, this code works properly for 5 but show wrong result on 47. I tried lots of times but not getting solution.When "23.5 mod 2" calculated I
    got the remainder 0 which is worng it should be 1.
    Private Function convertor_bin_and_octal(num1 As Double, system As Byte) As String
    Dim Exponent As Double, mantes As Double, num As Double, h As Byte
    Dim b As String
    Dim a As String
    If IsNumeric(num1) = True Then
    num = Int(num1)
    Exponent = num1
    While num >= system
    Refresh
    h = num Mod system
    a = a & Str(h)
    num = num / system
    Wend
    a = a & Int(num)
    a = StrReverse(a)
    num = num1
    ma = Exponent - Int(num)
    If ma <> 0 Then
    While ma <> 0
    ma = ma * system
    b = b + Str(Int(ma))
    ma = ma - Int(ma)
    Wend
    a = a & "." & b
    End If
    convertor_bin_and_octal = a
    Else
    Label2.Caption = "Please enter the numeric value only"
    Text1 = ""
    Text1.SetFocus
    End If

    Please move your post to VB forum here:
    https://social.msdn.microsoft.com/Forums/en-US/home?forum=vbgeneral
    Fouad Roumieh

  • Function module table returning empty rows but export data is getting

    Hi,
    I am executing function module through JCO after setting importing parameter and when i retrieve the table i get table with empty data 0 rows but i am able get export parameter data . when execute the same function module in abap through sap gui i get table containing 5 rows. what may be the problem. please find below code 
          function = getDefaultJCoConnection().getJCoFunction("ZCRM_ICSS_PROJ_CUST_USR");
                function.getImportParameterList().getField("USER_ID").setValue("MLDL010");
                getDefaultJCoConnection().execute(function);
                exportTable = function.getTableParameterList().getTable("PROJCUSTLIST");
                int rowsNumber = exportTable.getNumRows(); // companies table number of rows
                log.error("rowsNumber----"+String.valueOf(rowsNumber));
      try
         if (rowsNumber > 0)
         int i = 0;
         do
         tempString="table valuesZCOMP_ID"(String)exportTable.getValue("ZCOMP_ID")"ZCOMP_SPC-"+(String)exportTable.getValue("ZCOMP_SPC")
                     + "table valuesZCOMP_DESC"(String)exportTable.getValue("ZCOMP_DESC")"ZPRICE-"(String)exportTable.getValue("ZPRICE")"---" ;
         log.error(tempString);
         while (exportTable.nextRow());
         catch (Exception th)
         log.error("The following error occured: while retrieving table values ", th);
    Do you have any idea where may be the problem
    Regards,
    Pavan
    Edited by: Pavan Reddy on Apr 10, 2010 4:46 PM

    Hi Pavan,
    This could be the case. The function module might be expecting a value converted into its format.
    By this, I mean that the function module might be expecting 0012345678 for 12345678 (Where data element of the ID is of type CHAR 10 ).
    Please check if it is so.
    Best Regards,
    Kris.

  • Script works in Script Debugger, but not a folder action - can u help?

    Hi
    I have written the following script to run as as folder action and it works fine when running it through in debug mode in Script Debugger, but as a folder action nothing happens.
    I wonder if someone could have a look and spot what the problem is.
    Thanks
    Nick
    on adding folder items to this_folder after receiving added_items
    set convertPath to "Macintosh HD:opt:local:bin:ffmpeg"
    tell application "Finder"
    set inPath to this_folder as alias
    set outPath to this_folder as alias
    set filesToConvert to (name of every item of inPath whose name extension is "m4a")
    end tell
    repeat with i from 1 to count of filesToConvert
    set fileName to removeExtension(item i of filesToConvert)
    do shell script POSIX path of convertPath & " -i " & (quoted form of ((POSIX path of inPath) & item i of filesToConvert)) & " -f mp3 -ar 44100 -ab 192k -acodec libmp3lame " & (quoted form of (POSIX path of outPath)) & quoted form of (fileName & ".mp3") & " -mapmetadata " & (quoted form of ((POSIX path of inPath) & item i of filesToConvert)) & ":" & (quoted form of (POSIX path of outPath)) & quoted form of (fileName & ".mp3")
    end repeat
    end adding folder items to
    to removeExtension(fileToParse)
    #display dialog fileToParse
    set prevTIDs to text item delimiters of AppleScript
    set text item delimiters of AppleScript to "."
    return first text item of fileToParse
    set text item delimiters of AppleScript to prevTIDs
    end removeExtension

    mmh, well, it seems something is awry with the triggering. other folder action scripts seemed to work fine, but now are intermittent.
    i created the following simple script:
    on adding folder items to this_folder after receiving added_items
    display dialog "1"
    end adding folder items to
    sometimes it works, sometimes not.
    what could be going wrong?

  • Same Function module accessible in 4.6c but not in ecc6

    Hi,
    When I am calling the fm in a program with  parameter which is not defined in FM in SAP ver 4.6 C its not giving any dump, but the same thing when I call in ECC 6 its giving error message that field is not defined.
    could any one tell me the reason behind the above senario.
    thanks
    bobby

    Hi Aravinda,
    The function module is the custom FM . While calling THIS fm we are passing the import parameter which is not defined in FM .  the problem is that the Program calling the FM is running in 4.6c but in ECC6 its giving dump i.e parameter not defined. Therefore my question is why its giving dump in ECC6 and not in 4.6c
    thanks
    bobby

  • Brush function not working correctly PS Elements 11 for Mac

    The brush is not working correctly in that I cannot drag the brush.  It allows only spot healing, not dragging the brush.  Didn't use to have this problem.  Now do.  Not sure what has changed.  Thank you!

    Is this happening after upgrading to Yosemite?
    If yes, please see:
    Photoshop Elements doesn't respond when you use editing tools in Mac OS X 10.10
    Thanks,
    Anwesha

  • Paypal button not working correctly in Firefox but does with IE

    On the Donate page of www.jnh-goneriding.org are several Paypal buttons with drop down options. When you choose anything other than the first line and click on Buy Now - when it goes to the next screen it only shows the first line - not the line you picked in the drop down.
    This works correctly in Internet Explorer.

    Firefox will show the link if nothing is blocking it...
    In case an ad blocker, script blocker, or another extension is involved, could you test the page in Firefox's Safe Mode? That's a standard diagnostic tool to deactivate extensions and some advanced features of Firefox. More info: [[Troubleshoot Firefox issues using Safe Mode]].
    You can restart Firefox in Safe Mode using either:
    * "3-bar" menu button > "?" button > Restart with Add-ons Disabled
    * Help menu > Restart with Add-ons Disabled
    Not all add-ons are disabled: Flash and other plugins still run
    After Firefox shuts down, a small dialog should appear. Click "Start in Safe Mode" (''not'' Reset).
    Any difference?

  • XQuery translate() function not working correctly?

    The following XQuery fragment
    return
    xf:translate($product/@description, "&#174", "®")
    where
    $product/@description
    contains
    Complete Choice&#174 Plan
    returns
    Colete Choice® Pln
    not, as expected
    Complete Choice® Plan

    967660 wrote:
    Hi,
    Another quick question if people don't mind. Bit confused about the trunc date function. I'm following the sql fundamentals exam guide and using their examples:
    select trunc(to_date('02-jun-2009 13:00','dd-mon-yyyy hh24:mi')) day from dual;
    this returns the 2nd of june, as it should, because, as far as i'm aware, leaving the optional variable out defaults the precision to 'day'. but when i explicitly add the variable 'day', as the guide has done with 'week' 'month' and 'year' in the following examples (so i assume this format is correct rather than dd/mon/yyyy), something goes wrong:
    select trunc(to_date('02-jun-2009 13:00','dd-mon-yyyy' hh24:mi'), 'day') day from dual;
    this returns the 31st of may. which is incorrect.
    however replacing 'day' with 'dd' provides the correct answer of the 2nd again.
    this isn't a major issue, it just bothers me that the guide seems (again) to be mistaken, something that is rapidly becoming a trend in their examples. i'd also quite like to know why this is happening, as it will help improve my understanding of sql in general - perhaps there is some sort of default to allow the correct use of the variable 'day' i'm overlooking and that the guide hasn't made clear.
    btw, i'm working in sqlplus - although developer has some odd results too.
    thanks alot,
    nick'day' doesn't trunc to the beginning of the day. It truncates to the first day of the week: in your case 31st May.
    'ddd' truncates to the beginning of the day.
    So, leaving the second parameter out defaults to 'ddd' not 'day'.

  • Trunc date function not working correctly

    Hi,
    Another quick question if people don't mind. Bit confused about the trunc date function. I'm following the sql fundamentals exam guide and using their examples:
    select trunc(to_date('02-jun-2009 13:00','dd-mon-yyyy hh24:mi')) day from dual;
    this returns the 2nd of june, as it should, because, as far as i'm aware, leaving the optional variable out defaults the precision to 'day'. but when i explicitly add the variable 'day', as the guide has done with 'week' 'month' and 'year' in the following examples (so i assume this format is correct rather than dd/mon/yyyy), something goes wrong:
    select trunc(to_date('02-jun-2009 13:00','dd-mon-yyyy' hh24:mi'), 'day') day from dual;
    this returns the 31st of may. which is incorrect.
    however replacing 'day' with 'dd' provides the correct answer of the 2nd again.
    this isn't a major issue, it just bothers me that the guide seems (again) to be mistaken, something that is rapidly becoming a trend in their examples. i'd also quite like to know why this is happening, as it will help improve my understanding of sql in general - perhaps there is some sort of default to allow the correct use of the variable 'day' i'm overlooking and that the guide hasn't made clear.
    btw, i'm working in sqlplus - although developer has some odd results too.
    thanks alot,
    nick

    967660 wrote:
    Hi,
    Another quick question if people don't mind. Bit confused about the trunc date function. I'm following the sql fundamentals exam guide and using their examples:
    select trunc(to_date('02-jun-2009 13:00','dd-mon-yyyy hh24:mi')) day from dual;
    this returns the 2nd of june, as it should, because, as far as i'm aware, leaving the optional variable out defaults the precision to 'day'. but when i explicitly add the variable 'day', as the guide has done with 'week' 'month' and 'year' in the following examples (so i assume this format is correct rather than dd/mon/yyyy), something goes wrong:
    select trunc(to_date('02-jun-2009 13:00','dd-mon-yyyy' hh24:mi'), 'day') day from dual;
    this returns the 31st of may. which is incorrect.
    however replacing 'day' with 'dd' provides the correct answer of the 2nd again.
    this isn't a major issue, it just bothers me that the guide seems (again) to be mistaken, something that is rapidly becoming a trend in their examples. i'd also quite like to know why this is happening, as it will help improve my understanding of sql in general - perhaps there is some sort of default to allow the correct use of the variable 'day' i'm overlooking and that the guide hasn't made clear.
    btw, i'm working in sqlplus - although developer has some odd results too.
    thanks alot,
    nick'day' doesn't trunc to the beginning of the day. It truncates to the first day of the week: in your case 31st May.
    'ddd' truncates to the beginning of the day.
    So, leaving the second parameter out defaults to 'ddd' not 'day'.

  • Playlist function not working correctly

    I have an Ipod nano 4th generation, it works fine in every way it is supposed to except when it come to the playlist function. When ever a song is selected from a list of songs or an artist/album list containing 10+ or so songs it does not add the selected son go to the on the go playlist on the ipod. Instead it adds a completely random song from the list with no logic to the song it picks. Does anyone else have this problem or know how to solve it? I have sent one Ipod away to be fixed but the replacement appears to have the same problem. Is this an issue with all 4th generation nanos or am I just rather unfortunate? if it is a recurring issue have apple acknowledged it/done anything about it?

    Because you have uploaded the files with the iWeb FTP, the folder of files created by iWeb - southcoasttv - has been uploaded along with the index.html file. Therefore the URL has the folder name in it and this is normal.
    You can change it if you want but you need to use an FTP application to upload the files rather than the whole folder....
    http://www.iwebformusicians.com/WebMusic/URLs-Favicons.html

Maybe you are looking for

  • How can I re-install OS X on a PowerBook when the DVD drive is dead?

    I'm trying to reload my operating system on a PowerBook with the disk drive dead. I've tried starting the the laptop as a target disk and plugging it into my Mac Pro and using the disk drive from the Mac Pro. It loads everything on the PowerBook fine

  • Access Image Metadata

    Hi! I'm attempting to create a photo uploader as part of a school project, and I was wondering how I can access, and edit, the metadata for the images I'm uploading.  I want to change the tags, description, etc.  I tried Googling, but it didn't retur

  • Edit In Photoshop & Preferences

    I must have done something to mangle my preferences because in my Preferences it shows Edit in Photoshop not found. Under additional external photo editor it shows Photoshop.exe. Yes, Lightroom goes to Photoshop CS2 when I click it "Edit in Photoshop

  • V$sql, v$sqlarea and v$sqltext

    Hello, Any idea how to isolate PLSQL objects calls from SQL statement in following views? v$sql, v$sqlarea, v$sqltext For e.g. I ran following query but it would also include SELECT statements. Whereas I only need PLSQL Calls. select * from v$sql whe

  • Why is there no plug in capability for"built in audio out"?

    This feature is long overdue and needs to be added. Most films have too much dynamic range for home viewing and A simple stereo plugin could solve this nicely. Also multi band eqs for our environments might help many of us. Please add this important