Program RSCONN01 ??

Hi ,
If I schedule this program RSCONN01 all the mails in the queue are pushed to the mailbox of the recipient . Is there any way to schedule it in such a way that it sends only selected mails ?
Regards,
Varun.

No, you can't do that.
Regards,
Rich Heilman

Similar Messages

  • Regarding Program RSCONN01

    Dear Masters
    What is the use of Program "RSCONN01".
    Why this should be schedulded periodically for ex 10 mins once.
    Why this shouldn't be schedulded once in a day?
    I have seen this job in SM37 which is finished every 10 mins once.
    Could u please help me to resolve this issue.
    Thanks in advance
    Raja

    Hi Raja,
    Try this link, it has helped me in the past
    help.sap.com/bp_crmv340/CRM_DE/BBLibrary/Documentation/C78_BB_InstallGuide_EN_US.doc
    Regards
    Ben
    PS assign points if useful

  • Error message 816-in SOST, Program -RSCONN01 is not picking this .

    Hi friends ,
                   I had the following error message in SOST tocde <b>Message cannot be transferred to node SMTP due to connection error (final)(message 816)</b>-
    When iam running RSCONN01  program it is not picking the paticulr error out line item - Can any one explain me how can i rectify this error and how RSCONN01 can pick this entries also .....
    Awating for experts reply ,
    Tnks ,
    Regards,
    veera

    Kindly check this link.
    http://forums.sdn.sap.com/thread.jspa?threadID=1387916

  • User mail ID validation with RSCONN01 program

    Hi All,
    I want to send mail to particular users only.
    How can i set there mail IDs , so that when program RSCONN01 runs , it will pick only those mails, which are to be sent only to those users  ?
    It should not pick the mails for other users.
    Thanks.

    Hi Roy,
    Got one idea how it will be depends on your requirement.
    You are saying only to some particular email ids you want to send. In that case where dont you create a table storing the email ids and in the selection screen input validate the email id with a select statement. If your are having any issues to create table because of database considerations, we can also get the input of email ids with in program either by search help or drop down.
    How much you can implement from my input revert me back.
    Cheers!!
    Balu

  • Customise RSCONN01 program

    hi all,
    has anybody ever customised program RSCONN01, we need to select data based on table SOOD, and submit the job using FM SX_OBJECTS_SEND, is it possible to send SOOD data and submit it using fm SX_OBJECTS_SEND, or is there any other fm to submit scot job

    hi all,
    has anybody ever customised program RSCONN01, we need to select data based on table SOOD, and submit the job using FM SX_OBJECTS_SEND, is it possible to send SOOD data and submit it using fm SX_OBJECTS_SEND, or is there any other fm to submit scot job

  • Email triggering program in version ECC6

    Hello experts,
    In version 4.6c, program RSCONN01 will trigger all email requests waiting in the queue to be sent out. After upgrading to ECC6, the same email requests now have status of 'Still no entry in queue' and never be triggered by the program. SAP has recommended to put a COMMIT WORK as a pamameter to the function module or as an ABAP statement in the calling program to send emails. This can lead to program errors if COMMIT WORK is not put at the right place.
    Did SAP create a replacement program that can be used to trigger those email requests with such status? Do you have any other ideas or solutions? Please help!
    Best regards,
    Chuong Le

    in ST05 there is an option for RFC trace. Not sure how much detail that will give you but you can try.
    It is possible that your userid doesn't have an RFC call authorization in R/3. Do a SU53 immediately after running the program.
    Also, replace the FM with any other FM that you know for sure runs  (eg some BAPI FM) and run it - either in SE37 in R/3 with RFC destination for BW, or, from your code itself and see if that works (you can check return code).

  • RSCONN01  frequency

    Hi,
    I have 2 JOB scheduled on transaction SCOT (and SM37).
    This JOB are:
    NOTESCONNECTEXCH
    SAPCONNECTEXCH
    both are related to the program RSCONN01
    I have noticed that every job is scheduled every 1 minute and every time this job run, create a log into directory:
    \usr\sap\SID\SYS\global
    The log file name start with WF_LOG_xxxx
    Due to the frequency of the job a lot of LOG is created on server and sometimes I have some DISK space problem and some ABAP DUMP (related to missing space on disk!).
    My question is:
    is it correct to schedule this job every minute and how I can do for do not create the log at every run?
    Regards

    Hi Cocco,
    RSCONN01 starts the sapconnect send process.I dont think it should scheduled to run every min rather i would say every 10-15 mins.But it depends on your business and how fast you want to send out the mail from SAP. The log WF_LOG_xxxx is related to workflow i think
    Thanks
    Prince

  • MAIL THRU PROGRAM

    hi sapiens,
                  I have written a code to send mail to external system.the program is excuting and message is showing sent.when i see it in sap office workprocess .it is telling that "send process still running"
    tell me what all the necessary configurations i have to do..i have sent mail from sap system from scot.
    but only if i send thru program it is not sending..

    Hi,
    you need to send the mail through the SCOT transaction code or else you need to submit a program rsconn01 for auotomate mail sending
    See the below code
    Send the email.
    CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
    EXPORTING
    document_data = document_data
    TABLES
    object_content = t_content
    receivers = t_receivers
    EXCEPTIONS
    too_many_receivers = 1
    document_not_sent = 2
    document_type_not_exist = 3
    operation_no_authorization = 4
    parameter_error = 5
    x_error = 6
    enqueue_error = 7
    OTHERS = 8.
    IF sy-subrc <> 0.
    MESSAGE e208(00) WITH 'Error in sending email :-(('.
    ELSE.
    MESSAGE s208(00) WITH 'Email sent )'.
    ENDIF.
    <b>SUBMIT rsconn01 WITH mode = 'INT' AND RETURN.</b>
    Regards
    Sudheer

  • Status of Mail sent using RSCONN01

    Hi ,
    I have a requirement to check the status of a mail which was sent using the FM SO_NEW_DOCUMENT_SEND_API1
    I need to check whether the delivery of the mail when the program RSCONN01 has run is succesful or not ie whether the recipient received the mail or not
    It would be of great help if some one can help.
    Also I checked SOST table, evenif the mail id is junk still I could find the entry in SOST table.
    regards
    dp

    Hi Deric,
    Use the below code snippet and append logic said below to check the mail delivery status.
          CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
            EXPORTING
              document_data             = wa_doc_data
              put_in_outbox             = abap_true
              sender_address            = lv_sender_address
              sender_address_type       = lv_sender_address_type
            IMPORTING
              sent_to_all               = lv_sent_all
            TABLES
              packing_list              = lit_packing_list
              contents_txt              = lit_content
              receivers                 = lit_receivers
            EXCEPTIONS
              too_many_receivers        = 1
              document_not_sent         = 2
              document_type_not_exist   = 3
              operation_no_authorization = 4
              parameter_error           = 5
              x_error                   = 6
              enqueue_error             = 7
              OTHERS                    = 8.
          IF sy-subrc <> 0.
    *       Raise Exception/Display Message
          ELSE.    
    *       Call Report RSCONN01 to send the triggered email instantly instead of sucking in the queue.
            WAIT UP TO 2 SECONDS.
            SUBMIT rsconn01 WITH mode = 'INT'
            WITH output = abap_false
            AND RETURN.
          ENDIF.
    When the FM SO_DOCUMENT_SEND_API1  is called, it will submit mail to SOST to trigger the mail using the connected Mail Server.
    Regarding the delivery of the mail, you can check the status of Return_Code for each receiver in the lit_receivers internal table before calling the report RSCONN01.
    Cheers,
    Devendra 

  • SCOT/RSCONN01   transmitted 2 days to receive at MS Outlook

    We use SCOT or program RSCONN01 to transmit the Workflow notification to MS Outllok email address, out of 10 users,  8 users got the email after a couple of minutes. 2 users receive the email notification after 2 days, any one encounter this issue before and how you resolve it?

    Hi EH,
    as you mentioned out of 10, 8 of them received it in 2 mins,
    which means your SCOT settings are proper.
    Check the background jobs that you might have scheduled to send notifications to Outlook.
    Check whether the job is getting killed, or probably its going in queue as other jobs may be set high priority.
    Hope it helps,
    Aditya

  • Submit RSCONN01

    Hi All,
    The program RSCONN01 releases al the pending list from SCOT depending upon the mode. I require it should just release my objects rather then releasing all the objects.
    Are there any other programs which i can use.
    Thanks,
    Gaurav

    I have a similiar issue. In the program code, the foll. is given:
        SUBMIT RSCONN01 WITH MODE   = 'INT'
                        WITH OUTPUT = 'X'
                        AND RETURN.
    This causes all the objects in SOST to be released. I want only my objects to be released.
    how do I use RSCONN01 selectively ?
    please clarify.
    Edited by: Tom Jerry on Dec 19, 2009 5:43 AM

  • Reg: Error in Mail sending through background job in SCOT

    Hello experts,
    I am trying to schedule a background job through SCOT so as to send the mails present in SOST.
    The job is running but it is giving error as "Invalid status  for recipient" in SOST.
    But when I am sending it directly from SOST it is delivered without any errors. The email address is maintained correctly and SMTP settings are also correct as while sending it directly from SOST it reaches the required recipient without any error.
    This error is observed only through background job. I am using program RSCONN01 with variant SAP&CONNECTINT in background job.
    Kindly suggest why I am getting the error "Invalid status  for recipient" in background job.
    Thanks & Regards
    Meraz
    +91 8894522860

    I am getting the exact same issue.
    were you able to fix this in the last 3 weeks?
    thanks.

  • Alert content in the external email sent

    Hi,
    I have two requirements related to Alert Monitor.
    1. We want to send the Alerts generated to group of external email IDs - How to configure that? Currently we are able to send the email to only one email ID only.
    2. Also the content of the Alert sent in the email is not as required. We want the Alert email sent to external email ID should look like or contain the information as close as in the Alert seen in the Alert monitor. We want to include the info like Product, Location, Order Number, Qty, and the Alert message.
    Please let me know how to configure the above things.
    Thanks and Regards,
    Shivanand Gangamwar

    Hello Shivanand,
    I would reckon, this will be an enhancement of the existing functionality to send Alerts to multiple mail ids as standard SAP does not have that functionality.
    I would like you to include the option of adding multiple mail ids while sending the Alerts. The data will be stored in Table: /SCMB/ANOTP, field: SMTP_ADDR.
    Also, it would be advisable to schedule a background job and release it to run every 5 minutes for the program: RSCONN01 with Address Type as "*" and set the remaining parameters as per your requirements.
    Hope this will give you a hint to solve this issue.
    Many thanks,
    Amit Sen

  • Payment Advise - Email issue

    hi
    For payment advise ,  i have done configurtion in BTE to send mail to vendor. When i chkd the mail , there is no attachment found. Is it necessary to apply note 1033893 . If nt necessary what may be problem?
    Is there any changes to be done in FM    SAMPLE_PROCESS_00002040? If any expert explain the process of sending mail in detail using BTE, it will be more useful.
    Thanks in advance

    Hi,
    ABAP CODE
    Email ITAB structure
    DATA: BEGIN OF EMAIL_ITAB OCCURS 10.
            INCLUDE STRUCTURE SOLI.
    DATA: END OF EMAIL_ITAB.
    DATA: T_EMAIL LIKE SOOS1-RECEXTNAM.  "EMail distribution list
    CONSTANTS: C_EMAIL_DISTRIBUTION LIKE SOOS1-RECEXTNAM VALUE
    Initialization
    REFRESH EMAIL_ITAB.
    Populate data
    EMAIL_ITAB-LINE = u2018Email body text 1u2019.
    APPEND EMAIL_ITAB.
    EMAIL_ITAB-LINE = u2018Email body text 2u2019.
    APPEND EMAIL_ITAB.
    T_EMAIL = C_EMAIL_DISTRIBUTION.
    --- EMAIL FUNCTION ---------------------------------------------------
    REQUIRMENTS:
    1) The user running the program needs a valid email address in their
       address portion of tx SU01 under external comms -> SMTP -> internet
       address.
    2) A job called SAP_EMAIL is running with the following parameters:
       Program: RSCONN01  Variant: INT   User: XXX
       This program moves mail from the outbox to the mail server using
       RFC destination: SAP_INTERNET_GATEWAY_SERVER
    INTERFACE:
    1) APPLICATION: Anything
    2) EMAILTITLE:  EMail subject
    3) RECEXTNAM:   EMail distribution lists separated by commas
    4) TEXTTAB:     Internal table for lines of the email message
    EXCEPTIONS:
    Send OK = 0 otherwise there was a problem with the send.
        CALL FUNCTION 'Z_SEND_EMAIL_ITAB'
             EXPORTING
                  APPLICATION = 'EMAIL'
                  EMAILTITLE  = 'Email Subject'
                  RECEXTNAM   = T_EMAIL
             TABLES
                  TEXTTAB     = EMAIL_ITAB
             EXCEPTIONS
                  OTHERS      = 1.
    Function Z_SEND_EMAIL_ITAB
    ""Local interface:
    *"       IMPORTING
    *"             VALUE(APPLICATION) LIKE  SOOD1-OBJNAM
    *"             VALUE(EMAILTITLE) LIKE  SOOD1-OBJDES
    *"             VALUE(RECEXTNAM) LIKE  SOOS1-RECEXTNAM
    *"       TABLES
    *"              TEXTTAB STRUCTURE  SOLI
    *- local data declaration
      DATA: OHD    LIKE SOOD1,
            OID    LIKE SOODK,
            TO_ALL LIKE SONV-FLAG,
            OKEY   LIKE SWOTOBJID-OBJKEY.
      DATA: BEGIN OF RECEIVERS OCCURS 0.
              INCLUDE STRUCTURE SOOS1.
      DATA: END OF RECEIVERS.
    *- fill odh
      CLEAR OHD.
      OHD-OBJLA    = SY-LANGU.
      OHD-OBJNAM   = APPLICATION.
      OHD-OBJDES   = EMAILTITLE.
      OHD-OBJPRI   = 3.
      OHD-OBJSNS   = 'F'.
      OHD-OWNNAM   = SY-UNAME.
    *- send Email
      CONDENSE RECEXTNAM NO-GAPS.
      CHECK RECEXTNAM <> SPACE AND RECEXTNAM CS '@'.
    *- for every individual recipient send an Email
    (see OSS message 0120050409/0000362105/1999)
      WHILE RECEXTNAM CS ','.
        PERFORM INIT_REC TABLES RECEIVERS.
        READ TABLE RECEIVERS INDEX 1.
        RECEIVERS-RECEXTNAM = RECEXTNAM+0(SY-FDPOS).
        ADD 1 TO SY-FDPOS.
        SHIFT RECEXTNAM LEFT BY SY-FDPOS PLACES.
        MODIFY RECEIVERS INDEX 1.
        PERFORM SO_OBJECT_SEND_REC
         TABLES TEXTTAB RECEIVERS
          USING OHD.
      ENDWHILE.
    *- check last recipient in recipient list
      IF RECEXTNAM <> SPACE.
        PERFORM INIT_REC TABLES RECEIVERS.
        READ TABLE RECEIVERS INDEX 1.
        RECEIVERS-RECEXTNAM = RECEXTNAM.
        MODIFY RECEIVERS INDEX 1.
        PERFORM SO_OBJECT_SEND_REC
         TABLES TEXTTAB RECEIVERS
          USING OHD.
      ENDIF.
    ENDFUNCTION.
          FORM SO_OBJECT_SEND_REC                                       *
    FORM  SO_OBJECT_SEND_REC
    TABLES  OBJCONT      STRUCTURE SOLI
            RECEIVERS    STRUCTURE SOOS1
    USING   OBJECT_HD    STRUCTURE SOOD1.
      DATA:   OID     LIKE SOODK,
              TO_ALL  LIKE SONV-FLAG,
              OKEY    LIKE SWOTOBJID-OBJKEY.
      CALL FUNCTION 'SO_OBJECT_SEND'
           EXPORTING
                EXTERN_ADDRESS             = 'X'
                OBJECT_HD_CHANGE           = OBJECT_HD
                OBJECT_TYPE                = 'RAW'
                OUTBOX_FLAG                = 'X'
                SENDER                     = SY-UNAME
           IMPORTING
                OBJECT_ID_NEW              = OID
                SENT_TO_ALL                = TO_ALL
                OFFICE_OBJECT_KEY          = OKEY
           TABLES
                OBJCONT                    = OBJCONT
                RECEIVERS                  = RECEIVERS
           EXCEPTIONS
                ACTIVE_USER_NOT_EXIST      = 1
                COMMUNICATION_FAILURE      = 2
                COMPONENT_NOT_AVAILABLE    = 3
                FOLDER_NOT_EXIST           = 4
                FOLDER_NO_AUTHORIZATION    = 5
                FORWARDER_NOT_EXIST        = 6
                NOTE_NOT_EXIST             = 7
                OBJECT_NOT_EXIST           = 8
                OBJECT_NOT_SENT            = 9
                OBJECT_NO_AUTHORIZATION    = 10
                OBJECT_TYPE_NOT_EXIST      = 11
                OPERATION_NO_AUTHORIZATION = 12
                OWNER_NOT_EXIST            = 13
                PARAMETER_ERROR            = 14
                SUBSTITUTE_NOT_ACTIVE      = 15
                SUBSTITUTE_NOT_DEFINED     = 16
                SYSTEM_FAILURE             = 17
                TOO_MUCH_RECEIVERS         = 18
                USER_NOT_EXIST             = 19
                X_ERROR                    = 20
                OTHERS                     = 21.
      IF SY-SUBRC <> 0.
        RAISE OTHERS.
      ENDIF.
    ENDFORM.
          FORM INIT_REC                                                 *
    FORM INIT_REC TABLES RECEIVERS STRUCTURE SOOS1.
      CLEAR RECEIVERS.
      REFRESH RECEIVERS.
      MOVE SY-DATUM  TO RECEIVERS-RCDAT .
      MOVE SY-UZEIT  TO RECEIVERS-RCTIM.
      MOVE '1'       TO RECEIVERS-SNDPRI.
      MOVE 'X'       TO RECEIVERS-SNDEX.
      MOVE 'U-'      TO RECEIVERS-RECNAM.
      MOVE 'U'       TO RECEIVERS-RECESC.
      MOVE 'INT'     TO RECEIVERS-SNDART.
      MOVE '5'       TO RECEIVERS-SORTCLASS.
      APPEND RECEIVERS.
    endform.
    pls chk this links. they have some threds they may solve your problem
    BTE-process 2040 email payment advice to Vendors
    Business Transaction Event
    http://help.sap.com/saphelp_nw04/helpdata/en/08/48f340dda3702ae10000000a155106/frameset.htm
    thanks
    karthik

  • How to send a mail to a person  from after completeing bdc .

    Hi Xperts,
    Please send me a options how to send a mail to a person after completing a bdc or from any report program.
    mailed can be a sapuser or other service provider(ex:yahoo,gmail.any thing)
    Please Any one i want it now .
    Thank You.

    FUNCTION RS_SEND_MAIL_FOR_SPOO* Email ITAB structure
    DATA: BEGIN OF EMAIL_ITAB OCCURS 10.
            INCLUDE STRUCTURE SOLI.
    DATA: END OF EMAIL_ITAB.
    DATA: T_EMAIL LIKE SOOS1-RECEXTNAM.  "EMail distribution list
    CONSTANTS: C_EMAIL_DISTRIBUTION LIKE SOOS1-RECEXTNAM VALUE
               ‘[email protected],[email protected]’.
    Initialization
    REFRESH EMAIL_ITAB.
    Populate data
    EMAIL_ITAB-LINE = ‘Email body text 1’.
    APPEND EMAIL_ITAB.
    EMAIL_ITAB-LINE = ‘Email body text 2’.
    APPEND EMAIL_ITAB.
    T_EMAIL = C_EMAIL_DISTRIBUTION.
    --- EMAIL FUNCTION ---------------------------------------------------
    REQUIRMENTS:
    1) The user running the program needs a valid email address in their
       address portion of tx SU01 under external comms -> SMTP -> internet
       address.
    2) A job called SAP_EMAIL is running with the following parameters:
       Program: RSCONN01  Variant: INT   User: XXX
       This program moves mail from the outbox to the mail server using
       RFC destination: SAP_INTERNET_GATEWAY_SERVER
    INTERFACE:
    1) APPLICATION: Anything
    2) EMAILTITLE:  EMail subject
    3) RECEXTNAM:   EMail distribution lists separated by commas
    4) TEXTTAB:     Internal table for lines of the email message
    EXCEPTIONS:
    Send OK = 0 otherwise there was a problem with the send.
        CALL FUNCTION 'Z_SEND_EMAIL_ITAB'
             EXPORTING
                  APPLICATION = 'EMAIL'
                  EMAILTITLE  = 'Email Subject'
                  RECEXTNAM   = T_EMAIL
             TABLES
                  TEXTTAB     = EMAIL_ITAB
             EXCEPTIONS
                  OTHERS      = 1.
    Function Z_SEND_EMAIL_ITAB
    ""Local interface:
    *"       IMPORTING
    *"             VALUE(APPLICATION) LIKE  SOOD1-OBJNAM
    *"             VALUE(EMAILTITLE) LIKE  SOOD1-OBJDES
    *"             VALUE(RECEXTNAM) LIKE  SOOS1-RECEXTNAM
    *"       TABLES
    *"              TEXTTAB STRUCTURE  SOLI
    *- local data declaration
      DATA: OHD    LIKE SOOD1,
            OID    LIKE SOODK,
            TO_ALL LIKE SONV-FLAG,
            OKEY   LIKE SWOTOBJID-OBJKEY.
      DATA: BEGIN OF RECEIVERS OCCURS 0.
              INCLUDE STRUCTURE SOOS1.
      DATA: END OF RECEIVERS.
    *- fill odh
      CLEAR OHD.
      OHD-OBJLA    = SY-LANGU.
      OHD-OBJNAM   = APPLICATION.
      OHD-OBJDES   = EMAILTITLE.
      OHD-OBJPRI   = 3.
      OHD-OBJSNS   = 'F'.
      OHD-OWNNAM   = SY-UNAME.
    *- send Email
      CONDENSE RECEXTNAM NO-GAPS.
      CHECK RECEXTNAM <> SPACE AND RECEXTNAM CS '@'.
    *- for every individual recipient send an Email
    (see OSS message 0120050409/0000362105/1999)
      WHILE RECEXTNAM CS ','.
        PERFORM INIT_REC TABLES RECEIVERS.
        READ TABLE RECEIVERS INDEX 1.
        RECEIVERS-RECEXTNAM = RECEXTNAM+0(SY-FDPOS).
        ADD 1 TO SY-FDPOS.
        SHIFT RECEXTNAM LEFT BY SY-FDPOS PLACES.
        MODIFY RECEIVERS INDEX 1.
        PERFORM SO_OBJECT_SEND_REC
         TABLES TEXTTAB RECEIVERS
          USING OHD.
      ENDWHILE.
    *- check last recipient in recipient list
      IF RECEXTNAM <> SPACE.
        PERFORM INIT_REC TABLES RECEIVERS.
        READ TABLE RECEIVERS INDEX 1.
        RECEIVERS-RECEXTNAM = RECEXTNAM.
        MODIFY RECEIVERS INDEX 1.
        PERFORM SO_OBJECT_SEND_REC
         TABLES TEXTTAB RECEIVERS
          USING OHD.
      ENDIF.
    ENDFUNCTION.
          FORM SO_OBJECT_SEND_REC                                       *
    FORM  SO_OBJECT_SEND_REC
    TABLES  OBJCONT      STRUCTURE SOLI
            RECEIVERS    STRUCTURE SOOS1
    USING   OBJECT_HD    STRUCTURE SOOD1.
      DATA:   OID     LIKE SOODK,
              TO_ALL  LIKE SONV-FLAG,
              OKEY    LIKE SWOTOBJID-OBJKEY.
      CALL FUNCTION 'SO_OBJECT_SEND'
           EXPORTING
                EXTERN_ADDRESS             = 'X'
                OBJECT_HD_CHANGE           = OBJECT_HD
                OBJECT_TYPE                = 'RAW'
                OUTBOX_FLAG                = 'X'
                SENDER                     = SY-UNAME
           IMPORTING
                OBJECT_ID_NEW              = OID
                SENT_TO_ALL                = TO_ALL
                OFFICE_OBJECT_KEY          = OKEY
           TABLES
                OBJCONT                    = OBJCONT
                RECEIVERS                  = RECEIVERS
           EXCEPTIONS
                ACTIVE_USER_NOT_EXIST      = 1
                COMMUNICATION_FAILURE      = 2
                COMPONENT_NOT_AVAILABLE    = 3
                FOLDER_NOT_EXIST           = 4
                FOLDER_NO_AUTHORIZATION    = 5
                FORWARDER_NOT_EXIST        = 6
                NOTE_NOT_EXIST             = 7
                OBJECT_NOT_EXIST           = 8
                OBJECT_NOT_SENT            = 9
                OBJECT_NO_AUTHORIZATION    = 10
                OBJECT_TYPE_NOT_EXIST      = 11
                OPERATION_NO_AUTHORIZATION = 12
                OWNER_NOT_EXIST            = 13
                PARAMETER_ERROR            = 14
                SUBSTITUTE_NOT_ACTIVE      = 15
                SUBSTITUTE_NOT_DEFINED     = 16
                SYSTEM_FAILURE             = 17
                TOO_MUCH_RECEIVERS         = 18
                USER_NOT_EXIST             = 19
                X_ERROR                    = 20
                OTHERS                     = 21.
      IF SY-SUBRC <> 0.
        RAISE OTHERS.
      ENDIF.
    ENDFORM.
          FORM INIT_REC                                                 *
    FORM INIT_REC TABLES RECEIVERS STRUCTURE SOOS1.
      CLEAR RECEIVERS.
      REFRESH RECEIVERS.
      MOVE SY-DATUM  TO RECEIVERS-RCDAT .
      MOVE SY-UZEIT  TO RECEIVERS-RCTIM.
      MOVE '1'       TO RECEIVERS-SNDPRI.
      MOVE 'X'       TO RECEIVERS-SNDEX.
      MOVE 'U-'      TO RECEIVERS-RECNAM.
      MOVE 'U'       TO RECEIVERS-RECESC.
      MOVE 'INT'     TO RECEIVERS-SNDART.
      MOVE '5'       TO RECEIVERS-SORTCLASS.
      APPEND RECEIVERS.
    ENDFORM.
    2.

Maybe you are looking for