on 05-18-2010 11:30 AM
Hi,,
I have a problem with cordinality of nodes and selection...
I am using 2 nodes like 1st node is n1(Codinality 0..n Selection is 0..1) with attributs of a1 and a2..And 2nd node is n2 (Codinality 1..1 Selection is 0..1) with attributes of a3 and a4.I am using 2 windows like w1 and w2.Now i am binding w1 with n1.And w2 is binding with n2.
Now i got the error like The lead selection has not been set
Thanks in Advance....
Tick the Initialisation Lead Selection Property for node n2.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI chandru ,
That link is just for giving idea for develope the mail appplication .
you have to call the Standard function modules on action of send button button .
SO_DOCUMENT_SEND_API1
SO_NEW_DOCUMENT_ATT_SEND_API1 - You can go to SE37 and click the documentation on how to use it. A sample program is provided there .
check out the link for sample program
http://wiki.sdn.sap.com/wiki/display/Snippets/SendmailviaSAPABAP+Code
Regards
Chinnaiya .P
Edited by: chinnaiya pandiyan on May 19, 2010 10:42 AM
Hi Sethi ,
I am using only ecc6.0 only.so i am using commit_work in export parameters only.
Data Declarations
DATA: lt_mailsubject TYPE sodocchgi1.
DATA: lt_mailrecipients TYPE STANDARD TABLE OF somlrec90 WITH HEADER LINE.
DATA: lt_mailtxt TYPE STANDARD TABLE OF soli WITH HEADER LINE.
Recipients
lt_mailrecipients-rec_type = 'U'.
lt_mailrecipients-receiver = 'mail id'.
APPEND lt_mailrecipients .
CLEAR lt_mailrecipients .
Subject.
lt_mailsubject-obj_name = 'TEST'.
lt_mailsubject-obj_langu = sy-langu.
lt_mailsubject-obj_descr = 'Mail Subject'.
Mail Contents
lt_mailtxt = 'This is a test mail'.
APPEND lt_mailtxt. CLEAR lt_mailtxt.
Send Mail
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
EXPORTING
document_data = lt_mailsubject
COMMIT_WORK = 'X'
TABLES
object_content = lt_mailtxt
receivers = lt_mailrecipients
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 EQ 0.
COMMIT WORK.
Push mail out from SAP outbox
SUBMIT rsconn01 WITH mode = 'INT' WITH output = '' AND RETURN.
ENDIF.
Thanks in advance...
Tried out below thread' s suggestions. They had similar type of problems.
Check if it works for you as well.
[how to send an email with an attachment using webdynpros |]
[Send Email with Webdynpro for Abap |]
Also check the blog by Thomas Jung [Sending E-Mail from ABAP - Version 46D and Lower - API Interface|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/781] [original link is broken] [original link is broken] [original link is broken];
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.