Problem in using Submit

Hi Experts.
I am calling another report in my program inside a method using SUBMIT statement.I can't use Export-Import because OO Concept does not support Export-Import inside a method.
Please tell me how to pass a value stored in a variable using Submit?
Thanks
Abhishek

Hi Abhishek,
try out this code whether it is helpful.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = l_jobname
IMPORTING
jobcount = l_jobcount
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
DATA list_tab TYPE TABLE OF abaplist.
IF sy-subrc <> 0.
RETURN.
ENDIF.
Submit report to job
SUBMIT rkpep005
USING SELECTION-SET 'TEST1'
VIA JOB l_jobname
NUMBER l_jobcount
TO SAP-SPOOL WITHOUT SPOOL DYNPRO
SPOOL PARAMETERS ls_params
AND RETURN.
Regards,
prasad

Similar Messages

  • Problem while using submit

    I try to implement a senario . one is to output some data, another is used to execute the former one,   import the result into memory, then read the data.  but I can't get the correct code for submit? could you please give me a hand ?
    REPORT  ZGUO.
    tables: vbak.
    types:   begin of w_vbak,
                 VBELN     like vbak-VBELN,
                 AUART    like vbak-AUART,
               end of w_vbak.
    data:  t_vbak type w_vbak occurs 0 with header line.
    select-options : S_VBELN FOR vbak-VBELN obligatory.
    select-options : S_AUART FOR vbak-VBELN .
    select * from vbak into corresponding fields of table t_vbak
    where VBELN in S_VBELN.
    *  where VBELN in S_VBELN and AUART in S_AUART.
    write: sy-subrc , /.
    loop at t_vbak.
      write: t_vbak-VBELN, / t_vbak-AUART , /.
    endloop.
    ******************program 2*********************
    *& Report  ZGUO1
    REPORT  ZGUO1.
    DATA: seltab type table of rsparams,
        seltab_wa like line of seltab.
        seltab_wa-selname = 'S_VBELN'.
        seltab_wa-sign = 'I'.
        seltab_wa-option = 'EQ'.
        seltab_wa-low = '4969'.
        append seltab_wa to seltab .
    **    SUBMIT ZGUO   with selection-table seltab via SELECTION-SCREEN .
    **SUBMIT ZGUO and return.
    ** SUBMIT ZGUO via SELECTION-SCREEN .
    *submit ZGUO .
    DATA  BEGIN OF itab_list OCCURS 0.
            INCLUDE STRUCTURE abaplist.
    DATA  END OF itab_list.
    DATA: BEGIN OF vlist OCCURS 0,
            filler1(01)   TYPE c,
            field1(06)    TYPE c,
            filler(08)    TYPE c,
            field2(10)    TYPE c,
            filler3(01)   TYPE c,
            field3(10)    TYPE c,
            filler4(01)   TYPE c,
            field4(3)     TYPE c,
            filler5(02)   TYPE c,
            field5(15)    TYPE c,
            filler6(02)   TYPE c,
            field6(30)    TYPE c,
            filler7(43)   TYPE c,
            field7(10)    TYPE c,
          END OF vlist.
    *SUBMIT ZGUO EXPORTING LIST TO MEMORY and return with selection-table seltab.
    *SUBMIT ZGUO EXPORTING LIST TO MEMORY with selection-table seltab.
    SUBMIT zreport EXPORTING LIST TO MEMORY.
    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        listobject = itab_list
      EXCEPTIONS
        not_found  = 4
        OTHERS     = 8.
    CALL FUNCTION 'LIST_TO_ASCI'
      EXPORTING
        list_index         = -1
      TABLES
        listasci           = vlist
        listobject         = itab_list
      EXCEPTIONS
        empty_list         = 1
        list_index_invalid = 2
        OTHERS             = 3.
    IF sy-subrc NE '0'.
      WRITE:/ 'LIST_TO_ASCI error !! ', sy-subrc.
    ENDIF.
    ***************program 2*********************
    some piece of program is copied directly from internet, but as I tried to exceute the second program, I got some error. could you please help to tell where I am wrong?
    Thank you very much!!!
    Code Formatted by: Alvaro Tejada Galindo on Dec 26, 2008 10:45 AM

    Hi
    Please be clear of which program you want to submit.
    One program is known as Called Program and the other Calling Program.
    This is a straight forward process.
    Use Key word SUBMIT . For more info take F1 help on the key word
    if you want to pass data from one program to other you can use  key words
    IMPORT and EXPORT
    The Key word help very clear and Self Explanatory
    IF you find any syntax error, the F1 help is always there to help you and moreover the syntax check helps you aswell
    Regards
    Ramchander Rao.K
    Edited by: Ramchander Krishnamraju on Dec 26, 2008 10:56 AM

  • Problem using Submit statement

    Dear Experts,
    I am trying to use submit statement in a report for transaction ML85. I have used the below code.
    submit RMSRVF00 with FRGCO = 'S1'
                    with FRGGR = 'S1'
                    with listu = 'ENTRY_REL'
                    with ebeln = '4500000309'
                    AND RETURN.
    But when I execute the report the values which I set are not filled and the screens opens with error message as '' Fill in all required entry fields". I am passing values for fields Releasecode - FRGCO, Release group - FRGGR, Purchase Order - EBELN, Scope of list - LISTU.
    Please tell me why this message is coming and values are not set for fields.
    KR,
    Bharath

    hai,
    try like this
    SUBMIT ZVENDOR_REPORT_NEW1 USING SELECTION-SCREEN '100'
                  WITH SELECTION-TABLE TB_OUTPUT
                   WITH P_DATE = SY-DATUM
                   WITH S_ERDAT BETWEEN '01.01.2008' AND '01.06.2008'
                   AND RETURN.
    or you can go in this way using type pools:
    TYPE-POOLS RSDS.
    DATA: TRANGE                        TYPE RSDS_TRANGE,
          TRANGE_LINE                   LIKE LINE OF TRANGE,
          TRANGE_FRANGE_T_LINE          LIKE LINE OF TRANGE_LINE-FRANGE_T,
          TRANGE_FRANGE_T_SELOPT_T_LINE LIKE LINE OF TRANGE_FRANGE_T_LINE-SELOPT_T,
          TEXPR                         TYPE RSDS_TEXPR.
    TRANGE_LINE-TABLENAME = 'TB_OUTPUT'.
    TRANGE_FRANGE_T_LINE-FIELDNAME = 'S_ERDAT'.
    TRANGE_FRANGE_T_SELOPT_T_LINE-SIGN   = 'I'.
    TRANGE_FRANGE_T_SELOPT_T_LINE-OPTION = 'BT'.
    TRANGE_FRANGE_T_SELOPT_T_LINE-LOW    = '01.01.2008'.
    TRANGE_FRANGE_T_SELOPT_T_LINE-HIGH   = '01.06.2008'.
    APPEND TRANGE_FRANGE_T_SELOPT_T_LINE TO TRANGE_FRANGE_T_LINE-SELOPT_T.
    TRANGE_FRANGE_T_SELOPT_T_LINE-SIGN   = 'I'.
    TRANGE_FRANGE_T_SELOPT_T_LINE-OPTION = 'NE'.
    TRANGE_FRANGE_T_SELOPT_T_LINE-LOW    = SY-DATUM.
    APPEND TRANGE_FRANGE_T_SELOPT_T_LINE  TO TRANGE_FRANGE_T_LINE-SELOPT_T.
    APPEND TRANGE_FRANGE_T_LINE TO TRANGE_LINE-FRANGE_T.
    APPEND TRANGE_LINE TO TRANGE.
    CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX'
      EXPORTING
        FIELD_RANGES = TRANGE
      IMPORTING
        EXPRESSIONS  = TEXPR.
    SUBMIT ZVENDOR_REPORT_NEW1 VIA SELECTION-SCREEN
                   WITH SELECTION-TABLE TB_OUTPUT
                    WITH FREE SELECTIONS TEXPR AND RETURN.

  • How to get spool number when using SUBMIT job

    Hi All,
    I am calling standard program using SUBMIT through JOB as below. Now I need spool number for this job to covert the output to PDF and send to mail. See the below code and guide me.
    CALL FUNCTION 'JOB_OPEN'
      EXPORTING
        jobname          = name
      IMPORTING
        jobcount         = number
      EXCEPTIONS
        cant_create_job  = 1
        invalid_job_data = 2
        jobname_missing  = 3
        OTHERS           = 4.
    IF sy-subrc = 0.
      data: Zscreen type table of RSPARAMS with header line.
       Zscreen-selname = 'PM_AENNR'.
       Zscreen-kind = 'P'.
       ZSCREEN-LOW = '500000000125'.
       APPEND ZSCREEN.
    SUBMIT RCC00130 WITH selection-table Zscreen TO SAP-SPOOL
                        SPOOL PARAMETERS print_parameters
                       WITHOUT SPOOL DYNPRO
                        VIA JOB name NUMBER number
                        AND RETURN.
      IF sy-subrc = 0.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            jobcount             = number
            jobname              = name
            strtimmed            = 'X'
          EXCEPTIONS
            cant_start_immediate = 1
            invalid_startdate    = 2
            jobname_missing      = 3
            job_close_failed     = 4
            job_nosteps          = 5

    Hi,
    Do this way, first get print parameters by using function module 'GET_PRINT_PARAMETERS'
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          destination    = 'LP01'
          list_name      = 'TEST'
          list_text      = 'SUBMIT ... TO SAP-SPOOL'
          immediately    = ' '
          line_size      = '1023'
          no_dialog      = 'X'
        IMPORTING
          out_parameters = wa_pri_params
          valid          = w_valid.
    If it returns success then
        IF w_valid EQ 'X'.
          CONCATENATE 'R'                                   
                       w_tabix                                
                       sy-datum+4(4)
                       sy-uzeit INTO
                       wa_pri_params-plist.
        ENDIF.
        SUBMIT rprccc00
               WITH firmennr = w_cid
               WITH bel_clus = 'X'
               WITH testlauf = ' '
               WITH not_lokl = 'X'
               WITH file_in  = w_arc_out
               TO SAP-SPOOL WITHOUT SPOOL DYNPRO
               SPOOL PARAMETERS wa_pri_params AND RETURN.
        COMMIT WORK AND WAIT.
    SELECT rqident
             FROM tsp01
             INTO w_rqident
             UP TO 1 ROWS
             WHERE rq2name = wa_pri_params-plist.
      ENDSELECT.
    CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
        EXPORTING
          src_spoolid     = w_rqident
          no_dialog       = 'X'
          dst_device      = 'LP01'
          pdf_destination = 'X'
        TABLES
          pdf             = t_pdf.
    Hope it solves your problem
    Regards
    Krishna

  • How to get data from the called program using SUBMIT in a background job?

    Hi Experts,
    I've a program which creates a background job using JOB_OPEN and JOB_CLOSE function modules.
    Between the above function modules I need to call a program using SUBMIT VIA JOB statement.
    My problem is, How do I fetch some data in an internal table in the called program to the calling program after the SUBMIT statement?
    I tried to EXPORT and IMPORT the data, but they are giving a failed sy-subrc when using this background job.
    Kindly let me know your inputs and valuable suggestions.

    Kumar,
    When we execute a program as a background job then the output will be sent to Spool which needs to be fetched again.I guess we need to use Submit via spool as mentioned by Rajat.
    Check these threads to get some idea
    submit report to spool & import spool id
    Re: Generate Spool for a report
    K.Kiran.

  • To run a program in BACKGROUND using SUBMIT

    I need to run a program in background using the SUBMIT option. Here i have to pass an internal table form one program to another which will be used to update sales orders using BDC.
    Questions
    1} Can we execute a program in background using SUBMIT?
    2} I am sending data to a MEMORY ID , if i run the program in background will the memory id work. As in do  memory IDs work in the background.
    Thanks in Advance

    refer  same thread.
    Re: Problem with SUBMIT in Background

  • ORA-01403: no data found Problem when using AUTOMATIC ROW FETCH to populate

    ORA-01403: no data found Problem when using AUTOMATIC ROW FETCH to populate a form.
    1) Created a FORM on EMP using the wizards. This creates an AUTOMATIC ROW FETCH
    TABLE NAME - EMP
    Item Containing PRIMARY KEY - P2099_EMPNO
    Primary key column - EMPNO
    By default the automatic fetch has a ‘Process Error Message’ of ‘Unable to fetch row.’
    2) Created a HTML region. Within this region add
    text item P2099_FIND_EMPNO
    Button GET_EMP to submit
    Branch Modified the conditional branch created during button creation to set P2099_EMPNO with &P2099_FIND_EMPNO.
    If I then run the page, enter an existing employee number into P2099_EMPNO and press the GET_EMP button the form is populated correctly. But if I enter an employee that does not exist then I get the oracle error ORA-01403: no data found and no form displayed but a message at the top of the page ‘Action Processed’.I was expecting a blank form to be displayed with the message ‘Unable to fetch row.’
    I can work around this by making the automated fetch conditional so that it checks the row exists first. Modify the Fetch row from EMP automated fetch so that it is conditional
    EXIST (SQL query returns at least one row)
    select 'x'
    from EMP
    where EMPNO = :P2099_EMPNO
    But this means that when the employee exists I must be fetching from the DB twice, once for the condition and then again for the actual row fetch.
    Rather than the above work around is there something I can change so I don’t get the Oracle error? I’m now wondering if the automatic row fetch is only supposed to be used when linking a report to a form and that I should be writing the fetch process manually. The reason I haven’t at the moment is I’m trying to stick with the automatic wizard generation as much as I can.
    Any ideas?
    Thanks Pete

    Hi Mike,
    I've tried doing that but it doesn't seem to make any difference. If I turn debug on it shows below.
    0.05: Computation point: AFTER_HEADER
    0.05: Processing point: AFTER_HEADER
    0.05: ...Process "Fetch Row from EMP": DML_FETCH_ROW (AFTER_HEADER) F|#OWNER#:EMP:P2099_EMPNO:EMPNO
    0.05: Show ERROR page...
    0.05: Performing rollback...
    0.05: Processing point: AFTER_ERROR_HEADER
    I don't really wan't the error page, either nothing with the form not being populated or a message at the top of the page.
    Thanks Pete

  • Create spool for background jobs which uses submit statement

    Hi Gurus,
                 I have a quick question regarding the backgroud jobs. When we run a program in the background , it should create a spool for us, but, the problem comes when I am running a program in the background, its not creating the spool. This program uses SUBMIT statement. This program collects the data and it will submit to the other program and then retuen. In this case, its not creating a spool. Its very important for us to look at the spool for this program. Does anybody cam across this kind of problem? I need ur inputs.
    Thanks in advance, <REMOVED BY MODERATOR>
    Regards,
    Srinivas.
    Edited by: Alvaro Tejada Galindo on Mar 18, 2008 4:31 PM

    hi check this link ...
    Scheduling a submitable program as a background task with the number number in a background request name. After scheduling, the background task is completed by function module JOB_CLOSE and released immediately.
    DATA: number TYPE tbtcjob-jobcount,
          name TYPE tbtcjob-jobname VALUE 'JOB_TEST',
          print_parameters TYPE pri_params.
    CALL FUNCTION 'JOB_OPEN'
      EXPORTING
        jobname          = name
      IMPORTING
        jobcount         = number
      EXCEPTIONS
        cant_create_job  = 1
        invalid_job_data = 2
        jobname_missing  = 3
        OTHERS           = 4.
    IF sy-subrc = 0.
      SUBMIT submitable TO SAP-SPOOL
                        SPOOL PARAMETERS print_parameters
                        WITHOUT SPOOL DYNPRO
                        VIA JOB name NUMBER number
                        AND RETURN.
      IF sy-subrc = 0.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            jobcount             = number
            jobname              = name
            strtimmed            = 'X'
          EXCEPTIONS
            cant_start_immediate = 1
            invalid_startdate    = 2
            jobname_missing      = 3
            job_close_failed     = 4
            job_nosteps          = 5
            job_notex            = 6
            lock_failed          = 7
            OTHERS               = 8.
        IF sy-subrc <> 0.
        ENDIF.
      ENDIF.
    ENDIF.
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=backgroundsubmit&adv=false&sortby=cm_rnd_rankvalue
    sy-subrc  Meaning
    0            Background task scheduled successfully.
    4            Scheduling cancelled by user on the selection screen.
    8            Error during scheduling, i.e. when accessing JOB_SUBMIT internally.
    12          Error in internal number assignment.
    regards,
    venkat.
    Edited by: venkat  appikonda on Mar 18, 2008 6:32 PM

  • Problems after using LIST_TO_ASCI

    Hi Experts ,
    i am facing an uphill task after using the Function Module LIST_TO_ASCI.
    CALL FUNCTION 'LIST_TO_ASCI'
       EXPORTING
         list_index               = -1
       WITH_LINE_BREAK          = ' '
    IMPORTING
       LIST_STRING_ASCII        = list_string
      LIST_DYN_ASCII           =
      TABLES
         listasci                 = ascitab
         listobject               = list_tab
    EXCEPTIONS
      EMPTY_LIST               = 1
      LIST_INDEX_INVALID       = 2
      OTHERS                   = 3
    I use this function as above .
    Now the values in the ascitab are in string format
    i used submit report for FS10N transaction .
    Now after submit
    then LIST_FROM_MEMORY'
    then LIST_TO_ASCII
    i get the value in string
    now my problem is that it displays exactly how *fs10n* dispalys the whole output
    i want only the last field value .
    that is the cumlative  balance value that is practially speaking the last field in the FS10N report .
    How can i achieve that using this ASCITAB table obtained from LIST_TO_ASCI

    Hi Experts ,
    i am facing an uphill task after using the Function Module LIST_TO_ASCI.
    CALL FUNCTION 'LIST_TO_ASCI'
       EXPORTING
         list_index               = -1
       WITH_LINE_BREAK          = ' '
    IMPORTING
       LIST_STRING_ASCII        = list_string
      LIST_DYN_ASCII           =
      TABLES
         listasci                 = ascitab
         listobject               = list_tab
    EXCEPTIONS
      EMPTY_LIST               = 1
      LIST_INDEX_INVALID       = 2
      OTHERS                   = 3
    I use this function as above .
    Now the values in the ascitab are in string format
    i used submit report for FS10N transaction .
    Now after submit
    then LIST_FROM_MEMORY'
    then LIST_TO_ASCII
    i get the value in string
    now my problem is that it displays exactly how *fs10n* dispalys the whole output
    i want only the last field value .
    that is the cumlative  balance value that is practially speaking the last field in the FS10N report .
    How can i achieve that using this ASCITAB table obtained from LIST_TO_ASCI

  • Doubt in using Submit  ....

    Hi gurus............
    For minimizing the time, i have suggested to use SUBMIT  for FBL5N transaction, this fbl5n has been made in z,  previously i used BKPF and BSEG table,
    my problem is that i am new to this submit concept and i found that all the field which i used for bseg and bkpf is available in the structure RFPOSXEXT but some  field are not used in the program which is made z for the tcode fbl5n....
    i want to add blart xreversal bldat budat xblnr  dmbtr zuonr sgtxt which is not in the z made for fbl5n but i want to add this...how to do???
    pls help me out
    submit  z_rfitemar1
               with  dd_kunnr in so_kunnr
               with  so_budat in so_budat
               with  dd_bukrs = pr_bukrs
               with  x_aisel = 'X'
               with  x_norm = 'X'
               and return.

    Hi Beginers,
      SUBMIT ZMY20DDSB
           WITH MATNR = I_LINE-LINE+0(18)
           WITH WERKS = PLT1
           AND RETURN.
      IMPORT  ITAB FROM MEMORY ID 'ABCD'.
    this is a example of Submit
    After submit,
    Import the data from your submit..
    Thanks & regards,
    Dileep .C

  • Printing using SUBMIT statement

    Hi
    I have a problem in printing using SUBMIT.
    I have three printers identified to print certain orders using submit statement.
    the list of printers is given in a drop down and once the user selects a printer from the list, i have to generate a spool for the corresponding printer. But this is not happening. The spool is generated for the user's default printer defined in SU50. I have my submit statement below:
    SUBMIT zppprbsel  WITH aufnr EQ p_wa_batch_res_process_order
                        WITH werks EQ c_1201 "'1201'
                        WITH relvn EQ c_0 "'00000000'
                        WITH relbs EQ c_0 "'00000000'
                        WITH orig  EQ ' '
                        WITH nach  EQ c_x "'X'
                        TO SAP-SPOOL
    *SPOOL PARAMETERS l_dest
                        WITHOUT SPOOL DYNPRO
                        WITH DESTINATION = l_dest
                        WITH IMMEDIATELY = SPACE
                        WITH KEEP_IN_SPOOL = 'X'
                        VIA JOB  v_job_name
                        NUMBER   v_job_cnt
                        AND RETURN.
    here my l_dest has one of the three printers that the user selects.
    when i change my default printer to one of the three printers the spool is generated fine. A spool always generated for the default printer of the user?

    Hi,
    Before the SUBMIT get the PRINT PARAMETER by using the FM --> GET_PRINT_PARAMETERS
    IMPORTING
                  out_parameters         = print_parameters
    print_parameters-pdest = 'LOCL'. " Change the Destination before passsing the PRINT_PARAMETER to SUBMIT.
    Then pass the print_parameters from the FM to the SUBMIT
    SUBMIT zppprbsel WITH aufnr EQ p_wa_batch_res_process_order
    WITH werks EQ c_1201 "'1201'
    WITH relvn EQ c_0 "'00000000'
    WITH relbs EQ c_0 "'00000000'
    WITH orig EQ ' '
    WITH nach EQ c_x "'X'
    TO SAP-SPOOL
    SPOOL PARAMETERS  print_parameters  "Pass here
    WITHOUT SPOOL DYNPRO
    WITH DESTINATION = l_dest
    WITH IMMEDIATELY = SPACE
    WITH KEEP_IN_SPOOL = 'X'
    VIA JOB v_job_name
    NUMBER v_job_cnt
    AND RETURN.
    Regards,
    Madhukar Shetty

  • Using submit..............

    hello guys,
    Actually i am trying to call a program'B' from program 'A', using submit and return.i want to capture the output of program 'B' which is list output, i have used 'LIST_FROM_MEMORY' functional module in program 'A', to download from abap memory, but how do i convert this file into a normal internal table to read the output.
    i have tried 'LIST_TO_TXT' Func Mod to convert from abaplist to txt but its not working.
    could anybody pls suggest a solution.

    dear anbu,
    thanks for the code ,but i have a problem here
    my code...........
    DATA list_tab TYPE TABLE OF abaplist.
          data : t_ascii type LIST_STRING_TABLE.
          data : wa_ascii type LIST_STRING_TABLE.
          SUBMIT Zrabest_alv01 USING SELECTION-SET 'DEEPAK'
                        EXPORTING LIST TO MEMORY
                        AND RETURN.
          CALL FUNCTION 'LIST_FROM_MEMORY'
            TABLES
              listobject = list_tab
            EXCEPTIONS
              not_found  = 1
              OTHERS     = 2.
          IF sy-subrc = 0.
           CALL FUNCTION 'LIST_TO_ASCI'
          TABLES
            listasci           = t_ascii " list converted to ASCII
            listobject         = list_tab
          EXCEPTIONS
            empty_list         = 1
            list_index_invalid = 2
            OTHERS             = 3.
        IF sy-subrc NE 0.
        ENDIF.
    it is giving me a dump in the function module LIST_TO_ASCI.
    IT SAYS:
    "  At the statment
          "DESCRIBE"
    only character-type data objects are supported at the argument position
    "LISTASCI", but no strings are supported (data types STRING and XSTRING).
    In this particular case, the operand "LISTASCI" has the
    type "g".  "

  • Problem while using struts 1.3.8

    Hi All,
    I have some problem while using struts 1.3.8 in my application.
    I am using OC4J 10.1.2.0.2, my simple coding is follows:
    <%@ page contentType="text/html;charset=utf-8"%>
    <%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles"%>
    <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean"%>
    <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html"%>
    <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic"%>
    <html:xhtml />
    <html:form action="<action page>" method="POST" enctype="multipart/form-data" >
    <p>
         <label for="Subject" ><span class="Mandatory">*</span> Subject:</label>
         <html:text size="40" property="subject" />
    </p>
    <p>
         <label for="upload" >Attachment:</label>
         <html:file size="40" property="attachmentFile" />
    </p>
    <p>
             <html:submit />
    </p>after clicking my the submit button in the server console i m getting
    JAAS-OC4J: JAZNFilter.doFilter - unable to find the current servlet
    javax.servlet.ServletException: JAAS-OC4J: JAZNFilter.doFilter - unable to find the current servlet
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
    at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:222)
    at org.apache.struts.tiles.commands.TilesPreProcessor.doForward(TilesPreProcessor.java:260)
    at org.apache.struts.tiles.commands.TilesPreProcessor.execute(TilesPreProcessor.java:217)
    at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
    at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
    at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
    at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    at oracle.security.jazn.oc4j.JAZNFilter$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
    at com.ed.ecomm.edcore.web.filters.SecurityFilter.doFilter(SecurityFilter.java:196)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
    at com.ed.ecomm.edcore.web.filters.MonitoringFilter.doFilter(MonitoringFilter.java:138)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
    at com.ed.ecomm.edcore.web.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:92)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:659)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534)
    further i investigate and i removed the "enctype=multipart/form-data" from the form attribute its working fine..
    but without using this attribute struts doesn't support the "upload" i.e, form file... its throwing another exeception..
    could you anyone please let me know whether i can change my OC4J server version of anything need to do..
    many thanks in advance

    I'm having the same exact problem. Any ideas?
    Schema sfactory;
    Schema schema;
    sfactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
    ErrorHandler eHandler = new MyErrorHandler();
    sfactory.setErrorHandler(eHandler);        
    LSResourceResolver lsrResolver = new MyLSResourceResolver();
    sfactory.setResourceResolver(lsrResolver);
    schema = sfactory.newSchema(new File(argv[1]));The last line gives me NullPointerException. I know the file (argv[1]) exists and can be read because I can print it with a BufferedReader.

  • Enctype header problem while using FileUpload

    Dear fouramites,
    I am using apache commans-fileupload1.1 api for uploading file to a servlet. For the file upload to take place I am using submit button and I am placing enctype header as form attribute. Doing so I could upload the file but the problem is, when I click on other tabs in the application(which were routed to different controller servlet) the request parameters themselves were not getting passed.
    If I use javascript function to send values to servlet it could not recognize enctype header so fileupload api is throwing exception
    Can any one plz help me out to resolve this situation.
    Thanks & Regards
    Kavya Kesineni

    Dear cc,
    Thanks for trying to help me. I resolved my problem but I dont know theory behind it. I am not using struts frame work. My application uses FrontController architecture.
    By request parameters I mean Hidden form fields. Not the values of hidden fields but the parameters themselves are not getting passed to controller if I use submit button in the form. If I use java script function to set values to hidden fields, headers were not getting passed.
    I solved the problem using onsubmit.
    Thanks alot
    kk

  • I am going to buy unlocked iphone 5.. i will be going to india nxt months and will stay there for a while... so my question is will i get warrenty in india.. and will there be any problem with using indian sims..?? thnx for the help..

    i am going to buy unlocked iphone 5.. i will be going to india nxt months and will stay there for a while... so my question is will i get warrenty in india.. and will there be any problem with using indian sims..?? thnx for the help..

    The warranty for the iPhone is not and has never been International.
    Warranty and support are ONLY valid in the country of origin.  The only exception is the EU where the entire EU is treated as one country.
    If the device will be used in India, buy it in India.
    An unlocked iPhone will work on any supported GSM carrier world wide.  The LTE portion of a US purchased, unlocked iPhone is unlikely to work outside North America as it does not support the appropriate bands used in other countries.

Maybe you are looking for