Report to be sent to a list of recipients in an e:mail (part of batch job)

Hi,
I need to generate a report using ALV functionality.
Currently my report requirement is to sent to a list of recipients in an e:mail (part of the batch job set-up) and the recipients just download the report in a spreadsheet format. 
Could you please give me the suggestions the way which I need to follow and how I will be able to set this report as a part of batch job which will send the report details to the users in the form of Email.
Points will be rewarded for the answers.
Regards,
Ravi Ganji

Hi,
IN SM36..You will see a button for "Spool list recipient" which is next to the target server button..
press that button..
Give the email address in the recipient field..
GIve the steps and start condition and then release the job..
THanks,
Naren

Similar Messages

  • Is there a way to access ABAP OO instances from a batch job report

    Hello,
    I am looking for a way to access ABAP OO instances from a batch job report. My circumstances are the following:
    I have got some ABAP OO coding that identifies other objects (class instances) that have to be processed (they have a DoIt method that does some calculation). As this processing is time consuming and performace relevant I have to parallelize this in batch jobs. This batch jobs however can only be "simple" ABAP reports according to SM36. The problem is now that I dont really know how to tell the batch job report what objects to process. Somehow I have to access theses instances from  that batch job report.
    Does anybody have an idea?
    Greetings
    Matthias

    Hi David,
    thanks a lot for your help. After a lot of searching on the net this seems to be the only way to cope with it. However I am not sure about the locking mechanisms and if its suitable for mass data processing. In the help page you suggested the following is stated which I do not fully understand::
    "The current lock logic does not enable you to set specific locks for the following requirements:
    ·        Many parallel read and write accesses
    ·        Frequent write accesses
    ·        Division into changeable and non-changeable areas
    Although the lock logic makes the first two points technically possible, they are not practical because most accesses would be rejected."
    Does this mean
    a) if I dont want to set "specific locks" for frequent write accessess I am fine
    or
    b) I am discouraged from use shared memory technics for frequent write accessess?
    In the latter case I will have a problem...
    What do you think?
    Greets
    Matthias

  • Send Crystal Report by email reading Domino email list

    Hello all,
    Do you know how do I configure Crystal Reports, so that when I address a report to be sent by email, it reads the contacts list in a Domino server (lotus notes)?
    Thanks in advance,
    Cristina.

    As of CR 9 all functionality has changed, database, exporting, API's etc.
    Also, by default the export dll's are not installed. Go into add/remove programs and change CR. Select the modify, or what ever it is called on your OS, and expand the export types and scroll down until you see Lotus Domino...
    Test again
    Thank you
    Don

  • TS3147 After installing Mountain Lion, I tried to scan from my Canon MX870 and received the message: "MP Navigator EX quit unexpectedly. Click Reopen to open the application again. A report will be sent to Apple,"

    After installing Mountain Lion, I tried to scan from my Canon MX870 and received the message: "MP Navigator EX quit unexpectedly. Click Reopen to open the application again. A report will be sent to Apple,"  This problem happened right after I installed Mountain Lion. I then downloaded Canon's upgraded software and drivers for the MX 870 and the problem was resolved. Now one month later, the problem has returned.

    rjliii wrote:
    Solved problem with original Canon software.  When I downloaded Canon software upgraded for OS X 10.8, I got all by Navigator Ex. Noticed that on Canon's site, the upgraded version is 3.1; my app was 2.1. Upgraded to 3.1 for Nav. Ex, and it works.
    You should still use Image Capture IMHO.  If it was my gear, that's what I would do.  No need to worry about software upgrades.

  • In my MacBook Pro "sent" mailbox emails are listed by my email address but on my iPad the "sent" emails are listed by the sent email address?

    On my MacBook Pro in the "sent" mailbox emails are listed by my email address but on my iPad the "sent" emails are listed by the sent email address.  Very hard to look at the address where the message was sent to?

    After upgrading to IOS 7.0.3 the problems gone.
    There is no mention of this being a bug or a fix so im thinking a software glitch was the issue.
    When I look at a message in my inbox and it says "To: JB Manz" - I click my name and it shows my contact info including my 4 email addresses and the address the message was addressed to is highlighted blue, others all black.
    Not sure how it got fixed but it's working like it used to.

  • How can I list all recipients of an email I have sent?

    Hi there,
    I sent an email to 16 people today using Mac Mail v 7.1 (1827) - 1 group of 15 people and another person. I later found out that the single email may have been wrong and I wanted to check it... i.e. did I put gmail.com instead of hotmail.com?
    When I clicked on the message in the sent folder, the email came up with the display showing the email address I used to send it (on the top left) and on the top right, the timestamp of when it was sent and just below that, a link with "Hide details".
    Clicking on Hide Details DOESN'T actually hide the information !!! it expands with a list of email addresses which in this case was 4 email addresses and a link with 12 more people. Clicking on "12 more" people reverts back to my email address and timestamp.
    So in effect, I can't display the email addresses I sent to and the logic of "Hide Details" seems to be working in reverse.
    The only way I can check to see to whom I sent the email, is to reply to all recipients, view the TO/CC/BCC fields, and then cancel. But surely, clicking on the "12 more" or however more number of people, should display all the email addresses or am I missing something really obvious?
    Thanks,
    Maz

    Hi Wayne,
    Thanks for your reply.
    I tried your suggestion and it still didn't work. I've just done a test email and I've attached the 2 images.
    The first image lists a few of the email recipients and N people more and when I click on "N more", I get the second image.
    So it's either one or the other I get and no full list of email recipients.
    Thanks,
    Maz

  • I occasionally get an error that forces me to shut down/restart my computer. After restart, a message pops up stating that an error has occurred and a report will be sent to Apple. This hass been going on for several months, and Apple has never contacted

    I occasionally get an error that forces me to shut down/restart my computer. After restart, a message pops up stating that an error has occurred and a report will be sent to Apple. This has been going on for several months, and Apple has never contacted me about this problem. Other than the forced shutdown/restart, I have had no problems with Garage Band.

    I occasionally get an error that forces me to shut down/restart my computer. After restart, a message pops up stating that an error has occurred and a report will be sent to Apple. This has been going on for several months, and Apple has never contacted me about this problem. Other than the forced shutdown/restart, I have had no problems with Garage Band.

  • EWA Report not being sent for two systems

    Hi Experts,
    We are having one issue in EWA Report in solution manager. Searched hard but could not find solution.
    Our solution manager is configured to provide EWA for 4 systems- ECC, BW, PI and Solution manager itself.
    The configurations are in place to the extend that we are able to view the weekly reports in Solution manager.
    Issue is -
    1. We are able to recieve mail notification for Solution Manager and ECC but not able to get for BW and PI.
    2. The ECC report is coming ok, but Solution manager report is blank.
    The places I checked the configuration -
    1. SDCCN for all systems.
    2. SOLMAN_EWA_ADMIN - all systems active and chcked for EWA
    3. Background Jobs for all systems -Maintenance Package, Refresh Session, Earlywatch Alert for Solution Manager
    4. Background Jobs related to the task including SM:EXEC SERVICES
    Later on I deleted and rescheduled the job SM:EXEC SERVICES to make sure it covers all systems.
    Data is visible in Solution Manager but report is not being sent over mail for two systems- BW and PI.
    Solution manager report is being sent but empty.
    Please suggest.
    Regards,
    Sabita

    Hi,
    what is your ST verison? check this note applicable or not
    [https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1496931|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1496931]
    and chek the version of your service updated ST_SER too, patch this also solve the issue
    refer this [Note 1482818 - Service updates ST-SER 701_2010_1|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=0001482818&nlang=E]
    Jansi

  • Interactive Report issue ( hw to come 5th list to back 2nd list directly )

    Hi Experts,
                      I have one issue regarding Interactive report.
    -->  I am in 5th list , and i want go directly to the 2nd list .
    --> Hw we select multiple line of data in one list and pass to another list.
    Helpful answers will reward.
    Regards,
    Vinai.

    JUST HARD CODE
    SY-LSIND = 2. IN YOUR FN CODE WHERE YOU HAVE TO GO.
    i.e.
    if sy-ucomm = 'BACK' and Sy-lsind = 5.
    sy-lsind = 2.
    endif.
    regards
    shiba dutta

  • Report email multiple users or distribution list

    I have created an output device for PDF format for report painter output.  When I print, there is space for a single mail address.  I have created distribution lists in the workplace, tcode SBWP.  I need to know how to send the pdf of the report painter output to the distribution list or multiple users.

    this sounds to me like the client is not handling errors properly
    and instead of resubmitting to only those that failed, it is resubmitting all
    I would say to look at the mail.log_current. make sure logging is on the defaults channel
    set LOG_CONNECTION=3
    and LOG_MESSAGE_ID=1
    in option.dat
    recompile configuration
    imsimta cnbuild
    reload configuration
    imsimta reload
    The original problem was when a temporary error occurred in sending one of the addresses, and we didn't handle that properly. Happened sometimes when Brightmail was involved.
    Since these are not Messaging lists, but Outlook lists, it's entirely possible that it's Outlook that's not handling the errors correctly.

  • Solver error: Solver quit unexpectedly. Click reopen to open the application again. This report will be sent to Apple automatically. I've tried restarting, reopening. Ideas?

    Tried opening up Solver for the first time on my new macair book. I'm getting the error: Solver quit unexpectedly. Clieck reopen to open the application again. This report will be sent to Apple automatically. I've tried restarting, reopening. Ideas?

    Just found the answer to my own question!

  • Not receiving email sent to Distribution List?

    Hi all
    My client has a 8900, for which I have set up Exchange email via BIS.
    Everything works ok except the blackberry doesnt sync any messages sent to distribution lists he is part of.
    Outlook mailbox is working fine, showing all emails.
    I'd imagine this is a common question but the search is throwing up an error and I cant find an answer!

    did you found solution for this one I've got similar issue
    exchange 2007, emails sent to distribution group are fine in outlook but not on the Blackberry device, all other emails on the device works fine ...

  • Run_report_object in forms10g: Reports Server only accept batch jobs

    Hi all,
    We've migrated an old forms application to forms 10g R1. To run report objects from the form applications, I use the following code to run reports with a report server (10g):
    SET_REPORT_OBJECT_PROPERTY(l_rep_id,REPORT_FILENAME,'c:\path\to\report.rep'');
    SET_REPORT_OBJECT_PROPERTY(l_rep_id,REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(l_rep_id,REPORT_COMM_MODE,ASYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(l_rep_id,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(l_rep_id,REPORT_DESFORMAT,'PDF');
    SET_REPORT_OBJECT_PROPERTY(l_rep_id,REPORT_SERVER,'repserver');
    l_rep_return := RUN_REPORT_OBJECT(l_rep_id, pl_id);
    The parameter pl_id is a pre-filled parameter list, and the parameter l_rep_id is the report_object, which was added to the reports-node in the fmb.
    By running this code, the reportserver successfully executes the report and via the report server queue I can open the created PDF file.
    But, as the report_comm_mode is set to ASYNCHRONOUS, the code doesn't wait until the reportserver has finished the execution of the report, so it's impossible to show the report by web.show_document. So I've set the report_comm_mode to SYNCHRONOUS:
    SET_REPORT_OBJECT_PROPERTY(l_rep_id,REPORT_FILENAME,'c:\path\to\report.rep'');
    SET_REPORT_OBJECT_PROPERTY(l_rep_id,REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(l_rep_id,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(l_rep_id,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(l_rep_id,REPORT_DESFORMAT,'PDF');
    SET_REPORT_OBJECT_PROPERTY(l_rep_id,REPORT_SERVER,'repserver');
    l_rep_return := RUN_REPORT_OBJECT(l_rep_id, pl_id);
    But when I executes this code, the execution of the report failes, and the following error code is shown in the report server queue:
    Terminated with error: REP-188: Reports Server only accept batch jobs
    But as you can see, the execution_mode is set to BATCH, so that is not the problem.
    Is there anyone who can help me to fix this problem?
    Regards,
    Jeroen

    I just sent you an e-mail, I hope it helps!

  • Subject in the mail sent through Batch Job

    Hi,
    We have a batch job which is running daily.
    Consumer wants the output of the batch job (spool request) in mail. We generally send the mail from batch job by filling the mail id in "Title field".. there is some third party involved in managing spool requests..
    But now consumer wants to send the mail with a subject line filled..
    I could not find any field or option in SM36 where i can fill in the subject..
    Please help. Now we are getting the subject as user id + spool request + system number.

    Check the below Code.
    DATA: NUMBYTES TYPE TST01-DSIZE,
            PDFSPOOLID TYPE TSP01-RQIDENT.
      DATA: BEGIN OF PDFDATA OCCURS 0.
              INCLUDE STRUCTURE TLINE.
      DATA: END OF PDFDATA.
      DATA: G1_LINES_TXT  TYPE I.
      DATA  : L_DOCUMENT_DATA    TYPE SODOCCHGI1,
              T_PACKING_LIST     TYPE STANDARD TABLE OF SOPCKLSTI1,
              W_OBJHEAD TYPE SOLI_TAB,
              T_OBJBIN TYPE STANDARD TABLE OF SOLISTI1,
              T_OBJTXT  TYPE STANDARD TABLE OF SOLISTI1,
              LW_PACKING_LIST    TYPE SOPCKLSTI1,
              L_LINES            TYPE I,
              W_RECEIVER        TYPE SOMLRECI1,
              T_RECEIVER         TYPE STANDARD TABLE OF SOMLRECI1.
      DATA: OBJPACK LIKE SOPCKLSTI1 OCCURS  2 WITH HEADER LINE.
      DATA: OBJHEAD LIKE SOLISTI1   OCCURS  1 WITH HEADER LINE.
      DATA: OBJBIN  LIKE SOLISTI1   OCCURS 10 WITH HEADER LINE.
      DATA: OBJTXT  LIKE SOLISTI1   OCCURS 10 WITH HEADER LINE.
      DATA: RECLIST LIKE SOMLRECI1  OCCURS  5 WITH HEADER LINE.
      DATA: DOC_CHNG LIKE SODOCCHGI1.
      DATA: TAB_LINES LIKE SY-TABIX.
    *...Read the Spool request number generated.
      SELECT MAX( RQIDENT ) INTO G_SPOOL_NUM
                            FROM TSP01
                            WHERE RQCLIENT = SY-MANDT AND
                            RQOWNER = SY-UNAME.
    *....Convert Spool to PDF
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
        EXPORTING
          SRC_SPOOLID              = G_SPOOL_NUM
          NO_DIALOG                = 'X'
          DST_DEVICE               = G_PDEST
        IMPORTING
          PDF_BYTECOUNT            = NUMBYTES
        TABLES
          PDF                      = PDFDATA
        EXCEPTIONS
          ERR_NO_ABAP_SPOOLJOB     = 1
          ERR_NO_SPOOLJOB          = 2
          ERR_NO_PERMISSION        = 3
          ERR_CONV_NOT_POSSIBLE    = 4
          ERR_BAD_DESTDEVICE       = 5
          USER_CANCELLED           = 6
          ERR_SPOOLERROR           = 7
          ERR_TEMSEERROR           = 8
          ERR_BTCJOB_OPEN_FAILED   = 9
          ERR_BTCJOB_SUBMIT_FAILED = 10
          ERR_BTCJOB_CLOSE_FAILED  = 11
          OTHERS                   = 12.
    *...Convert 132 char to 255 char
      LOOP AT PDFDATA.
        TRANSLATE PDFDATA USING ' ~'.
        CONCATENATE GD_BUFFER PDFDATA INTO GD_BUFFER.
      ENDLOOP.
      TRANSLATE GD_BUFFER USING '~ '.
      DO.
        IT_MESS_ATT = GD_BUFFER.
        APPEND IT_MESS_ATT.
        SHIFT GD_BUFFER LEFT BY 255 PLACES.
        IF GD_BUFFER IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    Creating the document attachment
      LOOP AT IT_MESS_ATT.
        OBJBIN = IT_MESS_ATT.
        APPEND OBJBIN.
        CLEAR: OBJBIN,
               IT_MESS_ATT.
      ENDLOOP.
    Creating the document to be sent
      DOC_CHNG-OBJ_NAME = 'IG Balance'.
    *.....Subject of the email.
      CONCATENATE 'Intragroup Confirmation from AoO: ' P_ZAOO INTO DOC_CHNG-OBJ_DESCR.
    DOC_CHNG-OBJ_DESCR = 'Intragroup Confirmation from AoO '.
    *...Body of the email
      OBJTXT = 'Please find attached a summary and details '.
      APPEND OBJTXT.
      OBJTXT = 'Any queries regarding the attached should be addressed to the contact names on the Report.'.
      APPEND OBJTXT.
      DESCRIBE TABLE OBJTXT LINES TAB_LINES.
      READ TABLE OBJTXT INDEX TAB_LINES.
      DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
    Creating the entry for the compressed document
      CLEAR OBJPACK-TRANSF_BIN.
      OBJPACK-HEAD_START = 1.
      OBJPACK-HEAD_NUM   = 0.
      OBJPACK-BODY_START = 1.
      OBJPACK-BODY_NUM   = TAB_LINES.
      OBJPACK-DOC_TYPE   = 'RAW'.
      APPEND OBJPACK.
      DESCRIBE TABLE OBJBIN LINES TAB_LINES.
      OBJHEAD = 'Balace.PDF'. APPEND OBJHEAD.
    Creating the entry for the compressed attachment
      OBJPACK-TRANSF_BIN = 'X'.
      OBJPACK-HEAD_START = 1.
      OBJPACK-HEAD_NUM   = 1.
      OBJPACK-BODY_START = 1.
      OBJPACK-BODY_NUM   = TAB_LINES.
      OBJPACK-DOC_TYPE   = 'PDF'.
      OBJPACK-OBJ_NAME   = 'ATTACHMENT'.
      OBJPACK-OBJ_DESCR = 'Balance Report'.
      OBJPACK-DOC_SIZE   = TAB_LINES * 255.
      APPEND OBJPACK..
    Entering names in the distribution list
      DATA: L_CNT TYPE I.
      LOOP AT T_EMAIL INTO W_EMAIL.
        IF W_EMAIL-ZCONTACT1 IS NOT INITIAL.
          RECLIST-RECEIVER = W_EMAIL-ZCONTACT1.
          RECLIST-REC_TYPE = 'U'.
          L_CNT = L_CNT + 1.
        ELSEIF W_EMAIL-ZCONTACT2 IS NOT INITIAL.
          RECLIST-RECEIVER = W_EMAIL-ZCONTACT2.
          RECLIST-REC_TYPE = 'U'.
          L_CNT = L_CNT + 1.
        ENDIF.
        APPEND RECLIST.
        CLEAR: RECLIST,
               W_EMAIL.
      ENDLOOP.
      SELECT SINGLE ZAOO
                     ZCONTACT1
                     ZCONTACT2 FROM ZFI_MT_RPTRMAP INTO W_EMAIL
                     WHERE ZAOO EQ P_ZAOO.
      IF W_EMAIL-ZCONTACT1 IS NOT INITIAL.
        RECLIST-RECEIVER = W_EMAIL-ZCONTACT1.
        RECLIST-REC_TYPE = 'U'.
        L_CNT = L_CNT + 1.
        APPEND RECLIST.
      ELSEIF W_EMAIL-ZCONTACT2 IS NOT INITIAL.
        RECLIST-RECEIVER = W_EMAIL-ZCONTACT2.
        RECLIST-REC_TYPE = 'U'.
        L_CNT = L_CNT + 1.
        APPEND RECLIST.
      ENDIF.
    Sending the document
      IF L_CNT > 0.
        CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
          EXPORTING
            DOCUMENT_DATA              = DOC_CHNG
            PUT_IN_OUTBOX              = 'X'
            COMMIT_WORK                = 'X'
          TABLES
            PACKING_LIST               = OBJPACK
            OBJECT_HEADER              = OBJHEAD
            CONTENTS_BIN               = OBJBIN
            CONTENTS_TXT               = OBJTXT
            RECEIVERS                  = RECLIST
          EXCEPTIONS
            TOO_MANY_RECEIVERS         = 1
            DOCUMENT_NOT_SENT          = 2
            OPERATION_NO_AUTHORIZATION = 4
            OTHERS                     = 99.
        CASE SY-SUBRC.
          WHEN 0.
            WRITE 'Email sent successfully'.
          WHEN 1.
            WRITE: / 'no authorization to send to the specified number of recipients!'.
          WHEN 2.
            WRITE: / 'document could not be sent to any of the recipients!'.
          WHEN 4.
            WRITE: / 'no authorization to send !'.
          WHEN OTHERS.
            WRITE: / 'error occurred during sending !'.
        ENDCASE.
      ELSE.
        MESSAGE S000 WITH TEXT-018.
        STOP.
      ENDIF.
    *...Delete Spool Request.
      DATA: SPOOLID TYPE TSP01_SP0R-RQID_CHAR.
      SPOOLID = G_SPOOL_NUM.
      CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
        EXPORTING
          SPOOLID             = SPOOLID
      IMPORTING
        RC                  =
        STATUS              =
        ERROR_MESSAGE       =

  • How to send an updated list using batch job

    Hi All,
      The program displays data on the screen, if the data looks ok, then there is an option to update.
    When I run update, the program submits a batch job and the basic list gets updated, but my batch job is still sending the data on the screen. how can i send the updated list using batch job.
      Ex: output of the program
                    1         2
           there is an update button on the screen, when i press update button, my program submits in batch job, the above list becomes
                    1        2
                    3        4
    but when i check the spool, it shows the o/p as         1           2 ..it is not sending the updated list.
    Please suggest me how to send the updated data
    Thanks,
    Kumar

    Hi Krishna,
      I have added a button on the alv list. when i press update button, my program updates the list, then submits the batch job. I am attaching the sample test program i am trying with, please suggest me how can i get the updated list.
    *& Report  ZTESTSSSSS
    REPORT  ZTESTSSSSS.
    DATA: gt_fieldcat TYPE slis_fieldcat_alv,
          lt_fieldcat type slis_t_fieldcat_alv,
          gt_sort     TYPE slis_t_sortinfo_alv,
          g_repid     LIKE sy-repid,
          gt_layout   TYPE slis_layout_alv.
    start-of-selection.
      lt_return-type = 'S'.
      lt_return-message = 'test message'.
      append lt_return.
      CLEAR gt_fieldcat.
      gt_fieldcat-fieldname = 'TYPE'.
      gt_fieldcat-outputlen = '3'.
      gt_fieldcat-tabname   = 'LT_RETURN'.
      gt_fieldcat-seltext_l  =  'Type'.
      gt_fieldcat-seltext_m  =  'Type'.
      gt_fieldcat-seltext_s  =  'Type'.
      APPEND gt_fieldcat TO lt_fieldcat.
      CLEAR gt_fieldcat.
      gt_fieldcat-fieldname = 'MESSAGE'.
      gt_fieldcat-outputlen = '15'.
      gt_fieldcat-tabname   = 'LT_RETURN'.
      gt_fieldcat-seltext_l  =  'Message'.
      gt_fieldcat-seltext_m  =  'Message'.
      gt_fieldcat-seltext_s  =  'Message'.
      APPEND gt_fieldcat TO lt_fieldcat.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          I_CALLBACK_PROGRAM       = sy-repid
          I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
          I_CALLBACK_USER_COMMAND  = 'USER_COMMAND'
          IT_FIELDCAT              = lt_fieldcat
        TABLES
          T_OUTTAB                 = lt_return
        EXCEPTIONS
          PROGRAM_ERROR            = 1
          OTHERS                   = 2.
    *&      Form  set_pf_status
          text
         -->RT_EXTAB   text
    FORM set_pf_status USING rt_extab TYPE slis_t_extab.
      SET PF-STATUS 'STANDARD'.
    ENDFORM. "Set_pf_status
    *&      Form  user_command
          text
         -->R_UCOMM      text
         -->RS_SELFIELD  text
    FORM user_command USING r_ucomm     LIKE sy-ucomm
                            rs_selfield TYPE slis_selfield.
      DATA: li_count TYPE I.
      IF r_ucomm EQ 'UPD'.
    Adding another message
        lt_return-type = 'S'.
        lt_return-message = 'Another test message'.
        APPEND lt_return.
        rs_selfield-refresh = 'X'.
        rs_selfield-col_stable = 'X'.
        rs_selfield-row_stable = 'X'.
        l_upd = 'X'.
       LOOP AT lt_return.
         WRITE: / lt_return-type, lt_return-message.
       ENDLOOP.
        IF sy-batch IS INITIAL.
          l_upd = 'X'.
    Open the Job
          CALL FUNCTION 'JOB_OPEN'
            EXPORTING
              jobname          = w_name
            IMPORTING
              jobcount         = w_number
            EXCEPTIONS
              cant_create_job  = 1
              invalid_job_data = 2
              jobname_missing  = 3
              OTHERS           = 4.
          IF sy-subrc = 0.
            SUBMIT ('ZTESTSSSSS') VIA JOB w_name NUMBER w_number
                    AND RETURN
                    WITH p_recnnr = p_recnnr.
            CALL FUNCTION 'JOB_CLOSE'
              EXPORTING
                jobcount             = w_number
                jobname              = w_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.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDFORM.  "User_command
    Thanks,
    Kumar

Maybe you are looking for

  • Why do I keep getting the "modified outside Illustrator" box?

    I work with Illustrator and Photoshop both open simultaneously, moving Illustrator parts into Photoshop scans and importing Photoshop scans into AI for use as templates. Both are Adobe apps, right? So why do I get this warning when I work on the Illu

  • REP-52251: Cannot get output of job ID

    Hi, I am trying to call a report from oracle form and i am getting this error REP-52251: Cannot get output of job ID 220 you requested on Mon Oct 16 11:19:12 EDT 2006. REP-56033: Job 220 does not exist please help, any Ideas. Best regards,

  • Error Msg while copying Adobe Form

    Hi, I am trying to copy an adobe form but I receive the following error message " Internal Error Occured in SAFP API".  Any help would be appreciated. Thanks,

  • LOST İPAD 2

    hi im from turkey and i lost my ipad2  six days ago and i didn't activate find my ipad application on my ipad2.so i can't find my ipad's location.can you help me for finding my ipad2?

  • Create InitialContext error under jre1.5

    I have a JMS client application need to run under the jre1.5 environment. I put the wljmsclient.jar and wlclient.jar into my application's . but throw java.lang.NoClassDefFoundError: com/sun/corba/se/connection/ORBSocketFactory on create InitialConte