Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Sending message to pager

Former Member
0 Kudos

I need to send messages to a Pager using the SO_NEW_DOCUMENT_SEND_API1. I’ve already configured at SCOT in pager’s node the pager company’s domain (@mobi.com.br*). At SU01 I’ve set communication type as Pager Services. But whe I execute my program nothing happens. The email doesn´t goes to the list at SCOT.

I don´t know it it’s has something to do with the function. I’m passing ‘U’ to SOMLRECI1- REC_TYPE.

Thanks in advance

5 REPLIES 5

Former Member
0 Kudos

Have you checked if SO_NEW_DOCUMENT_SEND_API1 is throwing any exception or not ?

Cheers,

Sanjeev

0 Kudos

No, it returns sy-subrc = 0.

0 Kudos

Josie,

Set SOMLRECI1-EXPRESS = 'X'

and in the Func Mod, make sure to set the COMMIT_WORK paramter to 'X'.

CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'

EXPORTING

DOCUMENT_DATA = DOC_CHNG

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.

Let me know if this gets you going.

0 Kudos

Can you change the address to your valid email address, does it work now? Could it be that the "" at the end of the address is messing something up. I've personally never seen an address with a "".

Regards,

Rich Heilman

0 Kudos

Set your email address in SU01. I think that you must have an email address in your user record.

Regards,

Rich Heilman