How to change ruler guide to custom units

I have changed the line grid to a custom size by this code:
InterfacePtr<IUnitOfMeasureSettings> iUOMPref((IUnitOfMeasureSettings*)::QueryPreferences(IID_IUNITOFMEASURESETTINGS, pDoc->GetUIDRef()));
iUOMPref->SetVertCustomPoints(gridDivision);
where gridDivision is my number of points. This works.
Now I'd like to apply the same unit to the vertical ruler guide. The value is already applied to custom units, but the measurement shown is still millimeters.
What is the right way to switch to custom units?
Thanks!

Unfortunately, the last change did not update the vertical ruler immediately. So I decided to use a boss command:
/* set line grid to user defined size (gridDivision):*/
InterfacePtr<IUnitOfMeasureSettings> iUOMPref((IUnitOfMeasureSettings*)::QueryPreferences(IID_IUNITOFMEASURESETTINGS, pDoc->GetUIDRef()));
iUOMPref->SetVertCustomPoints(gridDivision);
/* set vertical ruler to user defined size:*/
InterfacePtr<ICommand> smuCmd( CmdUtils::CreateCommand( kSetMeasureUnitsCmdBoss ) );
if( !smuCmd )
    return false;
InterfacePtr<IMeasureUnitsCmdData> smuData( smuCmd, IID_IIMEASUREUNITSCMDDATA );
if( !smuData )
    return false;
smuData->Set( pDoc->GetUIDRef(),
                iUOMPref->GetYUnitOfMeasure(),
                   kRulerCustomMSBoss,
                   iUOMPref->GetTextUnitOfMeasure(),
                   iUOMPref->GetTextSizeUnitOfMeasure(),
                   iUOMPref->GetPrintUnitOfMeasure(),
                   iUOMPref->GetLineUnitOfMeasure(),
                   iUOMPref->GetHorzCustomPoints(),
                   gridDivision,
                   iUOMPref->GetKeyNudgeInc() ,
                   iUOMPref->GetPointsPerInch());
if (CmdUtils::ProcessCommand(smuCmd) != kSuccess)
    return false;  
Works fine.

