Dynamically change type of field.

Hi.
Is it possible to change the type of a textfield when you call a screen?
For example I have screen 130 with textfield txt_Input.
At PBO I call setfields.
Now is it possible to change the type of txt_Input to type I or C or ... in Module setfields?
So they can't enter a letter when I need a number..
Greets

HI
Taks this field as field-symbol
like field-symbols: <fs1>
at run time you can assign any type to it
like
data: v_matnr like mara-matnr.
clear <fs1>
<fs1> = v_matnr.
Regards
Aditya

Similar Messages

  • Dynamically change width of field

    I have matrix report. One field must dynamically change width...I think create trigger. He'll change width. But I don't  found function (analog set_item_property in oracle forms). This function must get x-coordinate.  And another function  set width field.
    Help me, please. I solve this problem for more than 2 weeks
    I attached a picture. (example).
    Reports Builder 10

    select trunc(tran.DATE)
      ,t.NAME "t_name"
      ,svt.NAME "type_name"
      ,tran.route_num
      ,rts1.Description "point1"
      ,rts2.DESCRIPTION  "point2"
      ,N||'.'||NN CAT
      ,COUNT(N||NN)
      from table1 tran
      ,table2 svt
      ,table3  rts1
      ,table3  rts2
      ,table4 rt
    where tran.t_id=trc.id and
          tran.st_id=svt.st_id and
        tran.zn_in=rts1.stop(+) and
          tran.zn_out=rts2.stop(+) and
         tran.create_date BETWEEN   :pbegin  AND  :pend  and
          (trc.id = :p_id )
    group by trunc(tran.DATE)
             ,t.NAME
             ,svt.NAME
             ,tran.route_num
             ,rts1.DESCRIPTION
             ,rts2.DESCRIPTION
      ,N||'.'||NN

  • UNION changes type of field

    Statement 1:
    SELECT E0380.CardValue
    FROM (SELECT E0465.CardValue FROM E0465 UNION ALL
    SELECT null AS CardValue FROM E0465) E0380
    Statement 2:
    SELECT E0465.CardValue FROM E0465
    I use OleDbCommand to execute these 2 statements. For statement 1 I use GetDecimal method to get value.
    For statement 2 I use GetDouble to get value. The type of field CardValue is FLOAT. Why the type in these 2
    statements are different? How to solve this problem?
    My Oracle is 10g and connection string is "Provider=OraOLEDB.Oracle;Data Source=EMS;Password=abc;User ID=S000"
    Thanks a lot
    Edited by: user1095915 on May 8, 2012 10:59 AM

    I believe the behavior you're describing is apparent outside of OLEDB, so the database sql forum may be better equipped to assist.
    I tested the following, so we could easily see the resulting datatype from the union:
    SQL> create table floattab(col1 float);
    Table created.
    SQL> SELECT E0380.col1
      2  FROM (SELECT floattab.col1 FROM floattab UNION ALL
      3  SELECT null AS CardValue FROM dual) E0380;
          COL1
    SQL> create table tt as SELECT E0380.col1
      2  FROM (SELECT floattab.col1 FROM floattab UNION ALL
      3  SELECT null AS CardValue FROM dual) E0380;
    Table created.
    SQL> desc tt;
    Name                                      Null?    Type
    COL1                                               NUMBER
    SQL> desc floattab;
    Name                                      Null?    Type
    COL1                                               FLOAT(126)
    SQL>If I read the docs correctly, it looks like this is probably expected, but the database folks may be able to comment better since the behavior does not seem related to OLEDB.
    http://docs.oracle.com/cd/B19306_01/server.102/b14200/queries004.htm
    Hope it helps,
    Greg

  • Dynamically change binding of field

    Hello all,
    I am attempting to develop a form in which the binding of the fields is not yet known at design time.
    What I am trying to do is the following:
    In the "initialize" event of the form, I have typed the following:
    HEADER.FIELD.bind.ref = "$record.DATA_IN.SUBFORM.DATA[1].NAME";
    HEADER.FIELD.bind.match = "dataRef";
    "HEADER" is a subform with a text field called "FIELD" in it. What happens is: plain nothing - although there is data in the specified node, the fields remains empty.
    If I comment out the two lines and put the "$record.DATA_IN.SUBFORM.DATA[1].NAME" directly to the "binding" property, it works just fine. Setting the default binding to "normal" and trying to set it via code does not...
    Any hints? Am I missing some important step?
    Thanks
    Daniel Sattler

    Hello,
    I was trying to utilize the same to dynamically bind a text field of a row in a table. The row has been dynamically created at runtime (using instance manager - that is working). Here is the code I used inside the click event of the button after the row instance is created:
    $template.data.resolveNode("relocation.tablesubform.addtable.datarow[1]").country_data.bin d.ref
    = "$record.COUNTRY.DATA[*].FIELD";
    $template.data.resolveNode("relocation.tablesubform.addtable.datarow[1]").country_data.bin d.match= "dataRef";
    And the code used in ready form event of the button:
    $form.remerge();
    But for some reason the text field is not getting bound. Could you please advise?
    Thanks
    Sachin

  • Dynamically change the table fields in smart form

    hi all,
    can any one suggest me the way to change the height and the width of a table dynamically in smart form.
    thanx
    Manish

    Hello,
    That is not possible. You cannot alter the height and width of the smartform. Mainwindows height adjust automatically according to the data.
    Thanks,
    Jayant

  • Form fields from InDesign changing type of field in Acrobat

    I created a form in InDesign CC 2014 and saved as PDF, Acrobat XI Pro. Some, but not all, of the "Combo Boxes" in InDesign got automatically converted to "List Boxes" in Acrobat. They should have been "Drop Down" boxes in Acrobat because that is the Acrobat equivalent of InDesign's Combo Boxes. Anyone know how to prevent this unwanted change?

    Hi Jay ,
    If possible please share the file on [email protected] and cc it as well on [email protected] so that we can analyse the file at our end and see what exactly is happening .
    We would surely help you with the and assist you in the best possible way .
    Regards
    Sukrit Dhingra

  • Dynamically change the type of a field

    Hello,
    After finishing reading the adobe documentation and looking at almost all the samples in the Adobe website, i still have no clues how to do the dynamic type changing in the E-Forms.
    Do you think it's possible to change dynamically the type of a field at runtime or during the generation of the pdf?
    Example:
    i send a table to the PDF with the following information:
    Table X line 1 column1 --> textfield type
    Table X line 2 column1 --> Numeric field type
    The result must be the generation of the table X with at the first line a text field and at the second line a Numeric. Of course those field will be editable.
    Possible ?? or not?
    Thx for your help,
    Pelaez Lopez Philippe

    Let me guess, you would like to work with Adobe as you would work with WD. You cannot generate forms from scratch. And that is equal to create a single field, than dynamically duplicate it, distribute it all around the paper and change the types to the right ones. This is not possible. You can only create a superbig form and use hiding.
    If you would like to see a super-big-crazy example, check form MEDRUCK delivered by SAP. This form is superbig, but your output can contain only few fields according to the print type you need.
    If you form is that complicated you cannot build it this way, then the requirement is probably not structured and goes against the meain stream (which needs the structure:))
    Otto

  • Dynamically change text field type

    Hello all
    I have a form which displays a decimal field. However when certain conditions are met, I need to change its type to Text, so the user can enter any alphanumeric character.
    How do I achieve that with Javascript code? Is it even possible?

    Actually, you can dynamically change a textfield.type. AS2.0
    You need two elements.
    txt.type = "input";
    txt.selectable = true;
    However, if you have the textfield in a btn you will need to
    delete the onRelease function before you can make the tf function correctly.
    btn.onRelease = function()
    delete this.onRelease;
    this.txt.type = "input";
    this.txt.selectable = true;

  • 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

  • Could not changed cost center field in document type RE - FSG

    Dear Experts,
    I would like to change 'cost center field' in act document type RE (invoice receipt) through transaction FB02
    I have changed the field of 'cost center' in field status group in OBC4 and OB41 (posting key 50 and 86)
    The field staus group both in OB41 and OBC4 are already set as 'optional entry' but field of cost center is still could not be changed/edit (grey area).
    Kindly advice
    Thank you.

    Hi Chandra,
    Can you please details the coding part if you can remember ..so that would be helping me lot...Since it's production issue , we have implement immd.
    Regards,
    Lalit
    Edited by: Lalit  Sharma on Dec 24, 2009 6:45 AM
    =======================
    This problem can be closed. I got the note.
    Edited by: Lalit  Sharma on Jan 12, 2010 12:50 AM

  • How to Change the Value Field Type of a Value Field

    Hi,
    How can I change the value field type from Currency to Quantity of a value field? I have tried to do it in KEA6. I can change the value field and its description, but not the value field type from currency to qty. If I change this config, is there any other changes that I need to make so there is no side issue of this change?

    Hi Prem,
    Once you created value field as quantity or currency, you can not change this nature of value field. Based on this, system creates lots of data and tables. For this reason system will not allow any changes in quantity or currency.
    Alternative way is to remove the old value field and  create a new value field assign to operating concern and put all your seetings.
    Please let me know if you require any clarifications.
    Thank you,
    Regards,
    Santosh
    Reward points if helpful.

  • Is it possible to dynamically change the image in a Picture Field?

    Is it possible to dynamically change the image in a Picture Field?
    Thank you

    Try using the In Proc RAS SDK.
    [Here are the sample applications.|http://www.sdn.sap.com/irj/boc/samples?rid=/webcontent/uuid/b02c1cac-ad86-2b10-88ae-cb36551bab06] Take a look at the 'Add Image' sample.
    Insert the picture at design or runtime and change the location / name of the image at runtime.
    - Bhushan.

  • How can I dynamically change group field column?

    Hello!
    I need to group data and create group totals for that table. Is
    it possible to dynamically change group field column for
    specific table, depending on data retreived from parameter form?
    Thanks,
    Mario.

    quote:
    Originally posted by:
    ljonny18
    Hi,
    I am using a grid within a component in my Flex application.
    I have an XML dataProvider, and I want to change the row
    colour of my Grid depending on a value coming form my dataProvider
    – but I cant seem to get this to work :(
    can anyone help / advise me on how I can dynamically change the
    colour of my grid row depending on a value coming from my XML
    DataProvider????
    Thanks,
    Jon.
    Hi,
    a few hours ago I stumbled across this cookbook entry - it
    didn't solve MY problem, but maybe it provides a way to solve your
    problem?
    http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&postId=61&product Id=2&loc=en_US
    From the article:
    quote:
    Changing the background color of a DataGrid cell is not as
    simple as changing some style because the default renderer for a
    DataGrid cell does not have a backgroundColor. Therefore, to do
    this simple task, you have to create a custom itemRenderer where
    you draw your own background in the updateDisplayList function.
    HTH
    Uwe

  • Pernr change type field

    Hi,
    Does anybody know if is possible to change type field PERN ?? We need this field were type char, not type numc.
    Thank you in advance,
    Marta.

    Hello Marta,
    I think you mean the structure PERNR right? No don't change this structure this will affect a lot in your system as this field is also use in HR.
    Regards,
    Raynard

  • Change type field active mode while selecting Change number type

    Dear All,
    Our requirement is to get the list of Change type in the CC01 T-code when we click the change master. When we select ECR then we are getting the change list of change type. But, when we select the change master as type, then change type is coming as grey field. So we want the list of change type in change master
    Please suggest
    Regards
    Honyal

    Any input ?????????
    please
    Regards
    Honyal

Maybe you are looking for