Please give me some code for file upload. I am working in websphere

Hi,
I have made the form with encript = multipart. with four text field to enter some information about the file. now i want to upload a file f1.txt in the folder project.com.dos.files. And also I want to make appear the file and the four information regarding that file in a another jsp page as grids.
Please help how to do that. I am using Websphere Studio Application Developer. Please help with some code

Check out the fileupload package in the apache commons project

Similar Messages

  • Hi guys please give me sample code for call transaction that handles error

    hi guys, please give me sample code for call transaction that handles error,
    please send me the sample code in which there should be all decleration part and everything, based on the sample code i will develop my code.
    please do help me as it is urgent.
    thanks and regards.
    prasadnn.

    Hi Prasad,
    Check this code.
    Source Code for BDC using Call Transaction
    *Code used to create BDC
    *& Report  ZBDC_EXAMPLE                                                *
    *& Example BDC program, which updates net price of item 00010 of a     *
    *& particular Purchase order(EBELN).                                   *
    REPORT  ZBDC_EXAMPLE  NO STANDARD PAGE HEADING
                          LINE-SIZE 132.
    Data declaration
    TABLES: ekko, ekpo.
    TYPES: BEGIN OF t_ekko,
        ebeln TYPE ekko-ebeln,
        waers TYPE ekko-waers,
        netpr TYPE ekpo-netpr,
        err_msg(73) TYPE c,
    END OF t_ekko.
    DATA: it_ekko  TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
          wa_ekko  TYPE t_ekko,
          it_error TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
          wa_error TYPE t_ekko,
          it_success TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
          wa_success TYPE t_ekko.
    DATA: w_textout            LIKE t100-text.
    DATA: gd_update TYPE i,
          gd_lines TYPE i.
    *Used to store BDC data
    DATA: BEGIN OF bdc_tab OCCURS 0.
            INCLUDE STRUCTURE bdcdata.
    DATA: END OF bdc_tab.
    *Used to stores error information from CALL TRANSACTION Function Module
    DATA: BEGIN OF messtab OCCURS 0.
            INCLUDE STRUCTURE bdcmsgcoll.
    DATA: END OF messtab.
    *Screen declaration
    SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME
                                        TITLE text-001. "Purchase order Num
    SELECT-OPTIONS: so_ebeln FOR ekko-ebeln OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK block1.
    SELECTION-SCREEN BEGIN OF BLOCK block2 WITH FRAME
                                        TITLE text-002. "New NETPR value
    PARAMETERS:  p_newpr(14)   TYPE c obligatory.  "LIKE ekpo-netpr.
    SELECTION-SCREEN END OF BLOCK block2.
    *START-OF-SELECTION
    START-OF-SELECTION.
    Retrieve data from Purchase order table(EKKO)
      SELECT ekkoebeln ekkowaers ekpo~netpr
        INTO TABLE it_ekko
        FROM ekko AS ekko INNER JOIN ekpo AS ekpo
          ON ekpoebeln EQ ekkoebeln
       WHERE ekko~ebeln IN so_ebeln AND
             ekpo~ebelp EQ '10'.
    *END-OF-SELECTION
    END-OF-SELECTION.
    Check data has been retrieved ready for processing
      DESCRIBE TABLE it_ekko LINES gd_lines.
      IF gd_lines LE 0.
      Display message if no data has been retrieved
        MESSAGE i003(zp) WITH 'No Records Found'(001).
        LEAVE TO SCREEN 0.
      ELSE.
      Update Customer master data (instalment text)
        LOOP AT it_ekko INTO wa_ekko.
          PERFORM bdc_update.
        ENDLOOP.
      Display message confirming number of records updated
        IF gd_update GT 1.
          MESSAGE i003(zp) WITH gd_update 'Records updated'(002).
        ELSE.
          MESSAGE i003(zp) WITH gd_update 'Record updated'(003).
        ENDIF.
    Display Success Report
      Check Success table
        DESCRIBE TABLE it_success LINES gd_lines.
        IF gd_lines GT 0.
        Display result report column headings
          PERFORM display_column_headings.
        Display result report
          PERFORM display_report.
        ENDIF.
    Display Error Report
      Check errors table
        DESCRIBE TABLE it_error LINES gd_lines.
      If errors exist then display errors report
        IF gd_lines GT 0.
        Display errors report
          PERFORM display_error_headings.
          PERFORM display_error_report.
        ENDIF.
      ENDIF.
    *&      Form  DISPLAY_COLUMN_HEADINGS
          Display column headings
    FORM display_column_headings.
      WRITE:2 ' Success Report '(014) COLOR COL_POSITIVE.
      SKIP.
      WRITE:2 'The following records updated successfully:'(013).
      WRITE:/ sy-uline(42).
      FORMAT COLOR COL_HEADING.
      WRITE:/      sy-vline,
              (10) 'Purchase Order'(004), sy-vline,
              (11) 'Old Netpr'(005), sy-vline,
              (11) 'New Netpr'(006), sy-vline.
      WRITE:/ sy-uline(42).
    ENDFORM.                    " DISPLAY_COLUMN_HEADINGS
    *&      Form  BDC_UPDATE
          Populate BDC table and call transaction ME22
    FORM bdc_update.
      PERFORM dynpro USING:
          'X'   'SAPMM06E'        '0105',
          ' '   'BDC_CURSOR'      'RM06E-BSTNR',
          ' '   'RM06E-BSTNR'     wa_ekko-ebeln,
          ' '   'BDC_OKCODE'      '/00',                      "OK code
          'X'   'SAPMM06E'        '0120',
          ' '   'BDC_CURSOR'      'EKPO-NETPR(01)',
          ' '   'EKPO-NETPR(01)'  p_newpr,
          ' '   'BDC_OKCODE'      '=BU'.                      "OK code
    Call transaction to update customer instalment text
      CALL TRANSACTION 'ME22' USING bdc_tab MODE 'N' UPDATE 'S'
             MESSAGES INTO messtab.
    Check if update was succesful
      IF sy-subrc EQ 0.
        ADD 1 TO gd_update.
        APPEND wa_ekko TO it_success.
      ELSE.
      Retrieve error messages displayed during BDC update
        LOOP AT messtab WHERE msgtyp = 'E'.
        Builds actual message based on info returned from Call transaction
          CALL FUNCTION 'MESSAGE_TEXT_BUILD'
               EXPORTING
                    msgid               = messtab-msgid
                    msgnr               = messtab-msgnr
                    msgv1               = messtab-msgv1
                    msgv2               = messtab-msgv2
                    msgv3               = messtab-msgv3
                    msgv4               = messtab-msgv4
               IMPORTING
                    message_text_output = w_textout.
        ENDLOOP.
      Build error table ready for output
        wa_error = wa_ekko.
        wa_error-err_msg = w_textout.
        APPEND wa_error TO it_error.
        CLEAR: wa_error.
      ENDIF.
    Clear bdc date table
      CLEAR: bdc_tab.
      REFRESH: bdc_tab.
    ENDFORM.                    " BDC_UPDATE
          FORM DYNPRO                                                   *
          stores values to bdc table                                    *
    -->  DYNBEGIN                                                      *
    -->  NAME                                                          *
    -->  VALUE                                                         *
    FORM dynpro USING    dynbegin name value.
      IF dynbegin = 'X'.
        CLEAR bdc_tab.
        MOVE:  name TO bdc_tab-program,
               value TO bdc_tab-dynpro,
               'X'  TO bdc_tab-dynbegin.
        APPEND bdc_tab.
      ELSE.
        CLEAR bdc_tab.
        MOVE:  name TO bdc_tab-fnam,
               value TO bdc_tab-fval.
        APPEND bdc_tab.
      ENDIF.
    ENDFORM.                               " DYNPRO
    *&      Form  DISPLAY_REPORT
          Display Report
    FORM display_report.
      FORMAT COLOR COL_NORMAL.
    Loop at data table
      LOOP AT it_success INTO wa_success.
        WRITE:/      sy-vline,
                (10) wa_success-ebeln, sy-vline,
                (11) wa_success-netpr CURRENCY wa_success-waers, sy-vline,
                (11) p_newpr, sy-vline.
        CLEAR: wa_success.
      ENDLOOP.
      WRITE:/ sy-uline(42).
      REFRESH: it_success.
      FORMAT COLOR COL_BACKGROUND.
    ENDFORM.                    " DISPLAY_REPORT
    *&      Form  DISPLAY_ERROR_REPORT
          Display error report data
    FORM display_error_report.
      LOOP AT it_error INTO wa_error.
        WRITE:/      sy-vline,
                (10) wa_error-ebeln, sy-vline,
                (11) wa_error-netpr CURRENCY wa_error-waers, sy-vline,
                (73) wa_error-err_msg, sy-vline.
      ENDLOOP.
      WRITE:/ sy-uline(104).
      REFRESH: it_error.
    ENDFORM.                    " DISPLAY_ERROR_REPORT
    *&      Form  DISPLAY_ERROR_HEADINGS
          Display error report headings
    FORM display_error_headings.
      SKIP.
      WRITE:2 ' Error Report '(007) COLOR COL_NEGATIVE.
      SKIP.
      WRITE:2 'The following records failed during update:'(008).
      WRITE:/ sy-uline(104).
      FORMAT COLOR COL_HEADING.
      WRITE:/      sy-vline,
              (10) 'Purchase Order'(009), sy-vline,
              (11) 'Netpr'(010), sy-vline,
              (73) 'Error Message'(012), sy-vline.
      WRITE:/ sy-uline(104).
      FORMAT COLOR COL_NORMAL.
    ENDFORM.                    " DISPLAY_ERROR_HEADINGS
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards

  • Please give me some links for pl sql exercises

    Please show me some links or ebooks for plsql exercises

    985011 wrote:
    Please show me some links or ebooks for plsql exercisesThe best place is this forum itself..
    Go through the questions.. Try to find the answer yourself.. And the compare it with the expert replies..

  • Please give the complete code for the below problems with action page and Form.

    Create an array, which is holding ‘n’ strings (words), , and implement the functionality to search given string  is present in the array. Give an option to the user to enter the word  to be searched
    Create a static array of ‘n’ numbers , and implement the functionality to search given number is present in the array. Give an option to the user to enter the number to be searched
    Implement the functionality to search given word is present with in the predefined sentence. Give an option to the user to enter the word  to be searched

    As haxtbh has pointed out, these forums are for HELPING you fix code you've already tried and are having issues with.  We aren't here to write your code, whether for a project or homework, from scratch.  We can only help you if you help us by making an attempt.
    V/r,
    ^_^

  • Code for  File upload / down load from WD java application

    Hi experts ,
    I am creating a WD java application , I want to add Picture upload and piucture download ( from / To ) KM . I also want to specify the path ( where it has to be uploaded in KM ) and picture name . can i get any code so that i can use it in WD application .
    Regards
    Abhay

    First you need to make sure your web dynpro application has permissions to access the file in the first place, but you could use the standard java.io.File class:
    File file = new File("/path/file.sh");
    file.setExecutable(false);
    file.setReadable(false);
    file.setWritable(false);

  • What is the Extract statement? Please give me some sample code.?

    What is the Extract statement? Please give me some sample code.?

    Hello ,
    Once you have declared the possible record types as field groups and defined their structure, you can fill the extract dataset using the following statements: EXTRACT . When the first EXTRACT statement occurs in a program, the system creates the extract dataset and adds the first extract record to it. In each subsequent EXTRACT statement, the new extract record is added to the dataset EXTRACT HEADER. When you extract the data, the record is filled with the current values of the corresponding fields. As soon as the system has processed the first EXTRACT statement for a field group , the structure of the corresponding extract record in the extract dataset is fixed. You can no longer insert new fields into the field groups and HEADER. If you try to modify one of the field groups afterwards and use it in another EXTRACT statement, a runtime error occurs. By processing EXTRACT statements several times using different field groups, you fill the extract dataset with records of different length and structure. Since you can modify field groups dynamically up to their first usage in an EXTRACT statement, extract datasets provide the advantage that you need not determine the structure at the beginning of the program.
    Sample program:
    REPORT  ZSPFLI  LINE-SIZE 132 LINE-COUNT 65(3)
                                                 NO STANDARD PAGE HEADING.
    TABLES:SPFLI,SCARR, SFLIGHT, SBOOK.
    SELECT-OPTIONS: MYCARRID FOR SPFLI-CARRID.
    FIELD-GROUPS: HEADER, SPFLI_FG, SFLIGHT_FG, SBOOK_FG.
    INSERT:
            SPFLI-CARRID
            SPFLI-CONNID
            SFLIGHT-FLDATE
            SBOOK-BOOKID
           INTO HEADER,
            SPFLI-CARRID
            SPFLI-CONNID
            SPFLI-CITYFROM
            SPFLI-AIRPFROM
            SPFLI-CITYTO
            SPFLI-AIRPTO
            SPFLI-DEPTIME
            SCARR-CARRNAME
          INTO SPFLI_FG,
            SFLIGHT-FLDATE
            SFLIGHT-SEATSMAX
            SFLIGHT-SEATSOCC
            SFLIGHT-PRICE
          INTO SFLIGHT_FG,
            SBOOK-BOOKID
            SBOOK-CUSTOMID
            SBOOK-CUSTTYPE
            SBOOK-SMOKER
           INTO SBOOK_FG.
    SELECT * FROM SPFLI WHERE CARRID IN MYCARRID.
      SELECT SINGLE * FROM SCARR WHERE CARRID = SPFLI-CARRID.
      EXTRACT SPFLI_FG.
      SELECT * FROM SFLIGHT
       WHERE CARRID = SPFLI-CARRID AND  CONNID = SPFLI-CONNID.
        EXTRACT SFLIGHT_FG.
        SELECT * FROM SBOOK
               WHERE CARRID = SFLIGHT-CARRID AND
               CONNID = SFLIGHT-CONNID AND FLDATE = SFLIGHT-FLDATE.
          EXTRACT SBOOK_FG.
          CLEAR SBOOK.
        ENDSELECT.
        CLEAR SFLIGHT.
      ENDSELECT.
      CLEAR SPFLI.
    ENDSELECT.
    SORT.
    LOOP.
      AT SPFLI_FG.
        FORMAT COLOR COL_HEADING.
        WRITE: / SCARR-CARRNAME,
                 SPFLI-CONNID, SPFLI-CITYFROM,
                 SPFLI-AIRPFROM, SPFLI-CITYTO, SPFLI-AIRPTO, SPFLI-DEPTIME.
        FORMAT COLOR OFF.
      ENDAT.
      AT SFLIGHT_FG.
        WRITE: /15 SFLIGHT-FLDATE, SFLIGHT-PRICE, SFLIGHT-SEATSMAX,
                   SFLIGHT-SEATSOCC.
      ENDAT.
      AT SBOOK_FG.
        WRITE: /30 SBOOK-BOOKID, SBOOK-CUSTOMID,
                     SBOOK-CUSTTYPE, SBOOK-SMOKER.
      ENDAT.
    ENDLOOP.

  • Please give me ios 6 for iphone 4 bcz ios 7 very slowly and have some wrong for iphone 4

    please give me ios 6 for iphone 4 bcz ios 7 very slowly and have some wrong for iphone 4

    We are users.  Not Apple.  If you want YOUR problem solved, YOU need to solve it. 
    Restore your phone as a NEW device.

  • Please give me some sample program releated BOM

    please give me some sample program releated BOM

    Hi,
    *& Module : PP                                                         |
    *& Application : The program loads the Bill of Material                |
    *&                                                                     |
    *| Modification Log                                                    |
    *| -
                                                        |
    *| Programmer                                                          |
    *|                                                       Change        |
    *| -
    |
    REPORT zpp0120 NO STANDARD PAGE HEADING
                                      MESSAGE-ID z0
                                      LINE-SIZE  132
                                      LINE-COUNT 65(2).
                         Internal Tables                                 *
    *Internal table for the BOM file.
    DATA: BEGIN OF i_bom OCCURS 0,
          matnr(18),
          werks(4),
          stlan(1),
          stlal(2),
          stktx(40),
          bmeng(16),
          menge(16),
          posnr(4),
          postp(1),
          meins(3),
          datuv(10),
          fmeng(1),
          idnrk(18),
          potx1(40),
          ausch(7),
          END OF i_bom.
    Extracting Document and Doc type for POSTP = D.
    DATA : BEGIN OF i_stpo OCCURS 1,
           doknr(25),
           dokar(3),
           posnr(4),
           stlnr LIKE mast-stlnr,
           END   OF i_stpo.
    Local work area
    DATA:  g_my_rec_in   LIKE i_bom.
    Declare internal table for Call Transaction and BDC Session
    DATA: i_bdc_table LIKE bdcdata OCCURS 0 WITH HEADER LINE.
                         Global Variables                                *
    DATA: g_counter(2) TYPE n,
          g_field_name(18) TYPE c,
          zc_yes  TYPE syftype VALUE 'X'.
                         Selection Screen                                *
    SELECTION-SCREEN BEGIN OF BLOCK a WITH FRAME TITLE text-001.
    PARAMETERS: p_fname1 TYPE localfile .
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN BEGIN OF BLOCK b WITH FRAME TITLE text-002.
    PARAMETERS: p_rloc1 AS CHECKBOX  DEFAULT 'X'.
    SELECTION-SCREEN BEGIN OF BLOCK c WITH FRAME TITLE text-005.
    PARAMETERS p_group(12) OBLIGATORY DEFAULT 'ZBOM'.
    SELECTION-SCREEN END OF BLOCK c.
    SELECTION-SCREEN END OF BLOCK b.
    SELECTION-SCREEN END OF BLOCK a.
    **WRITE the report header
    TOP-OF-PAGE.
      INCLUDE zheading.
                         Start of selection                              *
    START-OF-SELECTION.
    Load Input file
      PERFORM f_load_input_file.
    Create BDC records.
      PERFORM create_bdc_records .
    *&      Form  Create_BDC_records
          text:* perform the BDC for the records in the internal table
    -->  p1        text
    <--  p2        text
    FORM create_bdc_records .
      DATA: v_stlnr LIKE mast-stlnr.
      DATA: v_postp(1) VALUE 'D'.
      IF NOT i_bom[] IS INITIAL.
    Open BDC session
        PERFORM open_bdc_session.
        SORT i_bom BY matnr werks posnr.
        SELECT  SINGLE stlnr  INTO v_stlnr
        FROM mast
        WHERE    matnr = i_bom-matnr
         AND     werks = i_bom-werks.
        SELECT doknr dokar posnr stlnr
                    INTO TABLE i_stpo
                    FROM stpo
                    FOR ALL ENTRIES IN i_bom
                    WHERE postp = v_postp
                    AND   posnr = i_bom-posnr
                    AND   stlnr = v_stlnr.
        SORT i_stpo BY posnr stlnr.
        LOOP AT i_bom.
          g_my_rec_in = i_bom.
          READ TABLE i_stpo WITH KEY posnr = i_bom-posnr
                                     stlnr = v_stlnr
                                     BINARY SEARCH.
          AT NEW matnr.
            CLEAR i_bdc_table[].
            PERFORM insert_screen_header.
          ENDAT.
    Setting up counter for 20 line items
          IF g_counter = 20.
            g_counter = 1.
          ENDIF.
          PERFORM bdc_field  USING 'BDC_OKCODE'
                                        '/00'.
    *next screen
          PERFORM bdc_dynpro USING 'SAPLCSDI' '0140'.
          PERFORM bdc_field  USING 'BDC_CURSOR' 'RC29P-FMENG(01)'.
          PERFORM bdc_field  USING 'BDC_OKCODE' '/00'.
          CONCATENATE 'RC29P-POSNR('  g_counter  ')' INTO g_field_name.
          PERFORM bdc_field USING g_field_name i_bom-posnr.
          CONCATENATE 'RC29P-IDNRK('  g_counter  ')' INTO g_field_name.
          PERFORM bdc_field USING g_field_name i_bom-idnrk.
          CONCATENATE 'RC29P-MENGE('  g_counter  ')' INTO g_field_name.
          PERFORM bdc_field USING g_field_name i_bom-menge.
          CONCATENATE 'RC29P-MEINS('  g_counter  ')' INTO g_field_name.
          PERFORM bdc_field USING g_field_name i_bom-meins.
          CONCATENATE 'RC29P-POSTP('  g_counter  ')' INTO g_field_name.
          PERFORM bdc_field USING g_field_name i_bom-postp.
          CONCATENATE 'RC29P-FMENG('  g_counter  ')' INTO g_field_name.
          PERFORM bdc_field USING g_field_name i_bom-fmeng.
    *next screen
          PERFORM bdc_dynpro USING 'SAPLCSDI' '0130'.
          PERFORM bdc_field  USING 'BDC_OKCODE' '/00'.
    Check the Item category to direct the screen flow accordingly.
          CASE i_bom-postp.
            WHEN 'B'.
              PERFORM item_text_insert.
            WHEN 'Z'.
              PERFORM item_text_insert.
            WHEN 'T'.
              PERFORM item_text_insert.
            WHEN 'N'.
              PERFORM bdc_field   USING 'BDC_CURSOR' 'RC29P-AUSCH'.
              PERFORM bdc_field   USING 'RC29P-AUSCH' i_bom-ausch.
    next screen
              PERFORM item_text_insert.
    *next screen
              PERFORM bdc_dynpro  USING 'SAPLCSDI' '0133'.
              PERFORM bdc_field   USING 'BDC_OKCODE' '/00'.
              PERFORM bdc_field   USING 'RC29P-EKORG' ' '.
            WHEN 'D'.
              PERFORM bdc_field   USING 'RC29P-DOKNR' i_stpo-doknr.
              PERFORM bdc_field   USING 'RC29P-DOKAR' i_stpo-dokar.
    next screen
              PERFORM item_text_insert.
    When POSTP = X, L.
            WHEN OTHERS.
              PERFORM bdc_field   USING 'BDC_CURSOR' 'RC29P-AUSCH'.
              PERFORM bdc_field   USING 'RC29P-AUSCH' i_bom-ausch.
    next screen
              PERFORM item_text_insert.
          ENDCASE.
          g_counter = g_counter + 1.
    next screen
          PERFORM bdc_dynpro      USING 'SAPLCSDI' '0140'.
          PERFORM bdc_field       USING 'BDC_CURSOR' 'RC29P-POSNR(01)'.
          PERFORM bdc_field       USING 'BDC_OKCODE' '=FCBU'.
          AT END OF matnr.
            PERFORM insert_bdc_new.
          ENDAT.
        ENDLOOP.
        CLEAR i_bom[].
        PERFORM close_bdc_session.
    Release the BDC sessions created
        PERFORM release_bdc.
      ENDIF.
    ENDFORM.                    " open_group
    *&      Form  bdc_dynpro_start
          Initialize the screen
         -->P_G_PROGRAM_1
         -->P_G_SCREEN
    FORM bdc_dynpro USING    p_g_program_1
                                    p_g_screen.
      CLEAR i_bdc_table.
      i_bdc_table-program  = p_g_program_1.
      i_bdc_table-dynpro   = p_g_screen.
      i_bdc_table-dynbegin = 'X'.
      APPEND i_bdc_table.
    ENDFORM.                    " bdc_dynpro_start
    *&      Form  bdc_field
           Insert field                                                  *
    FORM bdc_field USING f_name f_value.
      CLEAR i_bdc_table.
      i_bdc_table-fnam = f_name.
      i_bdc_table-fval = f_value.
      APPEND i_bdc_table.
    ENDFORM.                    "bdc_insert_field
    *&      Form  open_bdc_session
         Open the BDC session
    FORM open_bdc_session .
    Open BDC session and creat and update condition records
      CALL FUNCTION 'BDC_OPEN_GROUP'
        EXPORTING
          client                    = sy-mandt
          DEST                      = FILLER8
          group                     = p_group
          HOLDDATE                  = FILLER8
          keep                      = 'X'
          user                      = sy-uname
          RECORD                    = FILLER1
          PROG                      = SY-CPROG
        IMPORTING
          QID                       =
    EXCEPTIONS
       client_invalid            = 1
       destination_invalid       = 2
       group_invalid             = 3
       group_is_locked           = 4
       holddate_invalid          = 5
       internal_error            = 6
       queue_error               = 7
       running                   = 8
       system_lock_error         = 9
       user_invalid              = 10
       OTHERS                    = 11
      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.                    " create_bdc_session
    *&      Form  insert_screen_header
          Insert the Header data into the screens
    FORM insert_screen_header .
      g_counter = 1.
      PERFORM bdc_dynpro USING 'SAPLCSDI' '0100'.
      PERFORM bdc_field  USING 'BDC_CURSOR' 'RC29N-STLAL'.
      PERFORM bdc_field  USING 'BDC_OKCODE' '/00'.
      PERFORM bdc_field  USING 'RC29N-MATNR' g_my_rec_in-matnr.
      PERFORM bdc_field  USING 'RC29N-WERKS' g_my_rec_in-werks.
      PERFORM bdc_field  USING 'RC29N-STLAN' g_my_rec_in-stlan.
      PERFORM bdc_field  USING 'RC29N-STLAL' g_my_rec_in-stlal.
      PERFORM bdc_field  USING 'RC29N-DATUV' g_my_rec_in-datuv.
    next screen
      PERFORM bdc_dynpro USING 'SAPLCSDI' '0110'.
      PERFORM bdc_field  USING 'BDC_CURSOR' 'RC29K-BMENG'.
      PERFORM bdc_field  USING 'BDC_OKCODE' '/00'.
      PERFORM bdc_field  USING 'RC29K-STKTX' g_my_rec_in-stktx.
      PERFORM bdc_field  USING 'RC29K-BMENG' g_my_rec_in-bmeng.
    *next screen
      PERFORM bdc_dynpro USING 'SAPLCSDI' '0111'.
      PERFORM bdc_field  USING 'BDC_CURSOR' 'RC29K-LABOR'.
    ENDFORM.                    " insert_screen_header
    *&      Form  insert_bdc
         Insert the BDC session
    FORM insert_bdc_new .
      CALL FUNCTION 'BDC_INSERT'
         EXPORTING
           tcode                  = 'CS01'
          POST_LOCAL             = NOVBLOCAL
          PRINTING               = NOPRINT
          SIMUBATCH              = ' '
          CTUPARAMS              = ' '
         TABLES
           dynprotab              = i_bdc_table
      EXCEPTIONS
        internal_error         = 1
        not_open               = 2
        queue_error            = 3
        tcode_invalid          = 4
        printing_invalid       = 5
        posting_invalid        = 6
        OTHERS                 = 7
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      CLEAR i_bdc_table[].
    ENDFORM.                    " insert_bdc
    *&      Form  close_bdc_session
          Close the BDC session
    FORM close_bdc_session .
      CALL FUNCTION 'BDC_CLOSE_GROUP'
           EXCEPTIONS
                not_open    = 1
                queue_error = 2
                OTHERS      = 3.
      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.                    " close_bdc_session
    *&      Form  f_load_input_file
         Load the file into the Internal table
    FORM f_load_input_file.
      IF p_rloc1 = zc_yes.
        CALL FUNCTION 'WS_UPLOAD'
             EXPORTING
                  filename                = p_fname1
                  filetype                = 'DAT'
             TABLES
                  data_tab                = i_bom
             EXCEPTIONS
                  conversion_error        = 1
                  file_open_error         = 2
                  file_read_error         = 3
                  invalid_type            = 4
                  no_batch                = 5
                  unknown_error           = 6
                  invalid_table_width     = 7
                  gui_refuse_filetransfer = 8
                  customer_error          = 9
                  OTHERS                  = 10.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          STOP.
        ENDIF.
      ENDIF.
    ENDFORM.                    " f_load_input_file
    *&      Form  release_bdc
         Release BDC session
    FORM release_bdc.
      SUBMIT rsbdcsub WITH mappe EQ p_group
                      WITH von EQ sy-datum
                      WITH bis EQ sy-datum
                      WITH fehler EQ '.'
                      EXPORTING LIST TO MEMORY
                      AND RETURN.
    ENDFORM.                    " release_bdc
    *&      Form  item_text_insert
          Repetitive code in the screen flow
    FORM item_text_insert.
      PERFORM bdc_dynpro USING 'SAPLCSDI' '0131'.
      PERFORM bdc_field  USING 'BDC_OKCODE' '/00'.
      PERFORM bdc_field  USING 'BDC_CURSOR' 'RC29P-POTX1'.
      PERFORM bdc_field  USING 'RC29P-POTX1' i_bom-potx1.
    ENDFORM.                    " item_text_insert

  • This is my Jsp code for image upload in database:

    This is my Jsp code for image upload in database:
    -----------Upload.jsp----------------
    <html>
    <head>
    </head>
    <body bgproperties="fixed" bgcolor="#CCFFFF">
    <form method="POST" action="UploadPicture.jsp" enctype="multiform/form-data">
    <%! int update=0; %>
    <%@ page import="java.util.*" %>
    <%@ page import="java.sql.*" %>
    <%@ page import="java.text.*" %>
    <%@ page import="java.sql.Date" %>
    <%@ page import="java.io.*"%>
    <%@ page language = "java" %>
    <%
    try
    String ct="3";
    String path;
    File image=new File(request.getParameter("upload"));
    path=request.getParameter("upload");
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:itPlusElectronics","","");
    PreparedStatement pstmt=con.prepareStatement("insert into graphics values(?,?,?)");
    pstmt.setString(2,path);
    pstmt.setString(3,ct);
    InputStream is=new FileInputStream(path);
    pstmt.setBinaryStream(1, is, (int)(image.length()));
    int s=pstmt.executeUpdate();
    if(s>0)
    out.println("Uploaded");
    else
    %>
    unsucessfull
    <%}
    is.close();
    pstmt.close();
    catch(Exception e)
    }%>
    </p>
    <p><br>
    <img src="UploadedPicture.jsp">image</img>
    <p></p>
    </form>
    </body>
    </html>
    My database name is itPlusElectronics and the table name is "graphics".
    I have seen as a result of the above code that the image is stored in database as "Long binary data". and database table is look like as follows-------
    picture path id
    Long binary data D:\AMRIT\1-1-Picture.jpg 3
    To retrive and display i use this JSP code as--
    ------------------------UploadedPicture.jsp------------------------------
    <html>
    <head>
    </head>
    <body bgproperties="fixed" bgcolor="#CCFFFF">
    <%! int update=0; %>
    <%@ page import="java.util.*" %>
    <%@ page import="java.sql.*" %>
    <%@ page import="java.text.*" %>
    <%@ page import="java.io.*"%>
    <%@ page language = "java" %>
    <%@page import="javax.servlet.ServletOutputStream"%>
    <%
    try
    String path;
    path=request.getParameter("upload1");
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:itPlusElectronics","","");
    PreparedStatement pst = con.prepareStatement("SELECT * FROM graphics WHERE id ='3'");
    // pst.setString(3, id);
    ResultSet rs = pst.executeQuery();
    path=rs.getString("path");
    if(rs.next()) {
    byte[] bytearray = new byte[4096];
    int size=0;
    InputStream sImage;
    sImage = rs.getBinaryStream(1);
    response.reset();
    response.setContentType("image/jpeg");
    response.addHeader("Content-Disposition","filename=path");
    while((size=sImage.read(bytearray))!= -1 )
    response.getOutputStream().write(bytearray,0,size) ;
    response.flushBuffer();
    sImage.close();
    rs.close();
    catch(Exception e)
    %>
    </body>
    </html>
    Now after browsing a jpg image file from client side and pressing submit button ;
    I am unable display the image in the Upload.jsp file.Though I use
    <img src="UploadedPicture.jsp">image</img> HTML code in Upload.jsp
    file .
    Now I am unable to find out the mistakes which is needed for displaying the picture in the Upload.jsp page..
    If any one can help with the proper jsp code to retrive and display the image ,please please help me !!!!!!!!!!!!!!!!!!!!!!!!!!

    dketcham wrote:
    cotton.m wrote:
    >
    2) I'm looking at how you called stuff, and you're trying to call the jsp file as an image? That jsp isn't the source of the image, just a page linking to an image. I think if you really want to do things that way you're going to need to just include that jsp within the jsp you're calling it from (or you can do it the easy way, and if you have the information to get the path of the image you want, you could simply call the image from the first jsp you posted)This is incorrect.
    There are two JSPs. The second when called will (if it worked) return the source of an image as stored in the database.even when called with <img src=xx.jsp>??
    Yes.
    If any of what I say next seems obvious or otherwise negative I apologize, just trying to explain and I don't know what you know vs what you don't.
    The link in the src is just a URL not a filetype. So just because it ends with JSP does not mean it has to return HTML. The content type is determined by the browser using the Content-Type header returned by the server in the HTTP response. In this case the header is set to be a jpeg so that's what the browser will attempt to interpret the content part of the response as.
    So in fact one is not limited to just HTML or images but whatever content type you would like to return (that the browser can understand anyway). This could be HTML or it could be an image of some type or it could be a PDF or it could be an Excel spreadsheet. All you have to do in the JSP is set the header appropriately and then send content that is actually in that format.
    This does not just apply to JSP by the way but all other web programming languages. You can do similar things to produce the same results in PHP, Perl, ASP etc.
    The only JSP/Servlet complication is whether or not doing this in a JSP is a "good" idea but I am not an expert enough at that to make a definitive statement. Mostly though JDBC in a JSP is a no-no.

  • ALBPM 6.0 : The maximum size for file uploads has been exceeded.

    Hi,
    I use AquaLogic BPM Entreprise server to deploy my Process. When I try to publish a process on my server I get the following error:
    An unexpected error ocurred.
    The error's technical description is:
    "javax.servlet.jsp.JspException: null"
    Possible causes are:
    The maximum size for file uploads has been exceeded.
    If you are trying to publish an exported project you should publish it using the remote project option.
    If you are trying to upload the participant's photo you should choose a smaller one.
    An internal error has ocurred, please contact support attaching this page's source code.
    Has someone resolve it?
    Thank's.

    Hi,
    Sure you've figured this out by now, but when you get the "Maximum size for file uploads" error during publish consider:
    1. if your export project file is over 10mb, use "Remote Project" (instead of "Exported Project") as the publication source. That way when you select the remote project, you will point to ".fpr" directory of the project you are trying to publish.
    Most times your project is not on a network drive that the server has access to. If this is the case, upload the .exp file to the machine where the Process Administrator is running, then expand it in any directory (just unzip the file). Then, from the Process Administrator, use the option to publish a Remote Project by entering the path to the .fpr directory you just created when unzipping the project.
    2. Check to see if you have cataloged any jars and marked them as non-versionable. Most of the times the project size is big just because of the external jar files. So as a best practice, when you do a project export select the option "include only-versionable jars", that will get reduce the project size considerably (usually to Kb's). Of course you have to manually copy the Jar files to your Ext folder.
    hth,
    Dan

  • HT3775 I'm using version 10.7.5 OSX. I can't play or use the normal AVI recently. Some problem with (codecs version incompatible with OSX) Please give me some help. I'm in Vietnam and to have a real place to have stuffs from Apple is ****-

    I'm using version 10.7.5 OSX. I can't play or use the normal AVI recently. Some problem with (codecs version incompatible with OSX) Please give me some help. I'm in Vietnam and to have a real place to have stuffs from Apple is ****…

    I would recommend that you download and install the excellent and Free "VLCPlayer for Mac", which reads many more types of files for video than Quicktime Player:
                 http://vlc-media-player.en.softonic.com/mac

  • Woudl you please give me some meterial about general HR operations?

    Hi experts  :
       would you please give me some meterial about general HR operations and configuraions
       Thank you very much.

    Transaction Code:-OH00
    Personnel Management Personnel AdministrationOrganizational Data Organizational Assignment Define employee attributes
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationOrganizational Data Organizational Assignment Define employee attributes
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationOrganizational Data Organizational Assignment Define employee attributes
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationOrganizational Data Organizational Assignment Create payroll area
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationOrganizational Data Organizational Assignment Create payroll area
    Transaction Code:-PE03
    Personnel Management Personnel AdministrationOrganizational Data Organizational Assignment Check Default Payroll Area
    Transaction Code:-PA03
    Personnel Management Personnel AdministrationOrganizational Data Organizational Assignment Create control record
    Transaction Code:-PA03
    Personnel Management Personnel AdministrationOrganizational Data Organizational Assignment Create control record
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataBasic PayDefine EE Sub Group Grourping for PCR and Collective Agreement Provision
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataBasic PayDefine Reason for Change
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataBasic PayCheck PayScale Type
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataBasic PayCheck PayScale Area
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataBasic PayCheck Assignment of PayScale Structure to Enterprise Structure
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataBasic PayDetermine Default for PayScale Data
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataBasic PaySetup Payroll Period for Collective Agreement Provision
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataBasic PayDefine PayScale Salary ranges
    Transaction Code:-OH11
    Personnel Management Personnel AdministrationPayroll DataBasic PayWage Types Create Wage Type
    Transaction Code:-OH11
    Personnel Management Personnel AdministrationPayroll DataBasic PayWage Types Create Wage Type
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataBasic PayWage Types Check Wage Type Group “Basic Pay”
    Personnel Management Personnel AdministrationPayroll DataBasic PayWage Types Check Wage Type CatalogCheck Wage Type Text
    Transaction Code:-OH13
    Personnel Management Personnel AdministrationPayroll DataBasic PayWage Types Check Wage Type CatalogCheck Entry Permissibility Per Infotype
    Transaction Code:-OH13
    Personnel Management Personnel AdministrationPayroll DataBasic PayWage Types Check Wage Type CatalogCheck Wage Type Characteristics
    Transaction Code:-OH13
    Personnel Management Personnel AdministrationPayroll DataBasic PayWage Types Check Wage Type CatalogCheck Wage Type Characteristics
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataBasic PayWage Types Employee Sub Group Grouping for Primary Wage
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataBasic PayWage Types Personnel Sub Area Grouping for Primary Wage Type
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataBasic PayWage Types Define Wage Type Permissibility for each PS and ESG
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataBasic PayWage Types Define Wage Type Permissibility for each PS and ESG
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataRecurring Payment and DeductionDefine Reason for Change
    Transaction Code:-OH11
    Personnel Management Personnel AdministrationPayroll DataRecurring Payment and DeductionWage TypesCreate Wage Type Catalog
    Transaction Code:-OH11
    Personnel Management Personnel AdministrationPayroll DataRecurring Payment and DeductionWage TypesCreate Wage Type Catalog
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataRecurring Payment and DeductionWage TypesCheck Wage Type Group “ Recurring Payments and Deduction”
    Transaction Code:-OH13
    Personnel Management Personnel AdministrationPayroll DataRecurring Payment and DeductionWage TypesCheck Wage Type CatalogCheck Wage Type text
    Transaction Code:-OH13
    Personnel Management Personnel AdministrationPayroll DataRecurring Payment and DeductionWage TypesCheck Wage Type CatalogCheck Entry Permissibility Per Infotype
    Transaction Code:-OH13
    Personnel Management Personnel AdministrationPayroll DataRecurring Payment and DeductionWage TypesCheck Wage Type CatalogCheck Wage Type Characteristics
    Transaction Code:-OH13
    Personnel Management Personnel AdministrationPayroll DataRecurring Payment and DeductionWage TypesCheck Wage Type CatalogCheck Wage Type Characteristics
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataRecurring Payment and DeductionWage TypesDefine Employee Sub Group Grouping for Primary Wage Type.
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataRecurring Payment and DeductionWage TypesDefine Personnel Area Grouping for Primary Wage Type
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataRecurring Payment and DeductionWage TypesDefine Wage Type Permissibility for each PS and ESG
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataRecurring Payment and DeductionWage TypesDefine Wage Type Permissibility for each PS and ESG
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationaPPayroll DataAdditional Payments Define Reasons for Changes
    Transaction Code:-OH11
    Personnel Management Personnel AdministrationaPPayroll DataAdditional Payments Wage TypesCreate Wage Type Catalog
    Transaction Code:-OH11
    Personnel Management Personnel AdministrationPayroll DataAdditional Payments Wage TypesCreate Wage Type Catalog
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataAdditional Payments and DeductionWage TypesCheck Wage Type Group Additional Payments
    Transaction Code:-OH13
    Personnel Management Personnel AdministrationPayroll DataAdditional Payments and DeductionWage TypesCheck Wage Type CatalogCheck Wage Type
    Transaction Code:-OH13
    Personnel Management Personnel AdministrationPayroll DataAdditional PaymentsWage TypesCheck Wage Type CatalogCheck Entry Permissibility for Additional Payments
    Transaction Code:-OH13
    Personnel Management Personnel AdministrationPayroll DataAdditional PaymentsWage TypesCheck Wage Type CatalogCheck Wage Type Characteristics.
    Transaction Code:-OH13
    Personnel Management Personnel AdministrationPayroll DataAdditional PaymentsWage TypesCheck Wage Type CatalogCheck Wage Type Characteristics.
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataAdditional PaymentsWage TypesDefine Employee Sub Group Grouping for Primary Wage Type.
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataAdditional PaymentsWage TypesDefine Employee Sub Group Grouping for Primary Wage Type.
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataAdditional PaymentsWage TypesDefine Wage Type Permissibility for each PS and ESG
    Transaction Code:-OH00
    Personnel Management Personnel AdministrationPayroll DataAdditional PaymentsWage TypesDefine Wage Type Permissibility for each PS and ESG
    Transaction Code:-PA03
    Payroll Payroll IndiaBasic SettingsPayroll OrganizationCheck Payroll Accounting Area
    Transaction Code:-OG00
    Payroll Payroll IndiaBasic SettingsPayroll OrganizationGenerate Payroll Periods
    Transaction Code:-OH00
    Payroll Payroll IndiaBasic SettingsPayroll OrganizationGenerate Payroll PeriodsCheck Date of Payday
    Transaction Code:-OG00
    Payroll Payroll IndiaBasic SettingsPayroll OrganizationGenerate Calender for Cumulation
    Transaction Code:-OH00
    Payroll Payroll IndiaPayscale GroupingsDefine Payscale Groupings for Allowances
    Transaction Code:-OH00
    Payroll Payroll IndiaPayscale GroupingsAsssign Payscale Groupings for Allowances
    Transaction Code:-OH00
    Payroll Payroll IndiaBasic Salary for IndiaAsssign Basic Wage Types to Groupings for Allowances
    Transaction Code:-OH00
    Payroll Payroll IndiaBasic Salary for IndiaAsssign Basic Wage Types to Groupings for Allowances
    Transaction Code:-OH00
    Payroll Payroll IndiaBasic Salary for IndiaAssign Basic Codes for Allowance Groups
    Transaction Code:-OH00
    Payroll Payroll IndiaReimbursements, Allowances and PerksAssign Wage type Model for Payscale Grouping for Allowances
    Transaction Code:-OH00
    Payroll Payroll IndiaReimbursements, Allowances and PerksMaintain Default Wage Types for Basic Pay
    Transaction Code:-OH00
    Payroll Payroll IndiaReimbursements, Allowances and PerksMaintain Wage Types Characteristics
    Transaction Code:-OH00
    Payroll Payroll IndiaReimbursements, Allowances and PerksMaintain Wage Types Characteristics
    Transaction Code:-OH00
    Payroll Payroll IndiaReimbursements, Allowances and PerksMaintain PayScale Groups and Levels.
    Transaction Code:-OH00
    Payroll Payroll IndiaReimbursements, Allowances and PerksMaintain PayScale Groups and Levels
    Transaction Code:-OH00
    Payroll Payroll IndiaReimbursements, Allowances and PerksMaintain Valuation of Basic of Basic Wage Type
    Transaction Code:-OH00
    Payroll Payroll IndiaReimbursements, Allowances and PerksMaintain Allowance Rules Based on Slabs
    Transaction Code:-OH00
    Payroll Payroll IndiaReimbursements, Allowances and PerksCalculate Eligibility for RAPs
    Transaction Code:-OH00
    Payroll Payroll IndiaReimbursements, Allowances and PerksCalculate Eligibility for RAPs
    Transaction Code:-OH00
    Payroll Payroll IndiaReimbursements, Allowances and PerksCalculate Eligibility for RAPs
    Transaction Code:-OH00
    Payroll Payroll IndiaCompany LoansMaster DataCreate a Loan Type
    Transaction Code:-SPRO
    Payroll Payroll IndiaCompany LoansMaster DataAssign Repayment Type
    Transaction Code:-SPRO
    Payroll Payroll IndiaCompany LoansMaster DataCreate Loan Conditions
    Transaction Code:-SPRO
    Payroll Payroll IndiaCompany LoansMaster DataCreate Loan Conditions
    Transaction Code:-SPRO
    Payroll Payroll IndiaCompany LoansMaster DataCreate Loan Conditions
    Transaction Code:-OH00
    Payroll Payroll IndiaCompany LoansMaster DataMaintain Loan Eligibility Checks and Limits
    Transaction Code:-SPRO
    Payroll Payroll IndiaReporting for Posting Results to Accounting Activities in HR SystemEmployee Grouping and Symbolic AccountsDefine Employee Grouping Account Determination
    Transaction Code:-SPRO
    Payroll Payroll IndiaReporting for Posting Results to Accounting Activities in HR SystemEmployee Grouping and Symbolic AccountsDefine Symbolic Accounts
    Transaction Code:-OH02
    Payroll Payroll IndiaReporting for Posting Results to Accounting Activities in HR SystemMaintain Wage TypesDefine Posting Characteristics for Wage Types
    Transaction Code:-OH02
    Payroll Payroll IndiaReporting for Posting Results to Accounting Activities in HR SystemMaintain Wage TypesDefine Posting Characteristics for Wage
    Transaction Code:-OG00
    Payroll Payroll IndiaReporting for Posting Results to Accounting Activities in HR SystemMaintain Wage TypesMaintain Posting Periods for Payroll Periods
    Transaction Code:-OH00
    Payroll Payroll IndiaReporting for Posting Results to Accounting Activities in HR SystemMaintain Wage TypesMaintain Posting Periods for Payroll Periods
    Transaction Code:-SPRO
    Payroll Payroll IndiaReporting for Posting Results to Accounting Activities in HR SystemCreate Posting Variants
    Transaction Code:-OBYE
    Payroll Payroll IndiaReporting for Posting Results to AccountingAssigning AccountsAssign Expense Accounts
    Transaction Code:-OBYE
    Payroll Payroll IndiaReporting for Posting Results to Accounting Activities in HR SystemAssigning AccountsAssign Expense Accounts
    Transaction Code:-OBYG
    Payroll Payroll IndiaReporting for Posting Results to AccountingAssigning AccountsAssign Balance Sheet Accounts
    Transaction Code:-OBYG
    Payroll Payroll IndiaReporting for Posting Results to AccountingAssigning AccountsAssign Balance Sheet Accounts
    Transaction Code:-OG00
    Payroll Payroll IndiaReporting for Posting Results to AccountingCheck Customizing for Account Determination
    Transaction Code:-OG00
    Payroll Payroll IndiaReporting for Posting Results to AccountingCheck Customizing for Account Determination
    Transaction Code:-SPRO
    Payroll Payroll IndiaPayroll CalenderDefine Schedule for Payroll Calender
    Transaction Code:-SPRO
    Payroll Payroll IndiaPayroll CalenderDefine Schedule for Payroll Calender

  • Please give me some suggestions..

    Hi everyone,
    Please give me  some suggestions on the process that i am doing.
    I have to send some data daily in a flat file to a third party vendor.
    The data that i am extracting to a flat file comes from "differnt tables".
    I have a PL/SQL proc which does all the logic and extract to a flat file.
    As per third party vendor requirement we have to send one full file
    (all the data in our database or tables) and after that changes only file
    (records that got modified and New Records).we have Date_modified column
    in every table to see whether that records got modified or not.
    we need something to track what records we are sending
    they dont want to depend only on that "date_modified" column.
    they want to create a separate table to keep track all records that we are
    sending to vendor.
    Process:
    First day: Insert all the records to a ---> log table(for tracking) with
               SEND_REC = 'Y' (there is a column "SEND_REC" that says whether
               to send that record or not) ----> send all the records from the
               log table that has SEND_REC is "Y"
    second day: compare the existing records with log table records --->if
                there is any change update the log table
                and for new records insert into log table --->
                send the records from log table that has "SEND_REC" is
                "Y"
    thrid day:  same as second day..
    Is there any better way to do it? Please post how do you handle this type
    of scenarios ?
    Thanks

    Some thing you can achive with Merge
    merge into ..
    using(select blah blah from xxxx
    minus
    select blah blah from yyyy)
    on(----)
    when matched then
    update set
    when not matched then
    insert ....;Assmuing this will give you difference between your records
    select blah blah from xxxx
    minus
    select blah blah from yyyyEdited by: user5495111 on Aug 6, 2009 7:06 AM

  • I can not read any contents in my yahoo inbox messages? It is blank when i opened my message. Are there any setting or updated that i missed? Please give me some advices? Thank you. Phuong

    Question:
    I can not read any contents in my yahoo inbox messages? It is blank when i opened my message. Are there any setting or updated that i missed? Please give me some advices? Thank you. Phuong

    Hi AM_Kidd.
    Thanks for your reply.
    I have done a complete uninstall and re install of iTunes and all related apple programs from my laptop through control panel, add remove programs and also by going through program files and deleting all tracers of any left over folders remove programs may have missed.
    My apologies for forgetting to add this in my original post.
    Thanks again

  • Urgent!!! please give me some advice

    i quite new in J2ME programming. i encountered a problem that my MIDlet cannot pass parameter to servlet. i had tried to not using os.flush(), but it's still not working. please give me some suggestion!
    MIDlet
    * Login.java
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.io.Connector;
    import javax.microedition.io.HttpConnection;
    import javax.microedition.io.StreamConnection;
    import java.io.DataOutputStream;
    import java.io.DataInputStream;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.io.IOException;
    import java.util.*;
    public class Login extends MIDlet implements CommandListener {
    Display display;
    boolean commandAvailable;
    // String idPassword;
    CommandThread commandThread;
    Form inputForm;
    Form outputForm;
    TextField userid;
    TextField password;
    StringItem response;
    Command cmdExit;
    Command cmdOK;
    public void startApp() {
    display = Display.getDisplay(this);
    inputForm = new Form("Authorization");
    userid = new TextField("User",null,25, TextField.ANY);
    inputForm.append(userid);
    password = new TextField("Password",null, 15, TextField.PASSWORD);
    inputForm.append(password);
    cmdOK = new Command("OK",Command.SCREEN,1);
    cmdExit = new Command("Exit",Command.EXIT,1);
    inputForm.addCommand(cmdOK);
    inputForm.addCommand(cmdExit);
    inputForm.setCommandListener(this);
    outputForm = new Form("Student Option");
    response = new StringItem(null,null);
    outputForm.append(response);
    outputForm.addCommand(cmdExit);
    outputForm.setCommandListener(this);
    commandAvailable = false;
    commandThread = new CommandThread(this);
    commandThread.start();
    display.setCurrent(inputForm);
    public void pauseApp() {
    public void destroyApp(boolean unconditional) {
    public void commandAction(Command cmd, Displayable d) {
         if (cmd == cmdExit) {
    destroyApp(false);
    notifyDestroyed();
    else if (cmd == cmdOK)
    synchronized (this) {
    commandAvailable = true;
    notify();
    class CommandThread extends Thread {
    MIDlet parent;
    boolean exit = false;
    public CommandThread(MIDlet parent) {
    this.parent = parent;
    public void run() {
    while (true) {
    synchronized(parent) {
    while(!commandAvailable) {
    try {
    parent.wait();
    catch (InterruptedException e) {
    commandAvailable = false;
    performLogin();
    public void performLogin() {
    HttpConnection conn = null;
    InputStream is = null;
    OutputStream os = null;
    byte[] receivedData = null;
    try {
    String url = getAppProperty("Login.URL");
    conn = (HttpConnection)Connector.open(url);
         byte[] postData = createPostData();
    conn.setRequestMethod(HttpConnection.POST);
    conn.setRequestProperty("User-Agent", "Profile/MIDP-1.0 Configuration/CLDC-1.0");
    conn.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
         conn.setRequestProperty ( "Content-Length", Integer.toString (postData.length));
    // conn.setRequestProperty("Accept", "application/octet-stream" );
    conn.setRequestProperty("Connection", "close" );
    // byte[] postData = createPostData();
    System.out.println("postData="+postData);
    conn.setRequestProperty("Content-length",Integer.toString(postData.length));
         os = conn.openOutputStream();
         os.write(postData);
    for (int i=0;i<postData.length;i++)
              os.write(postData);
    //     os.flush();
         os.close();
         is = conn.openInputStream();
         String contentType = conn.getType();
    int len = (int)conn.getLength();
    if (len > 0) {
    receivedData = new byte[len];
    int nb = is.read(receivedData);
    else {
    receivedData = new byte[1024];
    int ch;
    len = 0;
    while ((ch = is.read()) != -1) {
    receivedData[len++] = (byte)ch;
    response.setText(new String(receivedData,0,len));
    display.setCurrent(outputForm);
    catch (IOException e) {
    System.out.println(e.getMessage());
    e.printStackTrace();
    finally {
    try {
    if (is != null) {
    is.close();
    if (os != null) {
    os.close();
    if (conn != null) {
    conn.close();
    catch (IOException e) {
    public byte[] createPostData() {
    StringBuffer sb = new StringBuffer();
    sb.append("userid=");
    sb.append(userid.getString());
    sb.append("&password=");
    sb.append(password.getString());
    System.out.println("sb = <" + sb.toString() + ">");
    return sb.toString().getBytes();
    servlet
    import java.io.*;
    import java.text.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    public class LoginServlet extends HttpServlet {
    static final String dbURL = "jdbc:mysql://localhost/projectdb?" + "user=wongyuenmei&password=wongyuenmei";
    public void doPost(HttpServletRequest request,HttpServletResponse response) throws IOException, ServletException {
    Connection conn = null;
    String nextJSP = null;
    try {
    Class.forName("org.gjt.mm.mysql.Driver");
    catch (ClassNotFoundException e) {
    throw new ServletException("Unable to load JDBC driver");
    try {
    String id = request.getParameter("userid").trim();
    String pass = request.getParameter("password").trim();
         if (id==null)
    String tempid=id;
    String temppass=pass;
    conn = DriverManager.getConnection(dbURL);
    Statement stmt = conn.createStatement();
    String query = "SELECT cno, idno " + "FROM student " + "WHERE idno = '" + id + "'AND password ='" + pass + "'";
    ResultSet rs = stmt.executeQuery(query);
    if (rs.next()) {
    StringBuffer fullName = new StringBuffer();
    fullName.append(rs.getString(1));
    fullName.append(" ");
    fullName.append(rs.getString(2));
    request.setAttribute ("fullName", fullName.toString());
    nextJSP = "/LoginOK.jsp";
    else {
         StringBuffer temptest = new StringBuffer();
         temptest.append(tempid);
         temptest.append(&temppass);
         request.setAttribute("temptest", temptest.toString());
    nextJSP = "/LoginFailed.jsp";
    conn.close();
    ServletConfig config = getServletConfig();
    ServletContext context = config.getServletContext();
    RequestDispatcher rd = context.getRequestDispatcher(nextJSP);
    rd.forward(request, response);
    catch (SQLException e) {
    throw new ServletException("SQL call failed");
    catch (Exception e) {
    throw new ServletException(e.getMessage());
    finally {
    if (conn != null) {
    try {
    conn.close();
    catch (SQLException e) {
    throw new ServletException("connection close failed");
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
    doPost(request, response);
    ur help is very appreciated!

    Still the same problem. All the parameter get by server are null.
    Using GET, and add parameter to url, everything is fine.
    encodedPostData = "E2EE_PAM_ID"+"="+E2EE_PAM_ID+"&"+"E2EE_USER_ID"+"=" E2EE_USER_ID"&"+"E2EE_USER_SEGUID"+"="+E2EE_USER_SEGUID+"&"+"E2EE_RPIN"+"="+E2EE_RPIN
    +"&LoginBtn=Login";
    c = (HttpConnection)Connector.open(request);
    c.setRequestMethod(HttpConnection.POST);
    c.setRequestProperty("User-Agent","Profile/MIDP-1.0 Configuration/CLDC-1.0");
    c.setRequestProperty("Content-Type:","application/x-www-form-urlencoded");
    os = c.openOutputStream();
    os.write(encodedPostData.getBytes());
    //os.flush();
    System.out.println(encodedPostData);
    rc = c.getResponseCode();
    if (rc != HttpConnection.HTTP_OK) {
    throw new IOException("HTTP response code: " + rc);
    is = c.openInputStream();
    ..........

Maybe you are looking for

  • T61 - how do I find my Windows XP Serial on a reformatte​d machine?

    Hi Guys, I've totally reformatted my T61 due to being hit with malware/spyware that pretty much rendered my laptop useless.  This was the second time I've installed Windows using a legit XP disc I had for my desktop, but I used the serial number for

  • How to convert 64-bit to 32-bit oracle 8.1.7

    We are planning to upgrade our O/S version from AIX 4.3.3 to 5.2 The limitation is that AIX 5.2 and 8.1.7.4 64-bit are not certified. We are also running Oracle Financials 11.0.3 so we cannot upgrade to 9.2.X versions. Can anybody tell me how to conv

  • SAP System is not assigned to the leading

    Hi, I am trying to configure JOB DOCUMENTATION in "Solution Manager / JSM", under tab "SYSTEMS" when assigning "Logical Components" on the bottom of this screen there is a table "Systems", when in this part trying to ativate "Monitoring" getting foll

  • How to convert the local file into unicode file?

    Hi All, I need read local file (GUI_UPLOAD) and save it as unicode file? I've found class CL_ABAP_CONV_OUT_CE but I've no idea how to use it. Should I read file in binary mode and then convert it into unicode? AT the and save it (GUI_DOWNLOAD) ? Than

  • Creating new Variables/objects in OLAP Universe

    Hi, We are currently using BOXI 3.1 Sp2. We have defined BEX queries on which Universes have been generated (using MDX). We are then creating WEBI reports using these Unvierses. We are not able to add variables/objects at universe level as the XML ta