CALL FUNCTION 'crm_mktbp_merge_bps' does not write to database

Hello Experts,
i try to use the function call 'crm_mktbp_merge_bps' to merge the marketing attributes of two business partners (contact persons).
Inital situation:
Business partner 1 (lv_ap_guid) is maintained with 1 profile and its attributes.
Business partner 2 (lv_ap_guid_new) has no profile.
CALL FUNCTION 'CRM_MKTBP_READ_ALL_TPL'
    EXPORTING
      iv_objectkey             = lv_ap_guid
*   IV_AUTHORITY_CHECK       = ' '
*   IV_ACTIVITY              = '03'
*   IV_READ_DESCR            = 'X'
    TABLES
     et_return                = lt_bapi_return
     et_prtpllist             = lt_crmt_mktbp_proftpl_list
LOOP AT lt_crmt_mktbp_proftpl_list INTO ls_crmt_mktbp_proftpl_list.
  CLEAR lt_bapi_return.
  CALL FUNCTION 'CRM_MKTBP_MERGE_BPS'
    EXPORTING
      iv_quell_bp               = lv_ap_guid
      iv_ziel_bp                = lv_ap_new_guid
      IV_PROFILE_TEMPLATE       = ls_crmt_mktbp_proftpl_list-PROFILE_TEMPLATE_ID
    TABLES
      et_return                 = lt_bapi_return
  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
     EXPORTING
       WAIT          = 'X'
* IMPORTING
*   RETURN        =
ENDLOOP.
The function call runs without any errors and delivers no messages in "lt_bapi_return".
However, no changes to the database are written, though i'm using the function 'BAPI_TRANSACTION_COMMIT'.
In the Tx BP i'm not able to find the new profile in Business partner 2.
Can anyone help me out with this.
Thanks.
Best Regards
Markus

Hi Markus,
I got the same problem. Have you found a solution for this?
Best regards,
Mario

