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

Output determination using special functions (medium 8)

Former Member
0 Likes
1,053

HI There,

Need some urgent help. I'm trying to PGI a delivery as soon as it is saved by calling the transaction VL21. My thought was I coudl do this using as special function and output determination. I've assigned the output to the delivery , created a function and everything in config looks good

But I keep getting the error message "update terminated - Posting_Illegal_statement"

I'd appreciate any help on this.

thanks very much

Betty

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
674

Hi Betty,

Check if your program has any explicit commit work statements, or any calls to BAPIs of FMs that does an explicit commit.

Regards,

Ravi

HI There,

Need some urgent help. I'm trying to PGI a delivery as soon as it is saved by calling the transaction VL21. My thought was I coudl do this using as special function and output determination. I've assigned the output to the delivery , created a function and everything in config looks good

But I keep getting the error message "update terminated - Posting_Illegal_statement"

I'd appreciate any help on this.

thanks very much

Betty

3 REPLIES 3
Read only

Former Member
0 Likes
675

Hi Betty,

Check if your program has any explicit commit work statements, or any calls to BAPIs of FMs that does an explicit commit.

Regards,

Ravi

Read only

0 Likes
674

HI Ravi,

Thanks so much for the prompt response. We don't have an explicit commit -We're calling the transaction VL21

CALL TRANSACTION 'VL21'USING bdcdata

UPDATE 'S'

MODE p_mode.

should we put one in?

thanks again

Read only

Former Member
0 Likes
674

I'm having the same problem with a similar requirement involving special functions.

Apparently, you can't use functions having <b>'COMMIT' </b>statements, or use <b>'SUBMIT'</b>, even <b>'CALL TRANSACTION'</b>. These are not allowed in output types.

Kindly check ST22 for the short dump logs, you will see more details there (note that when running the transaction, the dump page is not shown but when you check ST22, it's there with the error 'POSTING_ILLEGAL_STATEMENT'.

Look for a BAPI or FM for transaction VL21 that does not need explicit 'COMMIT'.