ABAP SET LOCAL LANGUAGE doesn't work
Hello Community,
actually i try to work in a ABAP report with the SET LOCAL LANGUAGE
statement to change the text environment on the fly to an other
language. In the debugger i can see that the SY-LANGU is changed to the
correct country but the messages are in the wrong language...
i also set the profile parameter install/collate/active = 1
I created a small testprogramm:
REPORT Z_STEFAN_TEST_002 MESSAGE-ID sabapdocu.
SET COUNTRY 'US'.
SET LANGUAGE 'EN'.
SET LOCALE LANGUAGE 'E'.
MESSAGE i014.
When i logon with language DE and start the programm, the messages are
also in DE and not in EN.
So can you help me to find a solution?
best regards,
Stefan
Hi Stefan,
with set locale/language you can set only language environment for text-elements, headers etc...
I don't know about similar simple solution for messages, but you can load message directly from database table ...
DATA: l_text TYPE natxt.
SELECT SINGLE text FROM t100
INTO l_text
WHERE sprsl = 'E' AND
arbgb = 'SABAPDOCU' AND
msgnr = '014'.
MESSAGE l_text TYPE 'I'.
Regards
Matus
Similar Messages
-
italian language doesn't work nevertheless I choose it in the options. It's keeping to work in english language only!
== This happened ==
Every time Firefox openedFirefox betas haven't been localized yet. Localization support will trickle in over the next few betas as the Mozilla localization community finalizes the translations and customizations.
-
WDDOINIT - SET LOCAL LANGUAGE out of parameter
Hello,
What I want to do is set the local language with an URL param.
I tried two way which ended in a dead end.
1. Read the param in the default handler:
- In the Default handler it is possible to read params out of the URL
- But it seams that it is to late to set the language with SET LOCALE LANGUAGE at this time
2. Set Param in mehod WDDOINIT
- When I set the language hardcoded in this method all works fine (textalias from otr will be displayed in correct language)
- Bu it seams that there is no possibility to read the param in this method
Does anybody have an idea how can I solve this Problem?
ThanksHm, it depends when you instantiate the corresponding texts in your Webdynpro Component.
The "default handler" is the "HANDLEDEFAULT" method of the Window?
This is called very late in the instantiation of the Component. The default texts should be read at this time.
It may be a solution to build a WebDynpro-Component as framework that instantiates the needed Component after the Inbound is handled.
(You can do this by defining your WDC as usage in the framework WDC.)
Then you change the language by the imported URL-parameter in the frameworks-Inbound handler method.
Then instantiate the embedded WDC (the one containing your application logic).
This should then use your newly set language settings. -
Since last week my date & time have not worked on my 5c. The date & time are constantly wrong. I've shut down, doesn't work. Set it automatically, doesn't work. I don't get texts or calls when it's sleeping. Any suggestions?
try a reset.
Hold the home & power buttons down simultaneously until you see the Apple logo appear.
Note: no data will be lost. -
Setting time automatically doesn't work?
One of the less obvious new features in iOS 4.2 is that there is now an option in your Settings app to set the time automatically.
The only problem with that option is that it doesn't work - at least not for me. Actually, what happens when I enable that option is that it turns back my clock by 18 minutes. I've tried syncing, waiting, switching the option on or off while connected or not connected to iTunes, and a few other things. Nothing helped.
Interestingly enough, this new option is not mentioned in the updated iPad User Guide, so I'm not sure how it's supposed to work.
Any ideas? My timezone is set correctly.Yeah, something seems to be broken... I have a WiFi - 3G iPad but I've never turned on the 3G so I'm running (and have always run) WiFi only... My iPad normally lives in California (Cupertino is the default time zone for California) but I am presently in Kansas City visiting family. I also just downloaded and installed the new 4.2 OS yesterday so maybe that has something to do with the issue???
Anyway, if I turn "Set time automatically" to OFF, set the time zone to either Dallas or Chicago (two choices for the Central time zone where I am now and set the time manually, I can then change the time zone to Denver (all as an experiment) and the time rolls back one hour (so far so good)... I then change the time zone to Cupertino (Ca) and it rolls back another hours (again, good)... Then I reset it to say Chicago (Central) and it moves forward two hours (again, check)... Then, for grins, with it sitting right there and the correct Central time and with Chicago chosen as the current time zone, I then "Set time automatically" back to ON and the time now rolls FORWARD TWO MORE HOURS where it should not go... The bottom line is with "Set time automatically" turned ON I get the wrong time by two hours... Now granted, there is a two hour time zone difference between where I originally set up this machine and where I am now and maybe that has something to do with it??? Or something is broken in the OS...
Anyone have any thoughts or guidance???
thanks... bob... -
The ok button to set master password doesn't work. Why?
Almost scammed by TeamView supposedly from Microsoft. Went into my computer to fix event logs.Wanted $109.00 now then asked if I had partial payment. So my dilemma is I don't know if what little security I have has been compromised. Not very computer literate.
Installing Kaspersky today.
My problem with Mozilla - tried to set master password but ok button doesn't work. Not on at all. What can I do?
Thank you/TeamView is the name of the program that the scammers used, not the company they are from. TeamView is a legit company, but the scammers are most likely not. For future reference, most legit companies will use a paid program for get remote access to your computer.
When setting a Master Password, your password needs to fill the quality meter before the ''Ok'' button will become active.
[https://support.mozilla.org/en-US/kb/use-master-password-protect-stored-logins?esab=a&s=master+passowrd&r=3&as=s Here] is an article for more information about the Master Password feature. -
Hi,
I'm experiencing a strange behaviour recently. I wrote a feature with an EventReceiver that sets the masterpage and alternate css file for the current spweb it is activated for. When I activate that feature manually it works like expected. But if I include
the same feature in a SiteTemplate and it is called during site-creation, it doesn't work. I debugged it and stepped through it. As far as I can tell everything looks right. It sets the masterpage and css file like it should and throws no error. But when the
site loads in the end, it suddenly still uses the v4.master and no alternateCSS. How can that be?
If I deactivate the feature then manually and activate it again, it works...
Here's the feature:
const string masterPage = MyOfficeProcess.master";
const string searchMasterPage = "MyMinimal.master";
const string alternateCss = "MyOfficeAlternateProcess.css";
public override void FeatureActivated(SPFeatureReceiverProperties properties)
SPWeb web = (SPWeb)properties.Feature.Parent;
using (SPWeb topLevelSite = web.Site.RootWeb)
string relativePath = topLevelSite.ServerRelativeUrl;
if (!relativePath.EndsWith("/"))
relativePath += "/";
if (web.WebTemplate == "SRCHCENTERLITE" || web.WebTemplate == "SRCHCEN" || web.WebTemplate == "SRCHCENTERFAST")
web.CustomMasterUrl = relativePath + "_catalogs/masterpage/" + searchMasterPage;
else
web.MasterUrl = relativePath + "_catalogs/masterpage/" + masterPage;
web.CustomMasterUrl = relativePath + "_catalogs/masterpage/" + masterPage;
web.AlternateCssUrl = relativePath + "Style Library/My/" + alternateCss;
web.UIVersion = 4;
web.Update();Hi,
You can put a copy of your master page within the template site, use that for the site's master page, and then save the site as a template then check whether it works.
Here is a similar thread for your reference:
http://sharepoint.stackexchange.com/questions/30699/featureactivated-not-called-for-site-template
Thanks,
Dennis Guo
TechNet Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Dennis Guo
TechNet Community Support -
Hi,
I'm doing sql+ call from ksh to unload some formatted data from table like:
sqlplus -s $username/$oracle_pass@$ORACLE_SID @sql_string.sql
and here is my sql_string contents:
set termout off
set pagesize 0
set trimspool on
set headsep off
set linesize 120
set feedback off
spool /tmp/myfile1.dat
select substr(colml,1,150) from t_merc;
exitIdeally I'd like to create file with predefined length, and looks like set_linesize option doesn't work for my case, I still get whater length I'm getting from SELECT, I played with substring for testing as you can see, original column size = varchar2(200) and I'm inserting into this column data with diff length. Can I get somehow my output in fixed length format?
Tx all
TrentHi, Trent,
You want SET TRIMSPOOL OFF .
SET TRIMSPOOL ON means "trim trailing spaces from the right side of the line", exactly what you don't want.
trento wrote:
set linesize 120
select substr(colml,1,150) from t_merc;
Is that intentional? Do you want the display to wrap if colm1 is over 120 characters? -
HELP - setting page margins doesn`t work correctly
Hi there,
maybe someone encountered the same Problems I am facing.
I am setting the page margins for the Left-Side to have enough space to punch the printout.
Somehow CR seems to ignore the values I set when printing a Report.
Most of the times I have too much space on the right side and not on the left side.
The margin on the Left side seems to be the min-margin of the printer.
What`s wrong with the Reports?
CR 2008 with SP1 is used.
The Reports are not designed against a specific Printer.
The virtual Printerdriver of CR is used.
Greetz
Ricardo>
Don Williams wrote:
> Hi Ricardo,
>
> There is a new API that allows you to dissociate the printer... that is by default not checked on in the Report file.
>
> Try setting it to true in your app and test again:
>
> // new API added to allow changing printing options
> newOpts.DissociatePageSizeAndPrinterPaperSize = true;
>
> Search the Object Browser for how to use it.
>
> Thank you
> Don
Don (or anyone else),
I try to get to the DissociatePageSizeAndPrinterPaperSize but I can't figure out how to access it.
I use CR 2008 with Visual Studio 2005, Visual Basic. My goal is to get an unrestricted right hand side
of my report, so I can have as many columns as I want. (I have a different thread about this).
First of all: If I search DissociatePageSizeAndPrinterPaperSize in the Object Browser, it can't find it.
(I have performed an upgrade for CR XI R2 to CR 2008 and it seemingly went well).
Here is what I do in code (a modified web download for testing):
Option Strict On
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
Partial Class _Default
Inherits System.Web.UI.Page
Private rpt As ReportDocument
Private exportPath As String
Private myDiskFileDestinationOptions As DiskFileDestinationOptions
Private myExportOptions As ExportOptions
Private selectedNoFormat As Boolean = False
Private Sub ConfigureCrystalReports()
rpt = New ReportDocument()
Dim reportPath As String = Server.MapPath("Hierarchical Grouping.rpt")
rpt.Load(reportPath)
Dim myPrintOptions As CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions = _
CType(rpt.ReportClientDocument.PrintOutputController.GetPrintOptions(), _
CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions)
Dim newPrintOptions As CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions = myPrintOptions.Clone(True)
Dim newMargins As CrystalDecisions.ReportAppServer.ReportDefModel.PageMargins = newPrintOptions.PageMargins
newPrintOptions.PageMargins = newMargins
newMargins.Right = 1000
'newPrintOptions.PaperSize = CrystalDecisions.ReportAppServer.ReportDefModel.CrPaperSizeEnum.crPaperSizePaperA3
' newPrintOptions.PaperOrientation = CrystalDecisions.ReportAppServer.ReportDefModel.CrPaperOrientationEnum.crPaperOrientationLandscape
rpt.ReportClientDocument.PrintOutputController.ModifyPrintOptions(newPrintOptions)
myCrystalReportViewer.ReportSource = rpt
End Sub
This prints a wider page on-screen than without the code, so it is an improvement. Still, I would like to go
further, and the DissociatePageSizeAndPrinterPaperSize seems to be promising.
Can you tell me how to set it in the context above?
A little observation: When my newMargins.Right gets the value 145, the output is a narrow page.
When it is set to 146, it jumps to a wider page.
Setting the PageContentWidth doesn't help any more than the Right option.
- Kjell Arne -
Setting the language of the work item
Hi gurus,
Does anybody know if it is possible to set the language of the workitem in the workflow to a different language than the log on language? By adding an extra step maybe?Hi Tugrul Basar
The language of a workitem (BOR Object WORKITEM) is set in SWWWIHEAD when the workitem is instantiated as a database attribute, so the bad news is there is no clean method to do this.
But, you can put some extra logic in the workitem description to enable different languages, even though the language attribute in the object is set to logon language of WF-BATCH user. In simple terms, you create a standard text (in SO10) for your new language texts and then put a case statement in the description. Use exactly the same method and syntax as you would for SAPScript.
Regards and good luck
Gareth -
Archivelink, OAOR, setting viewer inplace doesn't work for class name PREL
Hello,
I use archivelink. I configured repository (OAC0) using HTTP content server. I add protocol HTTP to configuration. In OAOR transaction I can see a documents stored by OAWD transaction. In OAG1 transaction I set option Include ECL Control. When I activated in-place option in OAOR transaction. I can view document from class name for example PICTURES in inplace viewer but when I want to view a documents from a class PREL the viewer is open in new window. The area for a viewer i OAOR transaction is empty. I want to view image TIF documents joined to PREL class using inplace function. What am I doing wrong? How can I resolve this problem? Any suggestions?
My operating system: Windows XP. SAP system: SAP R/3 Enterprise 4.7. SAP GUI: for Windows in version 720.
Regards
KazHi Ravindra
I think this is exactly part of the problem. A lot of people think that SDN is here to provide learnings to consultants when in reality, the purpose of this is not to help newbies or potential consultants learn, but to provide the best answers to problems for customers. The idea is not that consultants should have the opportunity to post answers to questions and be corrected if they are wrong, the purpose is for consultants to post answers to questions when they are sure they are right. Yes, they won't be right all the time, but they should at least be sure about it, rather than guessing.
I also don't think people are fully aware of the problems their answers create. As an example, I cringe every time I see someone ask how to do an object link to a purchase order. The reason for this is because some new consultant is always going to post the way to do it. The reason this is a problem is that SAP DMS should not be used for invoices, so in effect, all they are doing is giving the consultant/customer a work around to solve the problem in the wrong way. This may not seem like an issue, but the cost implications of doing is are astronomical when the company builds an entire solution on SAP DMS, including workflow, and then has to re-migration this solution to the correct area in a couple of years when they find out. In reality, this little post could cost a couple a couple of hundred thousand dollars. The roll on effect is even more damaging, because they get given points for the correct answer, so the next time they post exactly the same thing. Other people see the post and before you know it, there are 100 customers out there who have implemented the wrong solution to solve a problem and nobody knows why.
As another example, I sometimes see someone suggested a user reinstall a content server without knowing the nature of the problem. There are cost implications to this advice, particularly where the basis skills are provided by a third party. In some cases, company X may provide SAP DMS skills while company Y provides basis. When he tells the basis consultant to reinstall the content server, the cost is on the company, not on the consultant.
This problem often stems from a lack of knowledge on the consultants side because they are self taught and therefore haven't bothered to understand the basic architecture behind content management in SAP. This means they don't understand what documents should be stored where and see SAP DMS as a total solution to solve all problems. This is one of the reasons why SAP is pushing to stop people posting beginner questions on SDN where the consultants haven't bothered to attend training because its the customer that suffers, not the consultant. If the consultant learns the correct way later, it doesn't affect him, the customer on the other hand has a solution built in the wrong area of SAP that doesn't support growth or expansion of technologies because they aren't integrated into that area. -
Chrome local trusting doesn't work?
I'm trying to do AS3 to javascript communication running locally in Chrome. I've tried multiple designs, examples from the adobe site. On win7 All work fine in IE FF locally once trusted of course. All work fine on internet site including chrome. But in Chrome locally the communication fails. I've set the global setting to trust the file, the directory and have added the .cfg files. From flash get error:
AS3 SecurityError occurred: Error #2060
From Javascript get error:
Object #<HTMLObjectElement> has no method 'myMethod'
Oddly enough, if you use debugging version of flash player it works. It seems the built in Chrome flash plugin won't allow you trust locally?
Does anyone have insight or help?
Thanks.You can try a factory reset and reload the configuration but the above step i suggested if it didn't work then next suggestion would to be factory reset and reconfigure manually and then test.
So yes you can try that first then try what i suggested and if that don't work then it will be next step
Factory reset and reconfigure manually.. Some times when upgrading it can cause some corrupted files and only way to fix is a factory reset and reconfigure (manually)..
Jasbryan -
Dynamically setting column width doesn't work all the time
I wanted to dynamically set the width of a column in a JTable to be half of the width of a another column. This should happen whenever the frame is resized. But somehow I need to tell this twice to Java. If I don't then sometimes the column width isn't set new.
Is this a Java bug or what?
public void componentResized(ComponentEvent ce)
try
ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMaxWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMinWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
// Again, or it won't work:
ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMaxWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMinWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
catch(SQLException e)
}Is it possible that your call to
ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMinWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
is altering the response created by
ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMaxWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
? Have you tried calling them once but in the other order? Or just calling the "setMaxWidth" call twice and leaving out the second "setMinWidth"?
Good luck... :) -
Photosmart c4580 windows 7 - set up CD doesn't work for Win 7!!!
Hello,
I've got my Photosmart c4580 for a while know, I still think it might be possible to get it wirelesse.
The CD that was sold with it to set up the wifi connection does not work for Windows 7!!! Any idea, what I could download instead? All drivers are updated.
Many thanks indeed,
CarolineYou need to download and install the full feature software and drivers for Win 7 here. http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?os=4062&lc=en&cc=us&dlc=en&sw_lang=&product=3418... Now try.
Say thanks by clicking the Kudos Thumbs Up to the right in the post.
If my post resolved your problem, please mark it as an Accepted Solution ...
I worked for HP but now I'm retired! -
AddTextObject - set FormatText = True doesn't work?
<p class="ssiBODYCOPY">Hi,<br /><br />I am adding a textobject and setting the FormatText parameter to true but the CR(newline) characters that I have included in the string are just being formatted as a space. Is this a bug in Crystal? I am using Crystal Reports XI SP2.<br /><br />Code below:<br />VARIANT format1;<br />VariantInit(&format1);<br />format1.vt = VT_BOOL;<br />format1.lVal = TRUE;<br />CString fileContens = "line one \n line two";<br />ITextObjectPtr text = pSection->AddTextObject(_bstr_t(fileContens.GetBuffer(0)), 0, 0, format1);</p><p class="ssiBODYCOPY">I've also tried setting CanGrow property to TRUE, but it does not make any difference.</p><p class="ssiBODYCOPY">Could you help? Thanks.</p><p class="ssiBODYCOPY">Billy<br /></p>
Please re-post if this is still an issue to the Legacy Application Development SDKs Forum or purchase a case and have a dedicated support engineer work with you directly
Maybe you are looking for
-
I've installed itunes for windows 7 64-bit, but then itunes says I haven't
I've installed itunes on my new Windows 7 64-bit computer multiple times, but every time I plug in my iphone 5 I get a message saying I need to install itunes 64-bit. I've tried all the fixes I've found online to no avail. Anyone out there able to he
-
Paste from MSWord into PDF file
I know I can use the touch up text tool to highlight and copy but is there a way I can copy a paragraph from a MS Word document and paste it into an existing adobe pdf file? I'm using Acrobat 7 Professional in a Windows XP environment. Any advise wou
-
Uninstalling All Versions of Application Prior to Installation
Hey Guys - For the application Adobe Reader (X and XI), I've created custom source files/folders which have the updates slipstreamed into them plus include Transforms created with the Adobe Customization Wizard. Once made into Applications, they de
-
Why won't my stereo play AirTunes?
I recently purchased a second AirPort Extreme to place in my living room so that I can play AirTunes off of my living room stereo (A JVC Compact Component System -- about 5 years old). I have both Airport's networked successfully -- the green lights
-
i am trying to change my icloud account so that it is the same as my apple id. ive looked at similar questions people have asked and done what they said but when i got to delete my existing icloud account it tells me that if i proceed i will lose all