Similar Messages

  • ORA-06571: Function TEST_FUNC does not guarantee not to update database

    I have created a very simple C function in a .dll. Everything compiles OK, and I can create the lib, package, and procedure. But when I try to use it from sql*plus:
    SQL> select test_func(1) from dual;
    select test_func(1) from dual
    ERROR at line 1:
    ORA-06571: Function TEST_FUNC does not guarantee not to update database
    Note, all the function should do is return arg+1.
    Any help would be appreciated. Thanks.
    null

    Any Function called from SQL need to be defined Purety Level by using pragma restrict References
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Tim McCracken ([email protected]):
    I have created a very simple C function in a .dll. Everything compiles OK, and I can create the lib, package, and procedure. But when I try to use it from sql*plus:
    SQL> select test_func(1) from dual;
    select test_func(1) from dual
    ERROR at line 1:
    ORA-06571: Function TEST_FUNC does not guarantee not to update database
    Note, all the function should do is return arg+1.
    Any help would be appreciated. Thanks.<HR></BLOCKQUOTE>
    null

  • ORA-06571: Function SAM_OUTPUT does not guarantee not to update database

    Hi,
    i created a package as follows,
    CREATE OR REPLACE PACKAGE cursor_test_pak
    AS
    TYPE trans_cursor IS REF CURSOR;
    FUNCTION Cursor_Test
    RETURN trans_cursor;
              FUNCTION sam_output RETURN NUMBER;
    END;
    CREATE OR REPLACE PACKAGE BODY cursor_test_pak
    AS
    FUNCTION Cursor_Test RETURN trans_cursor
    AS
    lv_cursor trans_cursor;
    BEGIN
    OPEN lv_cursor FOR
    SELECT * FROM JAMES_SAM6;
    RETURN lv_cursor;
    END ;
    FUNCTION sam_output RETURN NUMBER
    AS
    lv_cur trans_cursor;
    BEGIN
    lv_cur := Cursor_Test();
    RETURN lv_cur%ROWCOUNT;
    --RETURN 1;
    END;
    END;
    after that i tried the following statement,
    select cursor_test_pak.sam_output() from dual;
    i got the following error,
    ORA-06571: Function SAM_OUTPUT does not guarantee not to update database
    i don't know what does it mean?
    can any one help me in this?
    Thanks,
    james.

    i think use of cursor attribute not possible with cursor variable
    like this : lv_cur%ROWCOUNT; If you are not sure why don't you check ?
    SQL> declare
      2   rc sys_refcursor;
      3   a integer;
      4  begin
      5   open rc for 'select 1 from emp';
      6   loop
      7    fetch rc into a;
      8    exit when rc%notfound;
      9    dbms_output.put_line('CURSOR VARIABLE %ROWCOUNT = ' || rc%rowcount);
    10   end loop;
    11   close rc;
    12  end;
    13  /
    CURSOR VARIABLE %ROWCOUNT = 1
    CURSOR VARIABLE %ROWCOUNT = 2
    CURSOR VARIABLE %ROWCOUNT = 3
    CURSOR VARIABLE %ROWCOUNT = 4
    CURSOR VARIABLE %ROWCOUNT = 5
    CURSOR VARIABLE %ROWCOUNT = 6
    CURSOR VARIABLE %ROWCOUNT = 7
    CURSOR VARIABLE %ROWCOUNT = 8
    CURSOR VARIABLE %ROWCOUNT = 9
    CURSOR VARIABLE %ROWCOUNT = 10
    CURSOR VARIABLE %ROWCOUNT = 11
    CURSOR VARIABLE %ROWCOUNT = 12
    CURSOR VARIABLE %ROWCOUNT = 13
    CURSOR VARIABLE %ROWCOUNT = 14
    PL/SQL procedure successfully completed.Rgds.

  • Create timer function that does not use start-sleep

    Hey all I would like to create a timer function that does not use the start-sleep command because this freezes my GUI. I've wrote the start of a function but it seems to move on before the specified time has finished.
    Here's what I have:
    $Global:timerCounter=0
    $Global:timer = new-object System.Windows.Threading.DispatcherTimer
    Function Timer{
    param(
    [parameter(Mandatory=$true)]
    [int]$time
    $timer.Interval = [TimeSpan]"0:0:$($time)"
    $timer.Add_Tick({
    $Global:timerCounter++
    if($Global:timerCounter -ge 1) {
    $Global:timer.Stop()
    $timer.Start()
    Then in my script i would like to call Timer -time #of seconds. It seems that when I call it the add_tick is registered and then started but it continues on with the rest of my script. Is there a better way of doing this without using start-sleep?
    Thanks!

    Okay the issue I'm having is that I have code after the $timer.start that I don't wan't to run till a powershell job is done. In all the examples I've seen it has to come to the end of the code then it starts the tick. So in your example it comes to the
    end of of your code and showsDialog() then starts ticking.
    So:
    add-type -AssemblyName system.windows.forms
    $form=New-Object System.Windows.Forms.Form
    $btn=New-Object System.Windows.Forms.Button
    $form.Controls.Add($btn)
    $btn.add_Click({$form.Close()})
    $btn.Dock='Fill'
    $btn.Font='Lucida Console, 20.25pt, style=Bold'
    $btn.Text=[DateTime]::Now
    $timer=New-Object System.Windows.Forms.Timer
    $timer.Interval=1000
    $timer.add_Tick({$btn.Text=[DateTime]::Now})
    $timer.Start()
    $form.ShowDialog()
    #I want to do other things here but only after the ps job has finished
    Thanks I really am trying to figure this out. 
    Here is the code I'm working with I guess I'm unclear on how to order the timer and the rest of my code:
    if($syncHash.mainCopy){
    $syncHash.mainJobDone = $false
    $syncHash.writeHost = $false
    while(-not $syncHash.mainJobDone){
    [System.Windows.Forms.Application]::DoEvents()
    if($syncHash.writeHost -eq $false){
    Write-OutputBox -Message "Copying"
    $syncHash.writeHost = $true
    $syncHash.inProgress = $syncHash.mainCopy | Where-Object {$_.State -match 'running'}
    $syncHash.currentCopyTime++
    }elseif($syncHash.currentCopyTime -ge ($syncHash.averageCopyTime * 2) -and $syncHash.collectionCopyTime.Count -ne 0){
    $syncHash.Unusable += $syncHash.currentMainCopyMachine
    $syncHash.computersNotForInstall += $syncHash.currentMainCopyMachine
    $syncHash.inProgress = $null
    $syncHash.mainCopyTimedOut = $True
    Write-OutputBox -Type WARNING: -Message "$($syncHash.currentMainCopyMachine) is taking too long. Removing Job.."
    Add-Content -Path $log_path -Value "$($syncHash.currentMainCopyMachine) taking to long to copy to"
    Stop-Job $syncHash.mainCopy
    }else{
    $syncHash.inProgress = $syncHash.mainCopy | Where-Object {$_.State -match 'running'}
    Write-OutputBox -Message "." -NoNewLine
    ############################# ############# So I need it to wait right here I have other code other than in this block ############# that needs to run $syncHash.currentCopyTime++
    if(-not $syncHash.inProgress){
    $syncHash.mainJobDone = $true

  • Short dump 'Table does not exist in database'

    Hello All,
    When a report is executing it is going to short dump by saying 'Table does not exist in database'. As per the short dump analysis this issue is happening because of the following   Native SQL statement statement :
    Program :  %_T050N0 (This is a dynamic  program generating by SAP )
    Form Name :  DYN_LIC_SEL_TOT
    exec sql performing LOOP_MOVE_WRITE_ISAP.
    select single_plate, itm_num, ctry_code, model_lot,
    lic_hold_flg, qty into :dcat-lplate, :dcat-matnr,
    :dcat-werks, :dcat-charg, :dcat-holdflag,
    :dcat-qty from ZLICENSE_R2 where itm_num   = :p_matnr and
                    model_lot = :p_charg
    endexec.
    As per the customer this issue occurring since they migrated the SAP  back-end data base from Oralce to DB6. Here I felt that ZLICENSE_R2 is not migrated from the  Oracle to DB6. But as per the BASIS Team, even this table was not maintained in Oracle also. If the table was not maintained in the Oracle, this issue should have been there even before migration also.
    Following is the short dump details:
    Short text
        Table does not exist in database.
    What happened?
        The table or view name used does not
        exist in the database.
        The error occurred in the current database connection "DEFAULT".
    What can you do?
        Check the spelling of the table names in your report.
        Note down which actions and inputs caused the error.
        To process the problem further, contact you SAP system
        administrator.
        Using Transaction ST22 for ABAP Dump Analysis, you can look
        at and manage termination messages, and you can also
        keep them for a long time.
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_NATIVE_SQL_ERROR', was not
         caught in
       procedure "DYN_LIC_SEL_TOT" "(FORM)", nor was it propagated by a RAISING
    clause.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    Triggering SQL statement: "select single_plate, itm_num, ctry_code, model_lot,
    lic_hold_flg, qty from ZLICENSE_R2 where itm_num = ? and model_lot = ? "
    Database error code: "-204"
    Could you please  let me know what might be the reason for this issue.
    Many Thanks in Advance.

    Transaction SE11, input ZLICENSE_R2 for table name, and display the table. Did the table display? If not, that is the main problem.
    If the table displays, go to menu item Utilities -> Database Object -> Database Utility
    In the resulting screen, under the "Status" fields, you should see text "Exists in the database." If you don't, then the table exists in the dictionary, but doesn't exist in the database system. Click the "Create database table" button and then you should be able to run the program.
    You may need basis team's help to carryout some of these actions.

  • Table TTZDF does not exist on database

    HI forum
    i am installing the last SAPIDES Ehp3 Linux / Maxdb during the process of installation all job were imported sucessfully 32 of 50 , in the phase CHECK DDIC PASSWORD, the system can´t do log in.
    Review the log in the work directory (dev_w0) the follow message is generated.
    A Sat Jun 12 21:19:56 2010
    A  **GENER Trace switched off ***
    B  dbmyclu : info : my major identification is 3231713892, minor one 0.
    B  dbmyclu : info : Time Reference is 1.12.2001 00:00:00h GMT.
    B  dbmyclu : info : my initial uuid is CF0B144C2E40F845E1000000C0A00A64.
    B  dbmyclu : info : current optimistic cluster level: 2
    B  dbmyclu : info : pessimistic reads set to 2.

    C Sat Jun 12 21:20:15 2010
    C  *** ERROR =>   prepare() of C_0063, rc=1, rcSQL=-942 (POS(95) Unknown table name:TTZDF)
    C  *** ERROR => SQL PREPARE on connection 0, rc=-942 (POS(95) Unknown table name:TTZDF)
    C  sc_p=0x2b4da28435b8,no=63,idc_p=(nil),con=0,act=0,slen=190,smax=256,#vars=1,stmt=0x19449e10,table=TTZDF                        
    C  SELECT "CLIENT" , "DSTRULE" , "YEARACT" , "DATEFROM" , "TIMEFROM" , "DATETO" , "TIMETO" FROM "TTZDF"
    C   WHERE "CLIENT" = ? ORDER BY "CLIENT" , "DSTRULE" , "YEARACT"  WITH LOCK ISOLATION LEVEL 1;
    B  ***LOG BZA=> table TTZDF      does not exist on database R/3       
    B  *** ERROR => Buffer loading failed: {fcode=293, rc=32, cnt=0, table='TTZDF'}
    C  *** ERROR =>   prepare() of C_0063, rc=1, rcSQL=-942 (POS(114) Unknown table name:TTZDF)
    C  *** ERROR => SQL PREPARE on connection 0, rc=-942 (POS(114) Unknown table name:TTZDF)
    C  sc_p=0x2b4da28435b8,no=63,idc_p=0x2b4da2909220,con=0,act=0,slen=199,smax=256,#vars=2,stmt=0x19449e10,table=TTZDF                        
    C  SELECT  /*+ KEYACCESS  */ "CLIENT" , "DSTRULE" , "YEARACT" , "DATEFROM" , "TIMEFROM" , "DATETO" , "T
    C  IMETO" FROM "TTZDF" WHERE "CLIENT" = ? AND "DSTRULE" = ? ORDER BY "CLIENT" , "DSTRULE" , "YEARACT" ;
    B  ***LOG BZA=> table TTZDF      does not exist on database           
    B  *** ERROR => missing return code handler     
    abtstmp#?[613] does not handle return code 2 from dbcrtab#10[1764]     
    ==> calling sap_dext to abort transaction

    C Sat Jun 12 21:20:26 2010
    C  *** ERROR =>   prepare() of C_0065, rc=1, rcSQL=-942 (POS(95) Unknown table name:TTZDF)
    C  *** ERROR => SQL PREPARE on connection 0, rc=-942 (POS(95) Unknown table name:TTZDF)
    C  sc_p=0x2b4da28436e8,no=65,idc_p=(nil),con=0,act=0,slen=190,smax=256,#vars=1,stmt=0x1944e480,table=TTZDF                        
    C  SELECT "CLIENT" , "DSTRULE" , "YEARACT" , "DATEFROM" , "TIMEFROM" , "DATETO" , "TIMETO" FROM "TTZDF"
    C   WHERE "CLIENT" = ? ORDER BY "CLIENT" , "DSTRULE" , "YEARACT"  WITH LOCK ISOLATION LEVEL 1;
    B  ***LOG BZA=> table TTZDF      does not exist on database R/3       
    B  *** ERROR => Buffer loading failed: {fcode=293, rc=32, cnt=0, table='TTZDF'}
    C  *** ERROR =>   prepare() of C_0065, rc=1, rcSQL=-942 (POS(114) Unknown table name:TTZDF)
    C  *** ERROR => SQL PREPARE on connection 0, rc=-942 (POS(114) Unknown table name:TTZDF)
    C  sc_p=0x2b4da28436e8,no=65,idc_p=0x2b4da2909350,con=0,act=0,slen=199,smax=256,#vars=2,stmt=0x1944e480,table=TTZDF                        
    C  SELECT  /*+ KEYACCESS  */ "CLIENT" , "DSTRULE" , "YEARACT" , "DATEFROM" , "TIMEFROM" , "DATETO" , "T
    C  IMETO" FROM "TTZDF" WHERE "CLIENT" = ? AND "DSTRULE" = ? ORDER BY "CLIENT" , "DSTRULE" , "YEARACT" ;
    B  ***LOG BZA=> table TTZDF      does not exist on database           
    B  *** ERROR => missing return code handler     
    abtstmp#?[613] does not handle return code 2 from dbcrtab#10[1764]     
    ==> calling sap_dext to abort transaction

    C Sat Jun 12 21:20:28 2010
    C  *** ERROR =>   prepare() of C_0065, rc=1, rcSQL=-942 (POS(114) Unknown table name:TTZDF)
    C  *** ERROR => SQL PREPARE on connection 0, rc=-942 (POS(114) Unknown table name:TTZDF)
    C  sc_p=0x2b4da28436e8,no=65,idc_p=0x2b4da2909350,con=0,act=0,slen=199,smax=256,#vars=2,stmt=0x1944e480,table=TTZDF                        
    C  SELECT  /*+ KEYACCESS  */ "CLIENT" , "DSTRULE" , "YEARACT" , "DATEFROM" , "TIMEFROM" , "DATETO" , "T
    C  IMETO" FROM "TTZDF" WHERE "CLIENT" = ? AND "DSTRULE" = ? ORDER BY "CLIENT" , "DSTRULE" , "YEARACT" ;
    B  ***LOG BZA=> table TTZDF      does not exist on database           
    B  *** ERROR => missing return code handler     
    abtstmp#?[613] does not handle return code 2 from dbcrtab#10[1764]     
    ==> calling sap_dext to abort transaction

    C Sat Jun 12 21:20:30 2010
    C  *** ERROR =>   prepare() of C_0065, rc=1, rcSQL=-942 (POS(114) Unknown table name:TTZDF)
    C  *** ERROR => SQL PREPARE on connection 0, rc=-942 (POS(114) Unknown table name:TTZDF)
    C  sc_p=0x2b4da28436e8,no=65,idc_p=0x2b4da2909350,con=0,act=0,slen=199,smax=256,#vars=2,stmt=0x1944e480,table=TTZDF                        
    C  SELECT  /*+ KEYACCESS  */ "CLIENT" , "DSTRULE" , "YEARACT" , "DATEFROM" , "TIMEFROM" , "DATETO" , "T
    C  IMETO" FROM "TTZDF" WHERE "CLIENT" = ? AND "DSTRULE" = ? ORDER BY "CLIENT" , "DSTRULE" , "YEARACT" ;
    B  ***LOG BZA=> table TTZDF      does not exist on database           
    B  *** ERROR => missing return code handler     
    abtstmp#?[613] does not handle return code 2 from dbcrtab#10[1764]     
    ==> calling sap_dext to abort transaction

    C Sat Jun 12 21:20:31 2010
    C  *** ERROR =>   prepare() of C_0065, rc=1, rcSQL=-942 (POS(114) Unknown table name:TTZDF)
    C  *** ERROR => SQL PREPARE on connection 0, rc=-942 (POS(114) Unknown table name:TTZDF)
    C  sc_p=0x2b4da28436e8,no=65,idc_p=0x2b4da2909350,con=0,act=0,slen=199,smax=256,#vars=2,stmt=0x1944e480,table=TTZDF                        
    C  SELECT  /*+ KEYACCESS  */ "CLIENT" , "DSTRULE" , "YEARACT" , "DATEFROM" , "TIMEFROM" , "DATETO" , "T
    C  IMETO" FROM "TTZDF" WHERE "CLIENT" = ? AND "DSTRULE" = ? ORDER BY "CLIENT" , "DSTRULE" , "YEARACT" ;
    B  ***LOG BZA=> table TTZDF      does not exist on database           
    B  *** ERROR => missing return code handler     
    abtstmp#?[613] does not handle return code 2 from dbcrtab#10[1764]     
    ==> calling sap_dext to abort transaction

    C Sat Jun 12 21:21:18 2010
    C  *** ERROR =>   prepare() of C_0065, rc=1, rcSQL=-942 (POS(114) Unknown table name:TTZDF)
    C  *** ERROR => SQL PREPARE on connection 0, rc=-942 (POS(114) Unknown table name:TTZDF)
    C  sc_p=0x2b4da28436e8,no=65,idc_p=0x2b4da2909350,con=0,act=0,slen=199,smax=256,#vars=2,stmt=0x1944e480,table=TTZDF                        
    C  SELECT  /*+ KEYACCESS  */ "CLIENT" , "DSTRULE" , "YEARACT" , "DATEFROM" , "TIMEFROM" , "DATETO" , "T
    C  IMETO" FROM "TTZDF" WHERE "CLIENT" = ? AND "DSTRULE" = ? ORDER BY "CLIENT" , "DSTRULE" , "YEARACT" ;
    B  ***LOG BZA=> table TTZDF      does not exist on database           
    B  *** ERROR => missing return code handler     
    abtstmp#?[613] does not handle return code 2 from dbcrtab#10[1764]     
    ==> calling sap_dext to abort transaction

    C Sat Jun 12 21:21:21 2010
    C  *** ERROR =>   prepare() of C_0065, rc=1, rcSQL=-942 (POS(114) Unknown table name:TTZDF)
    C  *** ERROR => SQL PREPARE on connection 0, rc=-942 (POS(114) Unknown table name:TTZDF)
    C  sc_p=0x2b4da28436e8,no=65,idc_p=0x2b4da2909350,con=0,act=0,slen=199,smax=256,#vars=2,stmt=0x1944e480,table=TTZDF                        
    C  SELECT  /*+ KEYACCESS  */ "CLIENT" , "DSTRULE" , "YEARACT" , "DATEFROM" , "TIMEFROM" , "DATETO" , "T
    C  IMETO" FROM "TTZDF" WHERE "CLIENT" = ? AND "DSTRULE" = ? ORDER BY "CLIENT" , "DSTRULE" , "YEARACT" ;
    B  ***LOG BZA=> table TTZDF      does not exist on database           
    B  *** ERROR => missing return code handler     
    abtstmp#?[613] does not handle return code 2 from dbcrtab#10[1764]     
    ==> calling sap_dext to abort transaction

    C Sat Jun 12 21:21:29 2010
    C  *** ERROR =>   prepare() of C_0066, rc=1, rcSQL=-942 (POS(114) Unknown table name:TTZDF)
    C  *** ERROR => SQL PREPARE on connection 0, rc=-942 (POS(114) Unknown table name:TTZDF)
    C  sc_p=0x2b4da2843780,no=66,idc_p=0x2b4da29093e8,con=0,act=0,slen=199,smax=256,#vars=2,stmt=0x194421a0,table=TTZDF                        
    C  SELECT  /*+ KEYACCESS  */ "CLIENT" , "DSTRULE" , "YEARACT" , "DATEFROM" , "TIMEFROM" , "DATETO" , "T
    C  IMETO" FROM "TTZDF" WHERE "CLIENT" = ? AND "DSTRULE" = ? ORDER BY "CLIENT" , "DSTRULE" , "YEARACT" ;
    B  ***LOG BZA=> table TTZDF      does not exist on database           
    B  *** ERROR => missing return code handler     
    abtstmp#?[613] does not handle return code 2 from dbcrtab#10[1764]     
    ==> calling sap_dext to abort transaction
    M  ***LOG R47=> ThResFree, delete (001024) .
    I search notes and in sdn forum any information about this error, but there isn´t information.
    How i can solve this inconsistence durant the installation for finish the SAP IDES installation.
    Hi forums
    cheking the process of the installation, the problem i wait have it  solve doing the reinstallation with any  adjust in the database release .. i will be comment the process to the solution.
    Jairo

    thie process was solved with a new installation-

  • Native SQL "Table does not exist in database"

    Hi Developers,
    I'm doing a database connection to an Oracle db and trying to read data using native SQL - I keep getting the runtime error "table does not exist in database" on the statement Fetch Next Cursor. The following is the code snippet (I've commented out the Exec SQL and Fetch Next to make sure I have a connection and I do). HR is a schema in the database and T_Donation is a table in HR.
    Data: w1(3),
             c1 type cursor.
    start-of-selection.
      if con_name is initial.
        write: 'No connection specified'.                       "#EC NOTEXT
        return.
      endif.
    try to open the connection and catch the errors (if any)
      try.
          con_ref = cl_sql_connection=>get_connection( con_name ).
        catch cx_sql_exception into sqlerr_ref.
        error occured
          write:
            'Could not open connection', con_name, '.'.         "#EC NOTEXT
          if sqlerr_ref->unknown_connection = 'X'.
            write:
              / con_name, 'is not defined in DBCON'.            "#EC NOTEXT
          elseif sqlerr_ref->db_error = 'X'.
            write:
              / 'sql error', sqlerr_ref->sql_code, 'occured:',
              / sqlerr_ref->sql_message.                        "#EC NOTEXT
          else.
            perform get_trace_file using dev_file.
            write:
              / 'DBI error', sqlerr_ref->internal_error, 'occured.',
              / 'See trace file for further info:',
                icon_read_file as icon hotspot, dev_file.       "#EC NOTEXT
          endif.
          return.
      endtry.
    connection successfully opened
      write:
        / 'Connection', con_name, 'successfully opened.'.       "#EC NOTEXT
    *- Get the data from MS-SQL Server
      EXEC SQL.
        open C1 for
        SELECT HR.T_DONATION.DN_DONATIONYEAR
        FROM HR.T_DONATION
      ENDEXEC.
      do.
        EXEC SQL.
          FETCH NEXT C1 into :w1
        ENDEXEC.
        if sy-subrc = 0.
          perform loop_output.
        else.
          exit.
        endif.
      enddo.
      EXEC SQL.
        CLOSE C1
      ENDEXEC.
    close connection again
      con_ref->close( ).
      write:
        / 'Connection', con_name, 'closed'.                     "#EC NOTEXT
    end-of-selection.
    *& Form LOOP_OUTPUT
    Output
    form loop_output .
      write: /5 w1.
    endform. " LOOP_OUTPUT
    Thanks for your help.
    Jim
    Message was edited by:
            James Barnes

    Well my advice is to check the question in the sql tutorial, it will be quicker then getting an answere.

  • Using a dll function that does not have any inputs from a VI

    Hello all, I'm very new to Labview, I have wraped a dll library using the LVlib wizard and now I am trying to use it in a project.  I have a function that does not take any inputs or return any thing except that a struct is populated with some status information as part of the call.  I am able to draw a StartInterface VI because my void startInterface(const char* configFile, struct status_struct* status) takes the location of a configutation file as an input. But I can not figure out how to connect my Call Library Node to my a function vi that does not have any inputs ( void shutdownInterface(struct status_struct* status)). 
    Note that the status struct is deffined to be only and out put at the creation of the LVLIB.
    Thanks, Mike

    Thanks for the responses guys:
       I think I am aware of the conotations of inputs and outputs when I created the lvlib I specified the argument  struct status_struct* status as only an output instead of the default of input and output.
    I do not think that I am doing anything as complex as function callbacks. My immediate goal is to have an executable (I have application builder) with two buttons and two three text fields one text field for the input of the config file, two text-fields for a cstring that is contained in the status struct; one button to start the interface and one button to stop the interface. 
    This is in all likely hood a case of my self being too dense and missing something fundimental ;-)  I just can't figure out how to wire the shut down method after I've configured the call library node. See the attached pictures:
    Attachments:
    Start.jpg ‏7 KB
    shurtdown.png ‏9 KB

  • Why function SAP_CONVERT_TO_XLS_FORMAT does NOT exist on BI 7.0?

    We are trying to find a function in ABAP program to download SAP table data to an excel file.  We have tried the following two function on our BI 7.0 system:
    1. function: GUI_DOWNLOAD
    Exist, but when run it with following code, get the error msg "Wrong value of the parameter FILETYPE"
    CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
             filename = 'C:test\test.xls'
             filetype = 'XLS'
         TABLES
            data_tab = itab.
    2. function  SAP_CONVERT_TO_XLS_FORMAT:
    Does NOT exist in our BI 7.0 system.  Could we create a new function on our BI system by referring to a R3 system if this function exist on our R3 system?
    Thanks!

    Hello,
    you could just check the OSS-Note 722513, which combinations specially in the SAPGUI - Versions support Excel 2007. Think normally it's the 7.10 version.
    Regards Wolfgang

  • Primary index does not exist in database but shows in SE14?

    I added a couple of key fields to a Z table and activated it. Every thing went well - adjusted it with SE14 also.
    When I checked the Runtime object - it is OK.
    When I checked Database Object, it is showing that the Primary Index does not exist in Database but SE14 says that the Priamry Index exists in Database.
    Please advise how to correct this. I saw another psoting when I searched per this error message: "Indexes: Inconsistent with DDIC source" . It tells to create this index at Database but need to know the steps.
    pl advise.
    (reposting here)
    Edited by: Venkatabby on Mar 26, 2008 4:05 PM

    hi,
    To create a index for a table,
    go to se11->click on Indexes tab and create  a primary index.
    Indexes speed up data selection from the database. They consist of selected fields of a table, of which a copy is then made in sorted order. If you specify the index fields correctly in a condition in the WHERE or HAVING clause, the system only searches part of the index (index range scan).
    The system automatically creates the primary index. It consists of the primary key fields of the database table. This means that for each combination of fields in the index, there is a maximum of one line in the table. This kind of index is also known as UNIQUE.
    If you cannot use the primary index to determine the result set because, for example, none of the primary index fields occur in the WHERE or HAVINGclauses, the system searches through the entire table (full table scan). For this case, you can create secondary indexes, which can restrict the number of table entries searched to form the result set.
    You create secondary indexes using the ABAP Dictionary. There you can create its columns and define it as UNIQUE.
    reward points if useful.
    regards
    sandhya

  • Warning: Index does not exist in database system MSSQL

    Hi,
    After activating the Index from SE11,
    I receive the following Warning:
    Index does not exist in database system MSSQL.
    What does this mean? Has performance been increased or does the index 1st have to exist in the database system MSSQL?

    When you create index at SE11 and you need activate database utility.
    utilitities-database utility->then click activate and adjust database.
    else you can use SE14 and so that Index will create databse level.
    Reward Points if it is helpful
    Thanks
    Seshu

  • Index does not exist in database system ORACLE??????

    Hi Experts,
    I created a Secondary Index in DEV, its fine and the message is,
    <b><i>Index KNA1~Z01 exists in database system ORACLE</i></b>
    I moved it to TEST and there I got the message is like,
    <i><b>Index does not exist in database system ORACLE</b></i>
    So,
    1 - Wht I hv to do now? Shuld I see BASIS people?
    2- Why its happened like that? Coz of not enough space?
    ThanQ.

    thanq sudheer,
    I got the return code as 4, so Can I go for creation of new request and there by moving to test?
    1 - Anyways, so, after Activating Seconadyr Index, Shuld I come back and Do I need to activate the Table also?
    or
    2- Just activating the index is enough?
    thanq.
    Message was edited by:
            Srikhar

  • Index does not exist in database system DB6 sap

    Hi All
    In development system i have added a field into already existing  index and activated successfully without any errors or warnings and after transported the TR  into Quality system,In Quality system it shows the warning Index does not exist in database system DB6 sap
    Thanks
    Vamsi

    Hi Mohan,
    After any change in the existing structure of the table you need to adjust and then activate it.
    It can be done using SE14 tcode, please try using this.
    Regards,
    Mohammed

  • Index Does Not Exist In Database System MSSQL

    Hello,
    I have an Index that has this message:
    " Index Does Not Exist In Database System MSSQL"
    Can someone guide me how to update Index to the database?
    Thank you.

    Check this thread:
    missing primary index
    Otherwise, a few more informations would help! Thanks.

  • Index does not exist in database system DB6

    Hi,
    Problem : <b>Index does not exist in database system DB6</b>.
    I need further explanation why when i transport index from Development Client to Production Client the index is active but does not exist in database system DB6.
    So when the cases is occurs i must re-create the index again in Production Level...
    Can someone give me some ideas?
    Thanks.

    Hi,
    it might be due to some BUG in RDBMS...
    First Check the Secondary index in TEST system
    Look at the Transport Number in DEV system, If this is having error, then it will show you the error details also,
    If that not moved Properly then you need to create another request for the INDEX and move it again
    See the threads with similar problem...
    Warning: Index does not exist in database system MSSQL
    Index does not exist in database system ORACLE??????
    Re creation of database index
    Hope it will solve your problem...
    <b>Reward Points if useful</b>
    Thanks & Regards
    ilesh 24x7

Maybe you are looking for

  • Issue in Target Group creation of contact persons

    Hi, I am working on CRM 5.0. Using the segment builder creating target group to be attached to the campaign. I have created one target group of organizations with Marketing attributes attached to these BPs. Using this organizations target group as Ma

  • How do I fix the itunes library.itl file is locked/

    How do i fix " the itunes library.itl is locked?

  • Text Field don't show its content in Reader 9.0

    Hello, I'm working on a pdf in which there are a 3D Annotation and a Text Field. I embedded a simple Javascript script to the 3D Annotation to change Text Field's value. Here's the code: host.getField("current_selection").value = "some text"; // "cur

  • Need information for which patch will be best on top of  OWB 10.2.0.1

    Hi , Can anybody tell us what are the options of patches for applying on top of current Oracle warehouse Builder (OWB Client 10.2.0.1.31 ) and (OWB Repository 10.2.0.1.0.) OS is windows 2003 server 64 bit Server- HP Itanium with ram 8 gb Also want up

  • JDBC..

    Hi! What are all the interfaces and classes that are available in latest JDBC version 3.0?. how can i retrieve the values from database without making use of ResultSet in JDBC?. is there any seperate methods are there other than Result Sets? -Thanx