SYNTAX ERROR in function module CACS_BUPA_PAI_SPECIAL_CACSB1

Hi experts,
   I am trying to create business partner in SAP treasury module with role - general business partner and validity period 01/01/0001 - 12/31/9999. I am gettting syntax error  in Function module CACS_BUPA_PAI_SPECIAL_CACSB1, it says
The key of internal table 'LT_BUT0BK' contains components of type 'X' or 'XSTRING'.
The "Read table LT_BUTOBK" statement is not permitted for such tables in a unicode context.
Please let me know if you have any solution for this.
Thanks in advance.
Edited by: Thanvi maraka on Apr 17, 2009 3:27 AM

Hello Thanvi
It seems that you need to apply the OSS note 1041283:
FUNCTION cacs_bupa_pai_special_cacsb1.
*"*"Lokale Schnittstelle:
  DATA: lt_but0bk TYPE TABLE OF but0bk WITH HEADER LINE.
  CALL FUNCTION 'BUP_BUPA_BUT0BK_GET'
       TABLES
            t_but0bk = lt_but0bk.
* einmal vorhanden -> nehmen; nicht vorhanden -> Feld muss leer sein
* mehrmals vorhanden -> Mussfeld
  READ TABLE lt_but0bk INDEX 2.
  IF sy-subrc NE 0.
*    READ TABLE lt_but0bk.          "NOTE 1041283   " <<<<<<<<<
     READ TABLE lt_but0bk FROM lt_but0bk.            " <<<<<<<<<
    IF sy-subrc = 0.
      cacs_s_bupaw-bank_id = lt_but0bk-bkvid.
    ENDIF.
  ELSE.
Regards
  Uwe

