Field length in af:query

I am using jdev11g R2 and ADF BC,
I drag and drop my VO view criteria as af:query, in side view criteria, all four criteria fields are used LOV to enter value, some field LOV will be dependent on previous fields value selected, My question is due to the dependent LOV used, so the fileds length will be dynamicly changed. Can I fixed all the fields length ? Thanks!
Edited by: xsyang on Oct 3, 2011 9:08 PM

<af:query id="qryId2" headerText="Search" disclosed="true"
value="#{bindings.ScheduleOlVOCriteriaQuery.queryDescriptor}"
model="#{bindings.ScheduleOlVOCriteriaQuery.queryModel}"
queryListener="#{bindings.ScheduleOlVOCriteriaQuery.processQuery}"
queryOperationListener="#{bindings.ScheduleOlVOCriteriaQuery.processQueryOperation}"
resultComponentId="::pc2:resId2" saveQueryMode="hidden"
inlineStyle="width:900px;"
maxColumns="2" rows="1" modeChangeVisible="false"/>

Similar Messages

  • How to control field length in SAP query's report output

    HI everybody,
    I have one scenario in SAP query in which there are two fields in the report output:
    Milestone descrition and milestone description Long Text.
    In CJ02 (WBS element overview), these two fields are populated with some text.
    If description is exactly same as LOng text, long text is NOT getting displayed in output.
    If long text is having more characters than description then only long text gets displayed in the output.
    Do we need to change infoset or query settings? I haven't handled SAP query programming before.
    PLease give some suggestions how to achieve this or I have to write custom report.
    Any inputs on this will be highly appreciated.
    Regards
    Kaushal

    Hi,
    Refer to this link..Additional field in SAP Query
    [Creating Additional Fields |http://help.sap.com/saphelp_nw04/helpdata/en/d9/9958e0c50a11d396f80000e82de14a/frameset.htm]
    [Code|http://help.sap.com/saphelp_nw04/helpdata/en/d9/9958e0c50a11d396f80000e82de14a/frameset.htm]

  • Analyze the Field Mapping in a Query Transform

    My client is running Data Services 3.1 SP1 on WIndows Server 2003.  They have the following scenario:
    A data flow has muliple flat file source transforms of different file formats, each of which is connected to a query transform.  On the output side of each query, new output columns have been defined, representing a standard house schema. For each query transform, they need to:
    1) Compare the source fields to the query output fields, to determine which source fields have been mapped
    2) Compare source/mapped field lengths to determine if a source field has been truncated.
    I checked the script functions, but none of the functions are useful for this.  Is there a way to get a query transform's output fields/lengths from the data Services local repository?

    OR
    It may help to have Control Files for each source file as your source and compare it to the target schema structure to get the flags for truncates.
    The Control File structure would be as such
    FILENAME | COLUMN_NAME | DATA_TYPE | PRECISION | SCALE | LENGTH | IS_NULL | IS_PRIMARYKEY
    The same Structure can be used for your target schema.
    As for Identifying columns in the source that are not mapped to the target schema, I would gather the information at design time. I don't see an easy way of getting this informaiton from the Query transform.
    May be you can try using the following views to see if you can utilize the local repository for some information.
    ALVW_MAPPING
    combined with ALVW_COLUMNINFO
    and ALVW_TABLEINFO
    Hope this helps!
    Regards
    Tiji
    Edited by: Tiji Mathew on May 6, 2009 11:48 AM
    Make sure you right click in the Local Object Library area and choose the option "Calculate column mappings" to populate the updated values into AL_COLMAP_TEXT that gives the expression used to map the source to the target. You will not see the Query tranform names in this text but see the source column with mapping type column showing values like Direct, Direct - Merged, Computed etc.

  • Incresing the Reference field length

    Hi expert
    In my client the Reference field is made mandatory field to capture the vendor invoice number and this is used to track the duplicate invoice processing.But the limitation here is the field length is only 16 and many of the times it is not sufficient to entrer  all the detail and the purpose of maintaing is lost because of inadequate data. We are using this field in T code FB60 or MIRO.
    My query is whether we can increse the length of the field or is  there  any other solution. Any solution to this is welcome and will be rewarded with points.
    Regards.
    sk

    Hi
    Thanks for your guidance.I checked with the ABAP being a standrad field  it can be changed.Only solution is enhancement.
    Thanks & regards.
    sk

  • String Fields Length

    Hi,
    Length of string fields in my crystal report are locked to 20 by default, but my data source's query's field length is 50.  How can I fix the crystal report to show all 50 characters in the report?
    Thanks and regards,
    Al

    Hi Hitesh and Crystalier,
    Thanks for your replies.
    I check marked "Can Grow" option and it didn't work.
    Database is SQL Server 2005 and my connection is OLE DB (ADO).  The database field is VARCHAR(50).
    I noticed, under the Field Explorer -->  Database Fields, the type of the field is showing as "String [20]".  But the field in the datasource (SQL Server 2005) is Varchar(50).  Also, when I right-clicked Browse Data on the field on Field Explorer, the data that was returned are all trimmed to 20 characters.
    Thanks and regards,
    Al

  • Increase of Field length. & vendor data @ sales documents

    Dear all,
    a. I want to increase the Sales employee - Remarks (field) length from 50 characters to 200 characters.
    Can we increase the length of standard field's without using SDK? If yes, tell me how to do?
    b. I am creating 2 UDF's @ marketing documents. - Title level
    At first UDF - I want to see all the vendor master data (vendor codes) by formatted search
    At the secound field  - the address of the relevant Ship to r bill to address of vendor has to be filled down - as soon as i selected the vendorcode on the above field.
    Can we map the UDF's as per the above requirement - with out using SDK & by using formatted search.
    If - we can do with formatted search - help me of how to do & send me the query.
    Thanks & Regards
    ganesh

    Ganesh,
    The SAP database field lengths cannot be changed.
    Reg the Formatted Search of Vendor Codes for the first UDF.  The SQL would be like
    SELECT T0.CARDCODE FROM [DBO\].[OCRD\] T0 WHERE T0.CARDTYPE = 'S'
    YES, it is possible to trigger the FMS on the second UDF when the Vendor Code is filled in the firt UDF.
    I am not clear with what you mean by the following
    At the secound field - the address of the relevant Ship to r bill to address of vendor has to be filled down - as soon as i selected the vendorcode on the above field.
    The Address information is in CRD1 table and you can use the first UDF's values in the WHERE clause of the SELECT statement in your second FMS
    example:
    SELECT T0.STREET, T0.CITY, .... FROM [DBO\].[CRD1\] T0 WHERE T0.CARDCODE = $\[ORDR.U_USERFIELD] AND T0.ADRESTYPE = 'B'
    CHANGE U_USERFIELD1 with the name of your Vendor Code UDF
    T0.ADRESTYPE = 'B' ..........FOR BILLING ADDRESS
    T0.ADRESTYPE = 'S' ..........FOR SHIPPING ADDRESS
    Suda

  • Field length change in Web Dynpro Components iView

    Hi,
    We are using SAP MDM Web Dynpro Components - Configuration Manager (NW7.3) to develop the UI. One of the issue while disply field is, Though field maintained in MDM has only 2 charaters UI that displays a full-screen-width field.
    I would like to display actual field length maintained in reposiroy for each field. Is it possible??
    Cheers,
    Rc

    This is closed.
    By mistake Raised Twice....I guess I need break

  • Adding New Fields to a BEx Query does not show up in the CR field explorer

    This could be a silly question.
    I have a CR report based on a BEx query.  I had to add a couple of new fields to the BEx query, and when i want to add those fields to the CR report, I don't see them even after I do a refresh in the field explorer. 
    How do i see this new fields in the CR report?
    Help Please
    Thanks

    Hi,
    you can open the report and go to the menu Database > Verify Database.
    that should add the new fields to the list of fields in CR
    Ingo

  • Changing field length of a standard field in standard table VBEP

    Hi,
    Please advice the possibility and the possible repercussions of changing field lengths in a standard table. Table in concern is VBEP.
    Thanks & Rgds,
    Pradeep

    No you cannot change the field length
    thanks
    G. Lakshmipathi

  • Type conflict when calling a function module (field length)

    Dear All,
                I am getting this following error while executing:  Type conflict when calling a function module (field length)
    This is piece of coding i have writern in my action button.
    method SEARCH_MATERIAL .
      data:
            node_mat_input TYPE REF TO  if_wd_context_node,
            node_mat_output TYPE REF TO if_wd_context_node,
            material TYPE BAPIMATDET-MATERIAL,
            itab TYPE TABLE OF BAPIMATDOA.
      node_mat_input = wd_context->get_child_node( 'NODE_MAT_INPUT' ).
      node_mat_output = wd_context->get_child_node( 'NODE_MAT_OUTPUT' ).
      node_mat_input->get_attribute( EXPORTING name = 'MATERIAL'
                                     IMPORTING value = material ).
      CALL FUNCTION 'BAPI_MATERIAL_GET_DETAIL'
        EXPORTING
          material                    = material
        PLANT                       = plant
        VALUATIONAREA               =
        VALUATIONTYPE               =
        MATERIAL_EVG                =
       IMPORTING
         MATERIAL_GENERAL_DATA       = itab
        RETURN                      =
        MATERIALPLANTDATA           =
        MATERIALVALUATIONDATA       =
      node_mat_output->bind_table( itab ).
    endmethod.
    Attributes are:
    Node name = INPUT its structure is BAPIMATDET
    INPUT attributes = MATERIAL of type BAPIMATDET-MATERIAL
    Thanks,
    Gopi.

    Hi Amit,
               I have used service call to fetch records from that bapi..
    The following is the code generated by service call:-
    METHOD execute_bapi_material_get_deta .
    declarations for context navigation
      DATA:
        node_bapi_material_get_de   TYPE REF TO if_wd_context_node,
         node_exporting   TYPE REF TO if_wd_context_node,
         node_material_general_dat   TYPE REF TO if_wd_context_node,
         node_importing   TYPE REF TO if_wd_context_node,
          lri_element    TYPE REF TO if_wd_context_element.
    declarations for fuba parameters
      data:
        stru_c_material_general_dat    TYPE if_componentcontroller=>element_material_general_dat.
      DATA:
        attr_material    TYPE bapimatdet-material,
        attr_plant    TYPE bapimatall-plant.
    get all involved child nodes
      node_bapi_material_get_de = wd_context->get_child_node( `BAPI_MATERIAL_GET_DE` ).
      node_exporting = node_bapi_material_get_de->get_child_node( `EXPORTING` ).
      node_material_general_dat = node_exporting->get_child_node( `MATERIAL_GENERAL_DAT` ).
      node_importing = node_bapi_material_get_de->get_child_node( `IMPORTING` ).
    get input from context
      node_importing->get_attribute(    EXPORTING      name = `MATERIAL`
                                                         IMPORTING      value = attr_material ).
      node_importing->get_attribute(  EXPORTING       name = `PLANT`
                                                              IMPORTING       value = attr_plant ).
    the invocation - errors are always fatal !!!
      CALL FUNCTION 'BAPI_MATERIAL_GET_DETAIL'
        EXPORTING
          material =                        attr_material
          plant =                           attr_plant
    "      valuationarea =                   wd_This->Valuationarea
    "      valuationtype =                   wd_This->Valuationtype
    "      material_Evg =                    wd_This->Material_Evg
        IMPORTING
          material_general_data =           stru_c_material_general_dat
    "      return =                          wd_This->Return
    "      materialplantdata =               wd_This->Materialplantdata
    "      materialvaluationdata =           wd_This->Materialvaluationdat
      node_material_general_dat->bind_structure( stru_c_material_general_dat[] ).
    ENDMETHOD.
                                 but the problem is I  am getting the following error while compiling...
    " stru_c_materialplantdata " is not an internal table - the " OCCOURS n"  specification is missing.
    Thanks,
    Gopi.
    Edited by: Yegalaivan on Nov 18, 2009 8:30 AM

  • How to create an infotype with one of its field length eq 1000.??

    hi ,
    i need to create a infotype where one of the field length is 1000 characters how do i achieve this. if i give more than 255 in the PS structure it will not allow. then how do i get a text field of 1000 chars in the screen ( which is an input field)

    You can use those function calls even inside a PA Infotype.. they just invoke the text ediotr table control.. I gave you the reference of the PD infotype 1002 just for an idea. I don't think you will able to meet your 1000 char reqt without using the text editor.
    ~Suresh

  • How to give References for the field in the Abap Query

    Dear Freinds,
               I am not able to get Text for Cost Centre which iam using in My custom infotype , when iam calling the Custom infotype in abap querry i dont find the T symbol for my field Cost Centre , since i have created in my custom infotype for Cost Centre similar to the infotype 0001. When i look at the
    infotype 0001 fields in my abap query i can see that there is T field for P0001-KOSTL and again if i double click on it i can see that in the REFERENCES Tab i can see " Function Module:HR_TXID_KOSTL" . Could any one let me how i can assign to my custom field "Function Module:HR_TXID_KOSTL " in the References Tab.
    Regards
    divya

    solved the problem

  • R/3 Field length 80, BW field max allowed 60

    Hi all,
    Field ABC is in R/3 production system.
    Its length is 80(CHAR).
    This field data is now to be extracted to BW.
    It is used in extract program and updated to an extract table(R/3), then this has be loaded into a master load(BW).
    But in BW the field length allowed is 60(Max).
    So how to get in this 80 char data into BW??
    Please let me know in detail.
    Also please share links pertaining to this if possible.
    Thanks,
    Sowrabh

    Hi Sowrabh,
    Create two Infoobjects one with length 60 and one with length 20.
    Now in transfer rules write routines for both.
    IOB1 = <r/3 field>+0(60)
    IOB2 = <r/3 field>+60(20)
    Regards,
    Mansi
    Edited by: mansi dandavate on Apr 23, 2009 6:23 PM

  • CATT - vendor/customer master address field length over

    Dear all,
       when use CATT to record vendor/customer master,the address some fields length are over recorded field length(ex. ADDR1_DATA-NAME4,ADDR1_DATA-STR_SUPPL3...etc)
    is there any config in CATT to solve this kind of problem?

    When you are doing your LSMW batch input recording, on selection screen (where you specify the sales org, distribution channel, division, account group, etc) please put a flag on "Use central address management" checkbox (SAPMF02D 0100 >  USE_ZAV).
    In this case you should be able to see and fill the desired fields.

  • I am trying to generate purchase order and i create a BAPI also which is active. But when i call the BAPI from SYbase Mobile Object RFC then after calling it gives an Error "Conflict when calling a Function Module (Field Length)".

    i am trying to generate purchase order and i create a BAPI also which is active.
    But when i call the BAPI from SYbase Mobile Object RFC then after calling it gives an Error "Conflict when calling a Function Module (Field Length)".

    Hi,
    Yeah i tried my Z_BAPI in R3 and then giving some ERROR.
    This is my CODE-
    FUNCTION ZBAPIPOTV2.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(POHD) TYPE  ZPOHD OPTIONAL
    *"     VALUE(POITEM) TYPE  ZPOITEM OPTIONAL
    *"  TABLES
    *"      RETURN STRUCTURE  BAPIRET1 OPTIONAL
    data: ls_pohd type bapimepoheader,
             ls_pohdx TYPE bapimepoheaderx,
             lt_poit TYPE TABLE OF bapimepoitem,
             lt_poitx TYPE TABLE OF bapimepoitemx,
             ls_poit TYPE bapimepoitem,
             ls_poitx TYPE bapimepoitemx.
       MOVE-CORRESPONDING pohd to ls_pohd.
       MOVE-CORRESPONDING poitem to ls_poit.
       ls_pohdx-comp_code = 'x'.
       ls_pohdx-doc_type = 'x'.
       ls_pohdx-vendor = 'x'.
       ls_pohdx-purch_org = 'x'.
       ls_pohdx-pur_group = 'x'.
       ls_poit-po_item = '00010'.
       APPEND ls_poit to lt_poit.
       ls_poitx-po_item = '00010'.
       ls_poitx-po_itemx = 'x'.
       ls_poitx-material = 'x'.
       ls_poitx-plant = 'x'.
       ls_poitx-quantity = 'x'.
       APPEND ls_poitx to lt_poitx.
    CALL FUNCTION 'BAPI_PO_CREATE1'
       EXPORTING
         POHEADER                     = ls_pohd
        POHEADERX                    =  ls_pohdx
    *   POADDRVENDOR                 =
    *   TESTRUN                      =
    *   MEMORY_UNCOMPLETE            =
    *   MEMORY_COMPLETE              =
    *   POEXPIMPHEADER               =
    *   POEXPIMPHEADERX              =
    *   VERSIONS                     =
    *   NO_MESSAGING                 =
    *   NO_MESSAGE_REQ               =
    *   NO_AUTHORITY                 =
    *   NO_PRICE_FROM_PO             =
    *   PARK_COMPLETE                =
    *   PARK_UNCOMPLETE              =
    * IMPORTING
    *   EXPPURCHASEORDER             =
    *   EXPHEADER                    =
    *   EXPPOEXPIMPHEADER            =
      TABLES
        RETURN                       = return
        POITEM                       = lt_poit
        POITEMX                      = lt_poitx
    *   POADDRDELIVERY               =
    *   POSCHEDULE                   =
    *   POSCHEDULEX                  =
    *   POACCOUNT                    =
    *   POACCOUNTPROFITSEGMENT       =
    *   POACCOUNTX                   =
    *   POCONDHEADER                 =
    *   POCONDHEADERX                =
    *   POCOND                       =
    *   POCONDX                      =
    *   POLIMITS                     =
    *   POCONTRACTLIMITS             =
    *   POSERVICES                   =
    *   POSRVACCESSVALUES            =
    *   POSERVICESTEXT               =
    *   EXTENSIONIN                  =
    *   EXTENSIONOUT                 =
    *   POEXPIMPITEM                 =
    *   POEXPIMPITEMX                =
    *   POTEXTHEADER                 =
    *   POTEXTITEM                   =
    *   ALLVERSIONS                  =
    *   POPARTNER                    =
    *   POCOMPONENTS                 =
    *   POCOMPONENTSX                =
    *   POSHIPPING                   =
    *   POSHIPPINGX                  =
    *   POSHIPPINGEXP                =
    *   SERIALNUMBER                 =
    *   SERIALNUMBERX                =
    *   INVPLANHEADER                =
    *   INVPLANHEADERX               =
    *   INVPLANITEM                  =
    *   INVPLANITEMX                 =
    ENDFUNCTION.
    i am trying to generate purchase order and i create a BAPI also which is active. But when i call the BAPI from SYbase Mobile Object RFC then after calling it gives an Error "Conflict when calling a Function Module (Field Length)". 

Maybe you are looking for

  • Deploying the code in OWB in same target schema

    i have created one staging area and and enterpise model in OWB to deploy my mappings. to deploy the staging area and enterpisre model mapping i have one TARGET SCHEMA. now when i want to deploy my enterpise model mapping to the target schema(where i

  • HELP! How do I un-install and then RE-install Camera Raw 5.7 on my Mac?

    My CS4 would no longer open my RAW files (Canon 5D Mark II) and I was told (on this forum) that I needed to update my camera raw to 5.7. So I downloaded 5.7 but could not figure out HOW to get it installed in the proper place. After trying but not su

  • How to set different font for a particular row in jtables?

    How to set different font size and font type for a particular row in jtable?

  • OSS Ticket system

    Hello, when you enter a Problem with a System and Need to enter another Problem, you Need to leave the Support Portal totally Close everything and enter it again. Why can't we enter more than one ticket in the same session? thanks Benjamin

  • How to create BMP without "renderasimage" ?

    Hi... I wrote a drawing program, using "pencilplay" example project. But I used "renderasimage" to return forte iamge object for saving a image file instead of using forte objects. It is very simple, but the image oject returned was dependent on my W