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: 

Sender email-id

sushant_singh
Participant
0 Kudos

Hi all,

I am sending email using this function module SO_NEW_DOCUMENT_ATT_SEND_API1 with smartform output as attachment.

How can i modify sender's ID , right now the user id is appearing

as sender in the mail. I want to use a generic sender id.

Thanks,

Sushant singh

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Use this FM... In the FM you are using there is no option:

CALL FUNCTION 'SO_DOCUMENT_SEND_API1'

EXPORTING

DOCUMENT_DATA = DOCUMENT_DATA

PUT_IN_OUTBOX = PUT_IN_OUTBOX

SENDER_ADDRESS = SPACE

SENDER_ADDRESS_TYPE = SPACE

COMMIT_WORK = COMMIT_WORK

IMPORTING

SENT_TO_ALL = SENT_TO_ALL

NEW_OBJECT_ID = NEW_OBJECT_ID

  • SENDER_ID = SENDER_ID

TABLES

PACKING_LIST = PACKING_LIST

OBJECT_HEADER = OBJECT_HEADER

CONTENTS_BIN = CONTENTS_BIN

CONTENTS_TXT = CONTENTS_TXT

OBJECT_PARA = OBJECT_PARA

OBJECT_PARB = 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.

Here Give the SENDER's mail ID in place of SERDER_ADDRESS...

Hope it will be helpful

Reward if helpful...

4 REPLIES 4

suresh_datti
Active Contributor
0 Kudos

You can't change it using this function module .. you will have to go for the SENDER & SEND methods of the calss CL_BCS in lieu of this function call...

~Suresh

Former Member
0 Kudos

Use this FM... In the FM you are using there is no option:

CALL FUNCTION 'SO_DOCUMENT_SEND_API1'

EXPORTING

DOCUMENT_DATA = DOCUMENT_DATA

PUT_IN_OUTBOX = PUT_IN_OUTBOX

SENDER_ADDRESS = SPACE

SENDER_ADDRESS_TYPE = SPACE

COMMIT_WORK = COMMIT_WORK

IMPORTING

SENT_TO_ALL = SENT_TO_ALL

NEW_OBJECT_ID = NEW_OBJECT_ID

  • SENDER_ID = SENDER_ID

TABLES

PACKING_LIST = PACKING_LIST

OBJECT_HEADER = OBJECT_HEADER

CONTENTS_BIN = CONTENTS_BIN

CONTENTS_TXT = CONTENTS_TXT

OBJECT_PARA = OBJECT_PARA

OBJECT_PARB = 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.

Here Give the SENDER's mail ID in place of SERDER_ADDRESS...

Hope it will be helpful

Reward if helpful...

former_member1240896
Participant
0 Kudos

Hi,

Go to 'adr6' table and update the smtp_addr field for changing the email ID .

For changing the user ID update BNAME in the table usr21.

Regards,

Chandan

former_member187255
Active Contributor
0 Kudos

Sushant,

Use FM <b>SO_OBJECT_SEND</b> this has option to send the Sender's Email id...

originator                 = 'test@yahoo.com'  "Sender email