Conversion form .mdf to .DBF , Plz see this...

Hi all,
Thanks for reading this:
My Java application needs to read a .mdf database format (SQLServer) and export data (after some processing) in a .DBF format (for use with ArcView GIS).I can read from my SQLServer, but don't know how to generate a .DBF format. Are there any mechanisms in Java to do this?
Any comments, i greatly welcome.

I assume that you are using Windows (as you are talking about SQL Server)
What you could do, is to create an ODBC datasource with the DBF driver.
Then create the target tables while connected to your ODBC connection (through the JDBC/ODBC bridge). This will create the .dbf files (one for each table). This can be done by sending the CREATE TABLE commands through JDBC. You will probably need to test which datatypes DBF supports (apart from CHAR(n))
Then you can connect to SQL Server and read the data from there and INSERT the data into your DBF tables.
If you it's a one to one table copy, you could save your data as SQL INSERT with an appropriate tool and then execute those inserts while connected to you DBF datasource.
Thomas

Similar Messages

  • How we can replace the column in Core Table plz see this msg

    Hi,
    How we can replace the column in Core Table plz see this msg
    Req:
    when i push the Insert button the data inserted into the Table
    like
    Cols Values
    FOCD      CUFZ14
    PRDCD FU6
    Month 082008
    AgencyCD AG02
    PLAN 123
    This is FO_Plan Table....
    Requirement:
    i need at table show to replace the Prd_CD to Prd_Desc while inserting the above Row....
    There is no Prd_Desc in FO Plan Table....
    Prd_desc comes from Product Table.
    did u get my point...
    how to solve.
    Thanks
    Ram
    Edited by: Ram Vungarala on Sep 24, 2008 9:09 AM
    Edited by: Ram Vungarala on Sep 24, 2008 9:15 AM

    Hi,
    I'm not sure if I understood what are you trying to do. But you can modify your table in a backing bean code. JSF page code for a table:
    <af:table id="product_search_results_tbl" binding="#{backingBean.boundTable}" ... />
    And a backing bean code:
    import oracle.adf.view.faces.component.core.data.CoreTable;
    public class YourBackingBean {
        private CoreTable boundTable;
        public void setBoundTable(CoreTable boundTable) {
            this.boundTable = boundTable;
        public CoreTable getBoundTable() {
            return boundTable;
       public String insertButtonAction() {
          // Bind your button action to this method and modify here your bound table
         return null;
    {code}
    Look for column modification methods in a CoreTable class documentation.
    Marius                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Plz see this problem

    hi Everyone,
    I have written a bdc for multiple line items for single header in PO.but i am getting multiple PO number for different line item.
    Plz suggest how should i correct it.
    report ZPURCHAGE1
           no standard page heading line-size 255.
    *include bdcrecx1.
    *parameters: dataset(132) lower case.
       DO NOT CHANGE - the generated data section - DO NOT CHANGE    ***
      If it is nessesary to change the data section use the rules:
      1.) Each definition of a field exists of two lines
      2.) The first line shows exactly the comment
          '* data element: ' followed with the data element
          which describes the field.
          If you don't have a data element use the
          comment without a data element name
      3.) The second line shows the fieldname of the
          structure, the fieldname must consist of
          a fieldname and optional the character '_' and
          three numbers and the field length in brackets
      4.) Each field must be type C.
    Generated data section with specific formatting - DO NOT CHANGE  ***
    data: t_bdc_data like bdcdata occurs 10 with header line.
    data: begin of record2,
          ebelp(005),
          ematn(010),
          menge(017),
          name1(030),
          spinf(001),
          end of record2.
    data: begin of record,
    data element: BSART
            BSART(004),
    data element: MEPO_VENDOR
            SUPERFIELD(051),
    data element: EBDAT
            BEDAT(010),
    data element:
           LIST(040),
    data element: BSART
           BSART_005(004),
    data element: MEPO_VENDOR
           SUPERFIELD_006(051),
    data element: EBDAT
           BEDAT_007(010),
    data element: EKORG
            EKORG(004),
    data element: EKGRP
            EKGRP(003),
    data element: BUKRS
            BUKRS(004),
    data element:
           LIST_011(040),
    data element: BSART
           BSART_012(004),
    data element: MEPO_VENDOR
           SUPERFIELD_013(051),
    data element: EBDAT
           BEDAT_014(010),
    data element: EKORG
           EKORG_015(004),
    data element: EKGRP
           EKGRP_016(003),
    data element: BUKRS
           BUKRS_017(004),
    data element:
           LIST_018(040),
    data element: BSART
           BSART_019(004),
    data element: MEPO_VENDOR
           SUPERFIELD_020(051),
    data element: EBDAT
           BEDAT_021(010),
    data element: EKORG
           EKORG_022(004),
    data element: EKGRP
           EKGRP_023(003),
    data element: BUKRS
           BUKRS_024(004),
    data element: EBELP
           EBELP(005),
    data element: EMATNR
           EMATN(018),
    data element: BSTMG
           MENGE(017),
    data element: MEPO_EWERK
           NAME1(030),
    data element:
           LIST_029(040),
    data element: BSART
           BSART_030(004),
    data element: MEPO_VENDOR
           SUPERFIELD_031(051),
    data element: EBDAT
           BEDAT_032(010),
    data element: EKORG
           EKORG_033(004),
    data element: EKGRP
           EKGRP_034(003),
    data element: BUKRS
           BUKRS_035(004),
    data element:
           LIST_036(040),
    data element: INFUP
           SPINF(001),
          end of record.
    data : itab like standard table of record with header line.
    data: itab1 like standard table of record2 with header line.
    End generated data section ***
    start-of-selection.
    *perform open_dataset using dataset.
    *perform open_group.
    *do.
    *read dataset dataset into record.
    CALL FUNCTION 'UPLOAD'
    EXPORTING
       FILENAME                      = ' '
       FILETYPE                      = 'DAT'
      TABLES
        DATA_TAB                      = ITAB.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'UPLOAD'
    EXPORTING
       FILENAME                      = ' '
       FILETYPE                      = 'DAT'
      TABLES
        DATA_TAB                      = itab1.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    loop at itab into record.
    *if sy-subrc <> 0. exit. endif.
    LOOP AT ITAB1 INTO RECORD2.
    perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=MEV4000BUTTON'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MEPO_TOPLINE-SUPERFIELD'.
    perform bdc_field       using 'MEPO_TOPLINE-BSART'
                                  record-BSART.
    perform bdc_field       using 'MEPO_TOPLINE-SUPERFIELD'
                                  record-SUPERFIELD.
    perform bdc_field       using 'MEPO_TOPLINE-BEDAT'
                                  record-BEDAT.
    *perform bdc_field       using 'DYN_6000-LIST'
                                 record-LIST.
    perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'MEPO_TOPLINE-BSART'
                                  record-BSART.
    perform bdc_field       using 'MEPO_TOPLINE-SUPERFIELD'
                                  record-SUPERFIELD.
    perform bdc_field       using 'MEPO_TOPLINE-BEDAT'
                                  record-BEDAT.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MEPO1222-BUKRS'.
    perform bdc_field       using 'MEPO1222-EKORG'
                                  record-EKORG.
    perform bdc_field       using 'MEPO1222-EKGRP'
                                  record-EKGRP.
    perform bdc_field       using 'MEPO1222-BUKRS'
                                  record-BUKRS.
    *perform bdc_field       using 'DYN_6000-LIST'
                                 record-LIST.
    perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=MEV4001BUTTON'.
    perform bdc_field       using 'MEPO_TOPLINE-BSART'
                                  record-BSART.
    perform bdc_field       using 'MEPO_TOPLINE-SUPERFIELD'
                                  record-SUPERFIELD.
    perform bdc_field       using 'MEPO_TOPLINE-BEDAT'
                                  record-BEDAT.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MEPO1222-BUKRS'.
    perform bdc_field       using 'MEPO1222-EKORG'
                                  record-EKORG.
    perform bdc_field       using 'MEPO1222-EKGRP'
                                  record-EKGRP.
    perform bdc_field       using 'MEPO1222-BUKRS'
                                  record-BUKRS.
    *perform bdc_field       using 'DYN_6000-LIST'
                                 record-LIST.
    perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'MEPO_TOPLINE-BSART'
                                  record-BSART.
    perform bdc_field       using 'MEPO_TOPLINE-SUPERFIELD'
                                  record-SUPERFIELD.
    perform bdc_field       using 'MEPO_TOPLINE-BEDAT'
                                  record-BEDAT.
    perform bdc_field       using 'MEPO1222-EKORG'
                                  record-EKORG.
    perform bdc_field       using 'MEPO1222-EKGRP'
                                  record-EKGRP.
    perform bdc_field       using 'MEPO1222-BUKRS'
                                  record-BUKRS.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MEPO1211-NAME1(01)'.
    perform bdc_field       using 'MEPO1211-EBELP(01)'
                                  record2-EBELP.
    perform bdc_field       using 'MEPO1211-EMATN(01)'
                                  record2-EMATN.
    perform bdc_field       using 'MEPO1211-MENGE(01)'
                                  record2-MENGE.
    perform bdc_field       using 'MEPO1211-NAME1(01)'
                                  record2-NAME1.
    *perform bdc_field       using 'DYN_6000-LIST'
                                 record-LIST.
    perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=MESAVE'.
    perform bdc_field       using 'MEPO_TOPLINE-BSART'
                                  record-BSART.
    perform bdc_field       using 'MEPO_TOPLINE-SUPERFIELD'
                                  record-SUPERFIELD.
    perform bdc_field       using 'MEPO_TOPLINE-BEDAT'
                                  record-BEDAT.
    perform bdc_field       using 'MEPO1222-EKORG'
                                  record-EKORG.
    perform bdc_field       using 'MEPO1222-EKGRP'
                                  record-EKGRP.
    perform bdc_field       using 'MEPO1222-BUKRS'
                                  record-BUKRS.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MEPO1211-EEIND(01)'.
    *perform bdc_field       using 'DYN_6000-LIST'
                                 record-LIST.
    perform bdc_field       using 'MEPO1319-SPINF'
                                  record2-SPINF.
    *perform bdc_transaction using 'ME21N'.
    CALL TRANSACTION 'ME21N' USING t_bdc_data
                         MODE   'A'
                         UPDATE 'S'.
    clear  t_bdc_data.
    refresh t_bdc_data.
    endloop.
    endloop.
    *perform close_group.
    *&      Form  bdc_dynpro
          text
         -->P_0046   text
         -->P_0047   text
    FORM bdc_dynpro  USING  PROGRAM
                              DYNPRO.
    CLEAR t_bdc_data.
      t_bdc_data-PROGRAM  = PROGRAM.
      t_bdc_data-DYNPRO   = DYNPRO.
      t_bdc_data-DYNBEGIN = 'X'.
      APPEND t_bdc_data.
    ENDFORM.                    " bdc_dynpro
    *&      Form  bdc_field
          text
         -->P_0051   text
         -->P_0052   text
    FORM bdc_field  USING    FNAM
                             FVAL.
    CLEAR t_bdc_data.
        t_bdc_data-FNAM = FNAM.
        t_bdc_data-FVAL = FVAL.
        APPEND t_bdc_data.
    ENDFORM.                    " bdc_field
    Mohit

    Hi ,
    try this :
    ur existing codes:
    *perform bdc_transaction using 'ME21N'.
    CALL TRANSACTION 'ME21N' USING t_bdc_data
    MODE 'A'
    UPDATE 'S'.
    clear t_bdc_data.
    refresh t_bdc_data.
    endloop.
    endloop.
    proposed codes by me:
    clear t_bdc_data.
    endloop.
    *perform bdc_transaction using 'ME21N'.
    CALL TRANSACTION 'ME21N' USING t_bdc_data
    MODE 'A'
    UPDATE 'S'.
    refresh t_bdc_data.
    endloop.
    Message was edited by:
            Jogdand M B

  • Plz see this and think once..

    hai friends,
    i got one trouble plz help as soon as u can....imagine i ahve 10000 rows....
    i want to upload into one it table and i want to split them into 100 text files..each having the
    100 rows...just like splitting them into text files and downloading them as .txt files..plz.help me..

    How about something like this.
    REPORT  zrich_0001.
    DATA: itab1 TYPE STANDARD TABLE OF string.
    DATA: itab2 TYPE STANDARD TABLE OF string.
    DATA: wa LIKE LINE OF itab1.
    DATA: rec_counter TYPE i.
    DATA: fil_counter(3) TYPE c.
    DATA: file_name TYPE string.
    CALL METHOD cl_gui_frontend_services=>gui_upload
      EXPORTING
        filename = 'C:/testfile.txt'
      CHANGING
        data_tab = itab1
      EXCEPTIONS
        OTHERS   = 19.
    CLEAR fil_counter.
    CLEAR rec_counter.
    LOOP AT itab1 INTO wa.
      APPEND wa TO itab2.
      rec_counter = rec_counter + 1.
      IF rec_counter = 100.
        PERFORM download_it.
      ENDIF.
      AT LAST.
        CHECK itab2[] IS NOT INITIAL.
        PERFORM download_it.
      ENDAT.
    ENDLOOP.
    *&      Form  download_it
    *       text
    FORM download_it.
      CLEAR file_name.
      fil_counter = fil_counter + 1.
      CONCATENATE 'c:/testfile' fil_counter '.txt' INTO file_name.
      CONDENSE file_name NO-GAPS.
      CALL METHOD cl_gui_frontend_services=>gui_download
        EXPORTING
          filename = file_name
        CHANGING
          data_tab = itab2
        EXCEPTIONS
          OTHERS   = 24.
      CLEAR rec_counter.
      REFRESH itab2.
    ENDFORM.                    "download_it
    Regards,
    Rich Heilman

  • Plz see this code

    rs=stm.executeQuery("select news.news_id,to_char(news_date,'dd-MON-yy HH:MM:SS AM'),heading,desc1,desc2 from news where sysdate<=news_date + interval '2' day order by news_date desc");
              while(rs.next()){
              newsDate=rs.getString("news_date");
              out.println("News ID"+rs.getString("news_id")+"<div align=right>"+newsDate+"</div><br>");
              news_id=rs.getInt("news_id");
              heading=rs.getString("heading");
              out.println("<tr><td><a href=http://localhost:5050/examples/servlet/displayNews?newsID="+news_id+"><font color=olive face='times new roman' size=3><b>"+heading+"</a></font></td></tr>");               
              out.println("<tr><td>"+rs.getString("desc1")+"<a href=http://localhost:5050/examples/servlet/displayNews?newsID="+news_id+">   Details.....</a><br><br></td></tr>");
              }news_date exists in DB but it gives
    Error:
    Invalid column name

    try to use like this to get data :
    rs. getInt(1) > use column index number
    maybe helps you.

  • Plz see this

    hi,
          i have 3 radio butttons , such that i disable one radiobutton. when i start running application in create mode the radiobutton is disabed and it is fine.
         now if i have pasted any old transactionid and open the form in change mode i.e changeform the radiobutton is not disable.
    can any one tell me . and for create i have ws_mode eq create but i did not found for change .
    Bye.

    -- REP-1401: ''cf_2formula': Fatal PL/SQL error occured.
    Hi! I have the same error too except that I'm not using a select statement. The error occurs even if i entered a valid paramter for date.
    When I tried inputing into
    :refdt1 = 02/01/2007
    :refdt2 = 02/15/2007 it doesn't work......(the error occurs)
    but when I tried inputing into
    :refdt1 = 02/01/2000
    :refdt2 = 02/15/2007 it works......
    the code is written below....
    function CF_2Formula return Char is
    begin
    return('For the Month '||to_char(:refdt1,'DD FmMonth, YYYY')||' to '||to_char(:refdt2,'DD FmMonth, YYYY'))
    end;
    please reply asap! thanks!
    Message was edited by:
    Bernabe, David B.

  • I have a infopath form and i want to publish this form using powershell script(No central admin usage) and i am using Infopath 2010.

    How to publish infopath form using powershell script in infopath 2010?
    Is any approach for such solution.

    Hi,
    Try below command:
    Uninstall the existing solution (based on the from file name):
    Uninstall-SPInfoPathFormTemplate -Identity Exampleform.xsn
    Install the new solution (based on the from file name):
    Install-SPInfoPathFormTemplate -Path C:\Form.xsn
    Disable feature on site collection level
    Disable-SPInfoPathFormTemplate -Identity "Form.xsn" -Site http://SPSite
    Enable feature on site collection level
    Enable-SPInfoPathFormTemplate -Identity "Form.xsn" -Site "http://SPSite"
    See this blogs for your ref:
    http://rgielen.blogspot.in/2010/11/deploy-infopath-2010-forms-with.html
    http://mysharepointwork.blogspot.in/2010/09/deploy-infopath-forms-with-powershell.html
    Hope it could help
    Hemendra: "Yesterday is just a memory,Tomorrow we may never see"
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
    you see a reply being an answer to the question of the thread, click "Mark As Answer

  • Can i help u? i had bought camfrog pro app by itunes...i see that app is upgrade now. but i can not upgrade that app...i can see this message "can not open by This id" i don't know why can not upgrade camfrog pro by my korea id? plz answer me

    can i help u? i had bought camfrog pro app by itunes...i see that app is upgrade now. but i can not upgrade that app...i can see this message "can not open by This id" i don't know why can not upgrade camfrog pro by my korea id? plz answer me

    To Update the App you have to Use the Same Apple ID it was Purchased with...

  • I tried to text a photo from i phone 5 to a contact in i messaging.  When the contact came up, a conversation string that had been deleted also came up...I've not see this before.  Where might this conversation string be stored?  Thank you

    I tried to text a photo from i phone 5 to a contact in i messaging.  When the contact came up, a conversation string that had been deleted also came up...I've not see this before.  Where might this conversation string be stored?  Thank you

    I tried to text a photo from i phone 5 to a contact in i messaging.  When the contact came up, a conversation string that had been deleted also came up...I've not see this before.  Where might this conversation string be stored?  Thank you

  • Plz corrct this alv code

    hi all,
    plz correct this revert back whan i executing every time it will show internal table itab is no long enough.
    plz rectify the errirs and send back it.
    ABLES:     zfm_kfz.
    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,
    END OF t_ekko.
    *DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
         wa_ekko TYPE t_ekko.
    DATA : BEGIN OF ITAB OCCURS 0,
           KFZNR LIKE ZFM_KFZ-KFZNR,
           GERAET LIKE ZFM_KFZ-KFZNR,
           KOSTENTRAEGER(10) TYPE C,
           BEZEICHNUNG(10) TYPE C,
           TUVDATUMMMYYYY(6) TYPE C,
           ASUDATUMMMYYYY(6) TYPE C,
           KMSTAND(6) TYPE C,
           HISTO(1) TYPE C,
           REIFEN(1) TYPE C,
           USERNAME(12) TYPE C,
           END OF ITAB.
    DATA: BEGIN OF ITAB1 OCCURS 0.
            INCLUDE STRUCTURE ITAB.
    DATA: END OF ITAB1.
    DATA: BEGIN OF ITAB_FIELDCAT OCCURS 0.
            INCLUDE STRUCTURE ITAB.
    DATA: END OF ITAB_FIELDCAT.
    DATA: T_KFZ LIKE TABLE OF ZFM_KFZ.
    *ALV data declarations
    data: fieldcatalog type slis_t_fieldcat_alv with header line,
          gd_tab_group type slis_t_sp_group_alv,
          gd_layout    type slis_layout_alv,
          gd_repid     like sy-repid,
          gt_events     type slis_t_event,
          gd_prntparams type slis_print_alv.
    *Start-of-selection.
    START-OF-SELECTION.
    perform data_retrieval.
    perform build_fieldcatalog.
    perform build_layout.
    perform build_events.
    perform build_print_params.
    perform display_alv_report.
    *&      Form  BUILD_FIELDCATALOG
          Build Fieldcatalog for ALV Report
    form build_fieldcatalog.
    There are a number of ways to create a fieldcat.
    For the purpose of this example i will build the fieldcatalog manualy
    by populating the internal table fields individually and then
    appending the rows. This method can be the most time consuming but can
    also allow you  more control of the final product.
    Beware though, you need to ensure that all fields required are
    populated. When using some of functionality available via ALV, such as
    total. You may need to provide more information than if you were
    simply displaying the result
                  I.e. Field type may be required in-order for
                       the 'TOTAL' function to work.
      fieldcatalog-fieldname   = 'kfznr'.
      fieldcatalog-seltext_m   = 'kfznr'.
      fieldcatalog-col_pos     = 0.
      fieldcatalog-outputlen   = 11.
      fieldcatalog-emphasize   = 'X'.
      fieldcatalog-key         = 'X'.
    fieldcatalog-do_sum      = 'X'.
    fieldcatalog-no_zero     = 'X'.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'geraet'.
      fieldcatalog-seltext_m   = 'geraet'.
      fieldcatalog-col_pos     = 1.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'kostentraeger'.
      fieldcatalog-seltext_m   = 'kostentraeger'.
      fieldcatalog-col_pos     = 2.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'bezeichnung'.
      fieldcatalog-seltext_m   = 'bezeichnung'.
      fieldcatalog-col_pos     = 3.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'tuvdatummmyyyy'.
      fieldcatalog-seltext_m   = 'tuvdatummmyyyy'.
      fieldcatalog-col_pos     = 4.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'asudatummmyyyy'.
      fieldcatalog-seltext_m   = 'asudatummmyyyy'.
      fieldcatalog-col_pos     = 5.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'kmstand'.
      fieldcatalog-seltext_m   = 'kmstand'.
      fieldcatalog-col_pos     = 6.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'histo'.
      fieldcatalog-seltext_m   = 'histo'.
      fieldcatalog-col_pos     = 7.
      fieldcatalog-outputlen   = 1.
    fieldcatalog-datatype     = 'CURR'.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'reifen'.
      fieldcatalog-seltext_m   = 'reifen'.
      fieldcatalog-col_pos     = 8.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'username'.
      fieldcatalog-seltext_m   = 'username'.
      fieldcatalog-col_pos     = 9.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
    endform.                    " BUILD_FIELDCATALOG
    *&      Form  BUILD_LAYOUT
          Build layout for ALV grid report
    form build_layout.
      gd_layout-no_input          = 'X'.
      gd_layout-colwidth_optimize = 'X'.
      gd_layout-totals_text       = 'Totals'(201).
    gd_layout-totals_only        = 'X'.
    gd_layout-f2code            = 'DISP'.  "Sets fcode for when double
                                            "click(press f2)
    gd_layout-zebra             = 'X'.
    gd_layout-group_change_edit = 'X'.
    gd_layout-header_text       = 'helllllo'.
    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'
           exporting
                i_callback_program      = gd_repid
                i_callback_top_of_page   = 'TOP-OF-PAGE'  "see FORM
                i_callback_user_command = 'USER_COMMAND'
               i_grid_title           = outtext
                is_layout               = gd_layout
                it_fieldcat             = fieldcatalog[]
               it_special_groups       = gd_tabgroup
                it_events               = gt_events
                is_print                = gd_prntparams
                i_save                  = 'X'
               is_variant              = z_template
           tables
                t_outtab                = itab1
           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 * from zfm_kfz
      into table itab where kfznr = itab-kfznr.
    endform.                    " DATA_RETRIEVAL
    Form  TOP-OF-PAGE                                                 *
    ALV Report Header                                                 *
    Form top-of-page.
    *ALV Header declarations
    data: t_header type slis_t_listheader,
          wa_header type slis_listheader,
          t_line like wa_header-info,
          ld_lines type i,
          ld_linesc(10) type c.
    Title
      wa_header-typ  = 'H'.
      wa_header-info = 'EKKO Table Report'.
      append wa_header to t_header.
      clear wa_header.
    Date
      wa_header-typ  = 'S'.
      wa_header-key = 'Date: '.
      CONCATENATE  sy-datum+6(2) '.'
                   sy-datum+4(2) '.'
                   sy-datum(4) INTO wa_header-info.   "todays date
      append wa_header to t_header.
      clear: wa_header.
    Total No. of Records Selected
      describe table itab lines ld_lines.                 
      ld_linesc = ld_lines.
      concatenate 'Total No. of Records Selected: ' ld_linesc
                        into t_line separated by space.
      wa_header-typ  = 'A'.
      wa_header-info = t_line.
      append wa_header to t_header.
      clear: wa_header, t_line.
      call function 'REUSE_ALV_COMMENTARY_WRITE'
           exporting
                it_list_commentary = t_header.
               i_logo             = 'Z_LOGO'.
    endform.
          FORM USER_COMMAND                                          *
          --> R_UCOMM                                                *
          --> RS_SELFIELD                                            *
    FORM user_command USING r_ucomm LIKE sy-ucomm
                      rs_selfield TYPE slis_selfield.
    Check function code
      CASE r_ucomm.
        WHEN '&IC1'.
      Check field clicked on within ALVgrid report
        IF rs_selfield-fieldname = 'EBELN'.
        Read data table, using index of row user clicked on
          READ TABLE it_ekko INTO wa_ekko INDEX rs_selfield-tabindex.
        Set parameter ID for transaction screen field
          SET PARAMETER ID 'BES' FIELD wa_ekko-ebeln.
        Sxecute transaction ME23N, and skip initial data entry screen
          CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
        ENDIF.
      ENDCASE.
    ENDFORM.
    *&      Form  BUILD_EVENTS
          Build events table
    form build_events.
      data: ls_event type slis_alv_event.
      call function 'REUSE_ALV_EVENTS_GET'
           exporting
                i_list_type = 0
           importing
                et_events   = gt_events[].
      read table gt_events with key name =  slis_ev_end_of_page
                               into ls_event.
      if sy-subrc = 0.
        move 'END_OF_PAGE' to ls_event-form.
        append ls_event to gt_events.
      endif.
        read table gt_events with key name =  slis_ev_end_of_list
                               into ls_event.
      if sy-subrc = 0.
        move 'END_OF_LIST' to ls_event-form.
        append ls_event to gt_events.
      endif.
    endform.                    " BUILD_EVENTS
    *&      Form  BUILD_PRINT_PARAMS
          Setup print parameters
    form build_print_params.
      gd_prntparams-reserve_lines = '3'.   "Lines reserved for footer
      gd_prntparams-no_coverpage = 'X'.
    endform.                    " BUILD_PRINT_PARAMS
    *&      Form  END_OF_PAGE
    form END_OF_PAGE.
      data: listwidth type i,
            ld_pagepos(10) type c,
            ld_page(10)    type c.
      write: sy-uline(50).
      skip.
      write:/40 'Page:', sy-pagno .
    endform.
    *&      Form  END_OF_LIST
    form END_OF_LIST.
      data: listwidth type i,
            ld_pagepos(10) type c,
            ld_page(10)    type c.
      skip.
      write:/40 'Page:', sy-pagno .
    endform.

    Hi,
    Change this..
    DATA : BEGIN OF ITAB ,
    KFZNR LIKE ZFM_KFZ-KFZNR,
    GERAET LIKE ZFM_KFZ-KFZNR,
    KOSTENTRAEGER(10) TYPE C,
    BEZEICHNUNG(10) TYPE C,
    TUVDATUMMMYYYY(6) TYPE C,
    ASUDATUMMMYYYY(6) TYPE C,
    KMSTAND(6) TYPE C,
    HISTO(1) TYPE C,
    REIFEN(1) TYPE C,
    USERNAME(12) TYPE C,
    END OF ITAB.
    DATA: BEGIN OF ITAB1 OCCURS 0.
    INCLUDE STRUCTURE ITAB.
    DATA: END OF ITAB1.
    DATA: ITAB_FIELDCAT type SLIS_T_FIELDCAT_ALV .
    and also use CAPS for field names.
    fieldcatalog-fieldname = '<b>KFZNR</b>'.
    fieldcatalog-seltext_m = 'kfznr'.
    fieldcatalog-col_pos = 0.
    fieldcatalog-outputlen = 11.
    fieldcatalog-emphasize = 'X'.
    fieldcatalog-key = 'X'.
    fieldcatalog-do_sum = 'X'.
    fieldcatalog-no_zero = 'X'.
    append fieldcatalog to fieldcatalog.
    clear fieldcatalog.
    Regards
    vijay

  • Oracle to Mysql character set conversion problem!!! PLZ IGNORE

    Hi Experts,
    I have created a database link from Oracle 10g to Mysql 5.
    I have installed Oracle Gateway 11g for this purpose.
    When i retreive the data from sql plus the text is displayed as question marks.
    Oracle 10g Database character set is WE8MSWIN1252
    Mysql character set --->latin1
    Character set of ODBC connector for mysql is  latin7
    Character set in the parameter file of HS folder is WE8MSWIN1252When i retrieve data from sql developer the text is fine(as i think it directly takes the character set of target) but
    when i login from sqlplus i get question marks!
    I have another post in Heterogeneous Connectivity forum
    Re: Oracle to Mysql character set conversion problem!!! PLZ HELP
    Kindly update your comments there,
    @@@@@@@@@@@@@@2
    Appreciate your help,
    regards
    Edited by: user10243788 on Apr 21, 2010 3:25 AM

    It is OK to post a globalization-related question in this forum in addition to the forum pertaining to the main technology. Not all experts follow all possible forums on OTN. Of course, you should cross-link the posts to let people merge the answers.
    Regarding the problem itself, make sure that SQL*Plus has the right NLS_LANG setting in the environment. On Windows, in the Command Prompt:
    C:\> set NLS_LANG=.WE8PC850
    C:\> sqlplus ...On Unix:
    $ setenv NLS_LANG .WE8ISO8859P1   (or NLS_LANG=.WE8ISO8859P1; export NLS_LANG)
    $ sqlplus ...-- Sergiusz

  • Where should I move the report for my form to be able to see it

    I need to run a report from my 9i form. I'm suing run report object.
    I'm repeatedly running into the error FRM-41219 cannot find report - Invalid ID
    where should i copy my rep file under 9ids for my form to be able to see it.
    Thanks

    Frank
    REP-0503 "You did not specify the name of a rep
    I created the report object in my object navigator, selected the report filename and in my when button pressed I have the following
    DECLARE
         REPID REPORT_OBJECT;
         V_REP VARCHAR2(100);
         REP_STATUS VARCHAR2(20);
    BEGIN
         REPID := FIND_REPORT_OBJECT('REPORT125');
    V_REP := RUN_REPORT_OBJECT(REPID);
    END;
    This gives me the following error
    REP-0503 "You did not specify the name of a report".
    Now I change the execution mode to runtime, and communication mode to asynchronous and I dont get the error, but the report does not come up either.
    Please Help

  • I have an iMac for work and I am leaving the company. How do I clear the computer so that my soon to be former company is unable to see my personal information Ie. - internet, contacts, etc...

    I have an iMac for work and I am leaving the company. How do I clear the computer so that my soon to be former company is unable to see my personal information Ie. - internet, contacts, etc...

    Follow these instructions step by step to prepare a Mac for sale:
    Step One - Back up your data:
           A. If you have any Virtual PCs shut them down. They cannot be in their "fast saved" state. They must be shut down from inside Windows.
           B. Clone to an external drive using using Carbon Copy Cloner.
              1. Open Carbon Copy Cloner.
              2. Select the Source volume from the Select a source drop down menu on the left side.
              3. Select the Destination volume from the Select a destination drop down menu on the right
                  side.
              4. Click on the Clone button. If you are prompted about creating a clone of the Recovery HD be
                  sure to opt for that.
                   Destination means a freshly erased external backup drive. Source means the internal
                   startup drive.
    Step Two - Prepare the machine for the new buyer:
              1. De-authorize the computer in iTunes! De-authorize both iTunes and Audible accounts.
              2, Remove any Open Firmware passwords or Firmware passwords.
              3. Turn the brightness full up and volume nearly so.
              4. Turn off File Vault, if enabled.
              5. Disable iCloud, if enabled: See.What to do with iCloud before selling your computer
    Step Three - Install a fresh OS:
         A. Snow Leopard and earlier versions of OS X
              1. Insert the original OS X install CD/DVD that came with your computer.
              2. Restart the computer while holding down the C key to boot from the CD/DVD.
              3. Select Disk Utility from the Utilities menu; repartition and reformat the internal hard drive.
                  Optionally, click on the Security button and set the Zero Data option to one-pass.
              4. Install OS X.
              5. Upon completion DO NOT restart the computer.
              6. Shutdown the computer.
         B. Lion and Mountain Lion (if pre-installed on the computer at purchase*)
             Note: You will need an active Internet connection. I suggest using Ethernet if possible because
                       it is three times faster than wireless.
              1. Restart the computer while holding down the COMMAND and R keys until the Mac OS X
                  Utilities window appears.
              2. Select Disk Utility from the Mac OS X Utilities window and click on the Continue button.
              3. After DU loads select your startup volume (usually Macintosh HD) from the left side list. Click
                  on the Erase tab in the DU main window.
              4. Set the format type to Mac OS Extended (Journaled.) Optionally, click on the Security button
                  and set the Zero Data option to one-pass.
              5. Click on the Erase button and wait until the process has completed.
              6. Quit DU and return to the Mac OS X Utilities window.
              7. Select Reinstall Lion/Mountain Lion and click on the Install button.
              8. Upon completion shutdown the computer.
    *If your computer came with Lion or Mountain Lion pre-installed then you are entitled to transfer your license once. If you purchased Lion or Mountain Lion from the App Store then you cannot transfer your license to another party. In the case of the latter you should install the original version of OS X that came with your computer. You need to repartition the hard drive as well as reformat it; this will assure that the Recovery HD partition is removed. See Step Three above. You may verify these requirements by reviewing your OS X Software License.

  • Update a system form with XML: empty screen when this is a target document.

    Hi,
    It is possible to update a system form with an xml file.
    In the UI_Application.LoadBatchActions(xmlDoc). In the xmldocuemnt I update a system form by adding controls on it. This all works fine, except one (big) problem.
    Assume that I Alter the 'Good Receipt PO'.
    This document can be the target document of a Purchase order document. When you open a PO and click the icon on the toolbar for going to the target document, you see the target document filled in, in OK (view) mode.
    When you alter the 'Goods Receipt PO' form with XML you get an empty goods receipt form, in Add mode.
    Is this a known problem, how can I solve it?
    Thanks in advance
    Eddy

    Hi Florian,
    The XML looks like:
    <?xml version="1.0" encoding="UTF-16"?>
    <Application>
       <forms>
          <action type="update">
             <form AutoManaged="1" BorderStyle="0" FormType="143" ObjectType="20" SupportedModes="15" appformnumber="143" client_height="424" client_width="570" color="0" default_button="1" height="458" left="207" mode="3" pane="1" title="Goederenontvangst (bestelling)" top="23" type="0" uid="F_233" visible="1" width="578">
                <items>
                   <action type="add">
                      <item AffectsFormMode="1" backcolor="-1" description="" disp_desc="0" enabled="1" font_size="0" forecolor="-1" from_pane="0" height="19" left="434" linkto="" right_just="0" supp_zeros="0" tab_order="830" text_style="0" to_pane="0" top="398" type="4" uid="100001" visible="1" width="85">
                         <AutoManagedAttribute>
                            <Attribute description="editable" id="2" modeAdd="1"/>
                         </AutoManagedAttribute>
                         <specific caption="Container"/>
                      </item>
                   </action>
                   <action type="update">
                      <item AffectsFormMode="1" backcolor="-1" description="" disp_desc="0" enabled="1" font_size="0" forecolor="-1" from_pane="0" height="19" left="315" linkto="2" right_just="0" supp_zeros="0" tab_order="1160" text_style="0" to_pane="0" top="398" type="4" uid="68" visible="1" width="114">
                         <AutoManagedAttribute>
                            <Attribute description="editable" id="2" modeAdd="1"/>
                         </AutoManagedAttribute>
                         <specific caption="Voorfactuur"/>
                      </item>
                   </action>
                </items>
             </form>
          </action>
       </forms>
    </Application>
    Thank you very much for trying this.
    Eddy

  • Plz send this answers

    1) How to print the layout set?
    2) What is print program elements?
    3) How do call the smart forms?
    4) What steps we have to follow when we are writting test cases?
    5) Why we need to transfer the data from out bound to inbound system?
    plz send this answers immediatly
    Thank you
    Rajesh.M

    hi..
       Jus chk out these questions:
    1. What are the basic concepts for recording time data?
    2. What steps are required to set up work schedules?
    3. Can you define your own public holidays?
    4. How do you define which public holiday calendar is valid for an employee?
    5. Which characteristics does a public holiday class blank have?
    6. Is there an employee subgroup grouping for daily work schedules?
    7. What is a variant of a daily work schedule?
    8. Is there an employee subgroup grouping for time quotas?
    9. What ways are there to define breaks within a break schedule?
    10. Which characteristics does a daily work schedule with daily work schedule class 1 have?
    11. Which elements make up a period work schedule?
    12. Which characteristic does a day with day type 1 have?
    13. Which ways are there of representing part-time work in the SAP R/3 system?
    14. Which ways are there of representing substitutions in the SAP R/3 system?
    15. What is the difference between absences (Infotype 2001) and attendances (Infotype 2002)?
    16. What is an absence quota? Give examples.
    17. What is the difference between a validity interval and a deduction interval for time quotas?
    18. You need to deduct an absence from a quota. Which Customizing settings are required?
    19. Should a quota be assigned directly to an absence?
    20. What is the remuneration Infotype used for?
    21. What are counting rules used for?
    22. Can you set up default values to create absence quotas?
    23. Can you generate absence quotas?
    24. What is the schema TQTA used for?
    25. What ways are there of entering information for Controlling when recording time data in the Time Management Infotypes?
    Regards,
    TS

Maybe you are looking for

  • Controller is not working custom Region

    Hi , I am working on customization of OA pages ,IMCAccountOverviewEditPG, on Oracle customer online.The requirement is to add a new advance table region on at the bottom of this page. The application is on 11.5.10 2CU . So here is test that i tried C

  • Can I fit a firewire card to my F4T60EA laptop?

    Is it possible to fit a firewire card to the above laptop? If not how can I connect to a firewire camcorder

  • Invoking another command button while clicking on the other

    Hi All, I have an add form where I have 2 buttons, one is ADD and othe is SAVE. Each one of them will call different backing bean methods. When I Click on Add my save button should also be invoked. How can I do that?

  • Photoshop CC closes after loading

    I'm running Windows 7 Professional 64-bit. 8gb RAM, 250gb SSD drive. After I've installed Photoshop CC and start the app, it loads, displaying the splash screen and when the environment appears, it stays up for 1 or 2 seconds then closes. Both the 32

  • How to reinstall Dragon Assistant for my Yoga Pro 2

    I uninstalled Dragon Assistant from my Yoga Pro 2 due to some driver issue and now I want to reinstall it back.  Where can i find the installation program?  Anyone can help?  Thank you.