Query regarding in Field catlog of my oops report

Hi Experts,
i developed a program to maintain ZTABLE. When we excute the report i need all fields of table should be non-editable.I done this. but when choose CREATE NEW ENTRY icon all fields should be editable.
How can i done this dynamical field catlog setting..
Thanks in Advance...
Siva.

hi
go through this code this is for editable alv
*& Report  ZDEMO_ALVGRID_EDIT                                          *
*& Example of a simple ALV Grid Report                                 *
*& The basic ALV grid, Enhanced to display specific fields as          *
*& editable depending on field value                                   *
REPORT  ZDEMO_ALVGRID_EDIT                 .
TABLES:     ekko.
TYPE-POOLS: slis.                                 "ALV Declarations
*Data Declaration
TYPES: BEGIN OF t_ekko,
  ebeln TYPE ekpo-ebeln,
  ebelp TYPE ekpo-ebelp,
  statu TYPE ekpo-statu,
  aedat TYPE ekpo-aedat,
  matnr TYPE ekpo-matnr,
  menge TYPE ekpo-menge,
  meins TYPE ekpo-meins,
  netpr TYPE ekpo-netpr,
  peinh TYPE ekpo-peinh,
  field_style  TYPE lvc_t_styl, "FOR DISABLE
END OF t_ekko.
DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
      wa_ekko TYPE t_ekko.
*ALV data declarations
DATA: fieldcatalog TYPE slis_t_fieldcat_alv WITH HEADER LINE.
DATA: it_fieldcat TYPE lvc_t_fcat,     "slis_t_fieldcat_alv WITH HEADER LINE,
      wa_fieldcat TYPE lvc_s_fcat,
      gd_tab_group TYPE slis_t_sp_group_alv,
      gd_layout    TYPE lvc_s_layo,     "slis_layout_alv,
      gd_repid     LIKE sy-repid.
*Start-of-selection.
START-OF-SELECTION.
  PERFORM data_retrieval.
  PERFORM set_specific_field_attributes.
  PERFORM build_fieldcatalog.
  PERFORM build_layout.
  PERFORM display_alv_report.
*&      Form  BUILD_FIELDCATALOG
      Build Fieldcatalog for ALV Report
FORM build_fieldcatalog.
  wa_fieldcat-fieldname   = 'EBELN'.
  wa_fieldcat-scrtext_m   = 'Purchase Order'.
  wa_fieldcat-col_pos     = 0.
  wa_fieldcat-outputlen   = 10.
  wa_fieldcat-emphasize   = 'X'.
  wa_fieldcat-key         = 'X'.
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR  wa_fieldcat.
  wa_fieldcat-fieldname   = 'EBELP'.
  wa_fieldcat-scrtext_m   = 'PO Item'.
  wa_fieldcat-col_pos     = 1.
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR  wa_fieldcat.
  wa_fieldcat-fieldname   = 'STATU'.
  wa_fieldcat-scrtext_m   = 'Status'.
  wa_fieldcat-col_pos     = 2.
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR  wa_fieldcat.
  wa_fieldcat-fieldname   = 'AEDAT'.
  wa_fieldcat-scrtext_m   = 'Item change date'.
  wa_fieldcat-col_pos     = 3.
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR  wa_fieldcat.
  wa_fieldcat-fieldname   = 'MATNR'.
  wa_fieldcat-scrtext_m   = 'Material Number'.
  wa_fieldcat-col_pos     = 4.
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR  wa_fieldcat.
  wa_fieldcat-fieldname   = 'MENGE'.
  wa_fieldcat-scrtext_m   = 'PO quantity'.
  wa_fieldcat-col_pos     = 5.
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR  wa_fieldcat.
  wa_fieldcat-fieldname   = 'MEINS'.
  wa_fieldcat-scrtext_m   = 'Order Unit'.
  wa_fieldcat-col_pos     = 6.
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR  wa_fieldcat.
  wa_fieldcat-fieldname   = 'NETPR'.
  wa_fieldcat-scrtext_m   = 'Net Price'.
  wa_fieldcat-edit        = 'X'. "sets whole column to be editable
  wa_fieldcat-col_pos     = 7.
  wa_fieldcat-outputlen   = 15.
  wa_fieldcat-datatype     = 'CURR'.
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR  wa_fieldcat.
  wa_fieldcat-fieldname   = 'PEINH'.
  wa_fieldcat-scrtext_m   = 'Price Unit'.
  wa_fieldcat-col_pos     = 8.
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR  wa_fieldcat.
ENDFORM.                    " BUILD_FIELDCATALOG
*&      Form  BUILD_LAYOUT
      Build layout for ALV grid report