Similar Messages

  • Dump in function module CACS_BUPA_PAI_SPECIAL_CACSB1

    Hi experts,
       I am trying to create business partner in SAP treasury module with role - general business partner and validity period 01/01/0001 - 12/31/9999. I am gettting syntax error  in Function module CACS_BUPA_PAI_SPECIAL_CACSB1, it says
    The key of internal table 'LT_BUT0BK' contains components of type 'X' or 'XSTRING'.
    The "Read table LT_BUTOBK" statement is not permitted for such tables in a unicode context.
    Please let me know if you have any solution for this.
    Thanks in advance.

    Please refer to thread SYNTAX ERROR in function module CACS_BUPA_PAI_SPECIAL_CACSB1
    Regards
      Uwe

  • Error in function module WWW_DISPATCH_REQUEST

    Hi,
    I am upgrading standalone ITS to integrated ITS.
    In this process I refered to OSS notes number 979467. and i maintained all service files in WEBRFC service.
    and when i am testing my services i am getting an error in the browser
    saying:
    'Error in function module WWW_DISPATCH_REQUEST'
    Parameter Name Parameter value
    sap-client 100 
    ~USERAGENTTYPE M 
    ~USERAGENTVERSION 6 
    ~CALLED_FROM_ITS 6 
    ~URLWGATE %_WEBRFC_HTTP_SERVICE 
    ~SESSION SID:ANON:essap00_MIL_02:ByAZnf5VaI5DZcamNtjfwtDYdKZb5gkPV4oG3lBO-ATT 
    ~URLIMAGEPATH C:\tmp\sapicons\ 
    So i am not able to find an where i went wrong. Please suggest me or guide me to resolve the above error.
    Thanks in advance

    I am not sure this is an issue with getting the mime files for your webrfc service.  If it is, please try the following:
    From page 13 of the SAP document "Developing IACs with the SAP Integrated ITS"
    MIME URL
    MIME objects in the integrated ITS are accessed at runtime directly in the database. For this, a special ICF service mimes exists with the http request handler CL_HTTP_EXT_ITS_MIMES, which is stored in the ICF path defaulthost u2192 sap u2192 public u2192 bc u2192 its. It is used to fill parameter ~urlmime with the value /sap/public/bc/its/mimes. Also function mimeURL() returns this value as a result.
    The ICF service mimes must be active if you want to execute an ITS service that accesses MIME objects.
    Changes to the HTML templates are necessary only if the MIME URL in the ITS service does not contain the SAP default values.
    Developing
    Please also check out this OSS note 1076200 - WebReporting: Icon support for WebRFC Service
    It may applies to your case.
    The last parameter "~URLIMAGEPATH C:\tmp\sapicons\" may be the cause of the error.
    Hope it helps.
    Edited by: Danny Mak on Nov 23, 2009 8:03 PM

  • Can we write leave program syntax in RFC function module.

    hello friends,
       can we write leave program syntax in RFC function module. Iam developing RFC Function module .
    useful answers will be awarded..
    Regards
    Kanth
    Edited by: Kanth on Mar 30, 2008 11:38 PM

    Don't use leave program in RFC function module. You can better use EXIT or RETURN. But when developing RFC modules you should use the return structure BAPIRET2 to store message generated in the calling system. So when you use EXIT or RETURN, first give a message so the calling program knows why the RFC module was exited.

  • Error accessing function module: HELP

    TO ADMINISTRATORS: PLEASE DO NOT DELETE. ADVISE WHICH FORUM TO POST.
    Good Day to all SAP Gurus,
    I need your help in resolving / understanding an error.
    Envirornment - SAP IDES 4.7
    While posting any document through FBCJ (Cash Journal), f.26 (incoming payment), f.22 etc., the below mentioned error is appearing.
    Error accessing function module: FMFK_FIKRS_READ
    Parameter: IP-FIKRS IP_FMA_OBJNR
    When I click help (?), the following detailed message appears.
    Diagnosis
    The application has accessed a Funds Management or Cash Budget Management module with parameters missing or defective.
    Can someone please help on this?
    Points guaranteed.
    Regards
    Jamil

    1. Please do not offer points for replies.  This is clearly mentioned in the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement].  It is considered impolite and is the quickest way to have someone flag your message using the Abuse Button which usually means that the post will be deleted.
    2.  Per the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement], please title your subject appropriately.  In particular, words such as "help" don't provide any insight into your message either when viewed directly or via search.  This too is a possible Abuse violation and may be deleted by the other Moderators.  A more appropriate title would be "posting Cash Journal document results in error XX-YYY (FMFK_FIKRS_READ)"...  and it would help the others who would attempt to reply to your message if you provided the specific message number.
    3.  The financials forum is for functional questions.  Since you are asking about a FM I'd recommend posting this question in one of the [ABAP Forums|/community [original link is broken];.  Posting in the wrong forum won't lead to an abuse report but the message is likely to be locked to discourage other users to post in the correct forum.
    Edited by: Nathan Genez on Oct 10, 2008 2:20 PM

  • Internal error in functional module

    Hi,
    While the invoice is being posted in MIRO screen the system is giving the below error.
    *Internal error in functional module*
    *CKMW_CREATE_PO_HISTORY*
    Message No. C+ 514
    Thanks in advance to help me out from this problem.

    Hi,
      Please check if the notes 1167399, 1015136, 1280056 and 1036588 help.
    regards
    Waman

  • ERROR ACCESSING FUNCTION MODULE FMFK_FIKRS_READ

    While crearting invoice or entering vendor invoice, the system gives me
    following error.
    ERROR ACCESSING FUNCTION MODULE FMFK_FIKRS_READ
    PARAMETRE: IP_FIKRS IP_FMA_OBJNR
    Can someone help!

    Actually I got the same error. I tried to debug abap not knowing what I was doing but just looking thru. I couldn't find anything. It won't allow me to post via f-02 or fb50.
    I looked at this post and found someone else had the same problem via purhcase receipt. So I tried to do purchase receipt. The error message then changed slightly to " can not access the functional module" for FM etc.
    It gave me a clue that the system is probably trying to access FM area.  However it wasn't active in the global setting for the company.
    Anyhow, I still created an FM area and assigned it to my company.
    Then the error changed to FM update profile being missing. I fixed than and guess what >>>>> the error went away and I was able to post my document.
    I am not sure what error it might cause in the future postings but I think it won't be unsolvable.
    Hope this also works for you guys.

  • Error accessing function module: FMFK_FKRS_READ parameter: IP_FIKRS IP_FMA_

    Hi,
    I get this error while posting a document -
    Error accessing function module: FMFK_FKRS_READ parameter: IP_FIKRS IP_FMA_OBJNR
    Same error apprears in GL/AR/AP.
    Any suggestion?

    Hi,
    Check the following notes 553048, 580494; it might solve your problem.
    Regards,
    Eli

  • Runtime error in functional module

    they given below program is a function module calling program.while am execute this program they could display the message like as
    What happened?
        Error in ABAP application program.
        The current ABAP program "YSUSFUN1" had to be terminated because one of the
        statements could not be executed.
        This is probably due to an error in the ABAP program.
        In program "SAPLYGROUP3 ", the following syntax error occurred
        in the Include "LYGROUP3U01 " in line 1:
        "The main program of the function "Y_INTERNAL1" does not begin with "FU"
        "NCTION-POOL"."
        Author and last person to change the Include are:
        Author "BASIS "
        Last changed by "BASIS "
    Error analysis
        In program "SAPLYGROUP3 ", the following syntax error occurred:
        "The main program of the function "Y_INTERNAL1" does not begin with "FU"
        "NCTION-POOL"."
    REPORT  YSUSFUN1.
    TABLES YSUSTAB1.
    DATA IT1 LIKE YSUSTAB1 OCCURS 2 .
    SELECT * FROM YSUSTAB1 INTO TABLE IT1.
    LOOP AT IT1 INTO YSUSTAB1.
    WRITE: / YSUSTAB1-NAME, YSUSTAB1-ROLLNO,YSUSTAB1-PHONENO.
    ENDLOOP.
    CALL FUNCTION 'Y_INTERNAL1'
      TABLES
        IT4           =  IT1  .
        LOOP AT IT1 INTO YSUSTAB1.
        WRITE: / YSUSTAB1-NAME, YSUSTAB1-ROLLNO, YSUSTAB1-PHONENO.
        ENDLOOP.
    2.)
    the given below program is function module definition. while at that time of execution they could display the message as
    *Syntax error in program*
    *Source code   LYGROUP3U01                                    Line     1*
      *The main program of the function "Y_INTERNAL1" does not begin with*
      *"FUNCTION-POOL".*
    FUNCTION Y_INTERNAL1.
    ""Local Interface:
    *"  TABLES
    *"      IT4 STRUCTURE  YSUSTAB1
    LOOP AT IT4.
    WRITE : IT4-name, it4-phoneno, it4-rollno.
    endloop.
    ENDFUNCTION.

    thanks
    before am gone to se80 to activate the function group , am  activate the function module only  not activate the function group .
    now am activate the function group they could not be depict the error .

  • ALV ERROR in Function Module Fieldcatlog Merge .

    Hi
    I have added 2 more fileds in internral table . this is alv report there is no syntax error .
    i have user function module
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    i_program_name = w_repid
    i_internal_tabname = 'T_BSIK'
    I_STRUCTURE_NAME =
    I_CLIENT_NEVER_DISPLAY = 'X'
    i_inclname = w_repid
    i_bypassing_buffer = 'X'
    I_BUFFER_ACTIVE =
    CHANGING
    ct_fieldcat = T_FIELDCAT
    EXCEPTIONS
    inconsistent_interface = 1
    program_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.
    LOOP AT t_fieldcat INTO wa_fieldcat.
    CASE wa_fieldcat-fieldname.
    WHEN 'ZFBDT'.
    wa_fieldcat-key = ''.
    wa_fieldcat-reptext_ddic = 'Net Due Dt.'.
    wa_fieldcat-seltext_l = 'Net Due Dt.'.
    wa_fieldcat-seltext_m = 'Net Due Dt.'.
    wa_fieldcat-seltext_s = 'Net Due Dt.'.
    WHEN 'KUNNR'.
    IF p_kunnr IS INITIAL.
    wa_fieldcat-no_out = 'X'.
    ENDIF.
    WHEN 'LIFNR'.
    IF NOT p_kunnr IS INITIAL.
    wa_fieldcat-no_out = 'X'.
    ENDIF.
    WHEN 'SHKZG'.
    wa_fieldcat-no_out = 'X'.
    WHEN 'ZBD1T'.
    wa_fieldcat-no_out = 'X'.
    WHEN 'BELNR'.
    wa_fieldcat-key = 'X'.
    WHEN OTHERS.
    wa_fieldcat-key = ''.
    ENDCASE.
    MODIFY t_fieldcat FROM wa_fieldcat.
    ENDLOOP.
    I am getting error on that.
    ERROR is :
    The Internal table "\UNCTION= K_KKB_FIELDCAT_MERGE\DATA=L_ABAP_SOURCE[]" IS 72 CHARACTERS Wide
    .the program line is 79 characters wide.
    Thanks
    Chandra

    Hi Chandra,
    For ALV reports the length should not be greater than 72. (please change the same)
    You can also achive the same
    Goto SE38
    Open your program in edit
    Utilities --> Settings --> Set "Downwards-Comp Line Length" falg to X and save. (This wil auotmatically set ur code to 72 chars)
    Hope this helps,
    Nag

  • Syntax error in function call through EF6

    I'm trying to call a function from an EF6 query but it seems the compiled statement has a syntax error and the DBMS bails out with "ORA-00933: SQL-Befehl wurde nicht korrekt beendet" (SQL statement ends with an inappropriate clause). As far as I understand the Oracle .NET provider compiles E-SQL to SQL for Oracle in the first place, so how come the statement is malformed?
    Here's what EF logs for this particular statement:
    Opened connection at 26.01.2015 09:46:14 +01:00
    SELECT
    "Extent1"."Z_AS" AS "Z_AS"
    FROM "DEMO_VIVPFLEGEDOKU"."FN_GETASSESMENTCHILDS_AUSMENGE"(:STRFILTER) "Extent1"
    -- STRFILTER: '1' (Type = Object)
    -- Executing at 26.01.2015 09:46:14 +01:00
    -- Failed in 79 ms with error: ORA-00933: SQL-Befehl wurde nicht korrekt beendet
    Closed connection at 26.01.2015 09:46:14 +01:00
    This is with VS 2013 Update 4, ODP.NET (ODTwithODAC121021 package) and Oracle 12c DBMS.
    The function is defined as
    create or replace function fn_GetAssesmentChilds_AusMenge(strFilter varchar2)
    RETURN TTabOneNumber pipelined
    is
    IndexEing PLS_INTEGER;
    IndexZ_Aus PLS_INTEGER;
    Cursor CursorEing is select column_value from TABLE(fn_splitstring( strFilter ));
    Cursor CursorAssessCh is select column_value from TABLE(fn_GetAssesmentChilds_AusInt(IndexEing));
    BEGIN
    open CursorEing;
    fetch CursorEing into IndexEing;
    while CursorEing%found
    loop
    open CursorAssessCh;
    fetch CursorAssessCh into IndexZ_Aus;
    while CursorAssessCh%found
    loop
    pipe row (IndexZ_Aus);
    fetch CursorAssessCh into IndexZ_Aus;
    end loop;
    close CursorAssessCh;
    fetch CursorEing into IndexEing;
    end loop;
    close CursorEing;
    END fn_GetAssesmentChilds_AusMenge;
    Here's the sample code for what I'm trying to achieve:
    using System;
    using System.Linq;
    namespace ConsoleApplication17
       class Program
          static void Main(string[] args)
             using (var db = new Entities())
                var ids = db.GetAssessmentIds("1")
                      .Select(r => r.Z_AS);
                Console.WriteLine(string.Join(",", ids));
    For the sake of completeness, here are the relevant parts from the EDMX:
    SSDL
            <Function Name="FN_GETASSESMENTCHILDS_AUSMENGE" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="true" ParameterTypeSemantics="AllowImplicitConversion" Schema="DEMO_VIVPFLEGEDOKU">
              <Parameter Name="STRFILTER" Type="varchar2" Mode="In" />
               <ReturnType>
                  <CollectionType>
                     <RowType>
                        <Property Name="Z_AS" Type="number" Precision="10" Scale="0" />
                     </RowType>
                  </CollectionType>
               </ReturnType>
            </Function>
    CSDL
              <FunctionImport Name="GetAssessmentIds" ReturnType="Collection(CareDocumentation.fn_GetAssesmentChilds_AusMenge_Result)" IsComposable="true">
                 <Parameter Name="STRFILTER" Mode="In" Type="String" />
              </FunctionImport>
    MSL
              <FunctionImportMapping FunctionImportName="GetAssessmentIds" FunctionName="CareDocumentation.Store.FN_GETASSESMENTCHILDS_AUSMENGE">
                 <ResultMapping>
                    <ComplexTypeMapping TypeName="CareDocumentation.fn_GetAssesmentChilds_AusMenge_Result">
                       <ScalarProperty Name="Z_AS" ColumnName="Z_AS" />
                    </ComplexTypeMapping>
                 </ResultMapping>
              </FunctionImportMapping>
    Return type:
             <ComplexType Name="fn_GetAssesmentChilds_AusMenge_Result">
                <Property Name="Z_AS" Type="Int32" />
             </ComplexType>
    Any ideas as to what is going on here?

    Hello Thanvi
    It seems that you need to apply the OSS note 1041283:
    FUNCTION cacs_bupa_pai_special_cacsb1.
    *"*"Lokale Schnittstelle:
      DATA: lt_but0bk TYPE TABLE OF but0bk WITH HEADER LINE.
      CALL FUNCTION 'BUP_BUPA_BUT0BK_GET'
           TABLES
                t_but0bk = lt_but0bk.
    * einmal vorhanden -> nehmen; nicht vorhanden -> Feld muss leer sein
    * mehrmals vorhanden -> Mussfeld
      READ TABLE lt_but0bk INDEX 2.
      IF sy-subrc NE 0.
    *    READ TABLE lt_but0bk.          "NOTE 1041283   " <<<<<<<<<
         READ TABLE lt_but0bk FROM lt_but0bk.            " <<<<<<<<<
        IF sy-subrc = 0.
          cacs_s_bupaw-bank_id = lt_but0bk-bkvid.
        ENDIF.
      ELSE.
    Regards
      Uwe

  • Error using function module in BODS

    Hi I am trying to use a function module and when I run the job I am getting a warning
    R/3Callreceive warning:<RFC_ABAP_RUNTIME_FAILURE-(Exception_Key:ITAB_LINE_NPOT_FOUND)- this row is not contained in the table.
    Could you help me out here to get past this error?
    Cheers!

    Hello,
    Well, it all depends on the volume of data, if it is too much, you can eventually have time out problems. If you can, run your program in background, as a job, and at least you will never have a time out.
    Best regards.

  • Error with Function Module

    Hi Guys,
    I have created a custom function module ,and transported to Production server,but the thing is am getting an error like "Error generating the test frame".What could be the reason?Give me your suggetions on the same.
    Warm Regards,
    Mohandoss P.

    Hi,
    I you have complex type in the parameter list you will get this error for example generic types, xtrings, strings, object references.
    But, function module can be called from programs.
    Check for Oss notes if you want to solve this problem
    Best regards..

  • Error with function module TABLE_COMPRESS?

    Hi all,
    What is the alternate function module for TABLE_COMPRESS?
    This is going fine in 4.7 version.
    But in ECC 6.0, if we use this function module we r getting SLIN error (Obsolate statements) .
    How can we rectify this SLIN error?
    So we have to use another funtion module for the same purpose.
    Can any one help on this?
    Rewards to all.
    Thanks & Regards
    Anu.

    Hi,
    I you have complex type in the parameter list you will get this error for example generic types, xtrings, strings, object references.
    But, function module can be called from programs.
    Check for Oss notes if you want to solve this problem
    Best regards..

  • Error in function module  for inbound processingwhile testing from we19

    hi,
    I have developed a custom function module for processing inbound idoc for creating material using bdc...the problem is that when i am trying to test my idoc using we19 and calling my function module in debug mode an error is displayed showing 'interface for function module is incorrect' and also i am unable to see my function module in debugging mode.It is only displaying the error message...
    I have given all the parameters necessary (import,export or tables) and found no error in the interface...I think the problem is appearing before my function module is being called....Also on seeing the short dump analysis I have seen that the error is in the form 'Idocs passed to application' which is not a part of the function module developed by me...
    I am unable to understand why this error message is being displayed...
    Please help me out of this..

    ya i know that ..But I wanted to create a simple one..moreover the problem is not with bdc....It is with the function module interface..
    Also I want to ask a question that I had to define all the parameters (in the function module ) by data declaration statements in the function group top include..
    If i dont do that say the first error is when i write loop at idoc_contrl ..idoc_contrl is not declared by a data statement..So IO had to write a data statement:
    Idoc_contrl type table of edidc..I have seen that in other function modules (idoc inbound processing)  no such data declaration is done..

