Application Development and Automation 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: 
Read only

function 'SO_DOCUMENT_SEND_API1' in BADI

Former Member
0 Likes
1,064

I am encountering difficulty using the function module 'SO_DOCUMENT_SEND_API1' in a BADI; when the BADI executes the mail is partially created (new entries exits in table SOOD) it is however not sent nor is it viewable in BWP.

Executing the same code segment in a standard program outside of the BADI results in successful message creation and delivery.

I think it has something to do with how COMMIT WORK is handled in the BADI, but I'm not sure.

Is it possible to send external mail from a BADI? What am I missing?

TIA

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
943

Hi,

Try this..Call the FM in BACKGROUND TASK..

CALL FUNCTION 'SO_DOCUMENT_SEND_API1'

IN BACKGROUND TASK

.....

Thanks,

Naren

7 REPLIES 7
Read only

Former Member
0 Likes
943

Hi ,

Go to SOST transaction and if you could see an entry there. Then run the program RSCONN01 . This program will send all the communication items which are in 'Waiting For' status.

Thanks,

B Raju

Read only

0 Likes
943

No entry in SOST

Read only

Former Member
0 Likes
943

Hi,

Which BADI is that???

Is the BADI called in update task...

Thanks,

Naren

Read only

0 Likes
943

BADI: HRPAD00INFTY

method = IN_UPDATE.

Read only

Former Member
0 Likes
944

Hi,

Try this..Call the FM in BACKGROUND TASK..

CALL FUNCTION 'SO_DOCUMENT_SEND_API1'

IN BACKGROUND TASK

.....

Thanks,

Naren

Read only

0 Likes
943

Solved It!

Thanks Naren

Read only

0 Likes
943

Hi Narendran,

Thanks for your information.

It worked for me.

BR,

Chandra.