Like operator not passed to database for nvarchar(max)

From Crystal Reports 2008 I need to do a keyword search against a data type of nvarchar(max).
I am using the LIKE operator in my record selection formula.
When I do a SHOW QUERY the LIKE condition is omitted from the where clause.
This makes the report run so slow it is useless.
How can I do a keyword search against an nvarchar(max) data type?
Thanks,
Larry
CR Developer 12.2.0.290, Product type: Full
SQL Server 2008 r2

Sorry it wasn't clear what you are doing or why. I assumed you were using the LIKE in the record selection formula to filter on fields like CustomerID etc. which can be passed to the server. You want to filter based on the text in a Description type field field.
Yes that is going to be very slow having Crystal do it client side, means all of the data will be sent to the local work station and then on the second pass CR will start filtering.
You could try using a Command Object to use as the data source, CR should simply pass what ever SQL you type in. Copy your existing SQL and then create a new report and use a Command object and paste in the SQL, edit it to include the LIKE operator and see it that works for you.
Another option is to use a Stored Procedure with a parameter to do the searching, that will force it to do it Server side. DB servers will aways be more efficient at processing filters that ce will be.
When viewing the report can you not use the Search window, although that is after the fact so it too would mean all data has to come down first...?
Basically what is happening is CR is testing every word in the nvarchar field, CR isn't very optimized to do that kind of filtering client side and because it's more complex SQL we won't generate the proper syntax to pass it to the server. Also, Cr supports so many data sources and to build that logic into the basic report designer is very complex and not efficient, there are various DB tools that can do that kind of work and CR can connect to them, Universes, Data Integrator etc., those tools are designed to do this type of complex SQL generation.
Thank you
Don
PS - If Jason sees this thread he is a SQL guru and may have some suggestion for you also.
Edited by: Don Williams on Jun 22, 2011 11:17 AM

