Problem regarding change of data type x to data type c

Hi,
Is there any way to change the data type x to data type c.
w_end_record             TYPE x,
SPLIT i_data_file AT c_delimiter INTO i_ekko-rtype
                                            i_ekko-ebeln
                                            i_ekko-bsart
                                            i_ekko-lifnr
                                            i_ekko-loekz
                                            w_end_record.
      macro_append_internal_table i_ekko.
When I do syntax check in ECC6.0 it's showing the error "w_end_record"  must be Character type(C,N,D,T).The error is due to Unicode.
I was using the class CL_ABAP_CHAR_UTILITIES but I am not able to find out appropriate attributes for it. Can anybody tell me the solution to resolve the problem.
Is there any other to solve the problem.
Thanks & Regards
Prabhat

Hi,
Try following this peice of code.
TYPES: BEGIN OF TAB_TYPE,
         TEXT(10)   TYPE C,
         XTEXT(160) TYPE X,
       END OF TAB_TYPE.
DATA: TAB    TYPE STANDARD TABLE OF TAB_TYPE,
      WA_TAB TYPE TAB_TYPE.
  CONVERT TEXT TAB-TEXT INTO SORTABLE CODE TAB-XTEXT.
Hope it works.
Thanks,
Sandeep.

Similar Messages

  • Problem Regarding Changes in field in Table VBAK

    Hi All,
    I am facing problem with data extraction for data source 2LIS_11_VAHDR. There is a field Request Delivery Date -VDATU, which was not picking data as the settings in Sales Order Creation were not set. Now the changes have been made while creation of sales document and the field is now geting populated in table VBAK.
    This table feeds the data source 2LIS_11_VAHDR. But the changes have not been reflected while extracting data to BW while checking in RSA3. The field Delivery date (VDATU) is still empty and in Transfer rules there is formula written to derive Posting date based on Request Delivery date(VDATU) and Fisc year Variant.
    The extraction ends with error saying problem in Formula for Fiscper3(posting Period).
    Do I have to run the setup tables in order to reflect the changes in the Data
    sources.
    Suggest with suitable solution.

    Hi,
    RSA3 picks data from set up tabel and since set up table is not refreshed since the new change done by you....... it will not bring the new data from the VBAK table...... but the old data from the set up table will be displayed in RSA3.
    But in the delta in the BW you should get the records with the following filed populated since your old records will not change now but the new records will bring this change into BW.
    If you want to see the data in RSA3 you will have to delete and fill the set up tables for that for the new data.
    Thanks

  • Problem regarding java.uti..date  & Calander

    Hi
    I am stuck in a problem for which i need your help.i am implementing webservices for my project. There are methods in my code which i need to expose as a webservice. i am using Axis engine for devep.
    i have certain methods like findxyz(java.math.BigInteger clientPk, java.util.Date startDate, java.util.Date endDate)
    The parameters for this methods are of type java.util.Date. I found on the net that Axis engine provides support for date type.
    When i generate my client side stubs then the parameters for methods with date as parameter change into Calander type.
    i am not able to figure out what's happening here and why this change.
    So can you please let me know about the problem here and how to rectify this issue.
    Thanks & Regards
    Vikeng

    Hi'
    Any takers for my problem here.
    Please post your views as it is very urgent for my project.
    hope to get a positive reply from your side.
    Thanks & Regards
    Vikeng

  • Problem while changing Business Area in Cost Center Master Data

    I am having a problem while changing the Business area in cost center master data, the system does not allow to change the business area due to the following reasons;
    1.  The transactional data already exists for that cost center
    2.  The desired date required to be changed, falls between analysis period 01.01.2000 to 31.12.2999
    Can anyone help me in order to reslove this issue
    Thanking in anticipation
    Edited by: Arshad  Iqbal on May 24, 2010 2:10 PM

    Dear Dejan !!
    Thanks a lot for resolving my problem actaully i have tested the scenario in Testing Server by changing the fiscal year and the system allowed to change the business area before any transactional data posted.
    Thanks Once Again
    Regards
    Ch. Arshad Iqbal

  • How to change heading text  for parameter field of type date

    Hi,
        After creating a parameter field with the type " Date Time" when I open the report for entering the parameter then it displays  the given parameter with the following text:
    " Please enter Date in format "yyyy-mm-dd". "
    I want to change it to some other text like as:
    " You have to enter the date and time in format yyyy-mm-dd . "
    Is there any way by which I can change this given header to some other text.
    Let me know if anyone needs some more information in this regard so as to solve my given query soon.

    Hi Garrett,
                  Well first of all I can change only the prompt text that is user defined. I cannot change any parameter as of now whose type is let suppose Date. Since in this case the Business Object itself shows the text which is something like this " Please enter Date in format "yyyy-mm-dd". " .
       Here I want to change this given text to some other format like " You have to enter the date in the format yyyy-mm-dd" or in any other manner.
    Also the current Crystal Report version which I am using is 11.0.0.1282.

  • Problem in Change own data service

    Hi ,
                I am facing problem in Change own data service. I am getting following error while opening the service.
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: failed to create or init instance of model 'com.sap.xss.hr.cod.model.CodModel' in scope APPLICATION_SCOPE with instanceId 'null'
    Do I need to configure this service through SPRO under Personal Mangement -> Employee Self Service ->
    Server Specific Settings -> Adress Book -> Who's Who.
    Am I missing any configurational step on R3 side ?
    Kindly provide some solution.
    Thanks in advance
    Abhay

    Hi Abhay,
    You need to upgrade the EA_HR component to SP22. Alo make sure that SAP_HR and EA_HR components are in sync.
    SAP Note: 1081261
    Also refer thread: **Very Urgent**Do i need to upgrade SP level of EA-HR components
    Regards
    Deb

  • Change in Stock Type in Back Date

    Dear Friends,
    Is there any way to change stock type (from Restricted-Use to Unrestricted-Use) in back date? (other than MSC2N)
    For Example:
    I have posted a stock in August in restricted-use by GR. Till now, it lies in restricted-use only.
    Now, I want to make change in stock type from Restricted-use to Unrestricted-use in august only.
    Is it possible?
    I have tried using MSC2N but its change stock type on current date.
    Also, in MIGO Transfer Posting by Mvt Type 342/341 is not allowed.
    Is there a way out? Thanks in advance.
    Ragards,
    Jignesh

    hi,
    You can allow back posting for a month back by :
    Go to Transaction Code SE38
    Enter program name RMMMINIT
    Execute or press F8 function button
    Enter your company code (From and To)
    Enter relevant date: Say 26/08/2008 for aug. 2008 month to be opened as of now...
    then go to MIGO...
    Now is will allow you to post...
    hope it helps...
    Regards
    Priyanka.P

  • I have problem that changes i make wont be saved it all goes back to the same date that i had this problem for EX: when i ever change my desktop photo and reopen the macbook it goes back to the same photo that i had before.

    i have problem that changes i make wont be saved it all goes back to the same date that i had this problem for EX: when i ever change my desktop photo and reopen the macbook it goes back to the same photo that i had before.

    Might be corrupted preferences ..
    Open the Finder. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following:
    ~/Library/Preferences/com.apple.desktop.plist
    Click Go then move the com.apple.desktop.plist file to the Trash.
    Restart your Mac and try changing the desktop photo.

  • Aperture Video Import Problem - from Lumix GH4: Imported clips have their dates changed to the import date.  The files show up on the hard drive but many are not showing up in Aperture.

    Aperture Video Import Problem - from Lumix GH4: Imported clips have their dates changed to the import date.  The files show up on the hard drive with import date not created date, but many of these same files are not showing up in Aperture. Sometimes the clips actually show up with the current import but take on the video information from a previously imported file.

    It was suggested I move this question to IPhoto or IMovie which I did. 
    Well moving to a different discussion group did not provide an answer to this question either. But what I finally did was import one batch of photos and videos into IPhoto for a given day at a time. Working with these I could change the date and times in order to get them in the original sequench taken. Then I would create an album with that batch. These would all be on the same day (IMove was closed for this phase). Then I would open IMovie, generate the thumbnails for that album, and select the album I had created. This was necessary because the importing process in IPhoto was using incorrect dates for my video so it was a real struggle finding them in IMove until I developed this approach.
    I believe that this whole process was so screwy because I was importing from an external hard drive not a camera. I had these photos on a PC and did not have the original cameras to use to import directly which I am fairly sure would have made this easier!

  • I have a problem with a chart refreshing after its bound data provider changes.

    I have a problem with a chart refreshing after its bound data
    provider changes. After the subsetHighLowData.refresh() is called I
    would expect the chart to redraw, but it still looks the same. I
    even inspected the debugger to see if the slice had taken place and
    it had.
    Any ideas coding friends?

    "nikos101" <[email protected]> wrote in
    message
    news:gib6aa$prr$[email protected]..
    >I have a problem with a chart refreshing after its bound
    data provider
    >changes.
    > After the subsetHighLowData.refresh() is called I would
    expect the chart
    > to
    > redraw, but it still looks the same. I even inspected
    the debugger to see
    > if
    > the slice had taken place and it had.
    >
    > Any ideas coding friends?
    >
    > subsetHighLowData.source =
    >
    highLowData.source.slice(slider.values[0],slider.values[1]);
    Just use the ArrayCollection's removeItemAt, and it should
    handle the event
    dispatching for you.
    HTH;
    Amy

  • Urgent-change the end date for a existing wage type.

    Hi,
    Can u pls let us know how to change the end date for a existing wage type.
    The current end date is 30.8.2008  and we would like to change to 31.12.9999.
    Rgds,

    Use This report RPCLGV00
    The Wage Type Distribution report enables you to display wage types for several payroll periods. It does not take into consideration differences resulting from retroactive payroll. The report shows the current values (number and amount) for each wage type. The report evaluates the payroll records that are marked with update indicator ‘A’ when the report is run. Subsequent reporting runs may not give the same result if - in the intervening period - retroactive payroll has taken place for the evaluation period. The wage type distribution uses the data from the results table RT for the relevant payroll result. The employee’s organizational assignment is also evaluated from the payroll result. This data is taken from the Work Center Basic Pay table (WPBP).
    The wage type distribution offers you the following options for evaluation:
    Individual reporting for a specific personnel number or name.
    Totals evaluation without specifying a personnel number or name.
    You cannot use wage type distribution to run a report for several countries. You can only select payroll areas from one country for reporting.
    Scope of Function
    You use the following parameters to determine how the appearance of the wage type statement:
    Wage type for evaluation
    Enter all wage types that are to be evaluated. If you do not make an entry here, the system selects all wage types. Note that you can only select wage types that occur in the RT table.
    Evaluation start date
    Evaluation start date and evaluation end date define the evaluation period. Enter the year and payroll period for the start of the evaluation.
    Evaluation end date
    This parameter delimits the evaluation period. If you do not make an entry here, only the period from the period from the parameter Evaluation start date is evaluated.

  • Problem regarding item level data in CRMD_ORDER

    i have created a sales order in CRMD_ORDER and entered all the data for header and item . i have given required delievery date for both item and header different , but when we save the order a BADI is trigerred which will update the data to R/3 but still only header required delievery date is updated not the item level date can you provide any solution for this problem?
    another thing is can i know where does the item level data is store ie: date, quantity etc.

    Hello,
    You are posting to the SAP CRM 2007 forum so we assume you are using CRM 2007. In CRM 2007 the GUI is no longer supported and doesn't work as expected since SAP did not update the business logic in it.
    So, if you want to test your process and be 100% sure that there is a problem, use the WebUI for your tests.
    All item data is stored in CRMD_ORDERADM_I. If you want to find a date (of an item date profile) stored in an item you have to pass some tables however.
    CRMD_ORDERADM_I->CRMD_LINK->SCAPPTSEG.
    Reward points if useful!
    Regards,
    Joost

  • I m facing problem regarding 655 movements type.i m not activate qm view fo

    Dear sir
              I m facing problem regarding 655 movements type.i m not activate qm view for that material . still i m getting lot . plz  help me

    Go to VOV6.Remove movement type 655 for schedule line category DN and assign movement type 651.(If you are using other than DN for returns, assign there.DN is standard)
    Vishal

  • Problem in the BDC program to upload the data from a flat file.

    Hi,
    I am required to write a BDC program to upload the data from a flat file. The conditions are as mentioned below:-
    1) Selection Screen will be prompted to user and user needs to provide:- File Path on presentation server (with F4 help for this obligatory parameter) and File Separator e.g. @,#,$,%,... etc(fields in the file will be separated by using this special character) or fields may be separated by tab(tab delimited).
    2) Finally after the data is uploaded, following messages need to be displayed:-
    a) Total Number of records successfully uploaded.
    b) Session Name
    c) Number of Sessions created.
    Problem is when each record is fetched from flat file, the record needs to be split into individual fields separated by delimiter or in case tab separated, then proceeding in usual manner.
    It would be great if you provide me either the logic, pseudocode, or sample code for this BDC program.
    Thanks,

    Here is an example program,  if you require the delimitor to be a TAB, then enter TAB on the selection screen, if you require the delimitor to be a comma, slash, pipe, whatever, then simply enter that value.  This example is simply the uploading of the file, not the BDC, I assume that you know what to do once you have the data into the internal table.
    REPORT zrich_0001.
    TYPES: BEGIN OF ttab,
            rec TYPE string,
           END OF ttab.
    TYPES: BEGIN OF tdat,
           fld1(10) TYPE c,
           fld2(10) TYPE c,
           fld3(10) TYPE c,
           fld4(10) TYPE c,
           END OF tdat.
    DATA: itab TYPE TABLE OF ttab.
    data: xtab like line of itab.
    DATA: idat TYPE TABLE OF tdat.
    data: xdat like line of idat.
    DATA: file_str TYPE string.
    DATA: delimitor TYPE string.
    PARAMETERS: p_file TYPE localfile.
    PARAMETERS: p_del(5) TYPE c.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      DATA: ifiletab TYPE filetable.
      DATA: xfiletab LIKE LINE OF ifiletab.
      DATA: rc TYPE i.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        CHANGING
          file_table = ifiletab
          rc         = rc.
      READ TABLE ifiletab INTO xfiletab INDEX 1.
      IF sy-subrc = 0.
        p_file = xfiletab-filename.
      ENDIF.
    START-OF-SELECTION.
      TRANSLATE p_del TO UPPER CASE.
      CASE p_del.
        WHEN 'TAB'.
          delimitor = cl_abap_char_utilities=>horizontal_tab.
        WHEN others.
          delimitor = p_del.
      ENDCASE.
      file_str = p_file.
      CALL METHOD cl_gui_frontend_services=>gui_upload
        EXPORTING
          filename = file_str
        CHANGING
          data_tab = itab.
      LOOP AT itab into xtab.
        CLEAR xdat.
        SPLIT xtab-rec AT delimitor INTO xdat-fld1
                                         xdat-fld2
                                         xdat-fld3
                                         xdat-fld4.
        APPEND xdat to idat.
      ENDLOOP.
      LOOP AT idat into xdat.
        WRITE:/ xdat-fld1, xdat-fld2, xdat-fld3, xdat-fld4.
      ENDLOOP.
    Regards,
    Rich Heilman

  • I have a  problem while changing quantity value in VA01

    Hi,
                       I am written my conditions in User exit save_document_prepare
    and in that I have given custom error message. After the error I have to correct the
    quantity value and then save it.
    But when I am trying to change after error mesasage it gives an Abort message
    "Item xxxx doesnot exist."
    Here is my code pls help me regarding this
    DATA : FLAG(2),
           FCODE LIKE SY-UCOMM,
    FCODE = SY-UCOMM.
    IF FLAG <> 'X'.
      IF SY-TCODE = 'VA01'.
        IF SY-UCOMM = 'SICH' OR SY-UCOMM = 'OPT1'.
          DATA: BEGIN OF T_VBAK OCCURS 0,
                        VBELN LIKE VBAK-VBELN,
                        VGBEL LIKE VBAK-VGBEL,
                        AUART LIKE VBAK-AUART,
                        NETWR LIKE VBAK-NETWR,
                       END OF T_VBAK.
          DATA : BEGIN OF T_VBAP OCCURS 0,
                         VBELN LIKE VBAP-VBELN,
                         POSNR LIKE VBAP-POSNR,
                         ZMENG LIKE VBAP-ZMENG,
                         KWMENG LIKE VBAP-KWMENG,
                 END OF T_VBAP.
          DATA : BEGIN OF I_VBUK OCCURS 0,
                   VBELN TYPE VBUK-VBELN,
                   RFGSK TYPE VBUK-RFGSK,
                 END OF I_VBUK.
          DATA : T_VBAK_RE LIKE T_VBAK OCCURS 0 WITH HEADER LINE,
                  WA_VBAK TYPE VBAK.
          DATA : I_NETWR1 TYPE VBAK-NETWR,
                 I_NETWR2 TYPE VBAK-NETWR,
                 I_NETWR3 TYPE VBAK-NETWR.
          DATA : L_VBELN TYPE VBAK-VBELN.
          SELECT VBELN VGBEL AUART NETWR
             FROM  VBAK
                   INTO TABLE T_VBAK.
          IF NOT T_VBAK[] IS INITIAL.
            SELECT VBELN RFGSK
                   FROM VBUK
                   INTO TABLE I_VBUK
                   FOR ALL ENTRIES IN T_VBAK
                   WHERE VBELN = T_VBAK-VBELN.
          ENDIF.
          SORT T_VBAK BY VBELN DESCENDING.
          IF NOT T_VBAK[]   IS INITIAL.
            SELECT VBELN POSNR ZMENG KWMENG
            FROM VBAP
            INTO TABLE T_VBAP
            FOR ALL ENTRIES IN T_VBAK
             WHERE VBELN = T_VBAK-VBELN.
          ENDIF.
          LOOP AT T_VBAK where VGBEL = XVBAK-VGBEL.
            IF T_VBAK-AUART = 'TA'.
              I_NETWR2 = T_VBAK-NETWR  + I_NETWR2.
            ENDIF.
          ENDLOOP.
          LOOP AT T_VBAK WHERE VBELN = XVBAK-VGBEL.
            IF T_VBAK-AUART = 'TISC'.
              I_NETWR1 = T_VBAK-NETWR.
            ENDIF.
          ENDLOOP.
          I_NETWR3 = I_NETWR1 - I_NETWR2.
          WA_VBAK = XVBAK.
       READ TABLE T_VBAP WITH KEY VBELN = VBAK-VBELN.
       IF SY-SUBRC = 0.
          LOOP AT XVBAP.
    READ TABLE XVBAP WITH KEY VBELN = SPACE.
            IF SY-SUBRC = 0.
              MOVE T_VBAK-VBELN TO XVBAP-VBELN.
              MODIFY XVBAP.
            ENDIF.
          ENDLOOP.
          IF FLAG <> 'X'.
            IF   WA_VBAK-AUART <> 'RE'.
              IF WA_VBAK-NETWR > I_NETWR3.
              MESSAGE E000(ZMS1) WITH I_NETWR3.
                      ENDIF.
                       ENDIF.
            ENDIF.
          ENDIF.
        ENDIF.
       ENDIF.
      ENDIF.
    ENDIF.
                                                                  Thanks in Advance
                                                                          Ravi

    Hi,
    This error comes when we use the work area taht is already defined in the program and that u have not created in this exit.
    i think in this exit, u have created ur own internal table and workarea for all tables except XVBAP.
    just create WA like
    <b>data : xvbap type xvbap.</b>
    LOOP AT XVBAP.
    READ TABLE XVBAP WITH KEY VBELN = SPACE.
    IF SY-SUBRC = 0.
    MOVE T_VBAK-VBELN TO XVBAP-VBELN.
    MODIFY XVBAP.
    ENDIF.
    ENDLOOP.
    IF FLAG <> 'X'.
    i had faced the same problem and it got solved in this way.
    Hope it helps.
    Regards,
    Sonika

