Changing data types of  fields in structures

Hello,
   Currently we are working for upgrade to ECC 6.0 .
   In some transactions we are using BAPI_MATERIAL_SAVEDATA to create material.
  We have some additional fields in MARA and MARC table , which we fill using BAPI_TE_MARA and BAPI_TE_MARC structures.
    In these structures we have different data types for fields earlier in 4.6C
Now this function module is only working if we change  data types of  fields in these structures only to char type. It is going for dump , if we maintain any other data type.
  Could any body tell me why should we change for char data type ?
Regards,
  SATYA

Hi,
Check enhancement category (Extras --> Enhancement Category) for structures before enhancement. For example, for BAPI_TE_MARA structure, enhancement category is given as character type or numeric type. That means you can add the fields of data type only C and N. No other data types are allowed. If you select as not classified then you can add any data type. This option plays important role while enhancement.
Regards,
Prasanth

Similar Messages

  • Error when trying to set a date type edit field

    Hi all
    I have an edit text field in a form which is bounded to a date type
    database field using dbDataSource.
    When i try to set the edit text field value with Today's date by code.
    I recieve an error message that the value which
    i'm trying to set is not legal. the  error number is [131-183].
    I use the following code to set the edit field:
    If oEditText.Value.Trim = String.Empty Then
                Dim strDate As String
                Dim sboBob As SAPbobsCOM.SBObob =
                 oCompany.GetBusinessObjec(SAPbobsCOM.BoObjectTypes.BoBridge)
                 rs = sboBob.Format_DateToString(Microsoft.VisualBasic.Today)
               strDate = rs.Fields.Item(0).Value.ToString().Trim()
    Try 
           oEditText.Value = strDate
    Catch ex As Exception
        SBO_Application.MessageBox("error setting
    current date: " & ex.Message)
    End Try
    End If
    My question is how can i set the edit field with a valid value?

    Hi!
    When writing to EditText.Value you must always use the B1 "DB-Format" as String.
    The following examples are assuming (it's a must!) that the EditText-Fields are bound to a corrosponding DataSource (Type Date, Price etc...)
    MyDateEditTxt.Value="20080207"
    MyPriceEditTxt.Value="1341.79"
    The best of it: It's Windows and SBO-GUI-Language independent.
    EditText.String must always be written with the format of the actual Language of the SBO-GUI, which can be changed by the user....
    You may also have a look at my statements regarding these problems near the end of this thread:
    [How to pass date value to an UDF;
    Cheers,
    Roland

  • How to change data type of attribute in caf

    hi.
    this is my problem.
    i been added a attribute in an entity service called emloyee. named "Birthday", use the data type "com.sap.caf.core.date".
    when i tried modify the entity service, i hit exception about "DST Daylight Saving Time".
    because of DST, the date will add an hour such like "1957/04/01 00:00:00.0" to "1957/04/01 01:00:00.0", and com.sap.caf.core.date will throw an exception.
    is anyone had same problem like me?
    how to fixed it(if passable)?
    and, how to change data type?
    thanks.

    Hi Sruthi,
    all you need to do on this is open the report go to the parameters, select the parameter that you wish to change and click "Edit". This will allow you to change thefield to a date rather than a date time.
    Regards,
    Noel

  • Changing data in 'hidden' fields through BSP

    Hi all,
    We are using custom copy of hap_document BSP and in there i am trying to change values in the appraisal document using application->doc. I am able to change the values for the fields that are displayed in the layout in the application->doc-t_body_cell_notes, but not able to change the values for hidden fields(that have 'H' in application->doc-t_body_cells-cell_note_availability).
    Is it impossible to change data for hidden fields?
    Please let me know if anyone of you had ever done something like this earlier.
    Thanks,
    manasa

    Thanks Raja.
    In the HAP_DOCUMENT there is a cell for employee comments. Now i am hiding the cell in the BSP and when user clicks on a dropdown i am changing the value in the cell say from ABC to XYZ programatically. The document is being updated with the XYZ value when the cell is either in change/display mode but not in hidden mode. in hidden mode, When i change the value to XYZ and save the cell gets empty and doesnt have the previous value ABC also.
    I am changing the value in the cell using below code:
       READ TABLE application->doc-t_body_cell_notes INTO s_cell_notes
         WITH KEY column_iid = '0001' row_iid = '0002'.
       IF sy-subrc = 0.
         s_cell_notes-tdline = 'XYZ'.
       ENDIF.
       MODIFY application->doc-t_body_cell_notes
          INDEX sy-tabix  FROM s_cell_notes
          TRANSPORTING tdline.
       ENDIF.
    ENDIF.
    if you have any questions please let me know. I am assmuing that you have worked on the BSP HAP_DOCUMENT.
    Thanks again,
    manasa

  • Change data type from number(11,6) to number (11,8)

    I have a table, which has a million records...I have to change data type of some of the columns from number (11,6) to number (11,8).
    I thought of taking the backup of the table , truncating the original table, change the data type and then insert data back.
    Is it a safe option considering so many records ?

    the first number is precision and the second is scale:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14196/schema002.htm#sthref472
    so yes, 11,6 can hold larger numbers than 11,8
    create table foobar (two number(5,2),
                         three number(5,3))
    insert into foobar values (123.45,12.345); 
    --works fine
    insert into foobar values (123.45,123.45);
    --gives error ORA-01438: value larger than specified precision allowed for this column

  • I have date type list field in sharepoint list and i have created one form in sharepoint webpage.

    Hi All,
    i have date type list field in sharepoint list and i have created one form in sharepoint webpage.
    Now i want to save that field from shareepoint webpage, its declared "t1.text" but its showing error.
    How can i save this field?

    Hi AnilKarthink, 
    I wrote a Technet Wiki article on saving data to the various SharePoint fields. You can view it here: http://social.technet.microsoft.com/wiki/contents/articles/21801.sharepoint-a-complete-guide-to-getting-and-setting-fields-using-c.aspx
    Regards, Matthew
    MCPD | MCITP
    My Blog
    View
    Matthew Yarlett's profile
    See my webpart on the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
    Upload and Crop User Profile Photos

  • Impact of changing data type of a field in Database table

    Hi All,
    I need to change the data type of a field(which is not a key field and it has no dependency with any other field) from NUMC to CHAR by maintaining the same length. Please let me know if there will be any impact in doing this. Hope the following things need to be taken care:
    - Take backup of entire data in the table before doing the change
    - After changing the data type, I need to set the option 'Save Data' and then 'Activate and Adjust Database' in 'Database Utility'.
    - Use 'Where Used List' to check the related objects.
    Please let me know if there is any impact or any thing else need to be taken care apart from the above things.
    Thanks in advance.
    Regards
    Vidhya.

    Hi,
    even if the length is same there would be no impact.
    just v need to adjust the database in the database utility.
    check the table maintenence generator also. if not reflected there u need to delete it and create it again.
    reward if useful,
    teja

  • How to change data type for a field?

    Hi Experts,
    I have one std screen having one field having numeric type. So it will accept only numeric value. Remember I am using standard transaction.
    Now my user wants to enter the special character like + or - in that field(having data type numeric).
    How i can change the data type for the particular field  so that it will also accept + or -?
    Plz reply me as earliest as possible.
    Thanks in advance.

    Hi salil ,
    u have to change / create Domain of  that Data Element.
    but u have to check the Implications. i have done the same thing , but that one is Customer defined one , i got nearly 20 short dumps while doing the TP.
    regards
    Prabhu

  • Dynamically change data type of a field

    Hello,
    I'm trying to dynamically create a SQL statement which will insert record sin to my SQL data base.
    I dynamically bring field name sand values. then concatenate them in a string and then Execute the SQL string in a native SQL eXEC statement.
    It all worked fine till I used signle quotes for all field values.
    but now I wante dto insert a field of type "Money" is SQL which is nothing but AMount/currency in SAP.
    Now If I remove this quotes it is working fine. but If I have a negative number the "-" sign comes in the end in my abap code and gives a short dump in insert statement.
    now I wante dto make that variable dynamic in to currency rather than String.
    Please let me know how Can I change it dynamically.
    EG: w_field_value = 3000.25-  (value in SAP / w_field_value is of TYPE String)
    Before I concatenate this , I wanted to change its type to AMOUNT ...
    thanks.

    Just Use the field Symbols.
    Regards
    Rusidar S

  • Changing data type on a field with populated data

    Hi
    I have a table that has already been populated
    i wish to change the data type of one of the fields from number to varchar2
    this field has the same value you in it throughout
    value = 2005 and i wish to change it to 2005/06
    What is the best way to do this ?
    thanks

    As stated in the user guide, you can change the datatype of a column only when the value of this column is NULL in all existing rows. One workaround (in 10g) would be to add another column, update the new column, drop the old column and rename the new column to the old column's name. Here's an example:
    CREATE TABLE test (col1 NUMBER(8));
    INSERT INTO test VALUES (2005);
    COMMIT;
    ALTER TABLE test add (col2 VARCHAR2(8));
    UPDATE test
       SET col2 = TO_CHAR(col1) || '/06';
    COMMIT;
    ALTER TABLE test DROP (col1);
    ALTER TABLE test RENAME COLUMN col2 TO col1;C.

  • Change Date Type Description and Re Arrange

    Dear Expert,
         I would like to change description of each date type in block date and arrange date rows as new sequence in IC Web Client, I try to do it on t-code BSP_DLC_SDESIG_DL but I cannot, the transaction allow to adjust only field STRUCT.APPT_TYPE_DESCR description , I would like to change each date value description in this structure and arrange them. Have anyone used to do this? Please suggest me.
    Best Regards,
    Krin
    Edited by: Krin Thongkam on Aug 3, 2010 11:22 AM

    Hi,
    If you mean the Dates assignment block; this is populated by the date profile assigned to your transaction type.
    Go to SPRO --> CRM --> Transactions --> Basic Settings. You can find which date profile is used for your transaction type in the detailed view.
    Then go to SPRO --> CRM --> Basic Functions --> Date Management --> Define Date Profile. Here you can check which date types are used in your profile. You can rename these using SPRO --> CRM --> Basic Functions --> Date Management --> Define Date Types, Duration Types and Date Rules. I think the sequence of the dates is determined alphabetically on date type.

  • Change data type "dynamical​ly"

    Hello,
    I will try to explain my question, please tell me if it's not enough clear.
    I read a text file wich describe me how to read datas in a product (their size, name, adress, type ...).
    There is a lot of type (U8, U16, U32, STRING, DATE, I8, DBL ...).
    The problem is I can't have an output in my VI for each type.
    My goal is to make a VI with an output that adapt itself to the data type and I don't know how.
    Maybe if it's possible to change the output declared dynamically depending on the type ... ?
    An other idea is to create a cluster with all the data and just write in the good box with a condition structure but it's not the goal here.
    Thank you in advance !!

    From your question (reading data from a text file), I'm assuming that (a) you can tell when one "piece of data ends and another begins" (for example, it might be a CSV file, with commas separating the fields, or there might be tabs or spaces between entries, or they might be all fixed width, e.g. 8 characters), and (b) you might know "in advance" the type of each piece of data.
    If Assumption (a) is not true, then you may have real difficulties, so I'll assume it's true.  If Assumption (b) is also true, then you need a bunch of sub-VIs, "Read Integer", "Read Float", "Read String", maybe "Read Boolean".  Note that, depending on what you want to do with the data, you might not need a separate "Read I32", "Read I8", "Read U8" routine, as you could read everything as I32 and "coerce" it to the correct type when you go to use it.  Similarly, read all Floats as "Dbl".  I'm assuming that you "know" the appropriate "use" for each variable, such as "The Fifth Variable is the first name of the Account Holder", so you'd want to use "Read String" and output a String when processing the fifth "chunk of data" from the file.
    If Assumption (b) is not true, you can still (sometimes) do a pretty good job reading/parsing the data.  I've done this for data I've read from an Excel Workbook.  What you do is apply some "rules", and hope that the data conforms to the rules.  Here's an algorithm to illustrate what I mean.
    Read in the data (as a string).
    Does it "conform to an integer number" (i.e. consist of possibly a leading + or - followed by only digits)?  Then it is an integer.
    Does it "conform to a float" by also having a single period?  Then it is a float.
    Otherwise it is a String.
    Note you could ask about being "True" or "False" if you need to process Booleans.
    BS

  • Issue with Info Object Transport after changing Data Type

    Hi Experts,
    We have a DSO which is running past 5 years. And recently(3 days back) we added new fields into that DSO. Delta loaded for last three days and new info object (Say XXX) data populated into DSO.
    Now the problem is, We identified that, info object data type is not correct. We used data type NUMC  instead of CHAR.So Character information is missing for that field.
    Example:
    Data from ECC: ABC123
    Data Loaded to DSO: 123 (Missed character ABC)
    So we deleted data from DSO and changed the info object data type in Development system.
    And also I have deleted only last three days delta records from DSO and transported my info object to Production. But its giving error as: Info object contains data in DSO".
    But that info object field is empty in DSO. I have already deleted last three days delta.
    Do I need to Delete all 5 years data from DSO to change the data type of recently added new info object ?
    Please give me your solutions and ideas to solve this issue.
    Thank you,
    Best Regards,
    Santhosh

    Hi Raman,
    Thank you for your answer.
    When I changed the data type of info object in Dev, I deleted the content of DSO. And same thing transported to QA as well. Before importing changed info object, I just deleted the content of DSO from QA. So transport done successfully QA.
    But in Production we have a history of past 5 years. So I cant delete all contents of DSO.
    So just deleted only the delta request's which contains data for that info object(3 days back, we moved that info object(NUMC data type) to production,So last 3 days delta only loaded for that info object). And tried to transport it. But it was failed. I am sure we need to drop all data from DSO, if I am interested to go with same info object.
    I have some comments on your first approach,
    1. If we delete info objects from Dev DSO and transport to Production will give transport failure, Why because, my previous transports errors clearly saying that info object contains data in DSO . So it wont allow to remove that info object from DSO.
    2.We are using same info object technical name in BO Data federator also. So if we change add new info objects again we need to make changes with BO as well. I am thinking this point as my last option if i cant find any other solution.
    Thank you.
    Best Regards.

  • How to change data type of content type column.

    Hi all,
    I am having one content type. I have 10 columns in it. There are two rich text columns in my content type. I have attached this content type to pages library. I want to change the data type of this rich text column  to "Full
    HTML content with formatting and constraints for publishing".
    Please assist me with this issue.
    amol

    Hi,
    From your description, my understanding is that you want to change the data type for rich text column in content type.
    The field type of Full HTML content with formatting and constraints for publishing is "Invalid", you could refer to this article:https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfieldtype.aspx.
    You also could test it by create a Full HTML content with formatting and constraints for publishing column and get the its type with C# code below:
    //change the URL to your SharePoint site
    using (SPSite site = new SPSite("http://sp/sites/sharepoint2013"))
    using (SPWeb web = site.OpenWeb())
    SPFieldType type = web.Fields["Column name"].Type;
    I have tested it with the PowerShell, it cannot hange the rich text column to “Full HTML content with formatting and constraints for publishing” column. If you want to edit the rich text column, you could not change the type of the column as the screenshot
    below:
    As a workaround, you could follow these steps to accomplish your requirement:
    Create a “Full HTML content with formatting and constraints for publishing” type column in the content type.
    Enter your site columns by clicking gear icon -> Site Settings -> Site columns under Web Designer Galleries under section.
    Find and delete the rich text column you want to change.
    Find the column you have created in step 1, and change the column’s name to the name of the text column you have deleted in step 3.
    But you will lose the data of the rich text column in pages library with this method.
    Best Regards,
    Vincent Han
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to change data type of input parameter

    Hi
    In my procedure i declared the data type of "Value Date" Input parameter as Date where as in CR it is showing data type as "Date Time". Can any one please specify how to change to Date.
    While prompting for input parameter in description it is showing message as
    Please enter Date time in format"yyy-mm-dd hh:mm:ss" . To change the content selected "format field" option. But is there any way to change input parameter data type.
    Please suggest how to change.
    Thanks Sruthi

    Hi Sruthi,
    all you need to do on this is open the report go to the parameters, select the parameter that you wish to change and click "Edit". This will allow you to change thefield to a date rather than a date time.
    Regards,
    Noel

Maybe you are looking for

  • É possivel inserir dados de Imposto Retido em Pedido de Compra ?

    Olá pessoal, Meu cliente gostaria de inserir as informações de Impostos Retidos na Fonta já no Pedido de Compra. Porem verifiquei que a coluna de valor de impostos retidos na fonte aonde são inseridas as informações não existe nas configurações de fo

  • Delivery date and sales order creation date

    Dear all Can you please explain the relation between delivery date and sales order date. In my case i can create delivery with delivery date as before the sales order date... how it is possible that i can create delivery before the sales order date.?

  • Ms-exchange 2013 audit logs retrieving in csv format not working?

    I need help regarding pulling specific information from exchange 2013. The information pertains to mail-exchange audit logs. The exchange in my environment is ms-exchange 2013. Steps performed so far are:- **step#1**     Create test Environment on Ex

  • How to out this type of data

    i have one internal table which had 1 field and the data in that field are like an header data and the other internal table with many field which have many different data like an item data . now i want to combine header data as an FIELD into new inte

  • Page cannot be  found on windows server 2003

    I have installed application server 10g on windows server 2003... Now when i try to run the test form throught the option Run a form  on the web i get a message Page cannot be found.... how can i resolve this issue