FORM build_layout.
Set layout field for field attributes(i.e. input/output)
  gd_layout-stylefname = 'FIELD_STYLE'.
  gd_layout-zebra             = 'X'.
ENDFORM.                    " BUILD_LAYOUT
*&      Form  DISPLAY_ALV_REPORT
      Display report using ALV grid
FORM display_alv_report.
  gd_repid = sy-repid.
call function 'REUSE_ALV_GRID_DISPLAY'
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
       EXPORTING
            i_callback_program      = gd_repid
           i_callback_user_command = 'USER_COMMAND'
            is_layout_lvc               = gd_layout
            it_fieldcat_lvc             = it_fieldcat
            i_save                  = 'X'
       TABLES
            t_outtab                = it_ekko
       EXCEPTIONS
            program_error           = 1
            OTHERS                  = 2.
  IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
ENDFORM.                    " DISPLAY_ALV_REPORT
*&      Form  DATA_RETRIEVAL
      Retrieve data form EKPO table and populate itab it_ekko
FORM data_retrieval.
  SELECT ebeln ebelp statu aedat matnr menge meins netpr peinh
   UP TO 10 ROWS
    FROM ekpo
    INTO  CORRESPONDING FIELDS OF TABLE it_ekko.
ENDFORM.                    " DATA_RETRIEVAL
*&      Form  set_specific_field_attributes
      populate FIELD_STYLE table with specific field attributes
form set_specific_field_attributes .
  DATA ls_stylerow TYPE lvc_s_styl .
  DATA lt_styletab TYPE lvc_t_styl .
Populate style variable (FIELD_STYLE) with style properties
The NETPR field/column has been set to editable in the fieldcatalog...
The following code sets it to be disabled(display only) if 'NETPR'
is gt than 10.
  LOOP AT it_ekko INTO wa_ekko.
    IF wa_ekko-netpr GT 10.
      ls_stylerow-fieldname = 'NETPR' .
      ls_stylerow-style = cl_gui_alv_grid=>mc_style_disabled.
                                             "set field to disabled
      APPEND ls_stylerow  TO wa_ekko-field_style.
      MODIFY it_ekko FROM wa_ekko.
    ENDIF.
  ENDLOOP.
endform.                    " set_specific_field_attributes
regards
anil chaudhary

