Skip to Content
0
Former Member
May 28, 2008 at 11:55 AM

Send "notification" immediatily

44 Views

Hi, again friends...

I'm using the FM "SO_DOCUMENT_SEND_API1" .

Well.... my problem is... I need send the notification as fast as possible.

Searching for more information about this FM here at SDN, I got this example, and noticed that last "IF" after the FM.

That is the way to guarantee that my "notification" goes in "real time"?

Any way to guarantee that?

  CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
      EXPORTING
        document_data                    = wa_doc_chng
        put_in_outbox                    = c_x
      TABLES
        packing_list                     = i_objpack
        contents_txt                     = i_objtxt
        receivers                        = i_reclist
     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 IS INITIAL.
    CALL FUNCTION 'SO_DEQUEUE_UPDATE_LOCKS'.
  ELSE.
    RAISE mail_not_sent.
  ENDIF.
ENDFORM.