Maybe you are looking for

  • How Do I Setup a Wireless Network in my home for 3 Mac's and 2 PC's

    Ok..... I live with 5 people and we all have computers. I'm looking to setup a Wireless Network in our house that would allow all of us to access the Internet from our various rooms. Currently we have 3 MAC (a G5 Desktop, a regular Desktop, and a Pow

  • Shuttering MPEG HD - BUG?

    We are using Adobe Media Encoder for encoding video files to our prefered codec. (MPEG HD - .TS) This used to be no problem. Since a few months (november 2013?) we get only video files with shuttering pixel every second. We didn't change the preset a

  • How to check if the file already exists in the client directory

    Hi all. I'm on devsuite 10g. I'm using webutil to download files from DB using webutil function db_to_client. What I need is to check if the file already exists in the client directory and if yes to display a message to ask the user if he wants to ov

  • I got this message, the iphone "iphone" could not be restored. this advice isn't eligible for requested build.

    i got this message when I plugged my iphone to iTune.  The Iphone "Iphone" could not be restored. The device isn't eligible for requested build. what do i need to do bc I can't use my iphone at all.

  • How good is this new MCE hard drive?

    Has anyone heard of this new hard drive from MCE? I guess it allows you to install another hard drive into your MacBook Pro. This is the link... http://www.mcetech.com/optibay/. What are the negative issues this could bring up? Heat issues im guessin