Similar Messages

  • How to change the text of customer tab in Me23n

    Hi
    I have added new customer tab in Me23n at item level.
    Its text is Customer Data.
    I would like to change to some other text.
    How to change the text of customer tab in Me23n
    Regards
    Amruta

    Amruta,
    I had the same query today and finally found the answer.
    In order to change the title text or description of the "Customer Data" tab in ME23N, etc. you need to define a new text symbol in program SAPLXM06. The text symbol must be number 111 for the PO data. Make sure you define this text symbol in the language you are using when viewing the PO. I had issues with this as the original language of object SAPXM06 is not my logon language.
    The standard code which picks up this text is in function module MEGUI_BUILD_PO_ITEM_PLUGIN. I could not find any documentation around this functionality.
    Hope this helps!
    Ben

  • Changing ruler guide color not working

    Having an issue when I go to Layout > Ruler guides and change the ruler guide color, it doesn't update on the canvas and the color is still this mint green which is hard to see against a white background. Any idea on how to fix this?

    yeah i went into preferences and changed all the colors in there too, but the one for ruler guides isn't in preferences its under layout > ruler guides. not sure why its not updating

  • HT201304 how to change the region canadian to united state

    i live in the united states and my app store doesn't let me download any apps because it says i am in the canadian app store... What do i do to change it back to the united states app store ?

    Try this.
    Settings>iTunes and App Stores>Apple ID
    Tap your ID
    Tap View Apple ID
    Enter your password
    Go to country/region in the popup window to change the store

  • How to change the values in custom profiles based on security group ??

    Hi,
    i am facing problem for my requirement, can anybody help me for below scenario...
    i have custom check in profiles , there are content types and sub types. sub type nothing but a categories on for particular content type. For example i have News content type , same in the below subtypes drop down list are press release, events, articles etc.
    what i want to do is, when i open custom checkin profile, subtype values need to be changed( some values in subtype should hide) based on security group changes .
    In the Sub type listed values, some values need to hide only when i choose different security groups.. sub types values should display based on the particular security group only. when ever i change the security group, drop down Values in subtypes needs to change.
    hope understand my requirement.
    How to achieve this task. Any help would be greatly appreciated.
    Thanks,
    yt

    Hi,
    Thanks alot. its working fine
    Can we configure DCL Relation two times in one information filed ??? i should not create not more than fields to this requirement.
    Type -> subtype = DCL already existed
    Now, i want to Create DCL to
    Subtype ---> Security group
    As per my requirement, if i change the security group in checkin form, values should be change in the SubType drop down list.
    Created checkin profile there was DCL relation to " Type and "Sub Type" . now i want to map Relation ( DCL ) for subtype to security group.
    i was trying do for DCL for subtype and security group. but there was already existing DCL created for subtype information field (Relation configuration done for content type). even though i was trying to do for DCL in Security group information field. but, i could not find security group information field in configuration manager.
    Now what should i do ?? how to create DCL to subtype and security group ??
    Help would be appreciated.
    yt

  • How to change the name of Customer  Tab strip .

    hi
    For Tcode ME21N ME22N and ME23N I have added a screen exit to PO header tabstip .The name that is appearing is "Custumer data "  as tab stip text , i want ot change this tab strip name. can u please suggest me how to do it.
    Below are the details.
    function group:MEGUI
    screen :1102
    Reagrds
    Avik

    Hi Avin,
    you must have created a project in CMOD for this enhancement.
    Go to the same project in CMOD.
    Select Componenets radio  button on cmod and go inside.
    you will find Menu exit option on the coponenet screen.
    double click on function code like +Co1( in prod order) and enter function text as your desired name instead of customer data. save the same and activate the project.
    it should make required chnages.

  • How to change G/L AR Customer (Debit) in Billing (Posting Accounting Doc.)

    Hi Expert,
    I have requirement from customer:
    The requirement is to change G/L Account AR Customer (Debit) to another G/L Account (Debit) in Billing Processing (when release accounting document).
    Example:
    As Is:
    AR Customer (Debit)
                     Revenue (Credit)
    To Be:
    Progress Billing (Debit)
                      Revenue (Credit)
    (G/L Account AR Customer change to G/L Account Progress Billing)
    Is it possible?
    How to configure it in SAP system?
    Thanks & Regards,

    Hi,
    I am sure you can use he functionality of Alternative Reconciliation Account Determination in order to achieve this.
    In the IMG screen, follow as mentioned below:
    Sales & Distribution -> Basic Functions->Account Assignment/Costing->Reconciliation Account Determination.
    Reward if useful.
    Thanks,
    Pankaj

  • How to change report filepath in custom TS UI?

    I have made a custom TestStand UI (use  TS  API) with CVI. Now i want to change my report filepath in my   UI.What should i do?
    I  have known  one way,use  Report Option Callback !!!
    Is there another way???
    Solved!
    Go to Solution.

    If it's before an execution then why wouldn't you use the Configure>>Report Options..?   Unless of course you aren't using an NI provided process model, in which case you will have to create something like they have in their models. Just create a Configuration Entry point and call some code that changes the path, or better yet- Call it through the modelsupport2.dll like they do in the Sequential Model. 
    I'm trying to picture your UI and where you would have this option if not in the Configure menu.  Doesn't really make sense to me.
    I do know that the report path is saved in the TestStandModelReportOptions.ini file.  This is in your Cfg directory which is linked in the <TestStand> directory.  So really all you need to do is change the value in there somehow. Not only would you have to change the Directory but the DirectoryType would have to be set to "SpecificDirectory" as well. I'm guessing that's what the modelsupport2.dll is doing under the hood.  You could browse through it's code if you know C and see how it's done.  All the source code is there.
    Hopefully this can help get you on the right path a bit.  This seems like an interesting project but you are really getting into the guts of TestStand.
    Good luck,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • How to change stock category of handling units at mass level without Development

    Hi,
         We have hundreds of handling units with stock category "blank" in our returned stock storage location which is HU managed. MMBE shows different
         value in Return stock  what  we see in HUMO is  only One HU with very less qty. visible with stock category "R".inventory stock is different than the    
          HU  stock visible in HUMO
         can some one help in explaining how can we change the stock category of HU's from Blank to R. is there any standard process offered by Sap.
         Development of program to get it done is out of scope right now
         Thanks,

    i am struggling to figure this out too.right now we if i look into MMBE i see the returned stock
    value.but HUMO does not show any handling units with stock category R when searched
    though Storage location is HU managed.i suspect user has done GR without delivery which cause the dependency.
    Thanks for quick response.

  • How to change pricelist type in customer master

    hi gurus,
    plz tel me any bapi or function module is there to chnage new pricelist type in customer master for a perticular sales area.

    Hello Rudi,
    This issue happens usually when the 'Business Area Financial Statement' indicator has been enabled in customizing. Hence, in your case, for changing of business area > use ABUMN to transfer from existing asset to a new asset master with new business area.
    Kind regards,
    John Chin

  • How to change label of tab 'Customer data' in transaction ME53N

    Hi,
    I need to change the label of tab 'Customer data' in transaction ME53N.
    Please help me.
    Thanks!!!
    S.

    Hi Sebastiano,
    having the same requirement, I found this solution in some older postings: You must add a new Text symbol to the main program (which is SAPLXM02 for ME51N / ME52N / ME53N) of the customer-subscreen in order to rename the customer data tab in these Transactions.
    Try the following steps:
    1. call Tx SE38
    2. open Program SAPLXM02
    3. from the menu, call Goto->Text elements->Text symbols
    4. Add a new Row for the subscreen dynpro you want to rename (e.g. dynpro 111 for item details in ME51/ME52N/ME53N), with Sym = dynpro number (e.g. 111 for item details) and Text = your new tab name
    5 save & activate
    This basically works the same for Transactions ME21N / ME22N /ME23N customer tabs, just open Program SAPLXM06 instead and follow the above steps.
    Note: if you develop in multi-language environment, you might have to translate the text symbol.
    I hope this helps.
    Rudi
    refer to:
    [http://forums.sdn.sap.com/click.jspa?searchID=32160998&messageID=6937865|http://forums.sdn.sap.com/click.jspa?searchID=32160998&messageID=6937865]
    [http://forums.sdn.sap.com/click.jspa?searchID=32160998&messageID=6147389|http://forums.sdn.sap.com/click.jspa?searchID=32160998&messageID=6147389]

  • How to change Group-name of custom step-type?

    Hello,
    i´m using TS4.1 and miss a input-parameter which was avaiulable in TS3.5.
    I have some labview-vis which should be TS-teststeps and they all shoul be placed in a group.
    Do do this i open the "Types" and select one of my created types. The i rightclick the step and select properties.
    In the tab "Menu" i can set a name for the step BUT the parameter to set the Group is no more available?
    This was also in the Tab Menu in TS 3.5 but now in TS4.1 there is only Item-name.
    Where can i set the Group-name od my steps?
    Thx
    Message Edited by OnlyOne on 06-10-2008 08:14 AM

    Hi!
    Now you can go in the Insertion Palette in TS 4.1 (the Step Palette on the left side) and right click on Customize... (see attachement)
    There you have the menu where you can change the group for all steps in the palette.
    So now you have the possibility to change, create and move groups inside your palette.
    Best regards
    Ken
    Attachments:
    Customize.jpg ‏85 KB

  • How to change customer reconciliation account in ECC6.0 without new GL fun?

    Hi,
    We have to default profit center for one customer without disturbing setup for other customer.
    Hence we have decided to change reconciliation account of that customer and will assign to acount with default profit center in 3KEI.
    Now my question is how to change recon ac of customer having too many line items for that customer.
    Please an I get help on this?
    Please can you provide steps to hange recon ac by transferring balance to other account?
    How we can deal with open/clear line items of that customer.
    Thanks

    Hi
    A rather simple way will be to set up a simple substitution rule for that particular customer in GGB1. You can write a simple substitution rule as under
    Prerequisite:
    BKPF-BUKRS=1000 and BSEG-KUNNR=1001112
    Substitution
    BSEG-PRCTR =101332
    You should activate this rule for entire Document
    Regards
    Sanil Bhandari
    Edited by: Sanil K Bhandari on Jun 13, 2011 12:22 PM

  • Change dpi for Ruler Guides

    Hello.
    I'd like to use exact size in dots when making layout for my document.
    Ruler Guide set to "px" displays pixel values for 72dpi, but I'll print the document in 300dpi. I'd still like to measure dots exactly, is there a way to change Ruler Guide pixels to 300dpi?
    Thanks in advance.

    Thanks for the quick replies.
    What I'm trying to do is to print enlarged pixel art illustrations, which are very low resolution images that are meant to be enlarged.
    The problem is, when we enlarge those low-res images, their new size must be exactly divisible by their original size. Let's say, if I have 7x7 picture (I know it's too small, just for the sake of example), it should have 14x14, 21x21 or maybe 70x70 frame, but not 22x22, since this will lead to scaling artifacts. The artifacts are only visible if you look very closely (or, alternatively, look from far away), but it appears that they are able to mess with pixel patterns slightly.
    In other words, each pixel art enlarged "pixel" should ideally have the same size in real dots, or else there'll be some approximations, which are harmful to clean pixel art. Not neccesarily, but it'd be cool.
    So, if it's possible, I'd like to define exactly how much points on print will the frame take in any given dpi (300 dpi is just an example).
    Eugene Tyson is pretty close with what I wanted to do. But it'd be even greater to position Ruler Guides using real points in their X and Y coordinates for given dpi, not only 72 dpi (otherwise I'll have to count all those grids manually). I guess that's impossible?
    Thanks.

  • How to Change the customer subscreen tab text in maintanance order ?

    Hi all,
    I have implemented a screen-exit for maintanance order using IWO10018. it is working fine but the tab text of the added screen is ENHANCEMENT. I tried to change it by creating the text symbols in  the program with the screen . But still it is not changing.
    Please help me to solve the issue?
    Thanks,
    Aravind.

    Refer:
    Re: Change tab strip name for ME52N transaction
    How to change the name of Customer  Tab strip .
    Rename Custom tab in IW31 transaction
    Check whether you can maintain the tab page title here
    transaction spro-investment management-Appropriation requests-control data-specify tab layout for Appropriation reuqests

Maybe you are looking for

  • Read Navigational Attribute from Mulitprovider

    Hi Gurus, I need to read a navigational attribute from the Multiprovider in the user exit.  Could you please tell me in detail with coding how to do this ?

  • (261936172) Q general Where are the Web Service source files?

    Q <general> Where are the source files for a Web Service created with WebLogic Workshop stored? How do I deploy the Web Service on a different WebLogic Server? Is there a way to bundle the Web Service project files manually to distribute them? Is the

  • Hours in a month

    SDN, How to calculate number of hours in a month in a query. Thanks

  • Documents to go on Tungsten T with Windows Vista

    I haven't used my Palm for a number of years and have just started again with my Vista computer.  I need to sync my Windows Vista PC with my Tungsten T to get an Excel spreadsheet from one to the other.  Do I still use Documents to Go or is there som

  • Command-tab during Keynote shows on wrong screen

    Hi, Since I upgraded Keynote I now see the icons of the programs I have open during a command-tab keystroke on the wrong screen. My audience sees everything I have open and I am lost on my screen. It does not always occur. When I hook up my MacBook t