Problem with SUBMIT in Background

Hi,
    I want to pass a internal table data to 2nd program from 1st program. I am using SUBMIT 2nd program and i am getting results in foreground , i am not getting in back ground .
will you face this sort of problem ever.
Please help me .
Thanks in advance .
Balaji.

Hi Balaji,
Please check this sample code.
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.
Hope this will help.
Regards,
Ferry Lianto

Similar Messages

  • Problem with submit button of jframe

    hi all
    i am having problems with the submit button. once the submit button is clicked the values should be updated to an array of objects. it is doing this. the problem is i want the current frame to close once i click submit button. i have a GUI at the background and once i click something this frame appears asking for details for th user to input. but i want only the current form to close, not the whole progrmy code is shown below
    thanks in advance
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    public class TextForm extends JPanel {
    public JTextField[] fields;
    public MainInteractiveMap mainClass;
    public TextForm(MainInteractiveMap m)
    mainClass= m;
    public TextForm(String[] labels, char[] mnemonics, int[] widths, String[] tips)
    super(new BorderLayout());
    JPanel labelPanel= new JPanel(new GridLayout(labels.length,1));
    JPanel fieldPanel= new JPanel(new GridLayout(labels.length,1));
    add(labelPanel, BorderLayout.WEST);
    add(fieldPanel, BorderLayout.CENTER);
    fields= new JTextField[labels.length];
    for(int i=0; i< labels.length;i+=1)
    fields[i] = new JTextField();
    if (i<tips.length)fields.setToolTipText(tips[i]);
    if (i<widths.length)fields[i].setColumns(widths[i]);
    JLabel lab = new JLabel(labels[i], JLabel.RIGHT);
    lab.setLabelFor(fields[i]);
    if (i<mnemonics.length)lab.setDisplayedMnemonic(mnemonics[i]);
    labelPanel.add(lab);
    JPanel p = new JPanel(new FlowLayout(FlowLayout.LEFT));
    p.add(fields[i]);
    fieldPanel.add(p);
    public String getText(int i){
    return (fields[i].getText());
    public void printForm()
    String[] labels = {"Location","No of Bedrooms","No of Bathrooms", "Garage","last selling price","current selling price"};
    char[] mnemonics ={'L','B','b','G','L','C'};
    int[] widths = {15,1,1,4,9,9};
    String[] desc = {"Location","No of Bedrooms","No of Bathrooms", "Garage","last selling price","current selling price"};
    final TextForm form = new TextForm(labels,mnemonics,widths,desc);
    JButton submit = new JButton("Submit");
    submit.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e){
    String location;
    final int sellingPrice;
    final int numOfRooms;
    final int marketPrice;
    final int numOfBathrooms;
    final int numOfGarages;
    location=form.getText(0);
    sellingPrice=Integer.parseInt(form.getText(1));
    numOfRooms=Integer.parseInt(form.getText(2));
    marketPrice=Integer.parseInt(form.getText(3));
    numOfBathrooms=Integer.parseInt(form.getText(4));
    numOfGarages=Integer.parseInt(form.getText(5));
    mainClass.Testing(location);
    System.out.println(numOfGarages);
    System.exit(0);
    JFrame f = new JFrame("Input details of House");
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.getContentPane().add(form, BorderLayout.NORTH);
    JPanel p = new JPanel();
    p.add(submit);
    f.getContentPane().add(p, BorderLayout.SOUTH);
    f.pack();
    f.setVisible(true);
    regards

    you just need to change (at end of actionPerformed())
    System.exit(0);
    to
    [whateverFrame].dispose();
    easier to show a simple demo
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class Testing
      public void buildGUI()
        JButton btn1 = new JButton("Open new Frame");
        final JFrame f1 = new JFrame("#1");
        f1.getContentPane().add(btn1);
        f1.pack();
        f1.setLocationRelativeTo(null);
        f1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f1.setVisible(true);
        btn1.addActionListener(new ActionListener(){
          public void actionPerformed(ActionEvent ae){
            JButton btn2 = new JButton("Close/Return");
            final JFrame f2 = new JFrame("#2");
            f2.getContentPane().add(btn2);
            f2.pack();
            f2.setLocationRelativeTo(null);
            f2.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);//do not want to close with 'X'
            f1.setVisible(false);
            f2.setVisible(true);
            btn2.addActionListener(new ActionListener(){
              public void actionPerformed(ActionEvent ae){
                f2.dispose();
                f1.setVisible(true);
      public static void main(String[] args)
        SwingUtilities.invokeLater(new Runnable(){
          public void run(){
            new Testing().buildGUI();
    }

  • Problem with SUBMIT report [ WITH SELECTION-TABLE ] or [ IN range ]

    Hello Everybody,
    I am trying to call transaction F.80 for mass reversal of FI documents by using SUBMIT sentence and its parameters like this:
      LOOP AT i_zfi013 INTO wa_zfi013.
        PERFORM llena_params USING 'BR_BELNR' 'S' 'I' 'EQ' wa_zfi013-num_doc ''.
    range_line-sign   = 'I'.
    range_line-option = 'EQ'.
    range_line-low    = wa_zfi013-num_doc.
    APPEND range_line TO range_tab.
    endloop.
    Line: -
          SUBMIT sapf080
            WITH br_bukrs-low = p_bukrs
            WITH SELECTION-TABLE it_params  [ same  problem with -  WITH BR_BELNR IN range_tab]
            WITH br_gjahr-low = p_an1
            WITH stogrd = '05'
            WITH testlauf = ''
            AND RETURN.
    My problem is that  when the report is executed the BR_BELNR only delete one document of the all the inputs in the selection criteria from the loop. if I add the statement [ VIA SELECTION-SCREEN] in the SUBMIT if open the multiple selection criteria in the screen I can check that all the documents are set in it from the ABAP code in the loop from it I just need to push F8 to copy them and run the program processing all the documents normally .
    Can some one help me with this? is there a way to execute the transaction BY the SUBMIT with the multiple selection criteria for the Document Number working well?
    Thank for you time and help.

    This is my code:
      TYPES: BEGIN OF T_ZFI013,
              BUKRS     TYPE BUKRS,
              GJAHR     TYPE GJAHR,
              MONAT     TYPE MONAT,
              ANLN1     TYPE ANLN1,
              ANLN2     TYPE ANLN2,
              NUM_DOC     TYPE BELNR_D,
              DATE     TYPE DATUM,
              TIME  TYPE UZEIT,
              USER     TYPE SYUNAME,
             END OF T_ZFI013.
       DATA: I_ZFI013  TYPE STANDARD TABLE OF T_ZFI013,
             WA_ZFI013 TYPE T_ZFI013,
      DATA: br_belnr       TYPE BELNR_D,
            rspar_tab  TYPE TABLE OF rsparams,
            rspar_line LIKE LINE OF rspar_tab,
            range_tab  LIKE RANGE OF br_belnr,
            range_line LIKE LINE OF range_tab."range_tab.
      LOOP AT i_zfi013 INTO wa_zfi013.
        range_line-sign   = 'I'.
        range_line-option = 'EQ'.
        range_line-low    = wa_zfi013-num_doc.
        APPEND range_line TO range_tab.
      ENDLOOP.
      SUBMIT sapf080
        WITH br_bukrs-low = p_bukrs
        WITH br_belnr IN range_tab
        WITH br_gjahr-low = p_an1
        WITH stogrd = '05'
        WITH testlauf = ''.
    This is the RANGE_TAB table before submit:
    1     I     EQ     1001xxxxxx
    2     I     EQ     1002xxxxxx
    3     I     EQ     1003xxxxxx
    4     I     EQ     1004xxxxxx
    5     I     EQ     1005xxxxxx
    6     I     EQ     1006xxxxxx
    7     I     EQ     1007xxxxxx
    8     I     EQ     1008xxxxxx
    I think this wont work for some reason so I will start to do this by a BDC.
    Many thanks for your help.

  • Problem with submit information

    dear all,
    i got problem with the javascript function:
    function fsubmit(){
    document.all.formSubmit.action = "\servlet\SubmitServlet"
    document.all.formSubmit.submit();
    ...onClick = 'fsubmit()'
    After i execute the function i got this message " Object doesn't support this property or method"
    it stop at "document.all.formSubmit.action = "\servlet\submitServlet"

    cscylam. Have you got this problem solve yet? I am running into this same problem and have try everything mention here. But still have not be able to solve it.
    On my mainpage.jsp I be able to do:
    document.forms[0].action="logout.jsp";
    document.forms[0].submit;
    and it worked fine.
    But in my secondpage.jsp, which was redirect by mainpage.jsp. This same codes:
    document.forms[0].action="logout.jsp";
    document.forms[0].submit;
    give me error: Object doesn't not support this method or property.
    Please help.

  • Problem with Submit statement

    Hi All,
    I have a problem with the usage of the submit statement.
    I have a report program, say report 'A'.
    In the report program 'A', I have a custom screen with number '9001'.
    In the screen 9001, of program A, there is a button to display ALV.
    In the PAI event, under module Module call_report, i am calling another report program say B, using the statement Submit B and return, when the button is clicked.
    In the report program B i have a select options. and a docking alv container in it.
    Flow of the program is:
    1. Run the program A.
    2. Select the button on screen 9001.
    3. Call the report program B.
    4. Enter a value in the select option and run the program B.
    5. Go back to program A by selecting back button.
    The problem is as at step 4.:
    Now, when i press Intervals button ( Arrow mark ) present beside the select option, my program B is getting executed and the list output is being shown.
    Kindly let me know what is the problem.

    you can very well use the submit procedure as suggested above or you also can do "leave to screen '9001' " for the back button.

  • Problem with Submit statement into print program for delivery

    Hi all,
    i got a problem with the SUBMIT statement that i put into a print program associated to a delivery output message.
    If i print the message by VL02N or VL71, everything works.
    But if i associate the output with RV56ABST, the SUBMIT instruction isn't accepted and i get the message
    "Processor ABAP: POSTING_ILLEGAL_STATEMENT"
    There is any solution to this situation?
    Why i cannot use the SUBMIT statement in this case?

    Hi Simone,
    you could try to do the operation in a separate task (call a function in starting new task). This will decouple your current process from the new task.
    Cheers,
    Stefan.

  • Problem with "Submit to SAP" button in Adobe Form

    Hello All,
    I have a problem with my Adobe form. The "Submit to SAP" button for some reason does not seems to work in the newer forms. Whenever I click on the button, no action is being triggered. However, when I load older version of the same form, the button will respond.
    Has anyone come across similar situation before ? Any suggestions/feedback will be greatly appreciated. Thank you.
    fromKwok Wei

    Hi Bhavik,
      I created different version of the forms (Eg: added new logo, additional table rows etc...) by using the save a copy function in adobe designer. Seems that the original one works but the later ones will no longer respond to the button.
      The submit action is also correctly specified in the property of the UI Element. Otherwise it will not work on any forms... is my understanding correct ?
    Thnaks
    from
    Kwok Wei

  • Problem with submit button in wweb dynpro abap

    hi all,
                we have problem in submit of our interactive form in web dynpro abap.
    my scenario.
                             on event submit we have to fetch data from database table and display the same.
    On click of the SUBMIT button for the first time it fetches data but when we change the input field and submit again it dsnt trigger the event(We need to double click only then event is triggered).
    Can anyone guide us on how to fetch the data at single click.
    Thanks and Regards
    Vinoth

    The form is open. I should have mentioned that I made sure to check that first.  The form was created by uploading an existing PDF file that I created from a MS Word file to Adobe FormsCentral. Once the form was completed, I had a coworker test it & it worked.  We sent the form out & I have received some back, but have also received reports of the form not working.  I downloaded the form to my computer & tested it using Adobe Acrobat 9.0 Standard.  I use a Windows environment on a Dell laptop.  The form does not work for me.

  • Problem with submit report for transaction LT23

    Hi,
    I want to submit report for transaction LT23 based on the double click on a field in the output of my report. I am using selection table to pass values. The problem is I have  something called dynamic selections. I am using some selection fields from the dynamic selection option. Can anyone tell me how do I pass the values in such a case?

    In your [submit|http://help.sap.com/abapdocu/en/ABAPSUBMIT.htm] statement in the [selection screen parameters|http://help.sap.com/abapdocu/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm] use the [WITH FREE SELECTIONS|http://help.sap.com/abapdocu/en/ABAPSUBMIT_SELSCREEN_PARAMETERS.htm#!ABAP_ADDITION_5@5@] option to pass dynamic selections
    NB: Use FREE_SELECTIONS_RANGE_2_EX to build the correct parameter texpr.
    Regards
    Raymond

  • Problem with submit button

    I have installed Acrobat 9 professional and have created a PDF with field codes embedded.  At the top of the last page, I created a button which sends the form and answers to an email account (mailto: command is used).  The form works beautifully for me but not for anyone else.  There is no protection or other specialized settings enabled.  I can fill it in and submit the form with either Reader or Acrobat Pro.  Any suggestions or ideas to solve this little problem would be greatly appreciated.

    If they are using Reader you must either enable Reader Rights or change the submission to data only (preferred). You did not say if the form was created in Acrobat or Designer. There are significant differences and you need to indicate which you used.

  • Problem with submit button - Acrobat/Reader

    I have created a simple fillable form with Adobe Acrobat XI Pro with a submit button, form posted to the web. The form/button works fine for me in Google Chrome, IE, and Safari (Windows 8, Outlook email client) but doesn't seem to work for users with only Adobe Reader (9 was tested using an older version of Windsows and Outlook). After completing the form successfully, they are returned the error message: "This operation is not permitted" when they attempt to submit their form using the submit button. I'm not sure what program is causing the problem. How do I fix this?

    You need to Reader-enable the form using Acrobat. Before Reader 11 was introduced, Reader was not able to save a fille-in form unless the document was enabled. Since the changes need to be saved in order to attach it to an email, this is necessary for previous versions. Do enable a form in Acrobat 11, select: File > Save as Other > Reader Extended PDF > Enable More Tools

  • Problem with submit email

    i have a problem when i want to submit an email with the button i need that the pdf that i submit can not be changed by another person.
    do you know the solution?

    Is your problem resolved?
    Let me know if not and I can email the code.

  • Problems with SUBMIT and EXPORTING LIST TO MEMORY

    Hi,
    I have a program that executes another report using a submit call, then the output of this submit is retrieved to the program using the LIST_TO_MEMORY FM. Source code it's something like this:
    SUBMIT rptime00
                 EXPORTING LIST TO MEMORY AND RETURN
                 WITH SELECTION-TABLE t_params
                 USER 'my_user'.
    CALL FUNCTION 'LIST_FROM_MEMORY'
         TABLES
             listobject = t_table
         EXCEPTIONS
             not_found  = 1
             OTHERS     = 2.
    This code works fine if I execute the program in foreground. But when I try to execute the report in background (F9 instead of F8 for example), submit works fine but LIST_FROM_MEMORY returns a NOT FOUND exception instead of the output of submitted program.
    So, is it possible to retrieve the output of a program called via submit when the report that executes the submit is executed in background?, how can I retrieve the output of submit when the report is executed in background?
    thanks in advance

    try
    SUBMIT rptime00
                 EXPORTING LIST TO MEMORY AND RETURN
                 WITH SELECTION-TABLE t_params.
    without user
    hope that helps
    Andreas

  • Problem with submit for spool number generation

    Hi All,
    I have a ALV report which downloads the output to pdf . I have a footer data in the END_OF_PAGE event which should be displayed for each page. It works fine if I take a  printout using the print option in the report output screen and generate a spool number the footer is getting printed.
    But when I use a submit to sap-spool....statement to generate the spool number the footer is not displayed.
    Any suggestions??

    Hi RAkesh,
    Are you using the FM 'REUSE_ALV_COMMENTARY_WRITE' for footer text or simple using the write statements.
    try with the both options, still problem provide the complete code.
    Regards,
    Satya.

  • Problem with cfdocument and background colors with table borders

    i am having a great deal of difficulty with cfdocument
    rendering my tables with cells that have background colors. the
    background colors seem to bleed through the table border. a picture
    at 100% magnification can be seen at
    http://www.vitad.com/cfdoc.jpg
    and at 1600% magnification at:
    http://www.vitad.com/cfdoc2.jpg.
    i am attaching sample code of the what generated the pdf in the
    pictures. btw, i am running cfmx 7 with hot fix 2.

    Hi fresher4flex,
    Since you are using the item Renderer for the DataGrid Column try to apply the styles dynamically to the background of your itemRenderer by making using of the rollOver and rollOut events.
    Thanks,
    Bhasker

Maybe you are looking for

  • What is causing this? Downloads do not complete, being partial and/or limited requiring refreshing/clearing History or stop-and-start Retry.

    Sometimes a download will not start at all if it is not small, (@ 1MB or greater) it will not download completely, requiring a Pause, then a Retry and/or clearing of the History and a reload of the page. Some downloads take as many a 5-10 such cycles

  • Nano problems

    I recently unplugged my 4gb nano from my computer safely. i went to go select a song and it appeared that all my songs have been deleted. i look in the about section and see that the space my music used was still used. i thought no big deal and plugg

  • Problem with opening files in CDE

    Hi! I have a problem with CDE. When I login as a normal user (not root) I can not open any file in my home directory or in its subfolders using dtfile (CDE File Manager). When I double click on a text file I get the following error message: The reque

  • NI LabVIEW 2009 LEGO MINDSTORMS NXT Module Released!

    This software allows users to run code on their computers to control LEGO® NXT Bricks and compile, download, and run LabVIEW code directly to the NXT.  The new NXT Module 2009 represents a considerable improvement in features and usability over past

  • How much is a new iPhone 3Gs battery( my old battery expanded)

    My Iphone battery expanded not sure why, i want to buy a new one i dont have enough money for a new iPhone( 4,4S,5)  So the 3S is the best i can do, And i would also like to know why the battery expanded. So how much a new battery?( i dont have a war