Similar Messages

  • Query regarding the fields details in particular form for all the users in

    Dear All,
                  I have one query regarding the fields details in particular form for all the users in company.
    Let take an exapmle if i had created Purchase Order having fields in content tab as 1.Item No. 2.Quantity 3.Unit Proce   4.Total   5. Location.
    While Login in User manager i set these fields only for Purchase order , but when i login from other user and open the similar purchase order the defaults fields are also seen including  above 4 fieds .
    Now my question is how to set the User choice fiels for the particular form that are common to all users.
    Means whenever i login in any user and opens the same document the same fields should be seen....Thanksssss.........

    You have to login with each and every user and do the Form Settings of every forms, so that all the forms look same for all the users.
    This is a manual job and you have do do it with every user login.
    Alternately, you can try out this link that explains
    [How to Copy One Screen Layout to Another User|http://www.sbonotes.com/2008/03/how-to-copy-one-screen-layout-to.html]

  • Query regarding calling T-code MIGO from ALV report output

    Dear friends,
    I have to call MIGO transaction  from my ALV report output. Now problem is that I have to set the value 'display' In the first header field, 'Material Document' in 2nd header field when MIGO is called from the report output. Morever there is no parameter ID for these two fields. So how to set the values w/o using parameter ids.
    Regards,
    Rishi

    Hi,
    Try this coding,
    FORM DISPLAY.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
       I_CALLBACK_PROGRAM             = SY-REPID
       I_CALLBACK_USER_COMMAND        = 'USER_COMMAND'
       IS_LAYOUT                      = AK_LAYOUT
       IT_FIELDCAT                    = AK_FIELDCAT
      TABLES
       T_OUTTAB                       = ITAB.
    ENDFORM.                    " DISPLAY
    *&      Form  EVENT
    FORM EVENT USING P_AK_EVENT TYPE SLIS_T_EVENT.
      DATA : AK_EVENT1 TYPE SLIS_ALV_EVENT.
      AK_EVENT1-NAME = 'USER_COMMAND'.
      AK_EVENT1-FORM = 'USER_COMMAND'.
      APPEND AK_EVENT1 TO P_AK_EVENT.
    ENDFORM.                    " EVENT
    *&      Form  USER_COMMAND
    FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
                            RS_SELFIELD TYPE SLIS_SELFIELD.
      IF R_UCOMM = '&IC1'.
      " AND SY-LSIND = '1'.
        READ TABLE ITAB INDEX RS_SELFIELD-TABINDEX.
        SET PARAMETER ID 'AUN' FIELD ITAB-BUDAT.
        CALL TRANSACTION 'MIGO' AND SKIP FIRST SCREEN.
      ENDIF.
    ENDFORM.                    " USER_COMMAND
    Regards,
    Nikhil.

  • Query regarding the use of Mailto in a report

    Hi folks,
    I am having a problem using a mailto link within a report. The report sits on a page displaying information from two views, one is used to create the report the other isn't. The mailto link is on an email address displayed in the report and is generated from the value stored in the report and is called as below
    mailto:#CONTACT_EMAIL#
    Now what I want to do is carry across some other variables in both the subject and body text of the email. I have tried doing this by adding
    mailto:#CONTACT_EMAIL#?subject=#P40_VARIABLE#
    But this doesn't seem to work. It correctly interpretes the email address but not the other variable. So the question is does the variable have to be in the view used by the report or can I call it from elsewhere on the page. Sorry if this is not too clear as I am making it up as I go along.

    Thanks for the advise but it doesn't seem to work. It generates the email with the correct address but the subject is &P40_VARIABLE not the actual value of the variable.

  • Query regarding GL

    Hi,
    We are on R12 and I have have a query regarding balances.
    I am writing a report and need to get the functional Actual balance(GBP) for accounts.
    Each account has a balance in one or more currencies. My understanding as per the TRM was that the period_net_dr/cr columns stores the balances in ledger currency for all Journals entered and posted in GBP, while the period_net_dr_beq and period_net_cr_beq stores the ledger equivalent balance for all Journals entered and posted in Foreign currency.
    However, when I query gl_balances, I notice the following :
    1) For a ccid, for GBP currency code, the period_net_dr_beq and period_net_cr_beq are being populated , why ?
    2) For certain ccid, for GBP currency code the period_net_cr_beq and period_net_dr_beq both are zero, though there is a value in the period_net_dr/cr columns.
    3) When I do an account inquiry from GL SuperUser, I can see that for a given period and account and for Currency type 'Entered' , the Balances window shows me the
    result of period_net_dr_beq-period_net_cr_beq columns for my GBP balance.
    I am a bit confused and would appreciate if someone can point me what am I missing ?
    Thanks

    OK, I have managed to figure this one out.
    The period_net_cr / period_net_dr stores the sum of functional balances(includes the GBP journals + the functional equivalent of the non gbp journals) . Its like a running total of the functional balance.

  • Query on time field.

    Hi,
    I have a column "Date1" in a table. On the form I define it as Datetime datatye.
    I have the format mask of 'HH24:MI' on that column.
    Iam not able to query on that field.
    Tried adding the foll. code
    ' AND TO_CHAR(MY_TABLE.MY_TIME, ''HH24:MI'') = TO_CHAR(:MY_BLOCK.MY_TIME, ''HH24:MI'') ');
    in pre-query..but doesnot work !! I use the same code in SQL and it works fine..It does retrieve the data...
    Any suggestion...
    Thanks.

    Dear Hareesh and Harish,
    Ooopps the names are confusing. but very close..
    Yes I changed my receiver structure and added <compareOperation> under the key field Material Number. In the Message Mapping , I assigned a constant EQ to <compareOperation>.
    Now tested the proxy will value of Material with no 100 , expecting a response from database for Material 100. But getting error as below.
    xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
    <SAP:Category>XIProtocol</SAP:Category>  
    <SAP:Code area="PARSING">GENERAL</SAP:Code>  
    <SAP:P1 />  
    <SAP:P2 />  
    <SAP:P3 />  
    <SAP:P4 />  
    <SAP:AdditionalText />  
    <SAP:Stack>com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.interfaces.messaging.api.exception.MessageExpiredException: Message 53cc7fab-e712-0b20-e100-8000ac10134c(OUTBOUND) expired. at com.sap.aii.adapter.soap.web.SOAPHandler.processSOAPtoXMB(SOAPHandler.java:746) at com.sap.aii.adapter.soap.web.MessageServlet.doPost(MessageServlet.java:505) at  
    I am not sure whether there was any response from database.
    I am close to end of this thread..
    Please guide.
    Regards
    Rebecca

  • Query regarding selection screen

    Hi experts,
    I have a requirement that once I get my output on a selection screen, suppose it has just 1 row and 4 columns. If I click on each of these 4 columns, a new transaction/report etc. needs to be called. How can I achieve this functionality?
    Thanks,
    Ajay.

    Hi,
    Say you have an internal table with fields as:
    VBELN (sales order)
    POSNR (sales order line item)
    WERKS (plant)
    MATNR (matnr)
    And you write all these fields on output screen using reporting and when you click on any column field then a particular transaction/report should be called, then follow the below mentioned logic:-
    DATA : BEGIN OF it_final OCCURS 0,
             vbeln TYPE vbap-vbeln,
             posnr TYPE vbap-posnr,
             werks TYPE vbap-werks,
             matnr TYPE vbap-matnr,
           END OF it_final.
    DATA : fldname(25) TYPE c,
           fldvalue(25) TYPE c.
    START-OF-SELECTION.
      "select query into it_final internal table
    AT LINE-SELECTION.
      GET CURSOR FIELD fldname VALUE fldvalue.
      CASE fldname.
        WHEN 'IT_FINAL-VBELN'.
          WRITE : / fldvalue.
          "code to call transaction/report
        WHEN 'IT_FINAL-POSNR'.
          WRITE : / fldvalue.
          "code to call transaction/report
        WHEN 'IT_FINAL-WERKS'.
          WRITE : / fldvalue.
          "code to call transaction/report
        WHEN 'IT_FINAL-MATNR'.
          WRITE : / fldvalue.
          "code to call transaction/report
      ENDCASE.
    END-OF-SELECTION.
      ULINE.
      FORMAT HOTSPOT.
      LOOP AT it_final.
        WRITE : /1 it_final-vbeln, 10 it_final-posnr, 20 it_final-werks, 30 it_final-matnr.
        HIDE : it_final-vbeln, it_final-posnr, it_final-werks, it_final-matnr.
      ENDLOOP.
      ULINE.
    Now to call a transaction user:-
    SET PARAMETER ID '<param_id>' FIELD '<field_value>'.
    CALL TRANSACTION '<t_code>' AND SKIP FIRST SCREEN.
    To call a report use:-
    SUBMIT <report_name> WITH <parameter_name1> = <field_value1>
                         WITH <parameter_name2> = <field_value2>
                         "and so on use parameters
                         AND RETURN.
    <paramater_name> refer to the parameter of the called report <report_name>
    and <field_value> refer to value for the parameter to be passed.
    Hope this helps you.
    Regards,
    Tarun

  • FBL3N - ALV Field Catlog

    I have modified the FBL3N standard Zprogram “RFITEMGL” to add some fields for display in the report. I have changed the input parameters for the Function Module ‘FI_ITEMS_DISPLAY’ in RFITEMGL like it_items = ‘My_table_item’ to display modified table values.  But when I try to append the field catlog ‘gt_fieldcat’ using the following code I am not able to see these fields in the report layout but I have it in My_table_item.
    gt_fieldcat-TABNAME = 'IT_POS1'.
    gt_fieldcat-FIELDNAME = 'NAME1'.
    gt_fieldcat-OUTPUTLEN = '20'.
    gt_fieldcat-SELTEXT_L = 'Vendor Name'.
    APPEND GT_FIELDCAT.
    gt_fieldcat-TABNAME = 'IT_POS1'.
    gt_fieldcat-FIELDNAME = 'MAKTX'.
    gt_fieldcat-OUTPUTLEN = '20'.
    gt_fieldcat-SELTEXT_L = 'Material Desc.'.
    APPEND GT_FIELDCAT.
    What Should I do? Kindly help me

    Hi,
    Just check your code in subroutines
    perform make_fieldcatalog
    perform make_fieldcatalog2
    There may be chance that it is getting deleted in another routine. Also this program used REUSE_ALV_FIELDCATLOG_MERGE
    check how it is populating values.
    Regards,
    Atish

  • Query..for Field should not accept the manual entry

    i wann query for remarks Field in JE It should Not accept the manual entry it should accept only sys drop data.
    Thanks & Regards
    yogi

    For this field level authorization, you may only use SDK or SP to reach your goal.  SP would be difficult to use in this case.
    Thanks,
    Gordon

  • Problem in ALV Field catlog

    Hi Experts,
    I have an internal table with 20 fields, i used that internal table in REUSE_ALV_FIELDCATALOG_MERGE.
    It's diplayed the output properly. But now i added a new field in the internal table, but its not displaying inthe output even its not comming in the field catlog itself. How to add this one field inthat field catlog list?
    FORM build_field_catalog TABLES   r_field_cat LIKE g_field_cat[].
      CLEAR r_field_cat[].
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          i_program_name         = g_repid
          i_internal_tabname     = 'IT_DATA'
          i_client_never_display = 'X'
          i_bypassing_buffer     = 'X'
          i_inclname             = g_include
        CHANGING
          ct_fieldcat            = r_field_cat[].
    I used the above code..
    Can any one help this issue?
    Mohana.

    Can u pl tell me how u have declared this new field? If possible pl. paste ur code.
    If it is declared with TYPE statement then may be the REUSE_ALV_FIELDCATALOG_MERGE cannot process it. It should be declared with LIKE statement.
    Pl. check.
    Regards,
    Joy.

  • Field catlog in V/03

    Hi,
    Can we add new field catlog in the list (V/03 - create table)?
    if yes how can we add?
    regards,
    Akshay

    Hi,
    For adding field into Field catalogue:
    For example if you want to use field PSTYV ('Sales document item category') that is included in structure KOMP ('Pricing Communication Item') as a key for a condition table.
    When you create a condition table (Transaction V/03), however, the system does not propose the field in the field catalog.
    Prerequisites:
    For technical reasons, field PSTYV was included in structure KOMP, however, not in structure KOMG ('Allowed Fields for Condition Structures').
    To solve the problem, proceed as follows:
    1. Call up the ABAP Dictionary (Transaction SE11) and create data type ZZPSTYV. Choose PSTYV as a domain.As a short text, you can use, for example, 'ZZ - sales document item category' and as a field label, you can use the field labels of PSTYV.Save, check and activate your entries.
    2. Call up structure KOMPAZ in the ABAP Dictionary (Transaction SE11) in the change mode and make the following entry:
    Component   Component type
    ZZPSTYV     ZZPSTYV
    Save, check and activate the change you made.
    3. Note:Because of the change in structure KOMPAZ, field ZZPSTYV is now known in structures KOMG and KOMP because structure KOMPAZ is included in both structures.
    4. Call up Transaction SPRO. Navigate to 'Sales and Distribution -> Basic Functions -> Pricing -> Pricing Control' and execute 'Define Condition Tables'. Choose 'Conditions: Allowed fields' and include ZZPSTYV as a new entry.
    5. Note:Now you can use field ZZPSTYV as a key field when you create a condition table Axxx.
    6. Supply the new field you defined by including the following source code line in USEREXIT_PRICING_PREPARE_TKOMP:
                  MOVE xxxx-PSTYV TO TKOMP-ZZPSTYV.
    In order processing you find the user exit in Include MV45AFZZ, and in billing document processing you find it in Include RV60AFZZ.
    Consider that you can also use this note as a help if you want to use other customer-specific fields as key fields in a condition table.For header fields, use structure
    KOMKAZ instead of structure KOMPAZ and USEREXIT_PRICING_PREPARE_TKOMK instead of USEREXIT_PRICING_PREPARE_TKOMP.
    For more information, see Transaction SPRO via the path 'Sales and Distribution -> System Modifications -> Create New Fields (Using Condition
    Technique) -> New Fields for Pricing' and Note 21040.
    Regards

  • Query regarding function module SPOOL_RQ_READ_BAPI_EXPORTS (EBP-SRM Module)

    query regarding function module SPOOL_RQ_READ_BAPI_EXPORTS (EBP-SRM Module)
    shopping cart
    Hi in FM SPOOL_RQ_READ_BAPI_EXPORTS
    i want to relate the internal tables requisition_items and requisition_services.
    but in am not getting the key on which they should be joined
    here i have to take the quantity and other fields from requisition_services
    right now i am using the joining condition as
    requisition_items-pckg_no = requisition_services-pckg_no.
    any help in this regard is welcome.
    Thanks and regards,
    Vithalprasad

    Hi Kathirvel,
    Thank you for reply. I am making changes for standard code only.
    " Call FM SPOOL_DPO_READ_BAPI_EXPORTS to read PO data exported to backend.
    Use this data to call FM B46B_DPO_TRANSFER and copy errors tab from
    ' lt_bapi_return ' to ' et_messages' retrun tab in 'doc_check' badi. "
    Thank you.
    Regards, Sunu

  • Auto suggest behavior for af:query component LOV fields.

    Hi,
    I am new to ADF development and need help on implementing auto suggest behavior to the LOV fields generated by af:query component. For inputList and inputCombo.. fields we can add af:autosuggestbehavior tag to enable this. How do we enable the same for af:query generated LOV fields.
    Regards,
    C.R

    Thanks Timo for such a quick response.
    JDev version we are using is 11.1.1.6.0
    Unfortunately, we have gone too far with the AF:Query and Everything else is working apart from Auto-Suggest on AF:Query. Now will take a lot of time to implement and test. Also, users will have to spend considerable time to test it again.
    Thanks and Regards,
    Satya

  • Query regarding TO_CHAR

    Hi All,
    Thanks a lot in advance.
    I have problems running the below sql from bug priority site
    select
    USR_OWN_BY, linked_tar,
    SR_CRE_DATE_H,
    creation_date,
    sr_esc_date_h,
    SR_SCL_DATE
    from TPS_CONCAT_VIEW
    where (CREATION_DATE between to_date('2008-03-01','YYYY-MM-DD') AND to_date('2008-03-31','YYYY-MM-DD'))
    and USR_OWN_BY = 'SLEMATI.IN'
    The result of the querry is as follows (only one row pasted here) :
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Line No - 4
    Owner - SLEMATI.IN
    SR# - 6767794.993
    Created - 2008-03-12 05:55 (SR_CRE_DATE_H)
    cre_date - 12-MAR-08 (creation_date)
    Esc - 2008-03-12 10:09 (sr_esc_date_h)
    SCL - 31-MAR-08 (SR_SCL_DATE)
    The different date columns are giving different format.
    But I am trying to get the output in same format, like,
    to modify the value of the column - SR_CRE_DATE_H
    to display as DD-MON-YYYY HH:MM
    To do the same, i have given the query as
    select
    USR_OWN_BY, linked_tar,
    to_char(SR_CRE_DATE_H, 'DD-MON-YYYY HH:MM') Created ,
    creation_date,
    sr_esc_date_h
    SR_SCL_DATE
    from TPS_CONCAT_VIEW
    where (CREATION_DATE between to_date('2008-03-01','YYYY-MM-DD') AND to_date('2008-03-31','YYYY-MM-DD'))
    and USR_OWN_BY = 'SLEMATI.IN'
    It throws the error
    "ORA-00923: FROM keyword not found where expected"
    If I try with
    select
    USR_OWN_BY, linked_tar,
    to_char(SR_CRE_DATE_H, 'DD-MON-YYYY HH:MM'),
    creation_date,
    sr_esc_date_h
    SR_SCL_DATE
    from TPS_CONCAT_VIEW
    where (CREATION_DATE between to_date('2008-03-01','YYYY-MM-DD') AND to_date('2008-03-31','YYYY-MM-DD'))
    and USR_OWN_BY = 'SLEMATI.IN'
    it throws the error as
    "ORA-01722: invalid number"
    Please advise how to get the required format on the output for the date columns above.
    Thankyou,
    Swathi

    Hi,
    Is it just me, aren't the two queries exactly the same ?
    SELECT usr_own_by
          ,linked_tar
          ,to_char(sr_cre_date_h, 'DD-MON-YYYY HH:MM') created
          ,creation_date
          ,sr_esc_date_h sr_scl_date
      FROM tps_concat_view
    WHERE (creation_date BETWEEN to_date('2008-03-01', 'YYYY-MM-DD')
                              AND to_date('2008-03-31', 'YYYY-MM-DD'))
       AND usr_own_by = 'SLEMATI.IN';
    SELECT usr_own_by
          ,linked_tar
          ,to_char(sr_cre_date_h, 'DD-MON-YYYY HH:MM')
          ,creation_date
          ,sr_esc_date_h sr_scl_date
      FROM tps_concat_view
    WHERE (creation_date BETWEEN to_date('2008-03-01', 'YYYY-MM-DD')
                              AND to_date('2008-03-31', 'YYYY-MM-DD'))
       AND usr_own_by = 'SLEMATI.IN';..and syntactically the seem fine?
    Regards
    Peter
    Message was edited by: Oops didn't see the MM (too much java, i guess)
    Peter Gjelstrup
    null

  • Query linked to field with shift+F2 does not retuen 'Arrows'

    Hi
    I have a query that, when run from query manager and variable is input with [%0] does return results including the orange arrow to directly jump to the documents - perfect.
    If I link the query to a field in production order to be called by Shift + F2 and replace variable input with $[OWOR.DocNum], it returns the list correctly, but there are no arrows.
    What do I have to change to get the arrows?
    Thanks
    Franz

    Dear Mr Leu,
    I came up with a query, not sure this is correct for you but I hope it helps. I assumed you want to know what it the result from this calculation:
    sum(t2.onhand - t0.plannedqty + t1.quantity) as 'what is left'
    select distinct (t0.linenum), t3.status, t3.docnum, t0.itemcode, t0.plannedqty as 'production',
    t1.shipdate, t1.quantity as 'sales order',
    t2.onhand as 'onhand', sum(t2.onhand - t0.plannedqty + t1.quantity) as 'what is left'
    from wor1 t0 inner join por1 t1 on t0.itemcode = t1.itemcode
    inner join oitw t2 on t0.itemcode = t2.itemcode
    inner join owor t3 on t0.docentry = t3.docentry
    where
    t1.linestatus = 'o' and
    t3.status <> 'l'
    group by
    t0.linenum, t3.status, t3.docnum, t0.itemcode, t1.shipdate,
    t0.plannedqty, t2.onhand, t1.quantity 
    let me know if it helps you.
    Regards,
    Marcella Rivi
    SAP Business One Forums Team

Maybe you are looking for

  • How do I fix the error getting bad device-uri

    I am trying to add a domain printer to my new Mac running Mavericks all but one network printer get the same error bad device-uri "smb..... Can anyone tell me a way around this error.

  • Monitor erroneous messages

    Hi all, I have implemented scenario HTML -> XI -> RFC -> ERP. Sceneario in this direction is ASYNCHRONOUS. I have found out, that I have there some issues. From time-to-time ERP system is not accessible (database validation or verification is in prog

  • Broadband Suddenly Very Slow

    Hey guys, So I woke up today to find out that the connection was insanely slow, first I just assumed that other people in the house were downloading things and using up the majority of the bandwidth, but nope. I checked on SpeedTest and it was only g

  • Down-loading software upgrades is being limited by "server timed out"

    My broadband connection is of modest speed as I live many miles from the Telephone Exchange. When I attempt to download Apple software upgrades, say of 50 mb, I get cut off after about 12 mb with a message" sever timed out code -1001". When I make a

  • What does activiate do after a file is checked in on Hana studio?

    I came from a development background.  Typically after I check in or commit a file to a repository, other developer will be able to see my changes after a checkout.  In Hana studio, there is an additional step called 'activate'.  What exactly does it