Delegation function in E-Sourcing

Does anyone know whether E-Sourcing has a delegation function?  If the approval is on leave, he can assign others to approve on his behalf?  Or when someone is on leave, the administrator can help to put in on behalf for the approver?  This function is available in SRM.  How about in E-Sourcing?  If this function is not available do anyone know whether you can write script to program that to happen?
Regards
Lisa

Hi Lisa,
You have two options for delegating an approver.  There are many other ways this can be done but with the information provided these are the two most likely choices.. 
1. The E-Sourcing/ CLM system can allow users with System Administration access to login as a another user and approve on their behalf.  When the workflow is approved or rejected the system logs both user ids.
2. Do a Group Approval where only one member of the group has to approve.  Include the original approver and their delegated resource in the group.
Regards,
James
Approval Options in E-Sourcing/ CLM are the following:
Single User Approval
Group Approval where only one group member needs to approve
Group Approval where all group members need to approve
You can have multiple levels of approval.  So for each phase of the approval process you can have an additional set or sets of approvers.  In theory infinite number of approval phases and infinite number of approval steps in each phase.  In practice we usually see 4-8 contract phases with 2-4 being approval phases and each approval phase has 1-3 approvers.  But keep in mind every process is different.
Approvals based on value matrixes, contract values, Business Units, auto approval Etc. are possible. 
Because the workflows are XPDL scripting and java based there is a high level of flexibility in how we select the approver change phases, validate document meta data, force loading of pdf contracts, etc..

