cancel
Showing results for 
Search instead for 
Did you mean: 

COMMIT_IN_POSTING error when sending PO as PDF attachment through me23n.

Former Member
0 Kudos

I am sending PO smartform as PDF attachment which is created when print preview option is selected in ME23n .

Problem is when i use

CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'

EXPORTING

DOCUMENT_DATA = WA_DOC_CHNG

PUT_IN_OUTBOX = 'X'

COMMIT_WORK = 'X'

If I am using COMMIT_WORK = 'X' in this function module. then am able to send the mail ,but at the same time am not able to save any new PO in ME21N.

Iam getting error COMMIT_IN_POSTING.

IF I comment COMMIT_WORK = 'X'

CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'

EXPORTING

DOCUMENT_DATA = WA_DOC_CHNG

PUT_IN_OUTBOX = 'X'

  • COMMIT_WORK = 'X'

then am able to save the new PO in ME21N but unable to send attachment as pdf.

Plzz provide me solution for the above,,...!

I have done changes in standard PO driver program from which am calling the samrtform using entry_enu form and with a nace configuration changes.Iam able to creat smartform output and also PDF file of smart form the only problem is sending mail while using 'SO_NEW_DOCUMENT_ATT_SEND_API1 and commit_work parameter.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Moderator message - Duplicate post locked Rob