T-codes *SCOT & SOST*

Hi MM Gurus,
Can anyone tell me about above mentioned t-codes?
Please do the needful.
Answers will be rewarded.
Regards,
vaibhav.

Hi.
Tcode: SOST is used to check  whether the  Purchase order is transmitted to the vendor by E mail(or) Fax.
You will get the message is transmitted O.K (Or) if failure is there the reasons will be there.
For this in the vendor master the E mail address (or) Fax to be given you have to maintain  MN01 output types
T code: SCOT is SAP connect Administration side.
bye
G.Ganesh Kumar

Similar Messages

  • Sender in email resent from scot (sost)

    Hi All,
    in SOST I can resend a message, but if I am a different user from the original sender, the email get me as sender.
    For me it's a problem because if external SMTP is down I have ti resend send request in error from the SAME sender.
    Have You any idea?
    Thanks in advance.
    Daniele

    I'm having this problem too. It started with the last iPhone update. I have Yahoo email, and I'm getting "no sender" messages dated 12/31/1969. Can't open or delete them, and they don't show up in my regular Yahoo email account. After this happened the first time, I restored my phone to original settings and they went away. But I got some more a couple weeks later. Restoring is not an option given that I have to reload everything each time. Just got off the phone with ATT support and they said I should try deleting all my Yahoo email files except for inbox, trash, and sent. Given that I have important stuff in my email files, I don't think this is a good option. Apple should solve the problem instead of asking the customer to do it.

  • E-mail notification not in SOST

    Hi all.
    We have a workflow task that successfully send an e-mail notification to user with SENDTASKDESCRIPTION from object SELFITEM.
    My question why this e-mail doesn't exist in SOST?
    Thanks in advance

    In Transaction Code SCOT you will be having that option. You can do one thing as soon as a Notification is generated you can check the SOST Tcode. The entry should be there.
    <b>Please reward points if useful</b>
    Thanks
    Arghadip

  • Out put is visible in SOST but not reached customer....pblm in basis

    Hello Basis team,
    I am an SD consultant recently faced an unusual issue..we have delivery confirmations or  invoices sent through different mediums .The issue here is ,  out put is triggered and is shown successful in header of invoice and also the same record is found in SOST t-code, which means it is out from SAP.i have checked configuration and its perfectly o.k .Now i want to dig a bit deeper, like
    The process it follows once it is out of SAP and how to find where the problem is
    guide me in a step to step manner on this..
    i am assigned to know the whole process ...
    Thanks in advance team.
    Regards,
    Dinu

    Hi Dinu,
    First of all, please let us know what is the error you are receiving to the respective output (there should be one status code in SOST).
    If you are sure the configuration is not correct, then these are the steps to verify:
    1. Please check what is the default domain you have mentioned. SCOT--> Settings->Default domain.
    Here you have to maintain the domain name properly. It should be like xyz.local.
    2. Please check SMTP configuration: Double clicking on SMTP node you should check Mail host is proper
    and also mail Port should be 25.
    3. Under "Supported address Types" option "Internet" should be checked. Go to respective Set button
    Here in Address area try giving * or specific to the address you will be sending mail.
    4. Check if you have scheduled the "Send Jobs". Its in "Settings -->Send Jobs". You can schedule the job for
    "All Address Type" and schedule the job with proper user.
    5. For testing you can use tcode: SBWP. From there you can send test mail to the desired address
    (check your organization policies before sending mail to external mail ID).
    While triggering "New Message" from SBWP, please select recipient type as "Internet Address".
    6. To check the status go to tcode: SOST and check if it is delivered. You can try reprocessing once more.
    But before all these things you have to ensure that your server IP is included in SMTP server. You can check with
    any OS administrator about this.
    Regards,
    Sujit.

  • SCOT transaction setting for mailing in process chain

    Hai
    Im planning to create the message on the process type in the process chain to get the success or failed.
    During the creation of message, i need to give the recipient-id . But in my system there is no setup for mailing configuration in T-Code:- SCOT.
    I have all the rights of basis consultant. so what are the step i need to do to configure the STMP in SCOT transaction.
    pls let me know
    kumar

    Hai Bhanu
    Thanks alot for  your help.
    Im very happy by seeing you after so many months .
    Actualy im loading data into ODS by process chain. But i need to get the mail for success or fail of process type . For this i think so , i need to create the message on the corresponding process type .
                                                       While creating message i should give the recipient - id . I have new Bw-system. So my basis consultant should configure the mailing gateway in SCOT.
    So what are the steps needs to be do in transcation SCOT.
    pls let me know
    kumar

  • Should SCOT and SCON be restricted tcodes?

    I'm trying to research whether the SAPConnect Admin transaction codes SCOT and SCON should remain "Permission" or need to be bumped up to "Restricted" and removed from "display only" roles as part of our SOx assessment.  I've checked the authorizations and it doesn't seem necessary (the only create/change functionality concerns communication nodes), but I wanted to see if there was something I was overlooking.
    I've already searched the documentation and the help portal and come up empty.

    Hi,
    These transactions shouldn't be classified as Display, but should remain as Permission, as others would be able to look at the config and if they have access to SM30 they can easily go and change the table DBCON where this config is stored. Ideally this transactions should remain with either Security or BASIS people and be monitored from a SOX perspective.
    Cheers,
    Kedar

  • Envio de e-mail via SAP

    Estou tenando configurar o envio de e-mail do Meu SAP e não estou conseguindo...
    Erre é o erro que me retorna.
    Internal error: CL_SMTP_RESPONSE ESMTP error code is not
    known. 503 503 5.0.3 <vpn.empresa.com.br[200.170.217.189]>:
    Cl
    Já olhei diversos materias que favam para configurar parametros nas transaçoes scot sost scif mais nada funcionou...
    e só para orientar o sistema que eu preciso usar de e-mail é localweb ou seja SMTP com autenticação, outra coisa que não achei onde fazer no SAP...
    Se alguém souber como resolver isso fico agradecido.

    Olá Itamar,
    informação adicional:
    - as notas #[1091583|https://bosap-support.wdf.sap.corp/sap/support/notes/1091583] e #[1098108 |https://bosap-support.wdf.sap.corp/sap/support/notes/1098108]explicam que autenticação através de SMTP não é suportada. O erro 503 é "Authentication required" mas o lado da SAP da configuração não sabe como interpretar o problema, justamente pq não há suporta para essa feature
    O workaround desse problema o pessoal já escreveu acima
    Um abraço,
    Tomas Black

  • Error while sending email to external mail - Urgent

    Hi All,
    I am getting error while sending email with attachement. The Error code is 02.
    I am not able to identify the error. bold Please help me in solving this problem.
    Is it anything wrong with the code or Any Configuration with SCOT/SOST.bold
    the code i am using is :
    REPORT YVR_F MESSAGE-ID XX .
    TABLES : EDIDC, EDIDS, EDPAR.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME.
    PARAMETERS : P_STATUS LIKE EDIDC-STATUS DEFAULT '51'.
    SELECT-OPTIONS : S_DIRECT FOR EDIDC-DIRECT,
                     S_MESTYP FOR EDIDC-MESTYP,
                     S_CREDAT FOR EDIDC-CREDAT.
    SELECTION-SCREEN END OF BLOCK B1 .
    PARAMETER: P_EMAIL LIKE SOMLRECI1-RECEIVER,
               P_SENDER LIKE SOMLRECI1-RECEIVER no-display,
               P_DELSPL  AS CHECKBOX,
               P_ONLINE NO-DISPLAY.
    DATA : TB_EDIDC LIKE STANDARD TABLE OF EDIDC INITIAL SIZE 0 WITH HEADER
    LINE.
    DATA : TB_EDPAR LIKE STANDARD TABLE OF EDPAR INITIAL SIZE 0 WITH HEADER
    LINE.
    DATA : TB_KNA1 LIKE STANDARD TABLE OF KNA1 INITIAL SIZE 0 WITH HEADER
    LINE.
    DATA : TB_ADRC LIKE STANDARD TABLE OF ADRC INITIAL SIZE 0 WITH HEADER
    LINE.
    DATA: INT_PDF TYPE TABLE OF TLINE WITH HEADER LINE.
    DATA : BEGIN OF TB_ED OCCURS 0,
             SNDPRN LIKE EDIDC-SNDPRN,
             LOC    LIKE ADRC-BUILDING,
             DOCNUM LIKE EDIDC-DOCNUM,
             IDOCTP LIKE EDIDC-IDOCTP,
             MESTYP LIKE EDIDC-MESTYP,
             DIRECT LIKE EDIDC-DIRECT,
             CREDAT LIKE EDIDC-CREDAT,
             STATUS LIKE EDIDC-STATUS,
           END OF TB_ED.
    DATA:   IT_MESSAGE TYPE STANDARD TABLE OF SOLISTI1 INITIAL SIZE 0
                    WITH HEADER LINE.
    DATA:   IT_ATTACH TYPE STANDARD TABLE OF SOLISTI1 INITIAL SIZE 0
                    WITH HEADER LINE.
    Job Runtime Parameters
    DATA: GD_EVENTID LIKE TBTCM-EVENTID,
          GD_EVENTPARM LIKE TBTCM-EVENTPARM,
          GD_EXTERNAL_PROGRAM_ACTIVE LIKE TBTCM-XPGACTIVE,
          GD_JOBCOUNT LIKE TBTCM-JOBCOUNT,
          GD_JOBNAME LIKE TBTCM-JOBNAME,
          GD_STEPCOUNT LIKE TBTCM-STEPCOUNT,
          GD_ERROR    TYPE SY-SUBRC,
          GD_RECIEVER TYPE SY-SUBRC.
    DATA:  W_RECSIZE TYPE I,
           W_SPOOL_NR LIKE SY-SPONO.
          %_print LIKE pri_params.
    DATA: GD_SUBJECT   LIKE SODOCCHGI1-OBJ_DESCR,
          IT_MESS_BOD LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
          IT_MESS_ATT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
          GD_SENDER_TYPE     LIKE SOEXTRECI1-ADR_TYP,
          GD_ATTACHMENT_DESC TYPE SO_OBJ_NAM,
          GD_ATTACHMENT_NAME TYPE SO_OBJ_DES.
    Spool to PDF conversions
    DATA: GD_SPOOL_NR LIKE TSP01-RQIDENT,
          GD_DESTINATION LIKE RLGRAP-FILENAME,
          GD_BYTECOUNT LIKE TST01-DSIZE,
          GD_BUFFER TYPE STRING.
    Binary store for PDF
    DATA: BEGIN OF IT_PDF_OUTPUT OCCURS 0.
            INCLUDE STRUCTURE TLINE.
    DATA: END OF IT_PDF_OUTPUT.
    DATA: GD_RECSIZE TYPE I.
    CONSTANTS: C_DEV LIKE  SY-SYSID VALUE 'DEV',
               C_NO(1)     TYPE C   VALUE ' ',
               C_DEVICE(4) TYPE C   VALUE 'LOCL'.
    DATA:   T_PACKING_LIST LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE,
            T_CONTENTS LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
            T_RECEIVERS LIKE SOMLRECI1 OCCURS 0 WITH HEADER LINE,
            T_ATTACHMENT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
            T_OBJECT_HEADER LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
            W_CNT TYPE I,
            W_SENT_ALL(1) TYPE C,
            W_DOC_DATA LIKE SODOCCHGI1.
    DATA : MSTR_PRINT_PARMS LIKE PRI_PARAMS,
           MC_VALID,
           P_REPID LIKE SY-REPID,
           WF_ID  LIKE TSP01-RQIDENT,
           LOC_BYTECOUNT TYPE I.
    *start-of-selection.
    MSTR_PRINT_PARMS-PDEST = 'LOCL'.
    P_REPID = SY-REPID.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
    EXPORTING
        authority= ' '
       COPIES                       = '1'
       COVER_PAGE                   = SPACE
       DATA_SET                     = SPACE
       DEPARTMENT                   = SPACE
       DESTINATION                  = 'LP01'
       EXPIRATION                   = '1'
       IMMEDIATELY                  = 'X'
       LAYOUT                       = 'X_65_132'
       MODE                         = SPACE
       NEW_LIST_ID                  = 'X'
       NO_DIALOG                    = 'X'
       USER                         = SY-UNAME
    IMPORTING
       OUT_PARAMETERS               = MSTR_PRINT_PARMS
       VALID                        = MC_VALID
    EXCEPTIONS
       ARCHIVE_INFO_NOT_FOUND       = 1
       INVALID_PRINT_PARAMS         = 2
       INVALID_ARCHIVE_PARAMS       = 3
       OTHERS                       = 4.
         SUBMIT (P_REPID) TO SAP-SPOOL WITHOUT SPOOL DYNPRO
                          SPOOL PARAMETERS MSTR_PRINT_PARMS.
                          AND RETURN.
    NEW-PAGE PRINT ON NO DIALOG PARAMETERS
    MSTR_PRINT_PARMS.
    perform data.
    NEW-PAGE PRINT OFF. "This marks the end of the screen for which the
    *SPOOL NO WAS GENERATED.
    WF_ID = SY-SPONO.
    *converting spool to pdf
    CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
         EXPORTING
              SRC_SPOOLID              = WF_ID  "SPOOL NUMBER
              NO_DIALOG                = SPACE
              PDF_DESTINATION          = 'X'
         IMPORTING
              PDF_BYTECOUNT =
                 LOC_BYTECOUNT "NUMBER OF BYTES TRANSFERRED
         TABLES
              PDF                      = INT_PDF  "TABLE FOR PDF REPORT
         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.
    *CALL FUNCTION 'DOWNLOAD'
    *EXPORTING
    *bin_filesize = loc_bytecount "NO. OF BYTES
    *filename = 'C:/EMAILPDF.PDF'
    *filetype = 'BIN'
    **IMPORTING
    **act_filename = loc_filename
    *TABLES
    *data_tab = int_pdf.
    IF P_DELSPL EQ 'X'.
      PERFORM DELETE_SPOOL.
    ENDIF.
    Transfer the 132-long strings to 255-long strings
    LOOP AT INT_PDF.
      TRANSLATE INT_PDF USING ' ~'.
      CONCATENATE GD_BUFFER INT_PDF 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.
    DESCRIBE TABLE IT_MESS_ATT LINES GD_RECSIZE.
    CHECK GD_RECSIZE > 0.
    PERFORM SENDMAIL USING P_EMAIL..
    *&      Form  sendmail
          text
    -->  p1        text
    <--  p2        text
    FORM SENDMAIL USING P_EMAIL.
      CHECK NOT ( P_EMAIL IS INITIAL ).
      REFRESH IT_MESS_BOD.
    Default subject matter
      GD_SUBJECT         = 'Subject'.
      GD_ATTACHMENT_DESC = 'IDOC LIST'.
    CONCATENATE 'attach_name' ' ' INTO gd_attachment_name.
      IT_MESS_BOD        = 'List Of Failed Idocs'.
      APPEND IT_MESS_BOD.
      IT_MESS_BOD        = 'List Of Failed Idocs'.
      APPEND IT_MESS_BOD.
    If no sender specified - default blank
      IF P_SENDER EQ SPACE.
        GD_SENDER_TYPE  = SPACE.
      ELSE.
        GD_SENDER_TYPE  = 'INT'.
      ENDIF.
    Send file by email as .xls speadsheet
      PERFORM SEND_FILE_AS_EMAIL_ATTACHMENT
                                   TABLES IT_MESS_BOD
                                          IT_MESS_ATT
                                    USING P_EMAIL
                                          'Document attachment'
                                          'PDF'
                                          GD_ATTACHMENT_NAME
                                          GD_ATTACHMENT_DESC
                                          P_SENDER
                                          GD_SENDER_TYPE
                                 CHANGING GD_ERROR
                                          GD_RECIEVER.
    ENDFORM.                    " sendmail
    *&      Form  DELETE_SPOOL
          text
    -->  p1        text
    <--  p2        text
    FORM DELETE_SPOOL.
      DATA: LD_SPOOL_NR TYPE TSP01_SP0R-RQID_CHAR.
      LD_SPOOL_NR = WF_ID.   "GD_SPOOL_NR.
      CHECK P_DELSPL <> C_NO.
      CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
           EXPORTING
                SPOOLID = LD_SPOOL_NR.
    ENDFORM.                    " DELETE_SPOOL
    *&      Form  SEND_FILE_AS_EMAIL_ATTACHMENT
          text
         -->P_IT_MESS_BOD  text
         -->P_IT_MESS_ATT  text
         -->P_P_EMAIL  text
         -->P_0846   text
         -->P_0847   text
         -->P_GD_ATTACHMENT_NAME  text
         -->P_GD_ATTACHMENT_DESC  text
         -->P_P_SENDER  text
         -->P_GD_SENDER_TYPE  text
         <--P_GD_ERROR  text
         <--P_GD_RECIEVER  text
    FORM SEND_FILE_AS_EMAIL_ATTACHMENT TABLES   IT_MESSAGE
                                              IT_ATTACH
                                        USING P_EMAIL
                                              P_MTITLE
                                              P_FORMAT
                                              P_FILENAME
                                              P_ATTDESCRIPTION
                                              P_SENDER_ADDRESS
                                              P_SENDER_ADDRES_TYPE
                                     CHANGING P_ERROR
                                              P_RECIEVER.
      DATA: LD_ERROR    TYPE SY-SUBRC,
             LD_RECIEVER TYPE SY-SUBRC,
             LD_MTITLE LIKE SODOCCHGI1-OBJ_DESCR,
             LD_EMAIL LIKE  SOMLRECI1-RECEIVER,
             LD_FORMAT TYPE  SO_OBJ_TP ,
             LD_ATTDESCRIPTION TYPE  SO_OBJ_NAM ,
             LD_ATTFILENAME TYPE  SO_OBJ_DES ,
             LD_SENDER_ADDRESS LIKE  SOEXTRECI1-RECEIVER,
             LD_SENDER_ADDRESS_TYPE LIKE  SOEXTRECI1-ADR_TYP,
             LD_RECEIVER LIKE  SY-SUBRC.
      DATA:   T_PACKING_LIST LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE,
              T_CONTENTS LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
              T_RECEIVERS LIKE SOMLRECI1 OCCURS 0 WITH HEADER LINE,
              T_ATTACHMENT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
              T_OBJECT_HEADER LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
              W_CNT TYPE I,
              W_SENT_ALL(1) TYPE C,
              W_DOC_DATA LIKE SODOCCHGI1.
      LD_EMAIL   = P_EMAIL.
      LD_MTITLE = P_MTITLE.
      LD_FORMAT              = P_FORMAT.
      LD_ATTDESCRIPTION      = P_ATTDESCRIPTION.
      LD_ATTFILENAME         = P_FILENAME.
      LD_SENDER_ADDRESS      = P_SENDER.
      LD_SENDER_ADDRESS_TYPE = P_SENDER_ADDRES_TYPE.
    Fill the document data.
      W_DOC_DATA-DOC_SIZE = 1.
    Populate the subject/generic message attributes
      W_DOC_DATA-OBJ_LANGU = SY-LANGU.
      W_DOC_DATA-OBJ_NAME  = 'SAPRPT'.
      W_DOC_DATA-OBJ_DESCR = LD_MTITLE .
      W_DOC_DATA-SENSITIVTY = 'F'.
    Fill the document data and get size of attachment
      CLEAR W_DOC_DATA.
      READ TABLE IT_ATTACH INDEX W_CNT.
      W_DOC_DATA-DOC_SIZE =
         ( W_CNT - 1 ) * 255 + STRLEN( IT_ATTACH ).
      W_DOC_DATA-OBJ_LANGU  = SY-LANGU.
      W_DOC_DATA-OBJ_NAME   = 'SAPRPT'.
      W_DOC_DATA-OBJ_DESCR  = LD_MTITLE.
      W_DOC_DATA-SENSITIVTY = 'F'.
      CLEAR T_ATTACHMENT.
      REFRESH T_ATTACHMENT.
      T_ATTACHMENT[] = IT_ATTACH[].
    Describe the body of the message
      CLEAR T_PACKING_LIST.
      REFRESH T_PACKING_LIST.
      T_PACKING_LIST-TRANSF_BIN = SPACE.
      T_PACKING_LIST-HEAD_START = 1.
      T_PACKING_LIST-HEAD_NUM = 0.
      T_PACKING_LIST-BODY_START = 1.
      DESCRIBE TABLE IT_MESSAGE LINES T_PACKING_LIST-BODY_NUM.
      T_PACKING_LIST-DOC_TYPE = 'RAW'.
      APPEND T_PACKING_LIST.
    Create attachment notification
      T_PACKING_LIST-TRANSF_BIN = 'X'.
      T_PACKING_LIST-HEAD_START = 1.
      T_PACKING_LIST-HEAD_NUM   = 1.
      T_PACKING_LIST-BODY_START = 1.
      DESCRIBE TABLE T_ATTACHMENT LINES T_PACKING_LIST-BODY_NUM.
      T_PACKING_LIST-DOC_TYPE   =  LD_FORMAT.
      T_PACKING_LIST-OBJ_DESCR  =  LD_ATTDESCRIPTION.
      T_PACKING_LIST-OBJ_NAME   =  LD_ATTFILENAME.
      T_PACKING_LIST-DOC_SIZE   =  T_PACKING_LIST-BODY_NUM * 255.
      APPEND T_PACKING_LIST.
    Add the recipients email address
      CLEAR T_RECEIVERS.
      REFRESH T_RECEIVERS.
      T_RECEIVERS-RECEIVER = p_EMAIL.
      T_RECEIVERS-REC_TYPE = 'U'.
      T_RECEIVERS-COM_TYPE = 'INT'.
      T_RECEIVERS-NOTIF_DEL = 'X'.
      T_RECEIVERS-NOTIF_NDEL = 'X'.
      APPEND T_RECEIVERS.
      DATA: objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE.
    W_SENT_ALL = 'X'.
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
           EXPORTING
                DOCUMENT_DATA              = W_DOC_DATA
                PUT_IN_OUTBOX              = 'X'
               SENDER_ADDRESS             = LD_SENDER_ADDRESS
               SENDER_ADDRESS_TYPE        = LD_SENDER_ADDRESS_TYPE
                COMMIT_WORK                = 'X'
           IMPORTING
                SENT_TO_ALL                = W_SENT_ALL
           TABLES
                PACKING_LIST               = T_PACKING_LIST
                object_header              = objhead
                CONTENTS_BIN               = T_ATTACHMENT
                CONTENTS_TXT               = IT_MESSAGE
                RECEIVERS                  = T_RECEIVERS
           EXCEPTIONS
                TOO_MANY_RECEIVERS         = 1
                DOCUMENT_NOT_SENT          = 2
                OPERATION_NO_AUTHORIZATION = 4
                OTHERS                     = 99.
      IF SY-SUBRC NE 0.
        MESSAGE E000 WITH 'Error occurred while sending'.
      ELSE.
        MESSAGE I000 WITH 'The document was sent'.
      ENDIF.
    ENDFORM.                    " SEND_FILE_AS_EMAIL_ATTACHMENT
    *&      Form  data
          text
    -->  p1        text
    <--  p2        text
    FORM data.
    SELECT SNDPRN
             DOCNUM
             IDOCTP
             MESTYP
             DIRECT
             CREDAT
             STATUS
             FROM EDIDC
             INTO CORRESPONDING FIELDS
             OF TABLE TB_EDIDC
             WHERE STATUS = P_STATUS
             AND MESTYP IN S_MESTYP
             AND DIRECT IN S_DIRECT
             AND CREDAT IN S_CREDAT.
    SELECT KUNNR
           INPNR
           FROM EDPAR
           INTO CORRESPONDING FIELDS
           OF TABLE TB_EDPAR
           FOR ALL ENTRIES IN TB_EDIDC
           WHERE KUNNR = TB_EDIDC-SNDPRN.
    SELECT KUNNR
           ADRNR
           FROM KNA1
           INTO CORRESPONDING FIELDS
           OF TABLE TB_KNA1
           FOR ALL ENTRIES IN TB_EDPAR
           WHERE KUNNR = TB_EDPAR-INPNR.
    SELECT ADDRNUMBER
           BUILDING
           FROM ADRC
           INTO CORRESPONDING FIELDS
           OF TABLE TB_ADRC
           FOR ALL ENTRIES IN TB_KNA1
           WHERE ADDRNUMBER = TB_KNA1-ADRNR.
    LOOP AT TB_EDIDC WHERE STATUS = P_STATUS
                     AND MESTYP IN S_MESTYP
                     AND DIRECT IN S_DIRECT
                     AND CREDAT IN S_CREDAT.
      TB_ED-SNDPRN = TB_EDIDC-SNDPRN.
      TB_ED-DOCNUM = TB_EDIDC-DOCNUM.
      TB_ED-IDOCTP = TB_EDIDC-IDOCTP.
      TB_ED-MESTYP = TB_EDIDC-MESTYP.
      TB_ED-DIRECT = TB_EDIDC-DIRECT.
      TB_ED-CREDAT = TB_EDIDC-CREDAT.
      TB_ED-STATUS = TB_EDIDC-STATUS.
      READ TABLE TB_EDPAR WITH KEY KUNNR = TB_EDIDC-SNDPRN.
      READ TABLE TB_KNA1 WITH KEY KUNNR = TB_EDPAR-INPNR.
      READ TABLE TB_ADRC WITH KEY ADDRNUMBER = TB_KNA1-ADRNR.
      TB_ED-LOC = TB_ADRC-BUILDING.
      APPEND TB_ED.
    ENDLOOP.
    WRITE :/02 'CustomerNo',
            15 'Location Code',
            30 'Idoc Number',
            55 'Basic Type',
            70 'Message Type',
            95 'Direction',
            110 'Received Date',
            130 'Status'.
    ULINE.
    LOOP AT TB_ED.
      WRITE :/02 TB_ED-SNDPRN,
              15 TB_ED-LOC,
              30 TB_ED-DOCNUM,
              55 TB_ED-IDOCTP,
              70 TB_ED-MESTYP,
              95 TB_ED-DIRECT,
              110 TB_ED-CREDAT,
              130 TB_ED-STATUS.
    ENDLOOP.
    ENDFORM.                    " data
    Kindly help me in solving the issue.
    Thanks in advance.
    Suki.

    Hi,
    Check in transaction SCOT. If your mail is in error status in SCOT, you can assure that there is no problem with your code. If your message has not reached till SCOT, then the problem will be with the code.
    If the mail is there in scot with error status tell the BASIS to configure it. I feel this could be the problem.
    Regards,
    Renjith Michael.

  • Getting Errror Meassage No 802 while sending Fax

    Hi all,
    I'm using FM <b>SO_NEW_DOCUMENT_SEND_API1</b> to send Email and Fax through ABAP prog.
    I'm able to send to mail to External ID menwhile Fax is not going but getting thefollowing message if we the status in T-Code <b>SOST</b>.
    <b>Msg No 802 No delivery to 0091802299922, as recipient unknown.</b>
    This is my <b>Fax No. +91 91-80-2299922</b>
    My selection screen is like this .
    Email ID  -
    ( Passign Email Ids)
    Fax No   802299922 ( Passing Fax No like this )
    Country  IND ( Country)
    What changes are required to send Fax in the below program .
    *& This is my Source Code
    report z_email.
    tables : somlreci1.
    data : e_document_data like sodocchgi1,
    e_document_type like soodk-objtp value 'RAW',
    e_put_in_outbox like sonv-flag value 'X',
    e_commit_work like sonv-flag value 'X'.
    data : it_object_header type table of solisti1 with header line,
    it_object_content type table of solisti1 with header line,
    receivers type table of somlreci1 with header line.
    data : i_lines type i.
    select-options : s_mailid for somlreci1-receiver no intervals.
    parameters : p_faxno type somlreci1-fax,
    p_contry type somlreci1-country.
    start-of-selection.
    e_document_data-obj_name = 'Test'.
    e_document_data-obj_descr = 'Email Test'.
    e_document_data-obj_langu = sy-langu.
    e_document_data-proc_type = '1'.
    *--Information
    it_object_content-line = 'This is a report used to send starts and'.
    append it_object_content.
    clear it_object_content.
    it_object_content-line = ' stops to foreign distri. via E-Mail or Fax'.
    append it_object_content.
    clear it_object_content.
    *--For Doc Size
    describe table it_object_content lines i_lines.
    e_document_data-doc_size = ( i_lines - 1 ) * 255 +
    strlen( it_object_content ).
    *--Email ID
    loop at s_mailid.
    receivers-receiver = s_mailid-low.
    receivers-rec_type = 'U'.
    append receivers.
    clear : receivers.
    endloop.
    *--Fax
    if p_faxno is not initial.
    receivers-rec_type = 'F'.
    receivers-fax = p_faxno.
    receivers-country = p_contry.
    receivers-com_type = 'TELFAX'.
    append receivers.
    clear : receivers.
    endif.
    *--Call function module
    call function 'SO_NEW_DOCUMENT_SEND_API1'
    exporting
    document_data = e_document_data
    document_type = e_document_type
    put_in_outbox = e_put_in_outbox
    commit_work = e_commit_work
    IMPORTING
    SENT_TO_ALL =
    NEW_OBJECT_ID =
    tables
    OBJECT_HEADER =
    object_content = it_object_content
    CONTENTS_HEX =
    OBJECT_PARA =
    OBJECT_PARB =
    receivers = 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 id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    commit work.
    wait up to 2 seconds.
    submit rsconn01 with mode = 'INT'
    with output = 'X'
    and return.
    write :/ 'Message sent successfully..!'.
    endif.
    Regards,
    Balavardhan.K

    Hi,
       Check in Transaction SCOT whether Mail server, SAP Phone and other required connections are made if its not done then as the Basis or relevent person to connect it and try.
    Thanks,
    Prashanth

  • Alerts in case of XSLT Mapping failure without BPM

    Dear All,
    We are working on IDOC - SOAP Scenario and mapping is through XSLT Mapping.
    when the Vendor number field in IDOC is coming blank/invalid, the mapping should fail and an email alert should go to business.
    This IDOC-SOAP is Asynchronous and not using any BPM. So can we raise a alerts withut using BPM.
    I have gone through some blogs but I can see the alerts in Inbox but where as I want the alert through EMAIL.
    Any pointers are highly appreciated.
    Regards,
    Srini

    Dear Srinivas,
    When you want the Alert to be send through email,then you need to configure the required mentioned below.
    1.In SU01 ,Assign the corresponding Email ID for the Recipient of the ALERT.
    2. In , RWB>ALERT INBOX> PERSONALIZATION--> Go to Time Independent Delivery and  check the Email option.
    3. Go to the transaction  code SCOT,INT->SMTP and mention the corresponding  Mail Host and Port in SMTP Address.Then select the set in the Internet of supported Address Types and give mail address in the Address area.
    Note: Check whether Node is use is checked.
    You can find the mails which are pending/failed/success in the SOST Transaction code.
    Check if you have access for this configuration.Otherwise get help from Basis team.
    Regards
    B.Dheepa

  • Getting an error messages in XI 3.0 please help

    Hi, Dear
    In XI 3.0 we are tyring to setup SAPconnect;
    1 Step;  Create RFC connection for Mlunxsnd file, anyway!!! we download thease file and create RFC connection; fine working no error
    2 Step: Create Nodes T-code SCOT => connection INT => and support address type like Internet its just show only "PDF, HTM, TXT" thats it its not show some others format
    3. Step; When check email T-code SOST Getting an error messages:  "Connot process message in node, parameters cannot be converted"
    4. In R3 RPD and Others system when I check format its ok its show some others format which is support to be such as "ALI, OBJ, OTF, SCR, URL" ...
    How may install these format in XI 3.0
    Please Advice I will be really appriciated
    Thanks a lot
    Travis

    Hi,
    Please check out the following link for SAP XI3.0 installation:
    http://help.sap.com/saphelp_nw04/helpdata/en/0f/80243b4a66ae0ce10000000a11402f/frameset.htm
    Regards,
    Sushama

  • Order confirmations will be sent to customer by email and also through pdf

    Hi Experts,
    Can you explain what are the config to do firstly the order confirmation should be converted to pdf format and this will be sent to customer by email.
    Thanks in advance
    Edited by: kumaar palani on May 2, 2008 3:15 AM

    To convert to PDF , Program name : RSTXPDF4.
    External send : Transaction Codes: SCOT 0r SOST and Basis help to check the SAP server is configured to send mails. Make sure to mainatin the setting as 4 - send immediately
    Regards
    Sai

  • Email remittances/Spool saying no data available after payment run

    Hi everyone.. Please suggest a solution for me, why nothing is appearing in SOST/SCOT and SM37...
    Steps:
    1)     Entered email address in vendor master record.
    2)     In vendor master record on the bottom made the standard communication method: Email.
    3)     Gone to FIBF->Settings->Process modules->..of an SAP application- and created a new process. (00002040-ctry(blank)-appl(blank)-sample_process_00002040(functional module))
    4)     And Copied SAMPLE_PROCESS_00002040 to ZPROCESS_00002040. And in t.code:se37- changed the program, with creating a break point.
    FUNCTION ZSAMPLE_PROCESS_00002040.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(I_REGUH) LIKE  REGUH STRUCTURE  REGUH
    *"  TABLES
    *"      T_FIMSG STRUCTURE  FIMSG
    *"  CHANGING
    *"     VALUE(C_FINAA) LIKE  FINAA STRUCTURE  FINAA
    data declaration for address routines
      TYPE-POOLS szadr.
      DATA: l_addr1_complete TYPE szadr_addr1_complete,
            l_adsmtp_line    TYPE szadr_adsmtp_line.
    default: print payment advice
      c_finaa-nacha = 'I'.
      break qt30947.
      write 'hello'.
    5)     And placed a break point on ZPROCESS_00002040.
    6)     Now going to T.code: FBZP- In u201Cpayment methods for country -selected the country and In bottom Payment medium-selected use classis payment medium programas RFFOAVIS_FPAYM (stated in oss note:836169).
    7)     And gone to t.code:se38, and in here I created a new variant (ex:test)
    8)     Now posted a transaction for the vendor where the changes are done.
    9)     Gone to f110 to run the program- Everything is happening-it is saying  (posting orders-1 generated, 1 completed)- But nothing happening the email is not staying in t.code:sost (or there is nothing available for the output server in t.code:scot)
    10)     I have gone to t.code: SM37 and selected the program and done the spool request- But then it says no list available. (i donu2019t know what does this mean)
    In this scenario I feel there is something that is not picking up the email payment, I donu2019t know whether there it is something to program....
    Please let me know what should I do now..
    Thanks...

    I have sit with abaper and checked the program running in debug more.
    When F110 is run, until payment run everything is going fine. But when I give the print out it is not selecting any objects?
    I have question in my mind now... I am using the program RFFOAVIS_FPAYM  and functional module Z_SAMPLE_PROCESS_00002040.
    Can any one give me information how this program and functional module are linked?
    Cheers

  • Problem in SO_DOCUMENT_SEND_API1

    Dear all
    I have used SO_DOCUMENT_SEND_API1  to send mail ,im getting sy-subrc = 0 after Fm  , i can see the mail sent request in SOST  in DEV server ,but  the same program in QAS , SO_DOCUMENT_SEND_API1  gives sy-subrc = 0 but i cannt see the sent request  in SOST.
    Please help me in this
    Thanks n Regards

    Hi peter ,
    Pre-Requisites for sending mail is SAP Exchange Connector needs to be configured.
    t-code SCOT
    Talk to your Basis guy , he will help you out.
    Regards,
    Yogendra Bhaskar

  • How can we use SX_OBJECT_CONVERT_OTF_INTO_PDF function module IN SCRIPT

    Hi Gurus,
    can any one inform me,how to use  SX_OBJECT_CONVERT_OTF_INTO_PDF  function module in script..
    how can we convert  the script output into pdf file format....
    i need your help......plz
    my mail id : [email protected] 
    Thanks,
    Rajkumar.A
    Edited by: rajkumar annadurai on Feb 19, 2008 10:25 AM

    Hi, Dear
    In XI 3.0 we are tyring to setup SAPconnect;
    1 Step; Create RFC connection for Mlunxsnd file, anyway!!! we download thease file and create RFC connection; fine working no error
    2 Step: Create Nodes T-code SCOT => connection INT => and support address type like Internet its just show only "PDF, HTM, TXT" thats it its not show some others format
    3. Step; When check email T-code SOST Getting an error messages: "Connot process message in node, parameters cannot be converted"
    4. In R3 RPD and Others system when I check format its ok its show some others format which is support to be such as "ALI, OBJ, OTF, SCR, URL" ...
    How may install these format in XI 3.0
    Please Advice I will be really appriciated
    Thanks a lot
    Travis

Maybe you are looking for

  • Error Message on the list page

    What is the following error message? "The HTTP request parameter 'AccountList.LAYOUT' contains invalid data." When clicking the arrow which changes to the next page, an error message is displayed and following records are not displayed. It seems that

  • IDOC segments for Orders04

    Hello Friends, I am creating IDOC for purchase order and the message class is orders01 and orders04 Everything looks good for orders01. But for the same PO for message type orders04 some of the segments do not appear. The segmants containing the text

  • Output in Diagramatic Format

    Hi all.. Is there any standard program which displays the output in digramatic / flow chart format ? Regards, K.Tharani.

  • Having Trouble With Master Objects

    I'm pretty new to iWork, so I apologize for any noobie foolishness. I am trying to adapt the Business Report template in Pages '09. It uses a default logo graphic, and this graphic is selectable and replaceable. In the first instance, I selected it a

  • Batch Determination for Replishment Delivery

    Hello all, I am not able to determine the batch Replishment delivery. Getting the error: "Batch determination is not possible because there is no search procedure". How do we set the search procedure, as the search procedure is generally set fot the