Similar Messages

  • Delegation functionality within OSA ?

    Hi,
    Is there a delegation function within OSA (appraisal), to allow someone to do some or most of the data entry on behalf of the actual part appraiser ? How can this be achieved ?
    Thank you.
    Regards
    Kir Chern

    Hi,
    How about roles? You could give part appraiser roles to the data entry person.
    Cheers,
    Donnie
    Edited by: Donnie Freako on Jun 18, 2009 12:27 AM

  • Using Concat function - in Excel Source

    Hi,
    I am using an Excel file as a source and oracle table as a target.
    In the Excel file i need to concatenate two columns and map it to the target oracle column based on a condition.
    I used the concat function in Expression Editor, but its throwing an error 'Undefined expression' as our source is not a oracle.
    What should i do to execute the excel function in ODI?
    Thanks in Advance
    Ram Mohan T.

    Hi,
    Probably, you have mistake in Excell syntax, try to concutenate columns by Oracle (set 'target' radiobutton in mapping and use '||') and we will see...

  • Crystal Reports for VS2010 using a custom SAP ABAP function module data source

    I recently worked with Crystal Reports 2011 and was able to connect and retrieve data from our R/3 system via an ABAP function module. While researching other features, I found this version that can be installed into Visual Studio 2010. The parameters are not very user friendly in Crystal Reports so I was hoping to create a custom dialog to collect my report parameters.
    Does anyone know if I were to install Crystal Reports for Visual Studio 2010, would I be able to design a front-end selection screen in a Visual Basic form and then pass the input to through the Crystal Reports connection to my ABAP function module to retrieve the data filtered on the back-end by the selection screen parameters and return the results to be reported in the Crystal Reports output?
    I am using Visual Studio 2010 Professional Visual Basic with the .NET Framework 4.0 on 32-bit Windows 7. I was able to connect to our R/3 system in Crystal Reports 2011, so if I were to install Crystal Reports for VS2010, would there be a similar way of connecting to SAP?
    Any assistance or direction would be greatly appreciated.
    Thanks,
    Bryan

    Hello Bryan
    I don't know for sure, but I doubt this will work in CRVS2010. Only hope is that the utility available for download in this KBA will point you in the right direction.
    - Ludek
    Follow us on Twitter
    Got Enhancement ideas? Try the SAP Idea Place
    Share Your Knowledge in SCN Topic Spaces

  • Transformation: Need for calling a custom function module on source system

    Hi Gurus,
    I need to use a custom FM residing on source system within the transformation to determine the type (e.g. posting type) of a document item. The logic is quite complex with many exceptions (many if statements) and 2 customizing & few transparent tables are in use as well in the FM.
    From my point of view, there are few options for achieving the outcome:
    1. Copy the FM logic 1:1 in transformation
    2. Transport the FM from ERP to BW system
    3. Source system delivers the info (e.g. with an extra field "posting_type")
    4. Access the FM directly via RFC/BAPI
    However, there are pros and cons for each of the alternatives:
    *Option 1*
    pros:
    cons: consistency problem, need for importing customizing tables & source tables, high maintenance effort
    *Option 2*
    pros: better consistency compared to Option 1
    cons: need for importing tables, administrative efforts
    *Option 3*
    pros: no logic is needed at BW side, no transformations means no impact on performance, high consistency, no administrative effort
    cons: structure in source system has to be changed, impact on historical records
    *Option 4*
    pros: best consistency (better than Option 3 as FM might change), no administrative effort
    cons: impact on performance during transformation
    Could you please verify my assumptions and give suggestions on solving the problem?
    Thanks a lot!
    Regards,
    Meng

    Hi Joon,
    According to me.
    If Historical data amount is so high, historical data is available in BW(at PSA level or acquisition layer or corporate memory layer) and headache to load history data(because of overload on ECC due to huge amount of data) from ECC then I will suggest combination of 3 and 4 steps.
    If fetching history data from ECC is not headache for you then go for step 3.
    Step 3 is most common approach in BW, which is easy for implementation and support.
    Regards,
    Ashish

  • Can't use SecKeyRef and similar functions, when "Compile sources as" is set to "Objective c  "

    Hi, need to access SecKeyRef funcion and some other similar ones, but i can't access them, when my compiler option "Compile sources as" is set to "Objective c++". When it is set to "According to a file type", i dont get any errors with those funcions, but my old code starts to get errors. What should i do? I have tryed everything and still no luck...
    I'm using xcode 4,6 and app is for iOS6.

    I got my problem fixed. I was getting errors, with some failas that were importing <cmath><limits> etc. I renamed their extensions to .mm and set compile sources as to "According to a file type".
    Now wait a second. So if my apps target is iOS6.1 , apple will no longer accept my app? I didn't heard nothing about it...

  • ODI Error - Calling a function in the source database

    I am using this directly in the Interface mapping and getting the following error
    This is the syntax I am using SUM(CASE WHEN ((main.getCertDate(person_id,getdate()) >= current_timestamp) THEN 1 ELSE 0 END)
    ODI-1228: Task Load_Fact_Table1 (Integration) fails on the target MICROSOFT_SQL_SERVER connection SQLSERVER_USA.
    Caused By: java.sql.SQLException: [FMWGEN][SQLServer JDBC Driver][SQLServer]Cannot find either column "main" or the user-defined function or aggregate "main.dbo.getCertDate", or the name is ambiguous.
    Am I missing any additional steps, before calling a function in the mapping. Do I have to do something in the model to include teh function etc., Please help in fixing this issue.
    Thanks for your time and help.

    Hi Michael, Please see below.
    IKM - MSSQL Incremental Update
    Failing on Step 3 - Integration - Insert flow into I$ table
    insert into db11.dbo.##I$_FCT_TABLE
    COMP_ID,
    CNT_CLP_TARGET_MET,
    CNT_CERTIFIED,
    CNT_NOTCERT_WITHIN_GRACE_PRD,
    CNT_CERT_OR_WITHIN_GRACE_PRD,
    CNT_CERT_DELINQUENT,
    SUM_OF_AGE,
    SUM_OF_YEARS_EXPERIENCE,
    LOAD_DATE,
    IND_UPDATE
    select
    CASE WHEN DIM_COMP.COMP_ID IS null then -9999
    ELSE DIM_COMP.COMP_ID
    END,
    SUM(CASE WHEN ((main.dbo.getCertDate ([DISTINCT_RWF.MASTERKEY],GETDATE()) >= CURRENT_TIMESTAMP) OR DISTINCT_RWF = 'NO') THEN 1 ELSE 0 END),
    CURRENT_TIMESTAMP,
    'I' IND_UPDATE
    from ((
    select DISTINCT
    REPORT_WORKFORCE_REVIEW.REGION as REGION, REPORT_WORKFORCE_REVIEW.COMPO as COMPO, REPORT_WORKFORCE_REVIEW.PERSON_ID as PERSON_ID, REPORT_WORKFORCE_REVIEW.WF_STATUS as WF_STATUS, REPORT_WORKFORCE_REVIEW.PERSON_NAME as PERSON_NAME, REPORT_WORKFORCE_REVIEW.CPCN_NUM as CPCN_NUM, REPORT_WORKFORCE_REVIEW.COMMAND as COMMAND, REPORT_WORKFORCE_REVIEW.UIC as UIC, REPORT_WORKFORCE_REVIEW.UIC_STATE as UIC_STATE, REPORT_WORKFORCE_REVIEW.ORG_STRUCTURE_CODE as ORG_STRUCTURE_CODE, REPORT_WORKFORCE_REVIEW.ORG_DESC as ORG_DESC, REPORT_WORKFORCE_REVIEW.LOCATION as LOCATION, REPORT_WORKFORCE_REVIEW.STATE as STATE, REPORT_WORKFORCE_REVIEW.SVC_COMP_DATE as SVC_COMP_DATE, REPORT_WORKFORCE_REVIEW.YRS_OF_SERVICE as YRS_OF_SERVICE, REPORT_WORKFORCE_REVIEW.POSITION_ENTER_DATE as POSITION_ENTER_DATE, REPORT_WORKFORCE_REVIEW.MTHS_EXP_IN_PRESENT_POS as MTHS_EXP_IN_PRESENT_POS, REPORT_WORKFORCE_REVIEW.MTHS_EXP_IN_CURRENT_APC_ACL as MTHS_EXP_IN_CURRENT_APC_ACL, REPORT_WORKFORCE_REVIEW.AGE as AGE, REPORT_WORKFORCE_REVIEW.SEX as SEX, REPORT_WORKFORCE_REVIEW.SUPV_CODE as SUPV_CODE, REPORT_WORKFORCE_REVIEW.ACF as ACF, REPORT_WORKFORCE_REVIEW.CP as CP, REPORT_WORKFORCE_REVIEW.SERIES as SERIES, REPORT_WORKFORCE_REVIEW.DUTY_TITLE as DUTY_TITLE, REPORT_WORKFORCE_REVIEW.APT as APT, REPORT_WORKFORCE_REVIEW.APT_DESC as APT_DESC, REPORT_WORKFORCE_REVIEW.API as API, REPORT_WORKFORCE_REVIEW.SAA as SAA, REPORT_WORKFORCE_REVIEW.GRADE as GRADE, REPORT_WORKFORCE_REVIEW.HI_DEGREE as HI_DEGREE, REPORT_WORKFORCE_REVIEW.LVL_DESC as LVL_DESC, REPORT_WORKFORCE_REVIEW.APC as APC, REPORT_WORKFORCE_REVIEW.ACL as ACL, REPORT_WORKFORCE_REVIEW.CERT_LVL_ACHIEVED_IN_APC as CERT_LVL_ACHIEVED_IN_APC, REPORT_WORKFORCE_REVIEW.CERT_IN_POSITION as CERT_IN_POSITION, REPORT_WORKFORCE_REVIEW.CERT_BELOW_POSITION as CERT_BELOW_POSITION, REPORT_WORKFORCE_REVIEW.NOT_CERTIFIED as NOT_CERTIFIED, REPORT_WORKFORCE_REVIEW.CLP as CLP, REPORT_WORKFORCE_REVIEW.LAST_IDP_UPDATE as LAST_IDP_UPDATE, REPORT_WORKFORCE_REVIEW.LAST_IDP_UPDATE_MTHS as LAST_IDP_UPDATE_MTHS, REPORT_WORKFORCE_REVIEW.SUPV_REVIEW_DATE as SUPV_REVIEW_DATE, REPORT_WORKFORCE_REVIEW.SUPV_REVIEW_DATE_MTHS as SUPV_REVIEW_DATE_MTHS, REPORT_WORKFORCE_REVIEW.EMAIL as EMAIL, REPORT_WORKFORCE_REVIEW.MASTERKEY as MASTERKEY
    from main.dbo.REPORT_WORKFORCE_REVIEW as REPORT_WORKFORCE_REVIEW
    where (1=1)
    ) as DISTINCT_REPORT_WORKFORCE_REVIEW LEFT JOIN main.dbo.PERSON as PERSON ON DISTINCT_REPORT_WORKFORCE_REVIEW.MASTERKEY=PERSON.MASTERKEY) LEFT JOIN main.dbo.ACQUISITION_CORPS_QUALIFICATION as ACQUISITION_CORPS_QUALIFICATION ON DISTINCT_REPORT_WORKFORCE_REVIEW.MASTERKEY=ACQUISITION_CORPS_QUALIFICATION.MASTERKEY) LEFT JOIN main.dbo.PERSONS_POSITIONS as PERSONS_POSITIONS ON DISTINCT_REPORT_WORKFORCE_REVIEW.PERSON_ID=PERSONS_POSITIONS.MASTERKEY
    AND PERSONS_POSITIONS.POSITION_END_DATE IS NULL) INNER JOIN db11.dbo.DIM_COMP as DIM_COMP ON DISTINCT_REPORT_WORKFORCE_REVIEW.COMPO=DIM_COMP.COMP_CODE AND DIM_COMP.CURRENT_RECORD_IND = 1) LEFT JOIN db11.dbo.DIM_POSITION_TYPE as DIM_POSITION_TYPE ON DISTINCT_REPORT_WORKFORCE_REVIEW.APT=DIM_POSITION_TYPE.POSITION_CODE
    AND DIM_POSITION_TYPE.CURRENT_RECORD_IND=1)

  • Functionality of Data Source

    Hi all,
    I have three views in R/3, now am planning to create three different Data Sources(TD). Here my questions
    1. Can we club all these three into one Data Source?
    2. If not while creating three diff update rules for ODS.. i will get double records .. how can i ignore the duplicate records? becoz same feilds may come
    Regards
    Siri.

    For this there should be a clear picture on what are the fields involved in all the views.
    Anyways a generel case would be,
    All the Views contain the Key Part of the ODS.
    >>For Eg: View 1 has fields A, B, C, D.
    >>      View 2 has fields A, B, E, F.
    >>     View 3 has fields A, B, G, H.
    >> A, B forms the Key Part of the ODS.
    >> C, D, E, F, G, H forms the data part of the ODS.
    Then your update rules will be like:
    A, B, C, D of Data source 1 to A, B, C, D of ODS.
    A, B, E, F of Data source 2 to A, B, E, F of ODS.
    A, B, G, H of Data source 3 to A, B, G, H of ODS.
    Hope I am clear.
    Cheers,
    Neel.
    Cheers,
    Neel.

  • Dendrogram built-in JAVA function?  Open-source?

    Hello,
    I have been searching the internet for a way to use dendrograms with data that I have generated. A dendrogram looks like this: http://www-csli.stanford.edu/~schuetze/dendrogram.html
    And supposidly there is a class in JAVA to do dendrograms. I was wondering if anyone could give me a little more insight into how this is done.
    http://lis.snv.jussieu.fr/~chalubert/ddraw/DDrawDoc/ddraw/Dendrogram.html
    Thanx.

    Possibly Antoine Chalubert could. But why not download the package and try it out for yourself?

  • Report based on function returning query

    Hi all,
    I created a function FCT_1 in a package PKG, here is an exemple :
    function FCT_1(te in number) return varchar2
    is
    q varchar2(4000);
    begin
    if te = '1' then
    q := 'Select * from Clientele';
    else
    q := 'Select * from Compagnie';
    end if;
    return q;
    end;
    And I call this function the region source of my report like this :
    Declare
    q varchar2(4000);
    Begin
    q:=PKG.FCT_1(:P2_Nb); -- P2_Nb = 1 or 2
    return q ;
    end;
    But I got this error :
    report error:
    ORA-01403: no data found
    I need your help.
    Benn

    I got it,
    I just use the Use Generic Column Names (parse query at runtime only) option.
    I don't know why do I have to do it.
    Thanks
    Benn

  • List View Report with pipelined function in Mobile application and ORA-01007: variable not in select list

    Hi!
    I have a problem with List View Report in mobile application (theme 50 in apex) after updating to apex 4.2.2. I created Report -> List View. I used select from pipelined function in Region Source. Then when page is running and submited three times (or refreshed three times) I get an error:
    Error during rendering of region "LIST VIEW".
    ORA-01007: variable not in select list
    Technical Info (only visible for developers)
    is_internal_error: true
    apex_error_code: APEX.REGION.UNHANDLED_ERROR
    ora_sqlcode: -1007
    ora_sqlerrm: ORA-01007: variable not in select list
    component.type: APEX_APPLICATION_PAGE_REGIONS
    component.id: 21230833903737364557
    component.name: LIST VIEW
    error_backtrace:
         ORA-06512: at "APEX_040200.WWV_FLOW_DISP_PAGE_PLUGS", line 4613
         ORA-06512: at "APEX_040200.WWV_FLOW_DISP_PAGE_PLUGS", line 3220
    I get this error only when I use select from pipelined function in Region Source (for example: "select value1, value2 from table(some_pipelined_function(param1, param2)) ").
    You can check it on http://apex.oracle.com/pls/apex/f?p=50591 (login - demo, password - demo).
    In this application:
    - I created package TAB_TYPES_PKG:
    create or replace PACKAGE TAB_TYPES_PKG IS
    TYPE cur_rest_r IS RECORD (
        STR_NAME          VARCHAR2(128),
        INFO              VARCHAR2(128)
    TYPE cur_rest_t IS TABLE OF cur_rest_r;
    END TAB_TYPES_PKG;
    - I created pipelined function TEST_FUNC:
    create or replace
    FUNCTION TEST_FUNC
    RETURN TAB_TYPES_PKG.cur_rest_t  PIPELINED IS
    r_cur_rest TAB_TYPES_PKG.cur_rest_r;
    BEGIN
    r_cur_rest.STR_NAME := 'ROW 1';
    r_cur_rest.INFO := '10';
    PIPE ROW (r_cur_rest);
    r_cur_rest.STR_NAME := 'ROW 2';
    r_cur_rest.INFO := '20';
    PIPE ROW (r_cur_rest);
    r_cur_rest.STR_NAME := 'ROW 3';
    r_cur_rest.INFO := '30';
    PIPE ROW (r_cur_rest);
    r_cur_rest.STR_NAME := 'ROW 4';
    r_cur_rest.INFO := '40';
    PIPE ROW (r_cur_rest);
    r_cur_rest.STR_NAME := 'ROW 5';
    r_cur_rest.INFO := '50';
    PIPE ROW (r_cur_rest);
    RETURN;
    END TEST_FUNC;
    - I created List View Report on Page 1:
    Region Source:
    SELECT str_name,
           info
    FROM TABLE (TEST_FUNC)
    We can see error ORA-01007 after refresing (or submiting) Page 1 three times or more.
    How to fix it?

    Hi all
    I'm experiencing the same issue.  Predictably on every third refresh I receive:
    Error
    Error during rendering of region "Results".
    ORA-01007: variable not in select list
    Technical Info (only visible for developers)
    is_internal_error: true
    apex_error_code: APEX.REGION.UNHANDLED_ERROR
    ora_sqlcode: -1007
    ora_sqlerrm: ORA-01007: variable not in select list
    component.type: APEX_APPLICATION_PAGE_REGIONS
    component.id: 6910805644140264
    component.name: Results
    error_backtrace: ORA-06512: at "APEX_040200.WWV_FLOW_DISP_PAGE_PLUGS", line 4613 ORA-06512: at "APEX_040200.WWV_FLOW_DISP_PAGE_PLUGS", line 3220
    OK
    I am running Application Express 4.2.2.00.11 on GlassFish 4 using Apex Listener 2.0.3.221.10.13.
    Please note: this works perfectly using a classic report in my desktop application; however, no joy on the mobile side with a list view.  I will use a classic report in the interim.
    My region source is as follows:
    SELECT description AS "DESCRIPTION", reference AS "REFERENCE" FROM TABLE(AUTOCOMPLETE_LIST_VIEW_FNC('RESULTS'))
    The procedure:
      FUNCTION AUTOCOMPLETE_LIST_VIEW_FNC(
          p_collection_name IN VARCHAR2)
        RETURN list_row_table_type
      AS
        v_tab list_row_table_type := list_row_table_type();
      BEGIN
        DECLARE
          jsonarray json_list;
          jsonobj json;
          json_clob CLOB;
        BEGIN
          SELECT clob001
          INTO json_clob
          FROM apex_collections
          WHERE collection_name = p_collection_name;
          jsonobj              := json(json_clob);
          jsonarray            := json_ext.get_json_list(jsonobj, 'predictions');
          FOR i IN 1..jsonArray.count
          LOOP
            jsonobj := json(jsonArray.get(i));
            v_tab.extend;
            v_tab(v_tab.LAST) := list_row_type(json_ext.get_string(jsonobj, 'description'), json_ext.get_string(jsonobj, 'reference'));
          END LOOP;
          RETURN(v_tab);
        END;  
      END AUTOCOMPLETE_LIST_VIEW_FNC;
    Thanks!
    Tim

  • System.Diagnostics.EventLog - A device attached to the system is not functioning

    I was getting an error ....
    System.ComponentModel.Win32Exception was caught
      ErrorCode=-2147467259
      HResult=-2147467259
      Message=A device attached to the system is not functioning
      NativeErrorCode=31
      Source=System
      StackTrace:
           at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName)
           at System.Diagnostics.EventLogInternal.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData)
           at System.Diagnostics.EventLog.WriteEntry(String message, EventLogEntryType type)
           at VB_Braums_ClassLib.LogIt.WriteEventLog(String Entry, EventLogEntryType eventType, String Source) in \\Corp01\Vol1\Mis\Pccode\Ms.net\ProductionLibs\ProductionLibs\ProdLibCommon.vb:line 3666
      InnerException: 
    This code is in a library, so I create a "hello world" to demonstrate the issue. I will post it at the end. This .net 4 framework and it's been around for a while in our code. We are starting to upgrade from XP to Win 7. Basically event log sizes
    are limited to the 32667 number. So we had a test, if the string is bigger than that, then we would write it in 32000 byte chucks. On two different win7 boxes we get the "device attached" error message. Run the same code on a XP box and it works.
    Oh, and the Win 7 boxes are 64 bit.  I wonder if the win 7 32 bit would have the same issue? Can others duplicate it? The tmpsize seems to be different numbers, but if you play with it, you can get it down to number x works and (x+1) does not.
    Here the code .....
    Module Module1
        Sub Main()
            Dim logName As String = "BraumsLog"
            Dim objEventLog As New System.Diagnostics.EventLog()
            Dim needCreate As Boolean = False
            Dim Source As String = ""
            If Source.Length = 0 Then Source = "Test"
            Dim Entry As String = "".PadLeft(64000, "1"c)
            'Register the App as an Event Source
            If EventLog.SourceExists(Source) Then
                Dim slog As String = EventLog.LogNameFromSourceName(Source, ".")
                If slog <> logName Then EventLog.DeleteEventSource(Source) : needCreate = True
            Else
                needCreate = True
            End If
            If needCreate Then EventLog.CreateEventSource(Source, logName)
            objEventLog.Source = Source
            '*********** New Code ****************
            objEventLog.MaximumKilobytes = 20480
            objEventLog.ModifyOverflowPolicy(OverflowAction.OverwriteAsNeeded, 0)
            'WriteEntry is overloaded; this is one
            'of 10 ways to call it
            Dim tmp As String = ""
            Dim tmpSize As Integer = 32000 '31890 works 31891 does not
            Do While Entry.Length > tmpSize
                tmp = Entry.Substring(0, tmpSize - 1)
                objEventLog.WriteEntry(tmp, EventLogEntryType.Information)
                Debug.WriteLine(tmp.Length.ToString)
                Entry = Entry.Substring(tmpSize)
            Loop
            tmp = Entry
            objEventLog.WriteEntry(tmp, EventLogEntryType.Information)
        End Sub
    End Module

    Run the same code on an XP 64 bit box and it works? XP comes in multiple flavors.
    Perhaps you should compile to x86 CPU and see if it works on Win 7 64 bit. Win 7 comes in 32 and 64 bit also.
    On the other hand Win 7 service pack 1 mainstream support ended on the 13th of this month. Extended support ends in 2020 supposedly. Perhaps you should upgrade to Win 8.1 instead. Win 10 is coming soon enough.
    Windows lifecycle fact sheet
    Microsoft Product Lifecycle Search - Windows 7 result
    La vida loca

  • Function "DDIF_NAMETAB_GET"

    Hi,
    I am reading a database table's attributed using DDIF_NAMETAB_GET function. My code is:
    DATA: IO_TABLE_NAME TYPE tabname,
      it_dfies TYPE TABLE OF dfies,
      is_dfies TYPE dfies.
    DATA: is_x030l  TYPE x030l.
    *IO_TABLE_NAME is getting from user
    CALL FUNCTION 'DDIF_NAMETAB_GET'
               EXPORTING
                    tabname   = IO_TABLE_NAME
               IMPORTING
                    x030l_wa  = is_x030l
               TABLES
                    dfies_tab = it_dfies
               EXCEPTIONS
                    OTHERS    = 1.
    LOOP AT it_dfies INTO is_dfies.
    ENDLOOP.
    Above, When I watching the is_dfies, there are some informations as:
    "ZCALISAN      ID      0002000004     AKCNT"
    I know that ZCALISAN is the name of database table, ID is the attribute of this table, AKCNT is the field type of this attribute.
    Now,
    1. I don't know 0002000004 mean? Or how to interpret this value?
    2. I want to learn this table's primary key(s). But the table "it_dfies" includes only attribute information. How can I read primary keys? Is it possible to read primary keys using  FUNCTION 'DDIF_NAMETAB_GET'?
    3. I want to see the field type AKCNT or another field type's Data Type. Is it char? If char what is long? Or is it Decimal? How can I do this operation?
    4. The purpose of all of these operations copying one database table. For this purpose, I will read table's information then using EXEC SQL I will create the copied table. Using EXEC SQL can I define DECIMAL like in SAP, or all other types like in SAP? Is there any restriction?

    Hi,
    There are two problems that I need to solve:
    1. In my program I want SRC_TABL and TGT_TABL from user. Then when I called Function 'RS_DD_COPY_OBJ'
    CALL FUNCTION 'RS_DD_COPY_OBJ'
      EXPORTING
        SOURCE_NAME              = SRC_TABL
        TARGET_NAME              = TGT_TABL
        OBJTYPE                  = OBJECT_TYPE
      EXCEPTIONS
        NOT_EXECUTED             = 1
        PERMISSION_FAILURE       = 2
        OTHERS                   = 3.
    This function has another screen that wants Source Table and Target Table. If user enters Source Table and/or Target Table different from at the beginnig of the program that user entered, I need to learn what user entered. Because, I also need to activate copied table. And also, I will copy all entries of Source Table to Target Table. Because of these, I need to learn what user entered for table names while FUNCTION 'RS_DD_COPY_OBJ' is running
    2. As I mentioned above, I need to copy the source table's entries to target table. But source table's and target table's names are defined by user. So, I can not write this:
    SELECT * FROM SOURCE_TABLE INTO TABLE ITAB.
    INSERT DEST_TABLE FROM TABLE ITAB.
    Program gives error about SOURCE_TABLE and DEST_TABLE.
    Also, I can not define ITAB because of I do not know which table I will use before starting program.
    How can I implement this copy operation? Is there any way? Is there any function that copies source table's entries to target table?
    Thanks.
    Message was edited by: Huseyin Akturk -- DEU

  • Using a function in a Cursor Definiftion

    Hi all,
    my problem is to define a curson inside a package, using a function already defined in the function.
    My source code is the folowing:
    PROCEDURE TEST
    IS
    CURSOR cursor_test IS
    SELECT ID_CUSTOMER
    FROM CUSTOMER
    WHERE START_VALIDITY_DATE > GET_DATE(DATE_NEW_CUSTOMER, DATE_EXPIRED);
    BEGIN
    END;
    The function Get_date ( a date,b date) is defined in the same package where it is collocated my procedure "Test". The function called "Get date" return a date.
    When I compile, I have an error and I don't understand why.
    Thank'you in advance

    Hi,
    To illustrate APC's point with some simple examples:
    HR%xe> create or replace package test_pkg
      2  as
      3    procedure public_proc;
      4  end test_pkg; 
      5  /
    Package is aangemaakt.
    HR%xe> create or replace package body test_pkg
      2  as
      3    procedure public_proc
      4    is
      5      function private_func
      6      return date
      7      is
      8      begin
      9       return(sysdate);
    10      end private_func;
    11      --
    12      l_count number := 0;
    13      --
    14    begin
    15      select count(*) into l_count
    16      from   employees
    17      where  employees.hire_date < private_func;
    18      --
    19      dbms_output.put_line(l_count||' employees were counted.');
    20      --
    21    end;
    22  end test_pkg; 
    23  /
    Waarschuwing: package-body is aangemaakt met compilatiefouten.
    HR%xe> sho err
    Fouten voor PACKAGE BODY TEST_PKG:
    LINE/COL ERROR
    12/5     PLS-00103: Encountered the symbol "L_COUNT" when expecting one of
             the following:
             begin function package pragma procedure form
    22/5     PLS-00103: Encountered the symbol "TEST_PKG" when expecting one
             of the following:
    HR%xe> create or replace package test_pkg
      2  as
      3  /* commented out the declaration in the specification this time
      4    function private_func
      5    return date;
      6  */ 
      7    procedure public_proc;
      8  end test_pkg; 
      9  /
    Package is aangemaakt.
    HR%xe> create or replace package body test_pkg
      2  as
      3    function private_func
      4    return date
      5    is
      6    begin
      7     return(sysdate);
      8    end;
      9 
    10    procedure public_proc
    11    is
    12      l_count number := 0;
    13    begin
    14      select count(*) into l_count
    15      from   employees
    16      where  employees.hire_date < private_func;
    17      --
    18      dbms_output.put_line(l_count||' employees were counted.');
    19      --
    20    end;
    21  end test_pkg; 
    22  /
    Waarschuwing: package-body is aangemaakt met compilatiefouten.
    HR%xe> sho err
    Fouten voor PACKAGE BODY TEST_PKG:
    LINE/COL ERROR
    14/5     PL/SQL: SQL Statement ignored
    16/34    PL/SQL: ORA-00904: "PRIVATE_FUNC": invalid identifier
    16/34    PLS-00231: function 'PRIVATE_FUNC' may not be used in SQL
    HR%xe> create or replace package test_pkg
      2  as
      3  
      4    function private_func
      5    return date;
      6   
      7    procedure public_proc;
      8  end test_pkg; 
      9  /
    Package is aangemaakt.
    HR%xe> create or replace package body test_pkg
      2  as
      3    function private_func
      4    return date
      5    is
      6    begin
      7     return(sysdate);
      8    end;
      9 
    10    procedure public_proc
    11    is
    12      l_count number := 0;
    13    begin
    14      select count(*) into l_count
    15      from   employees
    16      where  employees.hire_date < private_func;
    17      --
    18      dbms_output.put_line(l_count||' employees were counted.');
    19      --
    20    end;
    21  end test_pkg; 
    22  /
    Package-body is aangemaakt.
    HR%xe> exec test_pkg.public_proc
    107 employees were counted.
    PL/SQL-procedure is geslaagd.Once you declare your function in your package specification as well, you can use your function in your procedure.
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_packages.htm#sthref823

  • Material price change with variable G/L account - which function module?

    Hi,
    do you know a function module which allows to change the material price (S or V) and accepts a cost center for the price variances that is not the one from customizing?

    Hi Tony.
    I feel that you are in extended classic scenario.
    For the "extended classic scenario" with services you must consider the following corrections in the R/3 system as of Release 40.
    1) Three new function modules
    2) Source code corrections in R/3 System
    ->  account assignment category in R/3 system can be changed for EBP
    These information are from one SAP note.
    Note 431954 - Extended classic scenario (services): Changes in R/3.
    regards,nishant
    please reward point if this helps

