cancel
Showing results for 
Search instead for 
Did you mean: 

Changing code in FM of a smartform.

miske
Participant
0 Kudos

Dear All,
I have my colleague noticed that there were some issues on the invoice, more precisely the price unit was not being calculated as it should be. The issue appears when the UNIT OF MESURE is PAC and not PC. So I debbuged the code and saw that the problem lies in this part of the code that Im sharing with you.

So my PROBLEM now is that when I edit this code (this is a part of the FM of the smartform witch as far as I can see was already edited) and try to save it I get this msg:


The object is in a namespace that is reserved

for generated objects. Flag object as generated?

When I confirm, it asks of me to assign it to a package but I cant do that:

"Object FUGR /1BCDWB/SF00000026 cannot be assigned to package z_whatever"

Finally, my question is how and where should I make these changes?

Thank you for your time in advance.

P.S. I already tried searching for the answer on this and many others sites. Saw some people that were facing similar problem but none of the answers actually helped me resolve this.

Accepted Solutions (1)

Accepted Solutions (1)

BGarcia
Active Contributor

Hi Luka,

Have you tried to edit through SMARTFORMS transaction?
If not, check in the attributes of that function module for the short text. It should contain the smartform name.
Then just go to SMARTFORMS tcode, enter the smartform name and just search for that piece of code there.

See if that helps you a little more.

Kind regards,
Garcia

miske
Participant

Hi Bruno,

first of all, thank you for your time! I already know the smartform name and I was looking for this piece of code in Global definition -> Initialization part of the smartform (and in all other parts of it) and as far as I could see that piece of code is not there.

BGarcia
Active Contributor

Hi Luka!

Most likely the code is inside a 'program line' object inside the 'Pages and Windows' section.

Try to explore those objects, especially the ones like in this picture:
https://monicaradytia.files.wordpress.com/2019/08/pic-1-2.png

Kind regards,
Garcia

miske
Participant

Hi Bruno!
Once again thanks for your time, this time your answer brought me to the section of the smartform were I found the code I needed to edit. Thank you! Cheers!

Kind regards,
Miseljic.

Answers (0)