Maybe you are looking for

  • Preference panel error

    I have an original 20" cinema display. I have a new Mac Pro & have the display hooked up with the new adapter. Regardless of the adpater & upgrade, I have had a problem. I often get the display preference window opening up on its own. Sometimes this

  • Tecra S4 -125 shows built-in HDD error

    I've bought Toshiba Tecra S4 -125 and Ive got problem with built-in HDD. New SATA HDD does not work. The message "Built-in HDD ERROR" appears from time to time and system stops booting from HDD and boot is very, very slow. In BIOS settings HDD is not

  • IPod suddenly not recognizing my 4-digit passcode

    I never changed it, but a few hours after last using it, my iPod suddenly doesn't accept the passcode.  I don't want to have to delete and restore everything if that isn't necessary. Thanks, Eirik

  • Sliding Panels Question

    Hi there. I'm new to Spry, and I'm using 1.6.1 in Dreamweaver CS3. I want to create sliding panels to showcase some work I've done, but I wanted to know if it's possible to build a scroll function for one panel which will have multiple pieces of work

  • HP dropping connection when it goes to sleep.

    I am running Windows 8 and my new HP Photosmart 7520 keep dropping the wireless conection when it goes to sleep. I see posts all over the net. Has anyone figured out the problem yet. I've tried scan doctor, no help.