Derive Template from Template

hi,
Is there a way to derive a template from a template?
I am using portal 9.0.2.0.
Regards
Peter

Do you mean that you want one template to inherit from another template?
Unfortunately, the answer to that is no.
Regards,
Jerry
PortalPM

Similar Messages

  • Derive YYYYMM from YYYYMMDD with formula variable replacement path

    Dear All
    For deriving month from date I tried the replacement path variable with the offset 0, length 6 (for YYYYMM). But the YYYYMM displayed as a number i.e. 200502 as 200,502. Tried to divided by 100. It still displayed as 2,005.02. Any idea how to let it as 200502?
    Thanks, Jessica
    Message was edited by:
            jessica sheng

    Actually, here's a quick example of a customer exit that I think does what you want (I did it here in this text, so you might need to debug):
            WHEN 'ZDAT_MTH'.
    DATA: l_curdate  like sy-datum.
    *           Initialization
                CLEAR: l_calmonth, l_curdate.
    *           Get calmonth from curdate
                CALL METHOD cl_rsar_function=>date_month
                  EXPORTING
                    i_curdate  = l_curdate
                  IMPORTING
                    e_calmonth = l_calmonth.
    *           Return calendar month
                CLEAR l_s_range.
                l_s_range-sign = 'I'.
                l_s_range-opt  = 'EQ'.
                l_s_range-low  = l_calmonth .
                APPEND l_s_range TO e_t_range.

  • Error while deriving currency from table T001P

    Hi All,
    Error while deriving currency from table T001P
    I am getting this error while payroll run by using country GRP=99 in SU2 for Non-SAP supported country.
    I assigned country grouping as 99 in V_T500P table while assigning comp code to personnel area.
    The company code is assigned with BD as country key in configuration and currency as BDT.
    Referring previous links for the same error I checked all concerned tables and maintained correctly.
    What will be the probable reason of this error?

    Hi,
    I had the exact same problem a while back. The problem was that in V_T001 I had a different comp code which was either assigned to the same country  that had a blank currency  or assigned to the same currency but was missing the country. It was a different comp code than the one I was running payroll for so it took a long time to find the cause - I'll bet this is what's causing your error. 
    Rgds,
    Kristopher

  • Can I work with a derived class from u0093ApplicationClassu0094

    Hello, I want to create a derived class from “ApplicationClass” for use in my Application, the problem is the function “SAPbouiCOM.SboGuiApi.GetApplication(-1)”, it return a COM object. If I do a specific cast to my own class (that derive from ApplicationClass), the metod give a COM exception and say that I can’t do a specific cast with a COM object.
    Can I do that cast? And How can I do it?
    I’m programming in C#.
    Thanks.

    I think that you can´t assign an object of the base class
    to an object of the derived class. I don´t know why you need to do that. With more information we could help you

  • Possibility of returning derived type from inherited operator

    Hello forum,
    I am wondering the possibility of returning a derived type from an inherited operator. A test case would include two class definitions such as:
    Public Class Base
    Dim _a
    Public ReadOnly Property A As Integer
    Get
    Return _a
    End Get
    End Property
    Public Shared Operator +(ByVal base1 As Base, _
    ByVal base2 As Base) As Base
    Return New Base(base1.A + base2.A)
    End Operator
    Public Sub New(ByVal a As Integer)
    _a = a
    End Sub
    End Class
    Public Class Derived
    Inherits Base
    Public Sub New(ByVal a As Integer)
    MyBase.New(a)
    End Sub
    End Class
    and implementation such as:
    Dim derivedA As Derived = New Derived(1)
    Dim derivedB As Derived = New Derived(1)
    Dim derivedResult As Derived = derivedA + derivedB
    'would like result as derived, not base!
    This test case returns the error that the derivedResult cannot by cast to the base type (as this is how the operator is defined). I am wondering: is there a way to change the operator definition so that the derived type is returned from the operation? There
    could be many derived types and avoiding overloading the method in each type definition could reduce the amount of code.
    Many thanks.

    I'm just Frank, not "Mr. Smith". ;-)
    I suspect that Reed is onto it with generics. He's quite familiar with it and in a question I posted a few years ago - about derived classes - he answered it using generics.
    Let's see what you or he comes up with. :)
    Still lost in code, just at a little higher level.
    Haha, I was like "who is Mr. Smith.... oh yeah, that's Frank's last name".  ;)
    @James3210:  same here... it's just Reed.  Wearing a shirt with a collar is about as formal as I get.  :)
    Anyway, back to the subject at hand, I think the generic method in conjunction with the operator overload is the way to go.  Since you'll have to write the operator on each class anyway, at least you can copy-paste the operator code and then just change
    the type used for "T":
    Public Class FooBase
    Private anInteger As Integer
    Protected Shared Function Add(Of T As {FooBase, New})(source As T, target As T) As FooBase
    Return New T() With {.anInteger = source.anInteger + target.anInteger}
    End Function
    Public Shared Operator +(source As FooBase, target As FooBase) As FooBase
    Return FooBase.Add(Of FooBase)(source, target)
    End Operator
    End Class
    Public Class DerivedFoo
    Inherits FooBase
    Public Overloads Shared Operator +(source As DerivedFoo, target As DerivedFoo) As DerivedFoo
    Return FooBase.Add(Of DerivedFoo)(source, target)
    End Operator
    End Class
    Public Class DerivedFooTwo
    Inherits FooBase
    Public Overloads Shared Operator +(source As DerivedFooTwo, target As DerivedFooTwo) As DerivedFooTwo
    Return FooBase.Add(Of DerivedFooTwo)(source, target)
    End Operator
    End Class
    In this example the shared Add() method is internal to the FooBase objects, but you could make the access modifier public if you wanted to expose the method for direct use.
    -EDIT-
    Sorry, I forgot you wanted to return the object type from the operator, not the internal result.  I've updated the code to return a new object instance.
    Reed Kimble - "When you do things right, people won't be sure you've done anything at all"

  • Derive segment from business area

    Dear Experts,
    Is there an easy way to derive segment from business area when making GL postings ?
    Thank you for you answer.
    Best Regards,

    Hi,
    To what I know, you'd probably have to write a user exit, as well as maintain a mapping table.  The fact is that segment works almost similarly to business area and hence there is not connection between the 2.
    The closest I can think of is the connection between cost centre and profit centre.  Cost centre contains the business area assignment and profit centre the segment assignment.
    Hope this helps.
    Cheers,
    Gimmo

  • Derive 0fiscyerar from 0calmonth in a query

    Hello all,
    We need to build a query which will show three columns: the first two will use calendar month using the value of the entry variable the user will enter. The third one has to show YTD values using 0fiscyear. But the user only wants to enter 0calmonth, so, is there a way to derive 0fiscyear from 0calmonth in a query?
    Thanks in advance
    Kenya

    hi,
    to get the YTD value you can use SAP EXIT variable.
    for 0FISC YEAR check the variable which sap has provided.
    there r variable like >>cumulated upto current month>>.
    u check them.
    regards
    sridhar.v

  • Security Issue: How to create a derived role from the Base role

    Hi All,
    Kindly let me know how can i create a derived role from the base role?
    Please respond at the earliest.
    Thanks in advance.
    Ramesh.

    Go to PFCG and Create a role with desired Name.
    In the Description Tab, on the Left Side there is a text box for "Derive From "
    enter the Base role.
    Now your newly created role is derived from the Base role.
    Save the newly created role and again run PFCG, enter the Base role name and execute.Select Edit role. Go to Authorization tab.
    Edit Authorization.
    In the Menu Adjust Derived -> Generate and Adjust derive
    This will Generate the derived role.
    Now you may go and check the authorization in the derived role.

  • Extract derived data from HFM

    Hi All!
    Is it possible to extract derived values from HFM using LKM HFM Data to SQL?
    By 'derived' I mean gray colored values in HFM data forms. For example, data from currency exchange rate accounts.
    Thanks a lot in advance!
    Edited by: Alex Lasker on 05.04.2010 7:13

    Did you ever get an answer to your question about extracting (not copying) derived values? We are running into the same issue when trying to load HFM data into Planning/Essbase. Since none of those derived values exist in the data extract our Planning totals don't tie-out between it and HFM.

  • Characteristic Relationship - Derive week from 0CALWEEK

    I need an exit for characteristic relationship, deriving week (to a custom characteristic ZWEEK) from 0CALWEEK. I.e. I should be filling ZWEEK with the week number 1-52 based on 0CALWEEK's YYYYWW. Anyone have something like this already in place and would perhaps be so generous as to share the code or experiences?
    Regards,
    Thomas

    Hi Thomas,
    here you are:
    FUNCTION Z_DERIVE_ZWEEK.
    *"*"Local interface:
    *"       IMPORTING
    *"             VALUE(I_AREA) TYPE  UPC_Y_AREA
    *"             REFERENCE(ITO_CHA) TYPE  UPC_YTO_CHA
    *"             REFERENCE(ITO_SOURCE) TYPE  UPC_YTO_CHA
    *"             REFERENCE(ITO_TARGET) TYPE  UPC_YTO_CHA
    *"       CHANGING
    *"             REFERENCE(XS_CHAS) TYPE  ANY
    *"       EXCEPTIONS
    *"              FAILED
      FIELD-SYMBOLS: <calweek> TYPE ANY, <zweek> TYPE ANY.
      READ TABLE ito_source TRANSPORTING NO FIELDS WITH
        KEY CHANM = '0CALWEEK'.
      if sy-subrc = 0.
        ASSIGN COMPONENT '0CALWEEK' OF STRUCTURE xs_chas TO <calweek>.
        READ TABLE ito_target TRANSPORTING NO FIELDS WITH
          KEY CHANM = 'ZWEEK'.
        if sy-subrc = 0.
          ASSIGN COMPONENT 'ZWEEK' OF STRUCTURE xs_chas TO <zweek>.
          <zweek> = <calweek>+4(2).
        endif.
      endif.
    ENDFUNCTION.
    Regards,
    Marc
    SAP NetWeaver RIG

  • Displaying Customer Exit Variable with derived value from another ODS

    Hi All,
    Sorry if this question has been answered before.  I searched the forums and could not find anything specific to my problem.
    I am new to BEx Query.  Customer is requesting a variable(s) be created which will be displayed as a column along with other CKF and RKF.  This query is a payroll query for US/Canada.  This new variable will be based on the user input date for the query.  We are to take this date and go look up the actual pay date for the pay period to which the user input date belongs.  The pay date is stored in another ODS.
    So far, as far as the changes to the Customer Exit ZXRSRU01 are concerned, I would perform the logic when I_STEP = 2.  Do a basic selection off the second ODS, derive the pay date, and store in range table E_T_Range.
    The data displayed off the user input date is displayed in rows.  This is done six times, going back seven days for each row (first row is data for period user entered date to user entered date - 7 days; second row is data for period user entered date - 7 days to user entered date - 14 days; etc ...).  For this to happen  correctly, I am assuming the variable(s) are to to have characteristic types 'Not ready for input', 'Mandatory', 'Customer Exit', and 'Single Value'.
    My question is ... How do I display the six variables in columns (how are they to be defined in the query) and the characteristics I list above, are they correct? Does this need to be a replacement path variable?
    Thanks.
    Edited by: Amir Hasan on Jun 11, 2009 6:24 PM
    Edited by: Amir Hasan on Jun 11, 2009 6:25 PM

    Hi Amir,
    What i can understand from u r requirement is you want to few columns that will show something like below,
    User entered date = x
    Period of X to Period of (X-7)       Period of X to Period of (X-14).....
    This can be done by CMOD for variable only.
    Logic steps :
    1) Take the user input.
    2) Find out the period by using T009B table and store in temp variable.
    3) Do day -7 and find out period for the same
    4) Assing period of X to ls_range-high range and X-7 to ls_range-low.
    Let me know if you have any doubt
    Regards,
    Viren

  • Trouble Creating View Using Derived Values From With

    I want to use the two values derived from the sql statements in my WITH to use in a view. This is my code:
    WITH a AS(
    SELECT
    CASE
    WHEN (SELECT stvterm_code
    FROM stvterm
    WHERE sysdate >= stvterm_start_date
    AND sysdate <= stvterm_end_date) IS NOT NULL
    THEN (SELECT stvterm_code
    FROM stvterm
    WHERE sysdate >= stvterm_start_date
    AND sysdate <= stvterm_end_date)
    ELSE
    (SELECT min(stvterm_code)
    FROM stvterm
    WHERE stvterm_start_date > sysdate)
    END cur_term
    FROM dual),
    b AS (
    SELECT
    CASE
    WHEN (SELECT substr(cur_term,5, 2) FROM a) = '60' OR (SELECT substr(cur_term,5, 2) FROM a) = '40'
    THEN (SELECT substr(cur_term,0, 4)||'20' FROM a)
    WHEN (SELECT substr(cur_term,5, 2) FROM a) = '20'
    THEN (SELECT to_char(to_number(cur_term)-100) FROM a)
    END endof_prior_aidy_term
    FROM dual
    CREATE OR REPLACE VIEW jbartling.current_term AS
    SELECT cur_term, endof_prior_aidy_term
    FROM a,bHowever, I get the error ORA-00928: missing SELECT keyword. Is it possible to use WITH like this in creating a view? If not can someone show me another way to accomplish what I'm trying to do?

    Hi,
    You need to put the CREATE at top, i.e
    CREATE OR REPLACE VIEW jbartling.current_term AS
    WITH a
    SELECT ..  FROM a,bRegards
    Peter

  • How to load function from derived class from dll

    Dear all,
    how to access extra function from derived class.
    for Example
    //==========================MyIShape.h
    class CMyIShape
    public:
    CMyIShape(){};
    virtual ~CMyIShape(){};
    virtual void Fn_DrawMe(){};
    // =========== this is ShapRectangle.dll
    //==========================ShapRectangle .h
    #include "MyIShape.h"
    class DLL_API ShapRectangle :public CMyIShape
    public:
    ShapRectangle(){};
    virtual ~ShapRectangle(){};
    virtual void Fn_DrawMe(){/*something here */};
    virtual void Fn_ChangeMe(){/*something here */};
    __declspec (dllexport) CMyIShape* CreateShape()
    // call the constructor of the actual implementation
    CMyIShape * m_Obj = new ShapRectangle();
    // return the created function
    return m_Obj;
    // =========== this is ShapCircle .dll
    //==========================ShapCircle .h
    #include "MyIShape.h"
    class DLL_API ShapCircle :public CMyIShape
    public:
    ShapCircle(){};
    virtual ~ShapCircle(){};
    virtual void Fn_DrawMe(){/*something here */};
    virtual void Fn_GetRadious(){/*something here */};
    __declspec (dllexport) CMyIShape* CreateShape()
    // call the constructor of the actual implementation
    CMyIShape * m_Obj = new ShapCircle();
    // return the created function
    return m_Obj;
    in exe there is no include header of of ShapCircle and ShapRectangle 
    and from the exe i use LoadLibrary and GetProcAddress .
    typedef CMyIShape* (*CREATE_OBJECT) ();
    CMyIShape*xCls ;
    //===================== from ShapeCircle.Dll
    pReg=  (CREATE_OBJECT)GetProcAddress (hInst ,"CreateShape");
    xCls = pReg();
    now xCls give all access of base class. but how to get pointer of funciton Fn_GetRadious() or how to get access.
    thanks in advance.

    could you please tell me in detail. why so. or any reference for it. i love to read.
    i don't know this is bad way.. but how? i would like to know.
    I indicated in the second sentence. Classes can be implemented differently by different compilers. For example, the alignment of member variables may differ. Also there is the pitfall that a class may be allocated within the DLL but deallocated in the client
    code. But the allocation/deallocation algorithms may differ across different compilers, and certainly between DEBUG and RELEASE mode. This means that you must ensure that if the DLL is compiled in Visual Studio 2010 / Debug mode, that the client code is also
    compiled in Visual Studio 2010 / Debug mode. Otherwise your program will be subject to mysterious crashes.
    is there any other way to archive same goal?
    Of course. DLL functionality should be exposed as a set of functions that accept and return POD data types. "POD" means "plain-ole-data" such as long, wchar_t*, bool, etc. Don't pass pointers to classes. 
    Obviously classes can be implemented within the DLL but they should be kept completely contained within the DLL. You might, for example, expose a function to allocate a class internally to the DLL and another function that can be called by the client code
    to free the class. And of course you can define other functions that can be used by the client code to indirectly call the class's methods.
    and why i need to give header file of ShapCircle and shapRectangle class, even i am not using in exe too. i though it is enough to give only MyIShape.h so with this any one can make new object.
    Indeed you don't have to, if you only want to call the public properties and methods that are defined within MyIShape.h.

  • Derivation Rule from Sales order (VBPA) Urgent!!

    Hi Gurus,
    I've maintained a derivation rule for pulling the sales agent ( Partner Function) from sales order (VBPA Table lookup).
    When I tested the derivation strategy, its pulling the sales agent from sales order, but when the sales agent characteristic is added to the report and even after realigning the data, it still says "not assigned".
    Any input is really appreciated.
    Points will be awarded.
    Shiva.

    Hi
    Check the sequence of order (your derivation) try to move up your derivation on top of the other existing derivation from where same logic is executing (not assigned)
    Regards
    Laxmiprasad

  • 'Protecting' your derived roles from being maintained on object level

    I'm redesigning an authorization concept that has been polluted in the past by maintaining object level values in the derived roles instead of the master roles.
    Now I would like to build in a kind of warning or authorization so that future role administrators can adjust master roles on object level, and derive the roles from the master, but are not allowed (or get a warning) to change object level values in the derived roles themselves.
    I'm looking for a warning similar to the warning you get when you are trying to change an organizational level value within the object rather than change the orglevel table.
    I have looked for entries in table PRGN_CUST, but found none.
    Also, the authorization checks for deriving roles [seem to be similar|http://help.sap.com/saphelp_nw04/helpdata/en/2b/84653f1b76b11ae10000000a114084/frameset.htm] to actually maintaining a role, so no distinction can be made here.
    Knowing al this, II think the answer is: 'no, this is not possible' but if you have dealt with the same problem successfully, please let me know.
    Kind regards,
    Lodewijk Borsboom

    Hi Lodewijk,
    There are exit paths in SU01 and PFCG which might (have) help(ed) but SAP removed the documentation on them because as (to my knowledge) as the code was integrated into BAPIs and org. management these exits (like many which have gone before them) caused no end to confusion over time.
    I heard that they would at some ponit be replaced by BADI's but I guess the same problem exists there and I have to date not seem any of them released.
    I have the documentation if you are interested but which release are you on? I suspect that SAP might even remove the exit coding anyway.
    As the other's have stated, I would also go for a detective control. You can always wipe the mistake out again from the master and this will let you know that someone is not sticking to the rules or doesn't understand the concept.
    This is also an advantage when compared to an error message or warning which only they see...
    Cheers,
    Julius

Maybe you are looking for

  • Clamshell mode macbook any dangers?

    hey, well i just got myself a nice 32" HD TV that i also want to use as the main display for my mac book core duo. just want to know if there are any issues with using the macbook mainly in clamshell mode. have heard reports that over heating is an i

  • 'Required components are disabled' error during trial install

    I've downloaded the CS5.5 trial for the first time. When I install, I see three checkboxes for install: Encore, OnLocation, and Premiere Pro. The first two are checked, but the third is unchecked with a red X to the right of its name. If I try to sel

  • Regading function group

    Hi everyone, can anyone tell me what is a function group. I know it contains group of function modules what the purpose of function group .We give a function group in table maintenance generator for a ztzble ,whats the purpose of it. Please let me wh

  • Adding Secondary DNS entry in server, but Changes didnt take effects

    Hello. we have two servers, at time of installation we didnt configured ADC+secondary Dns in our network, so these servers were configured with only DC and Primary DNS server IP. later on we built ADC with secondary DNS, now when we add ADC+secondary

  • Safari could not open because the server is not responding - my Internet is fine

    My iPad suddenly is giving me the message "Safari could not open the page because the server stopped responding".  My Internet is working fine on other devices and other applications (i.e. Mail) seem to be working fine on the iPad.  I've turned the i