How to set field length

Hi,
im using sap crystal report version 13.0.2000.0...
i kept one sting field in details section, in stored procedure its length is 50 characters but in my report it is displaying only 10 characters..how to format this field,is there any formula for this?

ya i followed your suggestion but im not getting full data in report
..this is my stored procedure
ALTER PROCEDURE [dbo].[GetSecretarywiseConsolidatedPurchases]
     -- Add the parameters for the stored procedure here
     @Fromdate datetime,
     @ToDate datetime,
     @TraderID int
AS
BEGIN
          DECLARE @temptb TABLE     
          (TBID int IDENTITY(1,1) NOT NULL,
               EntDate datetime,
               BillNo nvarchar(50),
               URDQuintals Decimal(18,2),
               URDValue Decimal(18,2),
               RDQuintals Decimal(18,2),
               RDValue Decimal(18,2),
               NLQuintals Decimal(18,2),
               NLValue Decimal(18,2),
               ISQuintals Decimal(18,2),
               ISDValue Decimal(18,2),               
               MarketFee Decimal(18,2),
               TraderName nvarchar(100),
               LicenseNo nvarchar(100)
          --Inserts URD Purchases
          insert into @temptb (EntDate,BillNo,URDQuintals,URDValue,MarketFee)
          (SELECT     Purchase.EntryDate, Purchase.PurchaseBillNo, PurchaseCommodity.Quantity/100, PurchaseCommodity.Value, PurchaseCommodity.ActualMarketFee
                    FROM Purchase  with(nolock) INNER JOIN PurchaseCommodity with(nolock) ON Purchase.PurchaseID = PurchaseCommodity.PurchaseID where
                    TraderID=@traderID and EntryDate>=@Fromdate and EntryDate<=@ToDate and OriginTypeID=1 and purchase.Isdeleted=0)
Select * from @temptb order by EntDate,BillNo
and field 'BillNo' is my problem...in sp BillNo showing full data but in report it is  displaying only 10 characters ..
in sp-->BillNo is 00010050027293
in report-->0001005002
Edited by: kiran86 on Feb 3, 2011 11:29 AM
Edited by: kiran86 on Feb 3, 2011 11:29 AM

Similar Messages

  • How to set field length in Dynamic IT tab

    Hi All,
                 I am creating 1 dynamic internal table with refrence of field catalog, but in the dynamic IT tab and work area i am gettinf field length is 10 char.
    But i want to change this into 15 or 20 char like this....  how can i change this
    Please help me .
    DATA: ep_tab TYPE REF TO data,
          new_line  TYPE REF TO data.
    FIELD-SYMBOLS: <l_table> TYPE table,
                   <l_line>  TYPE ANY.
    CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
          I_STYLE_TABLE   = c_char
          it_fieldcatalog = it_fieldcatalog
          I_LENGTH_IN_BYTE = ' '
        IMPORTING
          ep_table        = ep_tab.
      ASSIGN ep_tab->* TO <l_table>.
      CREATE DATA new_line LIKE LINE OF <l_table>.
      ASSIGN new_line->* TO <l_line>.
    This is my code.
    Regards,
    Arjun.

    Hi,
    try this
    ** ALV DECALRATION
    DATA : wa_lvc_cat TYPE lvc_s_fcat,
           gt_lvc_cat TYPE lvc_t_fcat.
    DATA : wa_fieldcat TYPE slis_fieldcat_alv,
           gt_fieldcat TYPE slis_t_fieldcat_alv.
    DATA : wa_slis_layout TYPE slis_layout_alv.
    PERFORM create_dynamic_itab.         " Fill fieldcatlog and create dynamic itab
    *&      Form  CREATE_DYNAMIC_ITAB
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM create_dynamic_itab .
      CLEAR g_pos .
      PERFORM fill_gt_lvc_cat_fld USING 'MATNR' 18 .  "fieldname outputlen.
      PERFORM fill_gt_fieldcat_field USING c_x 'MATNR'  'CHAR' 18   text-006.
      PERFORM fill_gt_lvc_cat_fld USING 'CODE' 40 .
      PERFORM fill_gt_fieldcat_field USING ' ' 'CODE'  'CHAR' 40  text-024.
    CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog = gt_lvc_cat
        IMPORTING
          ep_table        = new_table.
    ENDFORM.                    " CREATE_DYNAMIC_ITAB
    *&      Form  FILL_gt_lvc_cat_FLD
    *       text
    *      -->P_0006   text
    *      -->P_18     text
    FORM fill_gt_lvc_cat_fld  USING   p_fieldname TYPE any
                                      p_outputlen TYPE any.
      wa_lvc_cat-fieldname =  p_fieldname .  " 'MATNR'
      wa_lvc_cat-outputlen =  p_outputlen.   " 18
      APPEND wa_lvc_cat TO gt_lvc_cat.
      CLEAR wa_lvc_cat.
    ENDFORM.                    " FILL_gt_lvc_cat_FLD
    *&      Form  FILL_GT_FIELDCAT_FIELD
    *       text
    *      -->P_C_X  text
    *      -->P_0012   text
    *      -->P_0013   text
    *      -->P_18     text
    *      -->P_TEXT_006  text
    FORM fill_gt_fieldcat_field  USING    p_key        TYPE any
                                          p_fieldname  TYPE any
                                          p_datatype   TYPE any
                                          p_outputlen  TYPE any
                                          p_seletext_m TYPE any.
      g_pos = g_pos + 1.
      wa_fieldcat-col_pos    = g_pos.        " 1.
      wa_fieldcat-key        = p_key .       " c_x.
      wa_fieldcat-fieldname  = p_fieldname.  " 'MATNR'.
      wa_fieldcat-datatype   = p_datatype.   " 'CHAR'.
      wa_fieldcat-outputlen  = p_outputlen.                     " 18.
      wa_fieldcat-seltext_m  = p_seletext_m. " text-006.   "'Material'.
      APPEND wa_fieldcat TO gt_fieldcat.
      CLEAR wa_fieldcat.
    ENDFORM.                    " FILL_GT_FIELDCAT_FIELD
    PERFORM fill_output_layout.          " Fill the output data into field symbol
    *&      Form  FILL_OUTPUT_LAYOUT
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM fill_output_layout .
      ASSIGN new_table->* TO <fs_table>.
      CREATE DATA new_line LIKE LINE OF <fs_table>.
      ASSIGN new_line->* TO <fs_line>.
      LOOP AT  gt_mseg INTO wa_mseg.
          ASSIGN COMPONENT 'MATNR' OF STRUCTURE <fs_line> TO <fs_field>.
          <fs_field> = wa_mseg-matnr.
        READ TABLE  gt_grdtrans INTO wa_grdtrans WITH KEY mawerk = wa_mseg-WERKS
                                                             matnr  = wa_mseg-matnr
                                                             mat_doc = wa_mseg-mblnr binary search.
            IF sy-subrc = 0.
            LOOP AT gt_qmfe INTO wa_qmfe WHERE qmnum = wa_grdtrans-qmnum.
             READ TABLE gt_qpct2 INTO wa_qpct2 WITH KEY  codegruppe   = wa_qmfe-fegrp
                                                         code        = wa_qmfe-fecod
                                                         BINARY SEARCH .
              IF sy-subrc = 0.
              ASSIGN COMPONENT 'CODE' OF STRUCTURE <fs_line> TO <fs_field>.
              <fs_field> = wa_qpct2-kurztext.
             ENDIF.
             endloop.
             clear wa_qmfe.
            ENDIF.
    ENDLOOP.
        CLEAR wa_mseg.
    PERFORM fill_layout.                 " Filling the layout of REUSE_ALV_GRID_DISPALY
    *&      Form  FILL_LAYOUT
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM fill_layout .
      wa_slis_layout-zebra             = c_x.
      wa_slis_layout-colwidth_optimize = c_x.
    ENDFORM.                    " FILL_LAYOUT
    Edited by: ShaliniSinha on Mar 30, 2009 1:49 PM
    Edited by: ShaliniSinha on Mar 30, 2009 1:55 PM

  • How to set field type choice using csom (c#)

    I have a field type: Choice (menu to choose from) which is not multichoice. How do I set a value?
    I have found code for multiple choice but it doesn't seem to work for single choice.

    Hi,
    The following code snippet for your reference:
    newListItem["ChoiceFieldName"] = "ChoiceValue";
    newListItem.Update();
    clientContext.Load(newListItem);
    clientContext.ExecuteQuery();
    If you are assigning a Value which is not in the Choice Column, You need to create a choice value then assign it to the item.
    More information is here:
    http://sharepoint.stackexchange.com/questions/124999/how-to-set-field-type-choice-using-csom-c
    Best Regards
    Dennis Guo
    TechNet Community Support

  • How to set field alignment in a table in jdev 11.1.2.3?

    hi,
    How to set field alignment in a table in jdev 11.1.2.3?
    eg: to diplay a number field in a table as right aligned.
    I have tried to set field(amount) VO UI Hint Format Type:Number; Format: 0000.00
    and jspx as flowing, but it doesnot work.
    Thanks.
    bao
    <af:column sortProperty="#{bindings.VO1.hints.Amount.name}"
    sortable="true"
    headerText="#{bindings.VO1.hints.Amount.label}"
    id="c44" width="60"
    align="center">
    <af:inputText value="#{row.bindings.Amount.inputValue}"
    label="#{bindings.VO1.hints.Amount.label}"
    required="#{bindings.VO1.hints.Amount.mandatory}"
    columns="#{bindings.VO1.hints.Amount.displayWidth}"
    maximumLength="#{bindings.VO1.hints.Amount.precision}"
    shortDesc="#{bindings.VO1.hints.Amount.tooltip}"
    id="it58"
    secret="false"
    inlineStyle="text-decoration:overline;">
    <f:validator binding="#{row.bindings.Amount.validator}"/>
    </af:inputText>
    </af:column>

    Works for me:
            <af:column sortProperty="#{bindings.EmployeesView1.hints.Salary.name}" sortable="false"
                       headerText="#{bindings.EmployeesView1.hints.Salary.label}" id="c7" align="right">
              <af:inputText value="#{row.bindings.Salary.inputValue}" label="#{bindings.EmployeesView1.hints.Salary.label}"
                            required="#{bindings.EmployeesView1.hints.Salary.mandatory}"
                            columns="#{bindings.EmployeesView1.hints.Salary.displayWidth}"
                            maximumLength="#{bindings.EmployeesView1.hints.Salary.precision}"
                            shortDesc="#{bindings.EmployeesView1.hints.Salary.tooltip}" id="it6">
                <f:validator binding="#{row.bindings.Salary.validator}"/>
              </af:inputText>
            </af:column>JDeveloper 11.1.2.3
    Salary is shown right-aligned.
    What happens if you get rid of your inlineStyle on the af:inputText

  • How to set field to blank if the data is # or unassigned

    hi experts,
    how to set field to blank if the data is # or unassigned?
    thx

    Hi
    add the following macro to your workbook (template workbook):
    Sub SAPBexonrefresh(qstring As String, resultArea As Range)
        For Each c In resultArea
            If LCase(c.Value) = "not assigned" Then c.Value = ""
           Next
    End Sub

  • How to set field value in workflow SPD2013?

    Hi All,
    how to set field value in workflow SPD2013? Actually using Infopath, i need to update a field value through workflow.(Little differnt from SPD2010). How to do this?

    As Amit says, some elaboration here would be good.  You can use InfoPath as a form for either a list or a library and then set it to trigger a workflow upon item creation.  The workflow will consist a number of actions, one of which is the Update
    Field Item.
    More information on the available steps can be seen here.
    http://msdn.microsoft.com/en-us/library/office/jj164026.aspx
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • How to increase field length?

    How to increase field length?
    path -> in T Code MM01 -> Additional Data ->Unit of mesure (tech name UMREZ)
    default length is 5 digits i want increase 7 digits................

    HI,
    I don't thing it is at all possible. Because your field is a standard one and the 3 available exits in MM01
    MGA00001            Material Master (Industry): Checks and Enhancements
    MGA00002            Material Master (Industry): Number Assignment
    MGA00003            Material Master (Industry and Retail): Number Display
    can not help it.
    Regards,
    Anirban

  • Xsd:integer - how to set maximum length

    Hi,
    In a structure, I have set some of fields as xsd:integer.  my scenario is file to proxy.  while generating the inbound proxy, for those elements which are xsd:integer, the data dictionary fields are authomatically set to INT4.  Whereas the actual field length is 15.  so when i test with the data the proxy fails as there is a mismatch is the length.  how do i overcome this problem.
    can i set the length of the field when the data type is xsd:integer so that while generating the proxy automatically this field length is taken. or otherwise can i change the data type in the dictionary table.
    kindly advise.
    Bala

    experts,
    can anyone suggest how to deal with this issue.
    thanks in advance. bala

  • How to set field as Mandatory

    Hi,
    I want to set a field as mandatory. It we didn't give any data in a field and save it should not accept the null value how to set it.
    Regards,
    Madhavi

    Hi David,
    I wrote that code but the error comes where  oSBO and  bmt_Short comes. What should i do for that.
    And i gave a code for combo Mandatory
    Dim oForm2 As SAPbouiCOM.Form
                            Dim oCombo As SAPbouiCOM.ComboBox
                            oForm2 = SBO_Application.Forms.Item(pVal.FormUID)
                            oCombo = oForm2.Items.Item("cbocate").Specific
                            If oCombo.Selected.Value = "" Or oCombo.Selected.Value = Nothing Then
                                BubbleEvent = False
                                oCombo.Active = True
                                SBO_Application.SetStatusBarMessage("Category Code should not be left blank")
                            End If
    Its working but an error come 'Object Reference Not added to the Instance of an Object'
    But the same code is working for EditText without any error

  • How to add field length constraints when using an existing JavaBean model

    Within our current project we used a O/R mapping tool to generate our JavaBean model. For e.g.
    <b>public class Person{
      private String name; ...getName() ...setName(...)
    }</b>
    The whole model is used within our Web Dynpro project. Now it's a requirement to implement field length constraints. Normally this is no problem using ISimpleType like the following:
    <b>attributeInfo = wdContext.nodePerson().getNodeInfo().getAttribute
    (IPrivate...IPersonElement.NAME);
    ISimpleTypeModifiable type = attributeInfo.getModifiableSimpleType();
    type.setLength(60);</b>
    But we've got an runtime exception that it is not allowed to modify the models datatype:
    com.sap.tc.webdynpro.progmodel.context.ContextException: AttributeInfo
    <b>(Basics.Person.name): must not modify the datatype of a mapped attribute</b>
        at
    com.sap.tc.webdynpro.progmodel.context.AttributeInfo.getModifiableSimpleType
    (AttributeInfo.java:337)
    The question is how could a workaround look like. Or is there nothing like that and we have to build a dictionary type tier upon our JavaBean model. Any ideas ?
    thx,
    s.w.

    Sabine,
    You may:
    1. Import JavaBeans model
    2. Create DDIC type with necessary constarints (string-based, max. length 60)
    3. Open editor for target model class and change type of property.
    See my blog /people/valery.silaev/blog/2005/06/29/apojo--almostplain-old-java-objects-as-model (section "Tweaking model classes") for details.
    Valery Silaev
    EPAM Systems
    http://www.NetWeaverTeam.com

  • How to set gap length between regions?

    say i want 1 second between each region.. is there a way to select all regions and set gap length? thanks.

    Hi there Barry124,
    You may find the article below helpful,
    How to adjust audio gaps between songs in an album
    http://support.apple.com/kb/HT1900
    -Griff W.

  • How to set array length correctly in this case

      class RunJavaCode implements ActionListener{
        public void actionPerformed(ActionEvent e){
          try{
            Process proc=Runtime.getRuntime().exec("java javaapp");
            InputStream input=proc.getInputStream();
            byte[] b=new byte[3000];
            input.read(b);              
            String javaReport=new String(b);
            input.close();
            outputText.setText(javaReport);
          }catch(IOException ioex){System.out.println("IOException is "+ioex);}
      }how to set this array(byte[] b) length correctly? I mean this array length should not only save memory,but also enough to use('enough to use' mean that read outputed info from console to this byte array never overflow)

    Hi,
    you cannot know in advance, how many bytes will be read. But the read-method returns the number of bytes actually read and this is important!
    So at least you have to write:        int r = input.read(b);
            String javaReport=new String(b, 0, r); However, you still do not know, whether there is even more output available. You could however retrieve the data in a loop and append it e.g. to a StringBuffer, until EOF is encountered.

  • How to set field "third party" in the Web Adi, General Ledger - Journals?

    Hello,
    We are trying to find how to set the field "Third Party" in the template WebAdi, and validate data and also can display in the form of general ledger journals.
    thanks for the collaboration.

    hi,
    just make the input feild as mandatory in properties and use the following code.
    data:
    lo_view_controller type ref to if_wd_view_controller,
    lo_dyn type ref to cl_wd_dynamic_tool.
    Create Object
    create object lo_dyn.
    data lt_messages type lo_dyn->t_check_result_message_tab.
    Get view controller reference
    lo_view_controller = wd_this->wd_get_api( ).
    Call Method to verify the element has the value or not
    call method cl_wd_dynamic_tool=>check_mandatory_attr_on_view
    exporting
    view_controller = lo_view_controller
    display_messages = ABAP_TRUE
    importing
    messages = lt_messages .
    endmethod.
    Regards,
    Kranthi

  • How to set Field Dominance

    Hi,
    Sorry if this is a dumb question and its one Im kind of embarssed to ask. I have final cut express 3.0 and I cant seem to figure out how to set the field dominance.

    Why do you need to set the field dominance?
    Select the clip in the Browser and choose Edit>Item Properties.
    In the window that opens Control-click the item you want to alter (in the Clip column) and select from the drop-down menu.
    Ian.

  • How to restrict field length upon Export - OFR

    Hi,
    I am working with the standard AP solution. We are experiencing an issue with the Invoice Number and PO Number exporting lengths that are longer than we have allowed in IPM. Therefore, we are having multiple documents fail with input agent in IPM because the number of characters are over the limit in the .txt file for those fields.
    Thanks,
    Natalie

    Have your tried to adjust the application fields' lengths?
    (see http://docs.oracle.com/cd/E23943_01/admin.1111/e12782/c04_applications.htm#CIHCJFEF )
    Note that if you exceed the type's limits (like mentioned 'Possible string length is specified in the Length element with a maximum of 200 characters supported.') you might have to go with a workaround, but for fields like Invoice Number it can be a challenge (this field is probably heavily used in searching).

Maybe you are looking for