RF Screen Field-Data Type

Hi,
   Please let me know if the Data Type- STRG (Char string,variable length) is allowed for RF Screen.
I want to use a field with Defined Len = 1000 CHAR & visible Len = 1.
Pls let me know if you hv some other solution also...
Regards,
Rushikesh

I'm not familiar with module pool programs and their impossibilities ??
but I guess the transfer of data or retrieving of data is the same whether youi have a selection screen or not.
in the selection screen all data is gathered in a range. you can also create and fill a range you're self
look at datatype ranges for more info
example
ranges: h_arbid for crhd-objid occurs 0 .
you can now define
h_arbid-option = 'I'.
h_arbid-sign = 'BT'.   "means between or EQ for single value
h_arbid-low = 'start 1'.
h_arbid-high = 'start 10'.
append h_arbid.
you can also add more ranges to the same selection.
h_arbid-option = 'I'.
h_arbid-sign = 'BT'.   "means between or EQ for single value
h_arbid-low = 'start 20'.
h_arbid-high = 'start 30'.
if you pass it on to you're select statement it is
select * from table where arbid IN h_arbid.
so you get all the records from 1 till 10 and 20 till 30
kind regards
arthur

Similar Messages

  • Unicode  - "DMBTR" must be a character-type field (data type C,N,D or T)

    Greetings Experts!
    I am trying to convert legacy code to Unicode for a current ERP6.0 reinstallation and have encountered the syntax error "DMBTR" must be a character-type field (data type C,N,D or T)
    The field is part of a structure and the fields attributes are as follows:
    COMPONENT = DMBTR     
    COMPONENT TYPE = DMBTR     
    DATA TYPE = CURR     
    LENGTH = 13     
    DECIMALS = 2     
    DESCRIPTION = Amount in Local Currency
    The code in question is as follows:-
    macro Move_Zoned.
    Converts a numeric variable to zoned format and moves it to a
    target variable.
    DEFINE move_zoned.
         &1 - source variable
         &2 - Number of Decimal Places
         &3 - 'To'
         &4 - Target Variable.
      write &1 to w_zoned no-grouping decimals &2.
      condense w_zoned.
         Remove the Decimal Points.
      search w_zoned for '...'.
      while sy-subrc = 0.
        move sy-fdpos to w_to_point.
        if w_to_point = 0.
          w_to_point = 1.
        endif.
        compute w_from_point = sy-fdpos + 1.
        concatenate w_zoned+0(w_to_point)
                    w_zoned+w_from_point
               into w_zoned.
        search w_zoned for '...'.
      endwhile.
      shift w_zoned right deleting trailing space.
      translate w_zoned using ' 0'.
      call function 'Z_TRANSLATE_ZONED_DECIMALS'
        exporting
          i_input              = w_zoned
        importing
          i_output             = w_zoned
        exceptions
          x_invalid_zoned_char = c_invalid_zoned_char
          x_numeric_info_lost  = c_numeric_info_lost
          others               = c_other_zoned_error.
         Get the length of the recipient field so we don't truncate the
         numbers....
      describe field &4      length w_flength in character mode.
      describe field &4      type   w_type.
      describe field w_zoned length w_zoned_len in character mode.
      if w_zoned_len <= w_flength.
        move w_zoned to &4.
        shift &4 right deleting trailing space.
        translate &4 using ' 0'.
      else.
            Get the start position....
            If it's a packed field allow for values up to 6 figures
        compute w_zoned_len = w_zoned_len - w_flength.
        if w_type = 'P'.
          subtract 2 from w_zoned_len.
          clear w_type.
        endif.
        move w_zoned+w_zoned_len &3 &4.
      endif.
    END-OF-DEFINITION. "Move_zoned
      LOOP AT t_single_kunnr.
        move_zoned t_single_kunnr-postamt 2
                to t_single_kunnr-dmbtr.
        DIVIDE t_single_kunnr-dmbtr BY 100.
        MODIFY t_single_kunnr.
      ENDLOOP.
    Is there a solution to get past this syntax error as I would rather not change the datatype of the field in the structure.
    Much Obliged
    Elphick.

    Type X is not allowed in Unicode. When a field is declared as Type X with Value u201809u2019 or any other value, it can be resolved by using classes.
    Before Unicode
                      CONSTANTS: c_hex TYPE x VALUE '09'.
    Resolution:
    Itu2019s work for any value of x.
    First a temporary field of Type c should declare. Following class will convert Type x variable into type c.
    Example:
    CONSTANTS: c_hex TYPE x VALUE '09'.
    DATA: LV_TEMP TYPE STRING.
    DATA: LV_TMP TYPE C.
    TRY.
    CALL METHOD CL_ABAP_CONV_IN_CE=>UCCP
    EXPORTING
    UCCP   = c_hex
    RECEIVING
    CHAR   = LV_TMP   .
    CATCH CX_SY_CONVERSION_CODEPAGE.
    CATCH CX_PARAMETER_INVALID_TYPE.
    CATCH CX_SY_CODEPAGE_CONVERTER_INIT.
    ENDTRY.
    CONCATENATE I_OUTPUT-BKTXT I_OUTPUT-BVORG            
    I_OUTPUT-BUDAT I_OUTPUT-MESSAGE INTO
    SEPARATED BY LV_TMP.                      
    I_BUFFER = LV_TEMP.
    CLEAR LV_TEMP.
    CLEAR LV_TMP.
    OR
    Note: It works only for type x value  09.
    CLASS cl_abap_char_utilities DEFINITION LOAD.
    CONSTANTS: c_hex TYPE c VALUE
                             abap_char_utilities=>HORIZONTAL_TAB.

  • Suppose we have 4 fields ,  data type  u0093 DATS u0094 for those fields how do you

    Hi Experts,
    How we decide particular  field map to particular info object. Suppose we have 4 fields ,  data type  “ DATS ” for those fields how do you decide the  InfoObject  “0calday
    have to map.
    thanks&regards
    pradeep

    Hi Pradeep,
    It merely depends upon ur requirement.
    If u r having 4 dats fields and is it up to ur requirement to map one of that obj to the 0calday.

  • Issue with field data type NUMBER(22,5) while updating field data.

    Hi,
    I have a field with data type NUMBER(22,5).
    While inserting or updating field data it should take 17 digit and after decimal point 5 digit total 22 digit.
    I set 22 for maximumLength property of messageTextInput field.
    While updating field I am getting following problems,
    1) I provide the value as 1234567890123456789012 (22 digit) and click apply button.
    then I got error message as
    Error
    मैकेनाइजड दो पहिया/तीन पहिया वाहन - Value 1234567890123460000000 exceeds the maximum allowed value (NUMERIC (22, 5))
    2)then I insert 12345678901234567.1234 (17 digit before decimal point and 4 digit after decimal point and it didn't accept 5 digit after decimal point) and click apply button.
    It insert the value as 12345678901234600 (value changed after Apply)
    The I tried with simple SQL insert statement to insert data and it successfully insert 12345678901234567.12345 value.
    Any item property I missed here to set?
    Please suggest.
    Thanks & Regards,
    Sagarika

    hi
    according to
    " then I insert 12345678901234567.1234 (17 digit before decimal point and 4 digit after decimal point and it didn't accept 5 digit after decimal point) and click apply button.
    It insert the value as 12345678901234600 (value changed after Apply)"
    this statement ,it seems that it is definitely applying round or somthing like that function in the code before inserting value in the table("try with select round(12345678901234567.1234 ) from dual u will get the same result = 123456789012345600 ") ,
    bcz u r able to insert the same directely into the table using insert statement so kindely have look on the code if something like this is not happening there.try to check code in related EOimpl class
    try to to use debugging mode ,and the 23 char problem is related to maximum lenghth of text box make it 23 it will get resolved and u will be able to enter 17 digits with 5 digits after decimal point
    thanx pratap

  • Amount field data type?

    I have rows coming in with three column values I need on the export, I don't want to change the export process that is in place ...and I can't change the import formats...
    I would like to concatenate them and put them in the "Amount" field...can this be done?
    Suggestions?
    Jz

    You won't be able to do it in the Amount field because without using some sort of seperator i can't see how you will parse the values out later and this will give you issues at import with non numeric data type exceptions. Also if you can't change import formats you are extremely limited as this is where any sort of data manipulation is traditionally done.
    Edited by: SH on May 13, 2011 8:39 PM

  • Creating Custom fields (data type QUAN) using EEWB

    Hi all
    I tried to create two customised fields using EEWB for CRM Opportunity:
    1. Projected Volume (data type 'QUAN', length 13, 3 decimal places)
    2. Projected Unit (data type 'UNIT')
    In the SAP-generated tables, I have set the reference table field for 'Projected Volume' to point to 'Projected Unit'. However, I encountered errors that is related to Table Buffering and Restricted Transport for the Projected Volume field.
    If I were to change the data type to 'NUMC', field generation is ok. Does anyone know to resolve this issue? I need the Projected Volume field to be of data type 'QUAN' since decimal place is required.
    Thanks for your advice!

    SAP Note 746227 has addressed this issue. I will close this question.

  • Changing the Label of the LDB - PNP Screen Field(Date field)

    Hi,
    I got a req. to change the label of the field "Data Selection Period".  This field is from PNP LDB.
    Pls let me know, is there any FM or any other process?

    you can customize the PNP selection screen by creating a report class. you will find the button in the report attributes.
    or you can define your own selection view via SE80 an maintaining table T599C.
    but I dont't think you will be able to rename the field lable.

  • JCo getting truncated value from SAP when field data type is RAW

    We are trying to fetch data from a SAP-AII table by using JCo using the RFC RFC_READ_TABLE.
    We are getting incomplete data when the data type of the column is RAW in a particular table.A typical case is:
    Table Name: /AIN/DM_DEVCTR
    Field : CLIENT                Type: CLNT    Length:3      Value: 100                                                            (SAP Generated)
    Field:  DEVCTR_GUID    Type:RAW      Length:16    Value: 306F50F53805ED488DE9797AC86B5728     (SAP Generated)
    Filed:  DEVCTR_ID         Type:CHAR    Length:128   Value: KDEVICECONTROLLER                             (User input)
    For the fields CLIENT and DEVCTR_ID we get the entire value (including blank spaces) but for DEVCTR_GUID we get only 16 characters whereas SAP-AII stores a value that is 32 characters in length. How do we fetch the actual value instead of the truncated value?
    Sample code is attached.
              try {
                   mConnection = JCO.createClient("100", // SAP client
                             "User", // userid
                             "Password", // password
                             "EN", // language
                             "SAP", // host name
                             "00"); // system number
                   mConnection.connect();
                   if (mConnection == null) {
                        System.out.println("Connection to SAP Server failed.");
                   mRepository = new JCO.Repository("User", mConnection);
                   ftemplate = mRepository.getFunctionTemplate("RFC_READ_TABLE");
              } catch (Exception ex) {
                   ex.printStackTrace();
                   System.exit(1);
              JCO.Function function = ftemplate.getFunction();
              JCO.ParameterList importParamList = function.getImportParameterList();
              importParamList.setValue("/AIN/DM_DEVCTR", "QUERY_TABLE");
              importParamList.setValue(";", "DELIMITER");
              JCO.Table tableData = function.getTableParameterList().getTable("DATA");
              JCO.Table fields = function.getTableParameterList().getTable("FIELDS");
              mConnection.execute(function);
              if (tableData.getNumRows() > 0) {
                   do {
                        for (JCO.FieldIterator e = tableData.fields(); e
                                  .hasMoreElements();) {
                             JCO.Field field = e.nextField();
                             String str = field.getString();
                             String[] values = str.split(";");
                             for(int i = 0; i < values.length; i++){
                                  System.out.println(values<i>);
                   } while (tableData.nextRow());
              } else {
                   System.out.println("No results found");
              mConnection.disconnect();

    Hi Kaanu,
       You have to modify your java code.
    String val = new String( field.getByteArray());
    PS: Please reward points for helpful answer or problem resolved.

  • Re: Changes to screen field date was not updated

    Hi,
    I had a dialog screen showing a valid from date as 10.10.2007. I changed it to 15.10.2007 and click on other details tab. when I returned, it is still showing the old values.
    When I did a DEBUG, upon changing and hitting enter key, the new dates for the screen field is not changed. it is still showing the old date for the screen field.
    why is it so?
    I think this is the cause of why the old values is still displaying. How can I get the field updated to my internal table. It need to be filled with the new values before I can updated to my internal table and then re-displayed again.
    How to get the new values into the screen field?

    Hi..
    As i understatnd this field is in TABLE Control.
    In that case you must Update the Internal table in the PAI .. Inside LOOP .. ENDLOOP.
    Process After Input.
      LOOP AT ITAB.
       Module Update_itab.  "Calling the module
      ENDLOOP.
    <b>In Module pool</b>
       Module Update_itab INPUT. 
        modify itab from wa index TABCON-CURRENT_LINE.
       ENDMODULE.
    Note: Here WA is the work area of the Screen fields and TABCON is the Table control variable.
    <b>Reward if Helpful.</b>

  • Check field data type

    Hey,
    Im trying to determin the value of a JTextField.
    I want to test if the data in the field is either
    a) a String
    b) a Date
    c) a numeric
    How would i do this?
    Any example code of tutorials would be great
    thanks in advance
    Dave

    you're advocating exception handling for this?
    advocating expecting exceptions? normally if
    someone suggested this, I'd dismiss it as amateur
    ramblings, but I know that doesn't apply to you. what
    gives?Simplicty. To find out whether it's a valid int, you could of course use a regex to check for sign and all-digits,and then check the amount of digits for the maximum length - and if the String is as long as MAX_VALUE (or MIN_VALUE), you'll need to check each digit whether its equal or smaller than MAX_VALUE's.
    And then you parseInt() it.
    And for dates, it will be even worse.
    So you're going to write a hell of a lot of code that ends up doing what you'd do anyway, and in once case you have neat although avoidable "error" handling, while in the other case you're left with a lot of work, potential bugs and people cursing at you.
    If you're really a purist, a NumberFormatException should never occur. But I'm at least a bit more pragmatic.

  • Need to edit "Job"  screen field display type in Infotype 0023

    Hi Expert,
    I need to change "Job field" which is drop down list box to Input field like "Employer field".please help me.
    Thanks & Regards
    Anwar

    Hi Anwar,
    You cannot change the field characteristics of a standard screen unless you make a repair on the system.
    Once we had a similar requirement.
    For that we had hidden the job field in the standard screen via SM30 - V_T588M.
    Then via PM01 we enhanced IT0023, added a Z-field named job and made it listbox.
    Regards,
    Dilek

  • Screen Field Data Change Error with in Chain/End-Chain request

    Hello,
    I am currently experiencing an issue that I cannot resolve.  I have two fields in a chain/end-chain request that I need to perform some functions when entry is made.  For example, the two fields are amount and percent_of_change and when either is entered on the screen.  The chain request makes it into the module to adjust the other field however when it the program returns to the chain it will reset the value that was in there before the entry was made.  Here is an example of the coding:
    CHAIN.
          FIELD wa_projection-flag.
          FIELD wa_projection-nextclass.
          FIELD wa_projection-raisetype.
          FIELD wa_projection-rank.
          FIELD wa_projection-edate.
          FIELD wa_projection-percent_change
            MODULE calculate_amount ON REQUEST.
          FIELD wa_projection-amount
            MODULE calculate_percent ON REQUEST.
          MODULE group_proj_entr_modify ON CHAIN-REQUEST.
        ENDCHAIN.
    MODULE calculate_amount INPUT.
    *** Calculate Percentage or amount depending on what was entered.
      IF    wa_projection-currsal > 0.
        wa_projection-amount = wa_projection-currsal * ( wa_projection-percent_change / 100 ).
      ENDIF.
    ENDMODULE.               
    Has anyone run into this before?  Is so, please advise how I can resolve this issue.
    Thanks,
    Jereme

    Combine both the CHAIN MODULEs in one.
    Like:
          FIELD: wa_projection-percent_change,
                     wa_projection-amount
            MODULE calculate_amount_percent ON REQUEST.
    Now, in your module calculate_amount_percent, you will have access of both the fields. So, you will be able to perform the calculation and update it.
    Regards,
    Naimesh Patel

  • A field is given data type is Table icon in Function Module

    Hi Experts,
    I am developing HCM Reports for that I have one Function Module to retrive data from Source.
    One of my Requirement is to Display One of the fields below
    Field Name:
    Sucessfull Candidate
    Vijay
    Raju
    Ram
    to display like this in my Function Module this fields Data Type is selected Table Icon
    I think because of this the field Sucessfull Candidate is not display in Data Sources.
    quires:
    1. what is the procedure to get data in Reporting like above requirement.
    2. what I will do to appairing the field in Data sources
    3.any changes in Function Module
    Regards
    Vijay

    thanks for all participants

  • Data type that can hold negetive values with decimals

    Hi all,
    Is there any datatype which can hold negative values with decimals. INT4 can hold negetive values but don't have decimals and type P has decimals but it cannot hold negative values. Please suggest me some datatype for my requirement.
    Thanks in advance,
    Dev.

    Hi,
    Create your Screen field of type DM07M-JVCRP
    Go to Screen painter and change the Screen field type to DM07M-JVCRP
    Since this Accepts Negative values you wont get run time Errors
    Check the below data elements or use Domain CURRV13 " you can find in where used list for more
    Cheerz
    Ram

  • Table in Smartforms cannot use data type CURR

    Hello everyone,
    I have trouble with Smartform
    in Main window , I want to show data in table.
    in main area of table .
    I want to show data of amount in document (BSEG-DMBTR)
    in text of main area. I add work area W_LINE_ITEM-DMBTR.(declare W_LINE_ITEM TYPE BSEG in Global definitions)
    but when i execute report program I got error message "W_LINE_ITEM-DMBTR Unknown in form"
    it's appear error for data type CURR only, for data type CHAR. it is OK.
    Is Smartform can show data type Curr ?
    what should i do to solve problem ?
    Please help.

    Hi,
    The best way wud be just to use the "Currency/Quan. Fields" tab...
    In Global definition,, go in "Currency/Quan. Fields" tab -> declare the the field as below for W_LINE_ITEM-DMBTR,,
    Field Name           Reference Field          Data type
    W_LINE_ITEM-DMBTR          BSEG-DMBTR             CURR
    Rgs,
    Lokesh.

Maybe you are looking for

  • Query doesn't work in APD, Error: column store error: fail to create scenario: [340 2048

    Hi Experts, We got a problem here. We have a query ran without any problems in RSRT. But when I try to put it as data sources(infoprovider) in APD. I got following error: column store error: fail to create scenario: [340 2048 We are in BW731006 & ABA

  • Import QuickTime file to iMovie 9= nothing

    Suddenly, iMovie 9.01 would not recognise my latest Sony recording, perhaps because it was recorded in HD. Previous efforts have gone smoothly, I do not know if the previous recordings were recorded in HD or SD. So, it was imported to a newer MacBook

  • How much space does do I need?

    I want to create a website, and post it to the internet via. FTP protocol. So I am probably buying a webhotel and domain from www.one.com, as it seems really cheap, and that's what I need. The question then becomes, how much web space do I need. Is t

  • Meaning of error AA449 Auxiliary account assignment to asset not possible

    We are having problem posting asset entries created by GJT3 - JVA Asset Retirement.  Entries process successfully through cutback GJCB but post of asset entries fails with error AA449 - Auxiliary account assignment to asset not possible.  KOSTL is ac

  • CS6 Offline Downloader

    How to download cs6 master collection offline, coz downloading it through the download would take a longer time and that is not possible in my system. So any would be appricated to tell me how to download offline cs 6 master collection.