cancel
Showing results for 
Search instead for 
Did you mean: 

WebDynpro ABAP

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Tick the Initialisation Lead Selection Property for node n2.

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi chandra,

Check this [Thread|;. In this thread they have suggested to do the COmmit work after call function 'SO_NEW_DOCUMENT_SEND_API1'.

Hope It will help you.

Former Member
0 Kudos

Hi,,

By using the above link i created and run the program.But the mail didnot sent...For this may i change any settings ???????

Former Member
0 Kudos

Have you tried out the Thread link I posted in eariler post. In this thread they have suggested that If your system is above 6.10 you will need an explicite commit work. Check Note: #489286.

Hope it will help you..

Former Member
0 Kudos

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

Former Member
0 Kudos

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];

Answers (0)