Problem with  'append' syntax in ECC 6.0

i am upgrading a old report  i got a unicode error 
actually  the report has the followig structure 
tables: arc_buffer.
DATA: BEGIN OF class_package OCCURS 0.
        INCLUDE STRUCTURE arch_packa.
DATA: END OF class_package.  
now  the report has following syntax
APPEND  arc_buffer-segment TO class_package.
when i try to execute it  it gives error that
'a line of class_package and arc_buffer-segment are not mutually convertible in a unicode program.'
can any one help me to resolve this.

Hi Elinuk,
Use field symbols to make it compatible.
Hope the below code helps.
REPORT  zvk_test.
TABLES: arc_buffer.
DATA: BEGIN OF class_package OCCURS 0.
        INCLUDE STRUCTURE arch_packa.
DATA: END OF class_package.
DATA:lw_arch_packa TYPE arch_packa.
FIELD-SYMBOLS:<fs_arch_packa>.
arc_buffer-segment = 'krishna999988jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj'.
ASSIGN arc_buffer-segment TO <fs_arch_packa> CASTING TYPE arch_packa.
MOVE <fs_arch_packa> TO lw_arch_packa.
APPEND lw_arch_packa TO class_package.

Similar Messages

  • Problem with Append mode in File Receiver

    Hello,
    I am facing some problem with Append Mode in File Receiver.
    In channel config, i have given :
    Construction Mode : Append
    File Type : Text
    Message Protocol : File Content Conversion
    The size of the file which i am trying to send is about 9.5MB.
    I got this error,
    "Recovering from loss of connection to database; message
    loaded into queue by recover job: System Job (Failover Recovery)".
    So, it would seem that there was a loss of connnection to the database    
    while the file was being written.
    Note -  XI successfully recovered from the connection loss and   
    successfully wrote the file, however since the communication channel  
    was set to append, it appended to the partial file that was written   
    before the database connection loss. This is not correct. The file    
    should have been overwritten after the recovery even though the communication
    channel was configured to append.                                     
    Can anyone help me on this regard.
    Thanks,
    Soorya.

    Hi Venkat,
    I would suggest u to split the file in to chunks if u face any problem in processing at a time in append mode and also
    Memory Requirements are must 4 processing huge files:
    Q: Which memory requirements does the File Adapter have? Is there a restriction on the maximum file size it can process?
    A: The maximum file size that can be processed by the File Adapter depends on a number of factors:
    o The most important one is the size of the Java heap, which is shared among all messages processed at a certain point in time. In order to be able to process larger messages without an out of memory error (OOM), it is recommended to increase the size of the available Java heap and/or to reduce the concurrency in the system so that fewer messages are processed in parallel.
    o Another factor negatively influencing the maximum message size in releases up to and including XI 3.0 SP 13 is an enabled charcter set (encoding) conversion if the message type is set to "Text".
    o Using the transport protocol "File Transfer Protocol (FTP)" also uses more memory for processing than the transport protocol "File System (NFS)" (up to and including XI 3.0 SP 13).
    o If the Message Protocol "File Content Conversion" is used in a File Sender channel, consider that not only the size of the input file affects the File Adapter's memory usage, but even more the size of the XML resulting from the conversion, which is usually a few factors larger than the original plain text file.
    To reduce the memory consumption in this scenario, consider configuring the setting "Maximum Recordsets per Message" for the sender channel. This will cause the input file to be split into multiple smaller mesages.
    Plz do refer the following links:
    U may plan the availability of ur communication channel using "Planning Availability Times" feature
    http://help.sap.com/saphelp_nw04/helpdata/en/45/06bd029da31122e10000000a11466f/frameset.htm
    /people/sravya.talanki2/blog/2005/11/29/night-mare-processing-huge-files-in-sap-xi
    hi check the below links for reference
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10748ef7-b2f0-2910-7cb8-c81e7f284af5
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7086f109-aaa7-2a10-0cb5-f69bd2affd2b
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2498bf90-0201-0010-4884-83568752a857
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cc1ec146-0a01-0010-90a9-b1df1d2f346f
    Regards,
    Vinod.

  • Problem with append += text in Text Field

    Hi guys
    i have a problem with append text.
    I have one array which contain some city names, like CityArea=["NAME 1", "NAME2" ...etc];
    Then i have one String and one Text Field.
    Using for loop im getting right results. But when im running script again then im getting  same text again.
    F.ex.
    First time:
    City name: Name 1
    City name: Name 2
    Second time:
    City name: Name 1
    City name: Name 2
    City name: Name 1
    City name: Name 2
    I have tried to make TextField to and String to Null and delete it, but it's appearing again.. :/
    How to avoid this?
    Here is script:
    for (var i1:int = 0; i1 < CityArea.length; i1++)
      _CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='32' COLOR='#ffffff'>        "+CityArea[i1]+"</FONT></P>";
      _CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='5' COLOR='#ffffff'><BR></FONT></P>";
    _CityAreaTF1 = new TextField();
      _CityAreaTF1.border = true;
      _CityAreaTF1.wordWrap = true;
      _CityAreaTF1.multiline = true;
      _CityAreaTF1.selectable = false;
      _CityAreaTF1.antiAliasType = AntiAliasType.ADVANCED;
      _CityAreaTF1.name = "CityAreaTF1";
      _CityAreaTF1.embedFonts = true;
      _CityAreaTF1.htmlText = _CityAreaString1.toUpperCase();

    I think i found why.
    There was no problem with TextField.
    There was a problem with Array. "CityArea"
    So each time I executed script it added new string in Array. And that is because i got like:
    TextField
    City 1
    City 2
    City 1
    City 2
    Running this script is Ok:
    for (var i1:int = 0; i1 < CityArea.length; i1++)
      _CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='32' COLOR='#ffffff'>        "+CityArea[i1]+"</FONT></P>";
      _CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='5' COLOR='#ffffff'><BR></FONT></P>";
    But outside of this for loop there is another for loop for adding Cities in CityArray.
    I fixed it by adding empty array at the start of function
    function myFunc():void
    CityArea = [ ]; // Empty array fixed this issue
    // LOOP FOR ADDING SHOPS IN CITY AREA
    for (var j:int = 0; j < _Shops; j++)
    CityArea.push(_Shop);
    // FOR LOOP TO ADDING SHOPS IN STRING
    for (var i1:int = 0; i1 < CityArea.length; i1++)
      _CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='32' COLOR='#ffffff'>        "+CityArea[i1]+"</FONT></P>";
      _CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='5' COLOR='#ffffff'><BR></FONT></P>";
    Thank you for your help kglad

  • Problems with INSERT  syntax ?

    Dear programmers,
    I am have a problem with INSERT Syntax,
    I have a table with 11 fields out of which one is auto_increment field(id), Now my problem is, Do i need to specifiy autoincrement field in INSERT statement. I dont thinks ?
    My Insert statement is as follows ,
    int result = st.executeUpdate("insert into tablename"
              +"(name, user_group, lage, preis, anmerkung, exp_uri, timestamp, nummer)"
              +"values +Objekt+"','"+Kategoriekey+"','"+Lage+"','"+Preis+"','"+Anmerkung+"','"+Dateiname+"','"+date.getTime()+"','"+ObjektID+"')");
    thanks in advance
    bye

    The answer to your question is maybe. Each database handles autoincrements differently. What database are you using?
    I also noticed that you are doing an insert using the standard Statement. You should look into using PreparedStatements for performance reasons and issues such as single quotes from within a string.
    Matt

  • Problem with append mode in  WS_DOWNLOAD

    Hi everybody
    I have a problem with downloading two internal tables in one excel sheet.
    I am Using FM - WS_DOWNLOAD , MODE = 'A' .
    I want to append one IT after another .
    But I am getting only the second one ...
    MODE - A is for append , correct?
    Any clou?
    I allready sow all the posts on the forum

    hi
    good
    go through this and use accordingly.
    Often we face situations where we need to download internal table contents onto an Excel sheet. We are familiar with the function module WS_DOWNLOAD. Though this function module downloads the contents onto the Excel sheet, there cannot be any column headings or we cannot differentiate the primary keys just by seeing the Excel sheet.
    For this purpose, we can use the function module XXL_FULL_API. The Excel sheet which is generated by this function module contains the column headings and the key columns are highlighted with a different color. Other options that are available with this function module are we can swap two columns or supress a field from displaying on the Excel sheet. The simple code for the usage of this function module is given below.
    Program code :
    REPORT Excel.
    TABLES:
      sflight.
    header data................................
    DATA :
      header1 LIKE gxxlt_p-text VALUE 'Suresh',
      header2 LIKE gxxlt_p-text VALUE 'Excel sheet'.
    Internal table for holding the SFLIGHT data
    DATA BEGIN OF t_sflight OCCURS 0.
            INCLUDE STRUCTURE sflight.
    DATA END   OF t_sflight.
    Internal table for holding the horizontal key.
    DATA BEGIN OF  t_hkey OCCURS 0.
            INCLUDE STRUCTURE gxxlt_h.
    DATA END   OF t_hkey .
    Internal table for holding the vertical key.
    DATA BEGIN OF t_vkey OCCURS 0.
            INCLUDE STRUCTURE gxxlt_v.
    DATA END   OF t_vkey .
    Internal table for holding the online text....
    DATA BEGIN OF t_online OCCURS 0.
            INCLUDE STRUCTURE gxxlt_o.
    DATA END   OF t_online.
    Internal table to hold print text.............
    DATA BEGIN OF t_print OCCURS 0.
            INCLUDE STRUCTURE gxxlt_p.
    DATA END   OF t_print.
    Internal table to hold SEMA data..............
    DATA BEGIN OF t_sema OCCURS 0.
            INCLUDE STRUCTURE gxxlt_s.
    DATA END   OF t_sema.
    Retreiving data from sflight.
    SELECT * FROM sflight
             INTO TABLE t_sflight.
    Text which will be displayed online is declared here....
    t_online-line_no    = '1'.
    t_online-info_name  = 'Created by'.
    t_online-info_value = 'SURESH KUMAR PARVATHANENI'.
    APPEND t_online.
    Text which will be printed out..........................
    t_print-hf     = 'H'.
    t_print-lcr    = 'L'.
    t_print-line_no = '1'.
    t_print-text   = 'This is the header'.
    APPEND t_print.
    t_print-hf     = 'F'.
    t_print-lcr    = 'C'.
    t_print-line_no = '1'.
    t_print-text   = 'This is the footer'.
    APPEND t_print.
    Defining the vertical key columns.......
    t_vkey-col_no   = '1'.
    t_vkey-col_name = 'MANDT'.
    APPEND t_vkey.
    t_vkey-col_no   = '2'.
    t_vkey-col_name = 'CARRID'.
    APPEND t_vkey.
    t_vkey-col_no   = '3'.
    t_vkey-col_name = 'CONNID'.
    APPEND t_vkey.
    t_vkey-col_no   = '4'.
    t_vkey-col_name = 'FLDATE'.
    APPEND t_vkey.
    Header text for the data columns................
    t_hkey-row_no = '1'.
    t_hkey-col_no = 1.
    t_hkey-col_name = 'PRICE'.
    APPEND t_hkey.
    t_hkey-col_no = 2.
    t_hkey-col_name = 'CURRENCY'.
    APPEND t_hkey.
    t_hkey-col_no = 3.
    t_hkey-col_name = 'PLANETYPE'.
    APPEND t_hkey.
    t_hkey-col_no = 4.
    t_hkey-col_name = 'SEATSMAX'.
    APPEND t_hkey.
    t_hkey-col_no = 5.
    t_hkey-col_name = 'SEATSOCC'.
    APPEND t_hkey.
    t_hkey-col_no = 6.
    t_hkey-col_name = 'PAYMENTSUM'.
    APPEND t_hkey.
    populating the SEMA data..........................
    t_sema-col_no  = 1.
    t_sema-col_typ = 'STR'.
    t_sema-col_ops = 'DFT'.
    APPEND t_sema.
    t_sema-col_no = 2.
    APPEND t_sema.
    t_sema-col_no = 3.
    APPEND t_sema.
    t_sema-col_no = 4.
    APPEND t_sema.
    t_sema-col_no = 5.
    APPEND t_sema.
    t_sema-col_no = 6.
    APPEND t_sema.
    t_sema-col_no = 7.
    APPEND t_sema.
    t_sema-col_no = 8.
    APPEND t_sema.
    t_sema-col_no = 9.
    APPEND t_sema.
    t_sema-col_no = 10.
    t_sema-col_typ = 'NUM'.
    t_sema-col_ops = 'ADD'.
    APPEND t_sema.
    CALL FUNCTION 'XXL_FULL_API'
      EXPORTING
      DATA_ENDING_AT          = 54
      DATA_STARTING_AT        = 5
       filename                = 'TESTFILE'
       header_1                = header1
       header_2                = header2
       no_dialog               = 'X'
       no_start                = ' '
        n_att_cols              = 6
        n_hrz_keys              = 1
        n_vrt_keys              = 4
       sema_type               = 'X'
      SO_TITLE                = ' '
      TABLES
        data                    = t_sflight
        hkey                    = t_hkey
        online_text             = t_online
        print_text              = t_print
        sema                    = t_sema
        vkey                    = t_vkey
    EXCEPTIONS
       cancelled_by_user       = 1
       data_too_big            = 2
       dim_mismatch_data       = 3
       dim_mismatch_sema       = 4
       dim_mismatch_vkey       = 5
       error_in_hkey           = 6
       error_in_sema           = 7
       file_open_error         = 8
       file_write_error        = 9
       inv_data_range          = 10
       inv_winsys              = 11
       inv_xxl                 = 12
       OTHERS                  = 13
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    thanks
    mrutyun^

  • Problem with UE ZXKKEU11 in ECC 6.0

    Hi Guys,
    I have a problem with UE ZXKKEU11.
    When it was called from VA01 during material insert, the structure i_copa_item is empty and I don't know why.
    Have you got any suggestion???
    Thank you in advance for any useful answer
    If you could I need help urgently. thanks.
    Edited by: Salvatore Bruno on Jan 15, 2009 6:59 PM

    Hi Salvatore,
    Could you help me?  I face the same problem you posted some moths ago.  In your last message of the thread you said, "The problem was in KEDR configuration".
    What was wrong in your configuration?
    Thanks in advance 4 ur answer.
    llr

  • Problem with Append Front Panel Image To Report.vi

    I'm using LV 7.0 with the MicroSoft Report Generation toolkit installed. Under the Report Generation palette there exists an Append Front Panel Image To Report vi. Also on the same palette there is an Easy Print VI Panel or Documentation.vi which uses another Append Front Panel Image To Report vi located under the VI Documentation subpalette. Here is the problem; I have serval vi's that use Append Front Panel Image To Report.vi from the Report Generation palette and I have a couple of vi's that use the Easy Print VI Panel or Documentation.vi which is linked to the Append Front Panel Image To Report.vi located under the VI Documentation subpalette. Clear as mud!
    This creates a conflict of intrest. In a nut shell th
    ere are two vi's with the same name in different locations doing different things. I have a program with subvi's that need to call each respective Append Front Panel Image To Report.vi and that just is not working.
    Is this a known issue with LV7.0 that has already been addressed and/or resloved?
    Thanks.

    ATC Herman,
    Based on the picture you posted and what you are describing, it looks like you might have an incomplete install. What version of the toolkit do you have? Was it first installed on an earlier version of LabVIEW, or did you install it first on 7.0? Your VI Documentation Palette appears the same as if you hadn�t installed the toolkit. I�ve attached a screenshot of what it should look like. The VI in question is a polymorphic VI, which may be causing some of the confusion. If you right-click on it and select �Open Polymorphic VI�, it will show you what options you have, depending on the input. I opened both test and test1, and they appeared the same for me. I was able to have them both on the block diagram. The path to bo
    th of them was C:\Program Files\National Instruments\LabVIEW 7.0\vi.lib\printing\ReportDocExtensions.llb\Append Front Panel Image to Report.vi. The .llb ReportDocExtensions has the polymorphic VI, as well as copies of each of the possible instantiations. Make sure you have these VI�s in the .llb in that directory.
    There is a KB on having the toolkit on multiple versions of LabVIEW and what files you need. Make sure you have all the files listed.
    Please let me know if you are able to get to the bottom of the issue with the above information.
    Thanks, and have a happy day!
    Robert M
    Applications Engineer
    National Instruments
    Robert Mortensen
    Software Engineer
    National Instruments
    Attachments:
    Report_Palettes.JPG ‏57 KB

  • Problem with append table

    Hi,
    i want to insert a line into a internal table ; the type of table is a type of table for example Z_MYSTRUCT. Z_MYSTRUCT is a type of line so to insert a new line into my table i can't do this :
    data : l_new type Z_MYSTRUCT.
    l_new-field1 = 'value'.
    append l_new into mytable.
    How can i do this ?
    Regards

    Thanks for prompt reply.
    I have an requirement where in transaction MIGO. when user clicks on POST button, at that time the data should be e-mailed to the Vendor.
    So for that i have created a Z implementation of BADI MB_MIGO_BADI.
    Now in that i have written a Function Module name as Z_SENDMAIL.
    where i have table paramater which is of type BCSY_TEXT which is again of LINE type of SOLI.
    Now the data of MIGO is filled in table IT_MSEG which is paramter of Method POST_DOCUMENT of  MB_MIGO_BADI.
    So problem comes that how should i fill the data in my line type table of Function Module.
    For your information i am sending you the FM.
    FUNCTION Z_SENDMAIL.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(FROM) TYPE  ADR6-SMTP_ADDR OPTIONAL
    *"     REFERENCE(TO) TYPE  ADR6-SMTP_ADDR OPTIONAL
    *"     REFERENCE(SUBJECT) TYPE  SO_OBJ_DES
    *"     REFERENCE(FLAG) TYPE  CHAR1 OPTIONAL
    *"  EXPORTING
    *"     REFERENCE(RETURNCODE) TYPE  SY-SUBRC
    *"  TABLES
    *"      IT_TEXT TYPE  BCSY_TEXT
    *"      IT_EMAILS STRUCTURE  SOMLRECI1 OPTIONAL
    TYPES : BEGIN OF TS_REC,
                RECIPIENT        TYPE REF TO IF_RECIPIENT_BCS,
              END OF TS_REC.
      DATA : IS_T1(255)          TYPE C,
             IT_REC             TYPE TABLE OF TS_REC,
             IS_REC             TYPE TS_REC,
             W_EMAIL            TYPE ADR6-SMTP_ADDR,
             W_TEXT             TYPE BCSY_TEXT,
             W_DOCUMENT         TYPE REF TO CL_DOCUMENT_BCS,
             W_SENDER           TYPE REF TO IF_SENDER_BCS,
             W_RECIPIENT        TYPE REF TO IF_RECIPIENT_BCS,
             W_SENT_TO_ALL      TYPE OS_BOOLEAN,
             W_OREF             TYPE REF TO CX_ROOT,
             W_TEXT1            TYPE STRING,
             W_SEND_REQUEST     TYPE REF TO CL_BCS,
             W_TABIX            TYPE SY-TABIX.
      CONSTANTS:  C_TYPE      TYPE SO_OBJ_TP VALUE 'RAW',
                  C_LENGTH    TYPE SO_OBJ_LEN VALUE '12',
                  C_X         TYPE C VALUE 'X'.
      FROM = [email protected]'.
      TRY.
    create persistent send request
          W_SEND_REQUEST = CL_BCS=>CREATE_PERSISTENT( ).
          LOOP AT IT_TEXT INTO IS_T1.
            APPEND IS_T1 TO W_TEXT.
            CLEAR IS_T1.
          ENDLOOP.
          W_DOCUMENT = CL_DOCUMENT_BCS=>CREATE_DOCUMENT(
          I_TYPE = C_TYPE
          I_TEXT = W_TEXT
          I_LENGTH = C_LENGTH
          I_SUBJECT = SUBJECT ).
    add document to send request
          CALL METHOD W_SEND_REQUEST->SET_DOCUMENT( W_DOCUMENT ).
    set sender
    note: this is necessary only if you want to set the sender
    different from actual user (SY-UNAME). Otherwise sender is
    set automatically with actual user.
    sender = cl_sapuser_bcs=>create( sy-uname ).
          W_SENDER = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS( FROM
          CALL METHOD W_SEND_REQUEST->SET_SENDER
            EXPORTING
              I_SENDER = W_SENDER.
    add recipient (e-mail address)
    create recipient - please replace e-mail address !!!
          IF TO IS NOT INITIAL .
            W_RECIPIENT = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS(
            TO ).
            CALL METHOD W_SEND_REQUEST->ADD_RECIPIENT
               EXPORTING
                 I_RECIPIENT = W_RECIPIENT
             i_copy      = c_x
                 I_EXPRESS   = C_X.
            W_SEND_REQUEST->SET_SEND_IMMEDIATELY( 'X' ).
            CALL METHOD W_SEND_REQUEST->SEND(
            EXPORTING
            I_WITH_ERROR_SCREEN = C_X
            RECEIVING
            RESULT = W_SENT_TO_ALL ).
            COMMIT WORK.
          ENDIF.
        CATCH CX_SY_ARITHMETIC_ERROR INTO W_OREF.
          RETURNCODE = 4.
          W_TEXT1 = W_OREF->GET_TEXT( ).
        CATCH CX_ROOT INTO W_OREF.
          RETURNCODE = 4.
          W_TEXT1 = W_OREF->GET_TEXT( ).
      ENDTRY.
      LOOP AT IT_EMAILS.
        TRY.
            CLEAR W_EMAIL.
            W_EMAIL = IT_EMAILS-RECEIVER.
            W_RECIPIENT = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS(
             W_EMAIL ).
            IS_REC-RECIPIENT = W_RECIPIENT.
            APPEND IS_REC TO IT_REC.
          CATCH CX_ADDRESS_BCS.
            RETURNCODE = 4.
        ENDTRY.
      ENDLOOP.
      LOOP AT IT_REC INTO IS_REC.
        TRY.
            W_SEND_REQUEST = CL_BCS=>CREATE_PERSISTENT( ).
            W_DOCUMENT = CL_DOCUMENT_BCS=>CREATE_DOCUMENT(
            I_TYPE = C_TYPE
            I_TEXT = W_TEXT
            I_LENGTH = C_LENGTH
            I_SUBJECT = SUBJECT ).
    add document to send request
            CALL METHOD W_SEND_REQUEST->SET_DOCUMENT( W_DOCUMENT ).
    set sender
    note: this is necessary only if you want to set the sender
    different from actual user (SY-UNAME). Otherwise sender is
    set automatically with actual user.
    sender = cl_sapuser_bcs=>create( sy-uname ).
            W_SENDER = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS(
            FROM ).
            CALL METHOD W_SEND_REQUEST->SET_SENDER
              EXPORTING
                I_SENDER = W_SENDER.
            CALL METHOD W_SEND_REQUEST->ADD_RECIPIENT
              EXPORTING
                I_RECIPIENT = IS_REC-RECIPIENT
                I_EXPRESS   = C_X.
            W_SEND_REQUEST->SET_SEND_IMMEDIATELY( 'X' ).
            CALL METHOD W_SEND_REQUEST->SEND(
            EXPORTING
            I_WITH_ERROR_SCREEN = C_X
            RECEIVING
            RESULT = W_SENT_TO_ALL ).
           COMMIT WORK.
          CATCH CX_SY_ARITHMETIC_ERROR INTO W_OREF.
            RETURNCODE = 4.
            W_TEXT1 = W_OREF->GET_TEXT( ).
          CATCH CX_ROOT INTO W_OREF.
            RETURNCODE = 4.
            W_TEXT1 = W_OREF->GET_TEXT( ).
        ENDTRY.
      ENDLOOP.
      IF FLAG = 'X'.
        IF TO IS NOT INITIAL.
          IT_EMAILS-RECEIVER = TO.
          APPEND IT_EMAILS TO IT_EMAILS.
        ENDIF.
      ENDIF.
    ENDFUNCTION.
    So pls help me out asap its very Urgent.......
    Regards,
    DS

  • Problem with field symbols in ecc 6.0

    i have the following  code  written in 4.6 version   now i am executing the old report   in 6.0  but  i am facing with some unicode error.
      FIELD-SYMBOLS:
        <line_of_bs_table> LIKE tbl1024,
       READ TABLE bs_table INDEX row_bst ASSIGNING  <line_of_bs_table> .
        buffer_bsbuffer_ptr(aux) =  <line_of_bs_table> >col_bst.
    tb1024 is standard sap structure  for storing buffer contents
    i have the following error in ecc 6.0
    structure type   '<line_of_bs_table> >+col_bst'  does not start with a charecter type  field in unicode programs in such cases
    offset/ length declarations are not allowed.
    can any one tell how can a field symbol  structure is changed  to charecter  type.

    Hi elinuk,
    you have already posted this thread in the ABAP general forum under problem in field symbols in ecc6.0 and I think that this forum is more related to this issue than the DMS forum. So please close this thread and investigate this issue further in the ABAP general forum.
    Best regards,
    Christoph

  • Problems with extra Profict Center ECC 6.0?

    Dear Gurus,
    My client has 4 Business areas in 4.7.  Upgradation is going on now to ECC 6.0.  Now, the issue is with one Business Area in which there are two division.  Client wants to create 5 profit centers in ECC 6.0 by dividing one Business Area in 4.7 into two.  What could be the problems if we do this?  Or is there any other way to find out the profitability of the two divisions which are there now in one Business Area.
    I will explain the problem again
    there are 4 Business areas
    In one business area there are two divisions
    Client wants to know the profitability of these two divisions separately.  for this client says he will have separate profit centers for these two division.  So, total Profit centers will become 5 in ECC 6.0
    My understanding is Problem comes with balance sheet. probably. 
    Can anybody explain?
    Points are guaranteed for useful answer.
    Regards

    No differentiation in 4.7.  It was becoming difficult for the management to know which division is making how much profit/loss.  That's why now they want to take care of the problem now in this upgradation.  Earlier they were doing some magic in the excel by taking figures from different GLs.  Even then they never used to get perfect picture separately for this divisions. 
    Now, what could be the best solution for them.  To have two Profit Centers?  In this case Balance sheet will have problem i think.  Because, they buy Raw Material centrally.  It becomes difficult to bifurcate the expenses. 
    Is there any other way out to solve this problem. Can we have one profit center  and two plants and have some sort of Report where in we can have the profitabilty for each division.  Is this possible?
    Regards

  • Problem with append structure

    Hi all,
    I have appended  two fields in structure VBKRED.
    The two fields are now maintaining in VMK1 screen.
    From that screen, Im generating a report.
    The problem is the fileds are dispaying in the output, but the values are not printing.
    can anyone pls let me know, whether  I need to adjust the Structure. If so, how?
    Regards,
    Priya

    Hi Priya
      You must check if screen fields contain exactly same name as fields in the structure, and if during screen load process, the structure has been filled with needed information.
    Kind regards

  • Problem with Sales Set in ECC 6.0

    Hai Guys,
    I am having a problem on having a Sales Set. We have two company codes.
    I am creating the sales set by the following steps.
    1. Create an article, (type: Sales set instead of single article) and in the Basic Data, click the components button, in the subsequent screen entered the component articles and the qty.
    2. After listing that Sales set article to the desired sites, I am creating the sales set article using the movement type 317 in tcode mb1b.
    3. In my inventory, the component's stocks are reduced and the stock of the Sales set article is increased.
    4. Once the Sales is made for the Sales set article, and PGI is done, the system reduces the stock of the Sales stock and no changes is made to the remaining component article stocks.
    Here is where I encounter the issue.
    In one of the company code, this is working fine.
    But in the another company code's sites, when I do the PGI for Sales Set article, the stock of the Sales Set remains the same but the component articles' stocks are reducing.
    I am startled to find the unusual behavior. Does it has anything to do with the site profile or any other MM customizations?
    Had anybody come across this kind of issues previously? Can anybody help me in this aspect?
    Regards,
    Maheshwaran. I

    no replies still.. so closing

  • Problem with GRANT syntax in MYSQL statement...need help!

    Good afternoon all!
    I need a little help with some mysql syntax. I'm using version 4.0.17, and I'm just starting to try to learn about connection pooling (you'll probably see future posts from me on this topic as well:)...
    I'm following the directions contained on Apache's website (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html) on how to set up a JNDI datasource.....
    The directions are simple, Create a new test user, a new database and a single test table. Your MySQL user must have a password assigned. The driver will fail if you try to connect with an empty password.
    I then proceed to enter this line into my mysql prompt - mysql> GRANT ALL PRIVILEGES ON *.* TO javauser@localhost IDENTIFIED BY 'javadude' WITH GRANT OPTION;
    Here's the error I get : ERROR 1045: Access denied for user: '@localhost' (Using password: NO)
    Can someone give me the heads up on what the "correct" syntax is?

    tnguyen1973 , I tried your statement again, this time excluding the -p, pressed Enter and then entered the statement I first posted, and it took that too.
    So I'm hoping I can now continue with the example provided on the Apache website.
    Can you tell me the difference between using the -p in the statement, and where I can learn more about these things?
    Thanks.

  • Problem with append mode in WS_DOWNLOAD - URGENT

    Can anybody help me with this, it is werry urgent .
    Thank you werry much .

    Hi Neno,
    WS_DOWNLOAD is no longer used in latest version of SAP. Though this function module exists. You can use GUI_DOWNLOAD instead of it.
    Now coming back to your question.
    IN WS_DOWNLOAD
    parameter MODE = 'A' . "for append
    I hope this will solve your issue.
    Reward points for all useful answers.
    Regards,
    SaiRam

  • Problems with append view

    hello people,
    I have a problem to generate an append structure of a view.
    I make an append structure in a standard table(QMEL) and I add 3 fields.
    I do an append structure in a view(VIQMEL) to add these fields. when I will enable, generate an error. the field doesn't belong to a base table.
    what's the meaning?
    Anyone could help me?
    Thanks in advance,
    Denis Nakamoto

    Congrats!! Yes, when you add some fields in a table, it should be visible in the view as well. Sometimes though we need a 'Adjust and activate database'. And for Z-tables, generating the table maintenance once again.
    All the best!!

Maybe you are looking for

  • Unable to start BI Publisher 11g

    Hello Gurus, I have installed OBIEE 11G complete suite on windows machine. Immediately after installation and configuration, everything was running great. I was able to log into BI Publisher just fine. After I restarted my machine, suddenly I am gett

  • Cancel release post the document is outputted

    Hi, Can we able to cancel the Purchase Order release post the document is outputted. regards Ramesh

  • Connect Thunderbolt Display to Desktop Pc

    Hi guys, i would like to know if is it possible to connect the T.D. to a desktop pc which i want to buy soon..if this pc has a mobo like this i mean:  http://www.asus.it/Motherboards/Intel_Socket_1155/P8Z77V_PROTHUNDERBOLT/ or this http://it.msi.com/

  • Tabs and Justification

    When I type up paragraphs and such, I like to use the justification setting, so that all my text is blocked up. I've noticed that when I use the tab button on the keyboard for indenting my paragraphs, the justification changes how far away the indent

  • Abobe Photoshop CC Error

    I unistalled Abobe CS4 & Bridge CS4. Now Photoshop CC wont start. I get the following error "One or more files in the Adobe Application Support folder, necessary for running Photoshop, are missing.  Please run the Photoshop installer and re-install P