Similar Messages

  • Lync BToE - USB HeartBeat is not passed from Lync for long duration (more than 20 seconds)

    Lync BToE - USB HeartBeat is not passed from Lync for long duration (more than 20 seconds)

    Hi,
    Did the issue happen only for you or for multiple users?
    Make sure phone update to the latest firmware.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • Why Sybase is not the prefered database for SAP?

    Dear Sir/Madam,
    Why Sybase is not the preferred database for SAP?
    What is the difference between Oracle performance and Sybase!
    I am sure that both are RDBMS!
    Please Clear this doubt.
    Sreevidya.S

    Because Sybase is a much smaller "player" in the DB world.
    Oracle is the industry leader; and it is usually a wise decision for a software product to store it's data into the "best of brand" technology.

  • [VB] Like operator not functioning?

    I'm trying to create the following statement in my VB code, but I'm getting a "Sub or Function not defined" error. My question is, how do you use the Like operator with InDesign scripting? InDesign doesn't seem to recognize the Like operator.
    "myCurrentString" contains a letter.
    If myCurrentString Like "[A-z]" Then
    End If
    I'm also trying to do the following:
    If myCurrentDigit Like "[0-9]" Then
    End If

    I couldn't find "RegExp" in the InDesign script model--could you give a bit more information about what this is? I don't know how to iterate through the contents of an XMLElement as individual character objects, so I'm iterating throught XML.contents, putting each character in a basic string variable. I need a way to put strings into a With statement, or a Like operator. I haven't had success with either technique.
    Here's an example:
    strTime = myCurrentXMLElement.contents
    strTime = Trim(strTime)
    strLength = Len(strTime)
    For counter = 1 to strLength
    strTemp = Mid(strTime, counter, 1)
    [This is where I need to find out if strTemp is a letter or a digit]
    Next

  • SAVE TEXT not updating the database for Recipe Operation Long Texts

    Hi,
    We are trying to update the Recipe Operation long text using the FM SAVE_TEXT.
    The FM is not throwing any error, but the changes are not reflecting in the database.
    Text ID: PLPO
    Text Object: ROUTING
    Language: EN
    Text Name: Concatenated string of ARBPL,PLNNR,OPRATIONCOUNTER
    If someone faced similar scenarios, please share your inputs.
    Thanks in advance,
    Anand

    After some more R & D, i got to know that the Long Text indicator should be enabled to get the changes reflected in the C203 recipe operation details.
    In C202, if you pass two text lines for Operation long text, this Long text indicator is automatically enabled and its a non editable field.
    Can some one provide inputs how to enable this through program?
    Regards,
    Anand

  • LIKE Operator not supported from CMIS Search on Foundation Server

    I am running a CMIS query against Sharepoint foundation server.
    The app is returning the following error: One or more of the input parameters to the service method is missing or invalid
    The log files report the following: 
    CMIS Repository Interfaces    This operator is not supported:   like
    CMIS Repository Interfaces    Exception is thrown of type: Microsoft.SharePoint.CMIS.Data.Exception.InvalidArgumentException
    CMIS Repository Interfaces    Exception thrown in core dll. Microsoft.SharePoint.CMIS.Data.Exception.InvalidArgumentException: One or more of the input parameters to the service method is missing or invalid.
    CMIS Repository Interfaces    Constructing soap exception from  invalidArgument 
    Strange thing is the query works against Sharepoint Enterprise server after setting "Reduce storage requirements for text properties by using a hash for comparison” 
    Does anyone know if this is a limitation of Foundation Server or something in the CMIS Repository Interfaces
    Thank you.

    I've been testing Sharepoint 2010 CMIS api for a while and pretty much everything worked according to CMIS 1.0 spec except the Query which is unfinished work.
    As Alex already wrote only "=", "<=", ">=" and "<>" operators will work. LIKE and IN do not work for me either. And there are other issues that I found.
    Query does not return all properties defined for specific content type, but you can use them in the query: SELECT * FROM "Fixed Assets" WHERE Vendor_x0020_ID = '134' (Select all from "Fixed Assets" document library that holds
    documents of "Fixed Asset" content type). This query will run fine but will not return any custom properties for the "Fixed Asset" content type. Forcing select fields does not help either.
    Selecting SELECT Vendor_x0020_ID,Vendor_x0020_Name FROM "Fixed Asset"
    returns list of empty objects and properties tags:
    <queryResponse xmlns="http://docs.oasis-open.org/ns/cmis/messaging/200908/">
    <objects>
    <objects>
    <properties xmlns="http://docs.oasis-open.org/ns/cmis/core/200908/"/>
    </objects>
    <objects>
    <properties xmlns="http://docs.oasis-open.org/ns/cmis/core/200908/"/>
    </objects>
    <objects>
    <properties xmlns="http://docs.oasis-open.org/ns/cmis/core/200908/"/>
    </objects>
    Content type id (cmis:objectTypeId) is not queryable type. If your document library contains multiple content types you cannot query by content type. Funny thing is that you can query by ContentTypeId which is Sharepoint property name for content type.
    And, I am sure there is more :)
     My conclusion is that this version Sharepoint CMIS DiscoveryService is just a lousy implementation of SQL to CAML query translation. CAML is a strong query language and I don't see any CMIS SQL expression that cannot be easily converted to CAML. Unfortunately
    with the first version of Sharepoint CMIS producer this is not the case.
    Thanks,
    Boris

  • Not like operator not working while matching text from two tables

    Hello  Everyone,
    I want to find the Id from table child where the column name  is not matching with at least first term of column name from parent table.
    I am not getting proper output. can anyone help me.
    Output should be :-->ID 6 & 7
    with child as
    (select 1 id, 'Genentech'  as name from dual union all
    select 2 id, 'Altana Pharma AG'  as name from dual union all
    select 3 id, 'Yamanouchi'  as name from dual union all
    select 4 id, 'Sigma-Tau'  as name from dual union all
    select 5 id, 'Schering-Plough'  as name  from dual union all
    select 6 id, 'Pharma AG'  as name from dual union all
    select 7 id, 'Pfizer'  as name  from dual
    ), parent as
    (select 1 id, 'Genentech number'  as names from dual union all
    select 2 id, 'Altana Pharma AG'  as names from dual union all
    select 3 id, 'AG site/Yamanouchi'  as names from dual union all
    select 4 id, 'sigMa Tau'  as names from dual union all
    select 5 id, 'Schering-Plough'  as names  from dual union all
    select 6 id, 'AG'  as names from dual union all
    select 7 id, 'Inc'  as names  from dual
    select *
    from child a, parent bc
    where a.id=bc.id
    and upper(a.name) not like (bc.names)

    One way:
    WITH child AS
            (SELECT 1 id, 'Genentech' AS name FROM DUAL
             UNION ALL
             SELECT 2 id, 'Altana Pharma AG' AS name FROM DUAL
             UNION ALL
             SELECT 3 id, 'Yamanouchi' AS name FROM DUAL
             UNION ALL
             SELECT 4 id, 'Sigma-Tau' AS name FROM DUAL
             UNION ALL
             SELECT 5 id, 'Schering-Plough' AS name FROM DUAL
             UNION ALL
             SELECT 6 id, 'Pharma AG' AS name FROM DUAL
             UNION ALL
             SELECT 7 id, 'Pfizer' AS name FROM DUAL),
         parent AS
            (SELECT 1 id, 'Genentech number' AS names FROM DUAL
             UNION ALL
             SELECT 2 id, 'Altana Pharma AG' AS names FROM DUAL
             UNION ALL
             SELECT 3 id, 'AG site/Yamanouchi' AS names FROM DUAL
             UNION ALL
             SELECT 4 id, 'sigMa Tau' AS names FROM DUAL
             UNION ALL
             SELECT 5 id, 'Schering-Plough' AS names FROM DUAL
             UNION ALL
             SELECT 6 id, 'AG' AS names FROM DUAL
             UNION ALL
             SELECT 7 id, 'Inc' AS names FROM DUAL)
    SELECT *
      FROM child a, parent bc
    WHERE a.id = bc.id
           AND UPPER (REGEXP_REPLACE (a.name, '[^[:alnum:]]')) NOT LIKE
                  '%' || UPPER (REGEXP_REPLACE (bc.names, '[^[:alnum:]]')) || '%';
    Regexp_replace can be avoided and replaced by translate there if you know for sure what characters you are expecting.
    ID NAME ID_1 NAMES
    1 Genentech 1 Genentech number
    3 Yamanouchi 3 AG site/Yamanouchi
    7 Pfizer 7 Inc
    Cheers,
    Manik.

  • ITunes Building Block not passing editing credential for instructor user

    When we first installed the Vanderbuilt iTunes U Building block in Blackboard Learn Version 9.0, our instructor credential was successfully passed and had editing rights within courses. The editing access mysteriously vanished shorty after installing the block. When I installed the block again, the editing access worked for about 10 minutes and then disappeared again. When logged in as an iTunes U admin, the admin can only edit the main page, but can't edit within courses. Has anyone else experienced this issue?

    Thank you for adding the ability to manage sections and divisions! This could not have come at a better time for us.
    I have found a few discrepancies between the XSD and the actual behavior. Perhaps you could shed some light on these differences:
    1. DeletePermission is documented, both in the PDF and in the XSD, as taking a ParentHandle and a Permission. However, this does not work - I get the following error:
    No Credential node specified in XML at #document-->ITunesUDocument-->DeletePermission
    Sending a ParentHandle and a Credential (string) does work, however.
    2. AddTrack expects a property called Title:
    Property Title is absent, but required at element #document-->ITunesUDocument-->AddTrack-->Track
    This property does not seem to be documented anywhere.
    3. What do the Destructive and MergeByHandle options mean for MergeTrack? Tracks do not seem to have any children for which these options would be relevant.
    4. The XSD for Section elements does not allow children to be Division elements. This appears to contradict the data model.
    5. Similarly, Section and Course do not allow Permission elements according to the XSD, but Site, Group, and Division do. And Division does not include Handle, Identifier, or ShortName either.
    6. What are all the elements that can have an AllowSubscription property? The docs are vague about this.
    And one last request:
    Can the error checking be improved for content uploads? Right now, if anything goes wrong, I just get a response of:
    Which is not very helpful. One case that will produce this message is if the Content-type/Content-disposition headers for the MIME envelope are unquoted, even though this is technically legal.
    Thanks!
    Dave Benjamin, ASU

  • Why can apple just find my ipod with out wifi and just email me where it is like im not going to pay for a new one thats just dumb like apple please find it for me im like dieing here

    please help me

    Apple is not in the lost device recovery service just like a car dealer will not help find a lost/stolen car.
    lost/stolen                                      
    No app is required.                                               
    - If you previously turned on FIndMyiPod on the iPod in Settings>iCloud and wifi is on and connected go to iCloud: Find My iPhone, sign in and go to FIndMyiPhone. If the iPod has been restored it will never show up.
    iCloud: Find My iPhone
    - You can also wipe/erase the iPod and have the iPod play a sound via iCloud.
    and go to FIndMyiPhone. If the iPod has been restored it will never show up.
    iCloud: Find My iPhone
    - You can also wipe/erase the iPod and have the iPod play a sound via iCloud.
    - If not shown, then you will have to use the old fashioned way, like if you lost a wallet or purse.
    - Change the passwords for all accounts used on the iPod and report to police
    - There is no way to prevent someone from restoring the iPod (it erases it) using it unless you had iOS 7 on the device. With iOS 7, one has to enter the Apple ID and password to restore the device.
    - Apple will do nothing without a court order                                                        
    Reporting a lost or stolen Apple product                                               
    - iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

  • Not equal to operator in KQL i.e. for string comparison is not working. Is there any other approach for this?

    In KQL my query is like this,
    refinablestring05<>9c460541-5979-44ec-b0ab-63d1823f922f
    but looks like operator <> not working. It is not throwing error at all and always shows result.
    Any one can help me out for this?

    use NOT operator so it would be "NOT refinablestring:something"
    kashif

  • Problem in JDBC , when using LIKE operator. - VERY URGENT

    Problem in JDBC , when using LIKE operator.
    LINE 1 : String temp = "AA";
    LINE 2 : String query = "select * from emp where EMPNAME like '*temp*' ";
    LINE 3 : Staement st = con.createStaement();
    LINE 4 : ResultSet rs = st.executeQuery(query);
    '*' character is not getting evaluated. In MS ACCESS2000 only * is accepted instead of '%'. Moreover in MS ACCESS the like operator has to be used within double quotes as a String. whereas in other databases, it accepts single quotes as a String.
    Ex:
    In MS ACCESS
         select * from emp where ename like "*aa*";
    Other Databases
         select * from emp where ename like '%aa%';
    In my situation iam passing a Variable inside a like operator and '*' is used.
    For the above Scenario, Please help me out.
    If possible Kindly let me know the exact Syntax.
    Please give me the answer as LINE1,LINE2,LINE3,LINE4,
    I have verified in JDBC Spec also, it has been specified to use escape sequence.that too did not work.
    Due to this, My project is in hold for about 4 days. I could not find a suitable solution.
    Please help me out.

    I made a LIKE clause work with M$ Access, using PreparedStatement and the % wildcard:
                escapeStr                   = "%";
                String sql                  = "SELECT USERNAME, PASSWORD FROM USERS WHERE USERNAME LIKE ?";
                PreparedStatement statement = connection.prepareStatement(sql);
                statement.setString(1, ("user" + escapeStr));
                ResultSet resultSet         = statement.executeQuery();
                while (resultSet.next())
                    System.out.println("username: " + resultSet.getObject("USERNAME") + " password: " + resultSet.getObject("PASSWORD"));

  • Nvarchar(max) of sql server 2005 is not accessible through Oracle DB Link

    hi,
    i have created the DB LINK from Oralce 11gR2 to MS Sql Server 2005,
    am able to access the view of Sql Server from Oralce,
    but the Columns which have Datatype nvarchar(max) in Sql Server am not able to access through DB Link.
    can anybody know about this issues?

    Pl do not post duplicate threads - Datatype nvarchar(max) not accessable (DB Link from Sql 2005 to Ora 11gR2 )

  • LIKE operator is not working in SQL Query in XML file

    Hi Gurus,
    LIKE operator is not working in SQL query in XML template.
    I am creating a PDF report in ADF using Jdeveloper10g. The XML template is as follows
    <?xml version="1.0" encoding="WINDOWS-1252" ?>
    <dataTemplate name="catalogDataTemplate" description="Magazine
    Catalog" defaultPackage="" Version="1.0">
    <parameters>
    <parameter name="id" dataType="number" />
    <parameter name="ename" dataType="character" />
    </parameters>
    <dataQuery>
    <sqlStatement name="Q1">
    <![CDATA[
       SELECT ename, empno, job, mgr from EMP where deptno=:id and ename LIKE :ename || '%']]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="EmployeeInfo" source="Q1">
    <element name="EmployeeName" value="ename" />
    <element name="EMPNO" value="empno" />
    <element name="JOB" value="job"/>
    <element name="MANAGER" value="mgr" />
    </group>
    </dataStructure>
    </dataTemplate>
    if i pass the parameter value of :ename from UI, it doesn't filter. But if I give ename = :ename it retrieves the data. Can anyone help me why LIKE operator doesn't work here?
    Appreciate your help,
    Shyamal
    email: [email protected]

    Hi
    Well for a start, you are doing some very strange conversions there. For example...
    and to_char(a.msd, 'MM/DD/YYYY') != '11/11/2030'
    and to_char(a.msd, 'MM/DD/YYYY') != '10/10/2030'If a.msd is a date then you should e converting on the other side ie.
    and a.msd != TO_DATE('11/11/2030', 'MM/DD/YYYY')
    and a.msd != TO_DATE('10/10/2030', 'MM/DD/YYYY')Also, you may want to take into consideration nothing being input in :P2_ITEM_NUMBER like this...
    AND INSTR(a.item_number,NVL(:P2_ITEM_NUMBER,a.item_number)) > 0Is item number actually a number or char field? If it's a number, you want to explicitly convert it to a string for using INSTR like this...
    AND INSTR(TO_CHAR(a.item_number),NVL(TO_CHAR(:P2_ITEM_NUMBER),TO_CHAR(a.item_number))) > 0?
    Cheers
    Ben

  • Using Like Operator For Parameter Fields

    Hi All,
    I have been figuring around this for few days, appreciated anyone know this could assit me
    I have a report which having a mobile no parameter fields.
    In my database, my mobile no was not a clean entry.
    For eg, a standard mobile number from Malaysia was 60126143331.
    1) 60 - indicate country code (MYS)
    2) 12 - indicate mobile operator
    3) 6143331 - indicate phone number
    Usually, peoples will entry it as 6012-6143331 or 012-6143331 or 0126143331 or 60126143331. In my CR report, i have a static mobile no selection. Currently, my filter selection will be as below:
    {pax.mobile_no} = {?p_mobileno}
    any possible to change it to like? meaning to say, if user enter 012-6143331 it will know that this was 6012-6143331 and the records will be selected into the report.
    Appreciated anyone know this could assits.
    Thanks in advance.
    Regards,
    CK

    Hi,
    tq for ur prompt reply.
    D value in my database r not fix, some mobile no could b 7 digits some could b up to 12 digits. But I jz want user to enter mobile no in 10 digits only. Example, mobile no in db wa 60126661233. However, user input in parameter selection could only 0126661233 without 6. In some situation if mobile no in db was 6012-6661233, user input willb only 0126661233 n this input will b match with data in db using like operator.
    I m wondering can this b archieve in cr?
    Tq
    regards,
    ck

  • Bdc Screen data not passing to XK01 transaction screen for the second PO

    Hi Friends,
                    I have an requirement to extend an existing vendor to multiple company code and for multiple purchase organisation.I have created one report that will list the company code and the purchase organisation to be extended for the vendor. I am calling the standard program as below.
              LOOP AT li_porg.
              If user has ALSO selected p. organizations to extend...
                IF NOT li_company[] IS INITIAL.
                  LOOP AT li_company.
                    SUBMIT zricef666 WITH ld_par = ld_param
                                     WITH ls_vend = ls_vendor_ampl
                                     WITH ld_bukrs = li_company-bukrs
                                     WITH ld_ekorg = li_porg-ekorg
                             AND RETURN.
                  ENDLOOP.
              ENDLOOP.
    Within the program zricef666 , i am calling the below program to extend vendor.
    SUBMIT RFBIKR00 WITH ds_name = FICH
                   WITH xlog = ld_mark
                    AND RETURN.
    Now the problem i am facing is that the first vendor got extended sucessfully for the first PO.But for the second PO , the screen fields are blank and it stuckes in that screen. But in the session i am able to clearly see the data are there but these data are not passing to the screen of XK01.
        Need help to solve this problem from you all.Thanks in advance.
    With Regards,
    Ajit Prasad.

    Hello Ajit, try with the following code and reward if useful. the following code uses the transaction XK01.
    REPORT zbdcxk01 .
    DATA: BEGIN OF itab OCCURS 0,
            lifnr LIKE rf02k-lifnr,
            bukrs LIKE rf02k-bukrs,
            ktokk LIKE rf02k-ktokk,
            name1 LIKE lfa1-name1,
            sortl LIKE lfa1-sortl,
            land1 LIKE lfa1-land1,
            brsch LIKE lfa1-brsch,
            akont LIKE lfb1-akont,
            zterm LIKE lfb1-zterm,
            reprf LIKE lfb1-reprf,
            zwels LIKE lfb1-zwels,
          END OF itab.
    DATA: rc TYPE i,
          flag TYPE i VALUE 1,
          it_files TYPE filetable,
          bdc_data TYPE STANDARD TABLE OF bdcdata WITH HEADER LINE.
    DATA:   messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.
    SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-002.
    PARAMETERS: p_file(1024) TYPE c OBLIGATORY.
    PARAMETERS:dismode DEFAULT 'A',
               updmode DEFAULT 'S'.
    SELECTION-SCREEN : END OF BLOCK b1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
      CHANGING
         file_table              = it_files
         rc                      = rc.
    *Read the Filename into P_FILE
      READ TABLE it_files INDEX 1 INTO p_file.
    START-OF-SELECTION.
      PERFORM getdata.
      PERFORM create_session.
      LOOP AT itab.
        PERFORM fill_bdc_table.
      ENDLOOP.
      PERFORM close_session.
    END-OF-SELECTION.
      PERFORM submit.
    *&      Form  getdata
    *       text
    FORM getdata.
      DATA: file TYPE string.
      file = p_file.
      CALL FUNCTION 'GUI_UPLOAD'
           EXPORTING
                filename                = file
                has_field_separator     = 'X'
           TABLES
                data_tab                = itab
           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.
    ENDFORM.                    " getdata
    *&      Form  CREATE_SESSION
    *       text
    FORM create_session.
      CALL FUNCTION 'BDC_OPEN_GROUP'
       EXPORTING
         client                    = sy-mandt
    *   DEST                      = FILLER8
         group                     = 'MYGROUP'
    *   HOLDDATE                  = FILLER8
         keep                      = 'X'
         user                      = sy-uname
    *   RECORD                    = FILLER1
    * IMPORTING
    *   QID                       =
       EXCEPTIONS
         client_invalid            = 1
         destination_invalid       = 2
         group_invalid             = 3
         group_is_locked           = 4
         holddate_invalid          = 5
         internal_error            = 6
         queue_error               = 7
         running                   = 8
         system_lock_error         = 9
         user_invalid              = 10
         OTHERS                    = 11
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " CREATE_SESSION
    *&      Form  CLOSE_SESSION
    FORM close_session.
      CALL FUNCTION 'BDC_CLOSE_GROUP'
           EXCEPTIONS
                not_open    = 1
                queue_error = 2
                OTHERS      = 3.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " CLOSE_SESSION
    *&      Form  FILL_BDC_TABLE
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM fill_bdc_table.
      REFRESH bdc_data.
      PERFORM operation.
      CALL FUNCTION 'BDC_INSERT'
       EXPORTING
         tcode                  = 'XK01'
    *   POST_LOCAL             = NOVBLOCAL
    *   PRINTING               = NOPRINT
        TABLES
          dynprotab              = bdc_data
    * EXCEPTIONS
    *   INTERNAL_ERROR         = 1
    *   NOT_OPEN               = 2
    *   QUEUE_ERROR            = 3
    *   TCODE_INVALID          = 4
    *   PRINTING_INVALID       = 5
    *   POSTING_INVALID        = 6
    *   OTHERS                 = 7
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      PERFORM bdc_transaction USING 'XK01'.
    ENDFORM.                    " FILL_BDC_TABLE
    *&      Form  BDC_DYNPRO
    *       texT
    *  -->  p1        text
    *  <--  p2        text
    FORM bdc_dynpro USING program dynpro.
      CLEAR bdc_data.
      bdc_data-program = program.
      bdc_data-dynpro = dynpro.
      bdc_data-dynbegin = 'X'.
      APPEND bdc_data.
    ENDFORM.                    " BDC_DYNPRO
    *&      Form  BDC_FIELD
    *       text
    FORM bdc_field USING fnam fval.
      CLEAR bdc_data.
      bdc_data-fnam = fnam.
      bdc_data-fval = fval.
      APPEND bdc_data.
    ENDFORM.                    " BDC_FIELD
    *&      Form  BDC_TRANSACTION
    FORM bdc_transaction USING tcode.
      CALL TRANSACTION tcode USING bdc_data
                             MODE   dismode
                             UPDATE updmode
                             MESSAGES INTO messtab.
    ENDFORM.                    " BDC_TRANSACTION
    *&      Form  SUBMIT
    *       text
    FORM submit.
      SUBMIT rsbdcsub EXPORTING LIST TO MEMORY AND RETURN
    *                  user sy-uname
                        WITH mappe = 'MYGROUP'
                        WITH von   = sy-datum
                        WITH bis   = sy-datum
                        WITH z_verarb = 'X'.
    ENDFORM.                    " SUBMIT
    *&      Form  OPERATION
    *       text
    FORM operation.
      PERFORM bdc_dynpro      USING 'SAPMF02K' '0100'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'RF02K-KTOKK'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '/00'.
      PERFORM bdc_field       USING 'RF02K-LIFNR'
                                    itab-lifnr.
      PERFORM bdc_field       USING 'RF02K-BUKRS'
                                    itab-bukrs.
      PERFORM bdc_field       USING 'RF02K-KTOKK'
                                    itab-ktokk.
      PERFORM bdc_dynpro      USING 'SAPMF02K' '0110'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'LFA1-SORTL'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '/00'.
      PERFORM bdc_field       USING 'LFA1-NAME1'
                                    itab-name1.
      PERFORM bdc_field       USING 'LFA1-SORTL'
                                    itab-sortl.
      PERFORM bdc_field       USING 'LFA1-LAND1'
                                    itab-land1.
      PERFORM bdc_dynpro      USING 'SAPMF02K' '0120'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'LFA1-BRSCH'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '/00'.
      PERFORM bdc_field       USING 'LFA1-BRSCH'
                                    itab-brsch.
      PERFORM bdc_dynpro      USING 'SAPMF02K' '0130'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'LFBK-BANKS(01)'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=ENTR'.
      PERFORM bdc_dynpro      USING 'SAPMF02K' '0210'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'LFB1-AKONT'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '/00'.
      PERFORM bdc_field       USING 'LFB1-AKONT'
                                    itab-akont.
      PERFORM bdc_dynpro      USING 'SAPMF02K' '0215'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'LFB1-REPRF'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=UPDA'.
      PERFORM bdc_field       USING 'LFB1-ZTERM'
                                    itab-zterm.
      PERFORM bdc_field       USING 'LFB1-REPRF'
                                    itab-reprf.
      PERFORM bdc_field       USING 'LFB1-ZWELS'
                                    itab-zwels.
      PERFORM bdc_transaction USING 'XK01'.
    ENDFORM.                    " OPERATION

Maybe you are looking for

  • Configuration of redirects from Zend Framework

    Hi, I have to use a PHP project which are develop based on Zend Framework. I use SJWS 7u4 and have to implement mod_rewrite rules form Zend Framework (stndard rules). I have to make rewrite url from http://some-name/some-dir/some-dir2 into http://som

  • Reload a virtual context in ACE

    Hi, is possible to reload one or more virtual contexts in ACE module? Is possible to download checkpoints from ACE to remote server and vice versa? Thank you

  • Employee Download

    Hi , I am working on the employee download. Have done all the stettings as per the note 550055 and ran the RHALEINI in R/3. In CRM the IDOC are shoowing the status 64 ' IDoc ready to be transferred to application'. What could be the problem in postin

  • Airport Question Behavior vs. Security

    Hello I have been having a few dropouts with my Airport Extreme wireless connectivity for both an iMac running wireless N and a computer from the XP Darkside running wireless G. I thought perhaps I was having channel interference. Changing channels h

  • Content for itunes in Canada

    My obvious question is are you waiting approval from the CRTC to use all the features the US Store has? If so when, looks like iphone functionality will also be hampered by borders. When you purchse an ipod, you take off the sticker displaying "Don't