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: 

SO_NEW_DOCUMENT_ATT_SEND_API1 is screwing my system

Former Member
0 Kudos

Hi Experts,

I am facing serious problem with SO_NEW_DOCUMENT_ATT_SEND_API1 FM.

Actually we are using this FM to trigger email to Vendors when PO change or release. So using one of the user exits(YFM06PE02) we written code to trigger simple email with PO data. I filled required data and passed to FM. When I run Transaction in Debug mode its sending email success fully.

When I run with out debug ppoing its throwing STACK_NO_ROLL_MEMORY error and screwing the system.

Actually I used this FM many times but never face the problem.

Could you plz any one help me on this.

Best Regards

Rays

Here is some of the code

DATA: EMAIL_SEND TYPE STANDARD TABLE OF SOMLRECI1 WITH HEADER LINE.

DATA: OBJCONT TYPE STANDARD TABLE OF SOLISTI1 WITH HEADER LINE.

DATA: EMAIL_DATA TYPE SODOCCHGI1.

  • Send the document

        • CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'

        • EXPORTING

        • DOCUMENT_TYPE = 'RAW'

        • DOCUMENT_DATA = EMAIL_DATA

        • PUT_IN_OUTBOX = 'X'

        • TABLES

        • OBJECT_CONTENT = OBJCONT

        • RECEIVERS = EMAIL_SEND

        • EXCEPTIONS

        • TOO_MANY_RECEIVERS = 1

        • DOCUMENT_NOT_SENT = 2

        • OPERATION_NO_AUTHORIZATION = 4

        • OTHERS = 99.

1 REPLY 1

Former Member
0 Kudos

Hi Rayudu,

I suppose that this error is due to insufficient memory to invoke a message work processor for your job. I think u must consult ur BASIS guy and check that out.

If it is working in debug mode and not in the normal mode, it should be a problem with dipatching the job to its work process.

Reward points if this info helps,

kiran