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

Commit when add attachment with GOS

Former Member
0 Likes
802

Hi all, I have a issue when I make a new notification through IW51.

This happens with any type of notification.

So first I add the shortext and longtext in the notification. Then I open multilingual texts through: Goto -> Multilingual texts.

Change nothing, go back & save when popup asks.

Then I'll add the attachement with the GOS.

Here is when things go wrong.

When the attachment is selected and added, the program performs a commit.

Because of this commit, other 'perform on commit' will be executed.

Such as the save for the shorttext/longtext.

It will save these texts with a temporary id %0000001. This shouldn't happen.

I've searched for notes and other info onhere but couldn't find a thing.

If any of you could help me, I would appreciate!

Thanks in advance.

3 REPLIES 3
Read only

Former Member
0 Likes
644

Move the code out from "perform on Commit" and then use Standard Task using standard events "<BUSINESSOBJECT>.CHANGED" or CREATED to execute your code.

Document Attachment invoke <BUSINESSOBJECT>.ASSIGNED event, so leave that out of your qualified trigger events.

Read only

Sandra_Rossi
Active Contributor
0 Likes
644

If this is standard process, why do you post to the ABAP forum? (post to the ERP forum, or contact SAP support). Or maybe you created some custom enhancement?

Read only

LukaszPegiel
SAP Champion
SAP Champion
0 Likes
644

Commit at attaching to GOS is something known, so if you use standard functions only and you have problem then you should contact SAP support as Sandra mentioned already. If the problem of commit exists because of your own code then you should re-design it to not use performs on commit.