Maybe you are looking for

  • Can't copy files to NAS via smb

    I'm trying to move my Logic files to a NAS in a RAID 1 configuration prior to installation of Logic 9. I'm connecting via Samba. However, I'm continually getting this error message after only a few files are copied: "The operation can't be completed

  • Down loading photos.

    I generally use a 512MB SD card for photos. I routinely shot about 100 photos and then down load to iPhoto. I occasionally will save those photos on the SD card and the shot another 100 pics. When I down load the second batch of 100, iPhoto will ask

  • Exporting graphics/images at full-resolution?

    Good morning. So, I've got a series of indesign documents, all of which contain various different types of placed graphics; eps, png, jpg, ai, psd, and the like. I know that I can export these graphics from Indesign server, via script, by iterating a

  • HELP: Controlling speed of photo slider

    I need some help in controling the speed of this simple photo slider. Here's what I have. Individual movie clip(Photo): onClipEvent (enterFrame) { _root.xdist = (_root._xmouse-_root.xcenter)/20; Main Action: movieWidth = 300 xcenter = movieWidth/2 //

  • Delete workbooks in Discoverer 10.2 - URGENT

    Hey I need help with a problem I am facing. In our upgrade from 9.2 on an old server to 10.2 on a new server, I exported all the Workbooks that existed i the old server. They were made by different users. And as you know, it is only the owner of the