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

View maintenance - field needs switch activated, need help

Former Member
0 Likes
3,451

Good day, everyone!

SAP table T024I has a field for storing email addresses called SMTP_ADDR.  There's no table maintenance defined for the table itself, but there is a view called V_T024I that we'd like to use in SM30 for entering email addresses for the existing records.

Unfortunately, the email address field doesn't display in table maintenance.  I dug in and found that there's a switch called AD_ROTSUB_01_SFWS that's associated with this field ("Reaction to Switch" is set to "Display" so it certainly sounds like setting this switch would allow the SMTP_ADDR field to be displayed in the view maintenance screen).  I'm not familiar with switches like this but I did a lot of Googling and found it appears to be part of the Switch Framework.  I tried to view details about the switch in SFW1, but I get an error message: "Object does not exist or is not assigned to a package."  Further searching makes it sound like that's an SAP ERP switch if it's not assigned to a package.  I ran program SFW_FIND_SWITCHED_ELEMENTS and I got a list of places where the switch appears to be used (including the V_T024I view maintenance screen where I need it to appear) so it's out there in some form or fashion, but it won't come up in SFW1.

I'm not finding much else on this and am stuck.  How can I somehow enable this switch?  What am I missing?

Thank you in advance!

Dave

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,884

Hi Dave

i don't know why you desire to store SMTP_ADDR in T024I but if you really want to do it, just create a new maintanance view ZZT024I as per V_T024I (BTW in my release copy doesn't work) and then from menu "utilities" and option "maintanance generator" you create the interface with the field missing

Let me know if it is ok

regards

a

Good day, everyone!

SAP table T024I has a field for storing email addresses called SMTP_ADDR.  There's no table maintenance defined for the table itself, but there is a view called V_T024I that we'd like to use in SM30 for entering email addresses for the existing records.

Unfortunately, the email address field doesn't display in table maintenance.  I dug in and found that there's a switch called AD_ROTSUB_01_SFWS that's associated with this field ("Reaction to Switch" is set to "Display" so it certainly sounds like setting this switch would allow the SMTP_ADDR field to be displayed in the view maintenance screen).  I'm not familiar with switches like this but I did a lot of Googling and found it appears to be part of the Switch Framework.  I tried to view details about the switch in SFW1, but I get an error message: "Object does not exist or is not assigned to a package."  Further searching makes it sound like that's an SAP ERP switch if it's not assigned to a package.  I ran program SFW_FIND_SWITCHED_ELEMENTS and I got a list of places where the switch appears to be used (including the V_T024I view maintenance screen where I need it to appear) so it's out there in some form or fashion, but it won't come up in SFW1.

I'm not finding much else on this and am stuck.  How can I somehow enable this switch?  What am I missing?

Thank you in advance!

Dave

10 REPLIES 10
Read only

Former Member
0 Likes
2,885

Hi Dave

i don't know why you desire to store SMTP_ADDR in T024I but if you really want to do it, just create a new maintanance view ZZT024I as per V_T024I (BTW in my release copy doesn't work) and then from menu "utilities" and option "maintanance generator" you create the interface with the field missing

Let me know if it is ok

regards

a

Read only

0 Likes
2,884

I'm developing an application that will email those responsible for work orders with costs exceeding the overall budget or within a certain percentage threshold of the overall budget.  This information is in our T024I table (Maintenance Planner Groups).  We already store a name in the table but we're adding emails so we can notify individuals via the new application.

By the way, I should have mentioned that creating a new maintenance view was certainly an option, but because I found that this field's display was dictated by this switch, I wanted to learn more about how to "activate" it.  Seemed silly to create a new maintenance view if the existing view already supports the field as long as I can figure out how to activate the switch.

Read only

JL23
Active Contributor
0 Likes
2,884

Not sure why you think it is a switch, it is just standard SAP functionality that came with OSS Note 559396 - T024: E-mail address and longer telephone number

if you enter T024 in SM30 and click customizing, then SAP takes you to the right task in IMG.

Just scroll to the right to see the email address field

Read only

Former Member
0 Likes
2,884

Read my original post again.

Why do I think it's a switch?  Because when I go into the screen painter for the view maintenance screen and look at the "Mod. groups / functions" tab, there's a column called "Switch".  And in that column for the field SMTP_ADDR, there's a value listed -- AD_ROTSUB_01_SFWS.  To the immediate right of that column is a column called "Reaction to Switch".  For the field SMTP_ADDR, it's set to "Display".  So yeah, I think it's a Switch.

Also, table T024 is Purchasing Groups.  Again, my original post didn't mention this table.  I said T024I, which is Maintenance Planner Groups.

Read only

Former Member
0 Likes
2,884

Hi Dave

i truly trust 

Read only

JL23
Active Contributor
0 Likes
2,884

Sorry, I overlooked this i at the end. This makes of course my question about the switch obsolete.

I did a where used search from SE11 but it did not show any result

Read only

Former Member
0 Likes
2,884

SMTP_ADDR field and given switch are not present in my release.

I checked AD_GENERAL package and its switch AD_GENERAL shows up in object navigator. Double clicking displays the switch.

You could try opening the package of screen in SE80 and see if forward navigation works.

If issue is because of data inconsistency, you may put SQL trace and see what tables get affected on switch deactivation.

Tables SFW_SW_BF and SFW_BF_SW  store the Switch name and its activation status.

Read only

Former Member
0 Likes
2,884

I think what I'm going to do is just copy the existing V_T024I maintenance view to a 'z' version with straight-up table maintenance generated - no specification of a switch on that field.  As I said earlier, I knew this would be a simple enough option; I was just hoping to learn more about the switch functionality as that's something I've not come across before.

If anyone does have more information on this particular switch and what's going on with it / how it could be activated, I'd appreciate hearing from you!  Please feel free to send me a message.

Thanks all, and have a great day!

Dave

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,884

You could look for your switch in SFW5 to identify the Business Function associated, but carefully read every document provided in this transaction also navigate to help.sap.com and OSS notes, and perform first on a sand box system, most switches cannot be deactivated once activated.

Read some documentation like switching on Business Functions in Switch framework documentation.

Regards,

Raymond

Read only

NC2011
Explorer
0 Likes
2,884

Updating this for anyone who has this issue and finds this thread.

I dug in to the AD_ROTSUB_01_SFWS switch and found that it is activated as part of business function LOG_EAM_ROTSUB_2 in SFW5, and a pre-requisite of that business function is that you are on DIMP 6.0 or later.

http://help.sap.com/erp2005_ehp_05/helpdata/EN/6D/3603C31C0C4BF2A6CE4A9F7901941C/frameset.htm