FM - HR_INFOTYPE_OPERATION - Unable to delimit data using this FM

Hi All,
I am trying to delimit the end date of infotype 0014 using function module "HR_INFOTYPE_OPERATION", Though the FM returns a zero return code and the sy-subrc is also zero. The FM doesnt sav ethe data. I do not get any error in this FM, But i see no date is not delimited.
I have used the below code to demilt the end date.
CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE'
        EXPORTING
         number = int_tab_0014-pernr.
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
        EXPORTING
           INFTY                  = '0014'
           NUMBER                 = int_tab_0014-pernr
           SUBTYPE                = int_tab_0014-subty
           OBJECTID               = int_tab_0014-objps
          OBJECTID               = ' '
           LOCKINDICATOR          = int_tab_0014-sprps
          VALIDITYEND             = int_tab_0014-endda
           VALIDITYEND             = l_valend     "99991231
           VALIDITYBEGIN           = l_valbegin   "20110101
           RECORDNUMBER            = int_tab_0014-seqnr
           RECORD                  = g_record
           OPERATION               = 'MOD'
           tclas                   = 'A'
           DIALOG_MODE             = '1'
          NOCOMMIT                = ' '
        IMPORTING
            RETURN                 = g_return
            KEY                    = g_key.
call function 'BAPI_TRANSACTION_COMMIT'.
CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE'
       EXPORTING
        number = int_tab_0014-pernr.
I have also tried commit work, but it doesnt work as well.
Could someone please get me on this? How do i save the delimit of end date?
Regards,
Suchitra

Hi,
   LIS9 does not work to delimit. Instead use INS and try inserting a new record , which should automatically
delimit the previous record.
Regards,
Srini.

Similar Messages

  • Custom Measure - Unable to Submit Data Using Input Schedule

    We have an application that requires storage of data on a job-to-date basis.  To accommodate this, the application was changed to a YTD application and 3 custom measures were added:
    JTD (base data)
    YTD_JOBS (offsets current period against last month of prior period)
    PERIODIC_JOBS (offsets current period against prior period)
    Everything is working and the measures resolve to the correct values.  The system also completes logic (advanced and dimension) properly.  Data may also be submitted through an Import process. 
    However, we are unable to submit data using an input schedule.  We consistently get a "no data to refresh" error message.  When the same schedule is used in the older, periodic version of the application, the submission works as expected.
    I suspect the problem is the naming of the custom measures is the root cause.  I have been unable to find documentation (BPC 5.1M) related to custom measures for 5.1.  Any help resolving this issue and/or tracking down custom measures documentation for v5.1 is much appreciated.
    Cheers,
    Jeff

    Joost,
    I believe what you are describing is the root of the issue.  The application is set to YTD as the data input type both in the web admin section and in the database table.  The problem is that JTD is the input member for this application -- we are loading job-to-date values instead of year-to-date.
    It seems that BPC does not understand JTD as a "base level" measure fort the input method.  I have not been able to find a table in the database that defines PERIODIC and YTD.  My hope was to add JTD to the settings. 
    Unless someone else has made something like this work, I suspect that I'll have to use YTD as the ID of the base member and restructure the custom measures.  We did not start this way since the user community thinks in terms of JTD data.

  • HTMLDB_TOOLS by Vikas  (Post Tab Delimated Data using Text Area)

    Hi
    We want to upload tab delimated data using text area (user will paste data in text atrea instead of uploading csv file)
    The data format will be
    .-----Col_1-----Col_2-----Col_3
    1-----10.78-----12.58-----11.92
    2-----11.66-----12.77-----12.49
    3-----10.83-----13.05-----12.92
    4-----11.54-----13.27-----13.72
    5-----11.45-----12.83-----12.89
    6-----11.81-----11.29-----12.33
    7-----12.60-----12.31-----12.72
    8-----11.78-----12.44-----12.55
    9-----11.97-----11.95-----12.49
    10-----11.50-----12.28-----12.15
    Where
    ----- indicates tabs
    1. Col_1 ,Col_2,..... are column headings
    2. Col_1 heading will be always blank as indicated
    3. Default Data Type for all columns will be varchar2(10)
    4. Number of Columns may vary upto *150*
    Regards
    Edited by: jazib on Jan 21, 2009 8:15 PM

    thanx for the re Dalerich1, but no, unfortunately i have a
    banking CRM-app which i have to simulate, and within that
    simulation swf there has to be that functionality.
    plus, since the app is still in development, it may change
    within the next couple of weeks, so i'd have to be able to record
    the functionality again with captivate (customer requirement) &
    then efficiently & quickly make it work like in the real thing.
    otherwise (if thmy customer wouldn't insist in using
    captivate) i might have dropped captivate in favor of flash a long
    time ago...
    any other directions anybody? i can't believe this simple
    task is costing me so much time and effort.
    thanx
    caveman

  • Restful service unable to insert data using PL/SQL.

    Hi all,
    Am running: AL 2.01 standalone mode on OEL 4.8 in VM box A.
    Oracle database 10.2.0.4 with Apex 4.2.0.00.27 on OEL4.8 in VM box B.
    Able to performed oracle.example.hr Restful services with no problem.
    Unable to insert data using AL 2.0.1 but works on AL 1.1.4.
    which uses the following table (under schema: scott):
    create table json_demo ( title varchar2(20), description varchar2(1000) );
    grant all on json_demo to apex_public_user; and below procedure ( scott's schema ):
    CREATE OR REPLACE
    PROCEDURE post(
        p_url     IN VARCHAR2,
        p_message IN VARCHAR2,
        p_response OUT VARCHAR2)
    IS
      l_end_loop BOOLEAN := false;
      l_http_req utl_http.req;
      l_http_resp utl_http.resp;
      l_buffer CLOB;
      l_data       VARCHAR2(20000); 
      C_USER_AGENT CONSTANT VARCHAR2(4000) := 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)';
    BEGIN
      -- source: http://awads.net/wp/2005/11/30/http-post-from-inside-oracle/
      -- Ask UTL_HTTP not to raise an exception for 4xx and 5xx status codes,
      -- rather than just returning the text of the error page.
      utl_http.set_response_error_check(false);
      -- Begin the post request
      l_http_req := utl_http.begin_request (p_url, 'POST', utl_http.HTTP_VERSION_1_1);
      -- Set the HTTP request headers
      utl_http.set_header(l_http_req, 'User-Agent', C_USER_AGENT);
      utl_http.set_header(l_http_req, 'content-type', 'application/json;charset=UTF-8');
      utl_http.set_header(l_http_req, 'content-length', LENGTH(p_message));
      -- Write the data to the body of the HTTP request
      utl_http.write_text(l_http_req, p_message);
      -- Process the request and get the response.
      l_http_resp := utl_http.get_response (l_http_req);
      dbms_output.put_line ('status code: ' || l_http_resp.status_code);
      dbms_output.put_line ('reason phrase: ' || l_http_resp.reason_phrase);
      LOOP
        EXIT
      WHEN l_end_loop;
        BEGIN
          utl_http.read_line(l_http_resp, l_buffer, true);
          IF(l_buffer IS NOT NULL AND (LENGTH(l_buffer)>0)) THEN
            l_data    := l_data||l_buffer;
          END IF;
        EXCEPTION
        WHEN utl_http.end_of_body THEN
          l_end_loop := true;
        END;
      END LOOP;
      dbms_output.put_line(l_data);
      p_response:= l_data;
      -- Look for client-side error and report it.
      IF (l_http_resp.status_code >= 400) AND (l_http_resp.status_code <= 499) THEN
        dbms_output.put_line('Check the URL.');
        utl_http.end_response(l_http_resp);
        -- Look for server-side error and report it.
      elsif (l_http_resp.status_code >= 500) AND (l_http_resp.status_code <= 599) THEN
        dbms_output.put_line('Check if the Web site is up.');
        utl_http.end_response(l_http_resp);
        RETURN;
      END IF;
      utl_http.end_response (l_http_resp);
    EXCEPTION
    WHEN OTHERS THEN
      dbms_output.put_line (sqlerrm);
      raise;
    END; and executing in sqldeveloper 3.2.20.09 when connecting directly to box B as scott:
    SET serveroutput ON
    DECLARE
      l_url      VARCHAR2(200)   :='http://MY_IP:8585/apex/demo';
      l_json     VARCHAR2(20000) := '{"title":"thetitle","description":"thedescription"}';
      l_response VARCHAR2(30000);
    BEGIN
      post( p_url => l_url, p_message =>l_json, p_response => l_response);
    END;which resulted in :
    anonymous block completed
    status code: 200
    reason phrase: OK
    with data inserted. Setup using 2.0.1
       Workspace : wsdemo
    RESTful Service Module:  demo/
              URI Template:      test
                    Method:  POST
               Source Type:  PL/SQLand executing in sqldeveloper 3.2.20.09 when connecting directly to box B as scott:
    SET serveroutput ON
    DECLARE
      l_url      VARCHAR2(200)   :='http://MY_IP:8585//apex/wsdemo/demo/test';
      l_json     VARCHAR2(20000) := '{"title":"thetitle","description":"thedescription"}';
      l_response VARCHAR2(30000);
    BEGIN
      post( p_url => l_url, p_message =>l_json, p_response => l_response);
    END;which resulted in :
    status code: 500
    reason phrase: Internal Server Error
    Listener's log:
    Request Path passes syntax validation
    Mapping request to database pool: PoolMap [_poolName=apex, _regex=null, _workspaceIdentifier=WSDEMO, _failed=false, _lastUpdate=1364313600000, _template=/wsdemo/, _type=BASE_PATH]
    Applied database connection info
    Attempting to process with PL/SQL Gateway
    Not processed as PL/SQL Gateway request
    Attempting to process as a RESTful Service
    demo/test matches: demo/test score: 0
    Choosing: oracle.dbtools.rt.resource.templates.jdbc.JDBCResourceTemplateDispatcher as current candidate with score: Score [handle=JDBCURITemplate [scopeId=null, templateId=2648625079503782|2797815111031405, uriTemplate=demo/test], score=0, scope=SecurityConfig [constraint=none, realm=NONE, logonConfig=LogonConfig [logonForm=null, logonFailed=null]], originsAllowed=[], corsEnabled=true]
    Determining if request can be dispatched as a Tenanted RESTful Service
    Request path has one path segment, continuing processing
    Tenant Principal already established, cannot dispatch
    Chose oracle.dbtools.rt.resource.templates.jdbc.JDBCResourceTemplateDispatcher as the final candidate with score: Score [handle=JDBCURITemplate [scopeId=null, templateId=2648625079503782|2797815111031405, uriTemplate=demo/test], score=0, scope=SecurityConfig [constraint=none, realm=NONE, logonConfig=LogonConfig [logonForm=null, logonFailed=null]], originsAllowed=[], corsEnabled=true] for: POST demo/test
    demo/test is a public resource
    Using generator: oracle.dbtools.rt.plsql.AnonymousBlockGenerator
    Performing JDBC request as: SCOTT
    Mar 28, 2013 1:29:28 PM oracle.dbtools.common.jdbc.JDBCCallImpl execute
    INFO: Error occurred during execution of: [CALL, begin
    insert into scott.json_demo values(/*in:title*/?,/*in:description*/?);
    end;, [title, in, class oracle.dbtools.common.stmt.UnknownParameterType], [description, in, class oracle.dbtools.common.stmt.UnknownParameterType]]with values: [thetitle, thedescription]
    Mar 28, 2013 1:29:28 PM oracle.dbtools.common.jdbc.JDBCCallImpl execute
    INFO: ORA-06550: line 1, column 6:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
       begin case declare exit for goto if loop mod null pragma
       raise return select update while with <an identifier>
       <a double-quoted delimited-identifier> <a bind variable> <<
       close current delete fetch lock insert open rollback
       savepoint set sql execute commit forall merge pipe
    The symbol "" was ignored.
    ORA-06550: line 2, column 74:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
       begin case declare end exception exit for goto if loop mod
       null pragma raise return select update while with
       <an identifier> <a double-quoted delimited-id
    java.sql.SQLException: ORA-06550: line 1, column 6:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
       begin case declare exit for goto if loop mod null pragma
       raise return select update while with <an identifier>
       <a double-quoted delimited-identifier> <a bind variable> <<
       close current delete fetch lock insert open rollback
       savepoint set sql execute commit forall merge pipe
    The symbol "" was ignored.
    ORA-06550: line 2, column 74:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
       begin case declare end exception exit for goto if loop mod
       null pragma raise return select update while with
       <an identifier> <a double-quoted delimited-id
            at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:447)
            at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)
            at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:879)
            at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:505)
            at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:223)
            at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:531)
            at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:205)
            at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:1043)
            at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1336)
            at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3612)
            at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3713)
            at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4755)
            at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1378)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at oracle.ucp.jdbc.proxy.StatementProxyFactory.invoke(StatementProxyFactory.java:242)
            at oracle.ucp.jdbc.proxy.PreparedStatementProxyFactory.invoke(PreparedStatementProxyFactory.java:124)
            at oracle.ucp.jdbc.proxy.CallableStatementProxyFactory.invoke(CallableStatementProxyFactory.java:101)
            at $Proxy46.execute(Unknown Source)
            at oracle.dbtools.common.jdbc.JDBCCallImpl.execute(JDBCCallImpl.java:44)
            at oracle.dbtools.rt.plsql.AnonymousBlockGenerator.generate(AnonymousBlockGenerator.java:176)
            at oracle.dbtools.rt.resource.templates.v2.ResourceTemplatesDispatcher$HttpResourceGenerator.response(ResourceTemplatesDispatcher.java:309)
            at oracle.dbtools.rt.web.RequestDispatchers.dispatch(RequestDispatchers.java:88)
            at oracle.dbtools.rt.web.HttpEndpointBase.restfulServices(HttpEndpointBase.java:412)
            at oracle.dbtools.rt.web.HttpEndpointBase.service(HttpEndpointBase.java:162)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
            at com.sun.grizzly.http.servlet.ServletAdapter$FilterChainImpl.doFilter(ServletAdapter.java:1059)
            at com.sun.grizzly.http.servlet.ServletAdapter$FilterChainImpl.invokeFilterChain(ServletAdapter.java:999)
            at com.sun.grizzly.http.servlet.ServletAdapter.doService(ServletAdapter.java:434)
            at oracle.dbtools.standalone.SecureServletAdapter.doService(SecureServletAdapter.java:65)
            at com.sun.grizzly.http.servlet.ServletAdapter.service(ServletAdapter.java:379)
            at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
            at com.sun.grizzly.tcp.http11.GrizzlyAdapterChain.service(GrizzlyAdapterChain.java:196)
            at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:179)
            at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
            at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
            at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
            at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
            at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
            at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
            at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
            at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
            at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
            at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
            at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
            at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
            at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
            at java.lang.Thread.run(Thread.java:662)
    Error during evaluation of resource template: ORA-06550: line 1, column 6:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
       begin case declare exit for goto if loop mod null pragma
       raise return select update while with <an identifier>
       <a double-quoted delimited-identifier> <a bind variable> <<
       close current delete fetch lock insert open rollback
       savepoint set sql execute commit forall merge pipe
    The symbol "" was ignored.
    ORA-06550: line 2, column 74:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
       begin case declare end exception exit for goto if loop mod
       null pragma raise return select update while with
       <an identifier> <a double-quoted delimited-idPlease advise.
    Regards
    Zack

    Zack.L wrote:
    Hi Andy,
    Sorry, forgot to post the Source that's use by both AL1.1.4 and AL2.0.1.
    Source
    begin
    insert into scott.json_demo values(:title,:description);
    end;
    it's failing during the insert?
    Yes, it failed during insert using AL2.0.1.
    So the above statement produces the following error message:
    The symbol "" was ignored.
    ORA-06550: line 2, column 74:
    PLS-00103: Encountered the symbol "" when expecting one of the following:
    begin case declare end exception exit for goto if loop mod
    null pragma raise return select update while with
    <an identifier> <a double-quoted delimited-idThis suggests to me that an unprintable character (notice how there is nothing between the double quotes - "") has worked its way into your PL/SQL Handler. Note how the error is reported to be a column 74 on line 2, yet line 2 of the above block should only have 58 characters, so at a pure guess somehow there's extra whitespace on line 2, that is confusing the PL/SQL compiler, I suggest re-typing the PL/SQL handler manually and seeing if that cures the problem.

  • Loading DATA using this Data source 0RT_PA_TRAN_CONTROL_TR,2LIS_44_POSREC

    Hi gurus,
    I am trying to Load data using this 2 data sources, I loading for first time.
    Can any one guide me step by step how to load the data by using this two data Sources SAP BI.Below is the data sources names.
    *0RT_PA_TRAN_CONTROL_TR - BW Data Source
    *2LIS_44_POSREC - ECC Data Source

    Hi Lisa,
    @@ In this scenario , we are uploading data in PIPE and then pushing data to data source- info cubes. We are trying to upload sales data in PIPE using an internal function module /POSDW/CREATE_TRANSACTIONS_INT.Using the POS monitor (/POSDW/MON0) , we are able to view the data.
    w.r.t your above sentences I understood that you were almost having the same requirement as I do. So did you get the solution?? If yes, kindly share the procedure about how to load the Data into the PIPE.

  • Unable to fetch data using control-blocks

    Hi,
    I have created two non base table text items(from_date, to_date) and if values are not entered from front end i.e. null then hadrcoded in pre_query trigger to default values as from_date (system date-present month-last year) and to_date(system date-present month-present year).when i have pressed the fetch button without giving values to from_date and to_date,it is retrieving data in default period,which i ahave hardcoded in PRE_QUERY trigger.But even i enter values dynamically from front end and when ever i press fetch button ,it is retrieving data in default period instead giving data in specified duration what i have entered dynamically from front end. i.e. it is not accepting values what i have entered.
    any one please help me.
    oracle forms 10g version:10.1.2.0.2
    Thanks and Regards
    Ram

    hi,
    Thanks for ur feedback.
    here query is executed. My problem is,unable to fetch data in specified period,what i have entered dynamically.Even i entered dynamically,it is fetching data in default period(Which i have hardcoded in PRE_QUERY).
    below code is ,what i have hardcoded in PRE_QUERY
    :GLOBAL.DFROMDT := NULL;
    :GLOBAL.DTODT := NULL;
    IF :HEADER_BLOCK.NBTFROMDT is NULL THEN
    SELECT TO_DATE('10'||'/'||TO_CHAR(ADD_MONTHS(SYSDATE,-1),'MM')||'/'||
    TO_CHAR(ADD_MONTHS(SYSDATE,-12),'YYYY'),'DD/MM/YYYY')
    INTO :HEADER_BLOCK.NBTFROMDT FROM SYS.DUAL ;
    END IF;
    IF :HEADER_BLOCK.NBTTODT IS NULL THEN           
         SELECT SYSDATE INTO :HEADER_BLOCK.NBTTODT
         FROM SYS.DUAL;
    END IF;
    IF :HEADER_BLOCK.NBTFROMDT IS NOT NULL
    OR :HEADER_BLOCK.NBTTODT IS NOT NULL THEN
    :GLOBAL.DFROMDT := :HEADER_BLOCK.NBTFROMDT;
    :GLOBAL.DTODT := :HEADER_BLOCK.NBTTODT;
    END IF;
    IF :DETAIL_BLOCK.nbtFjdDrCrInd IS NOT NULL THEN
         svWhere_String := 'WHERE FJH_VCHR_DT BETWEEN '''||nvl(:GLOBAL.DFROMDT,TO_DATE(:GLOBAL.DFROMDT,'DD/MM/YYYY'))||''' AND '||
    ''''||NVL(:GLOBAL.DTODT,TO_DATE(SYSDATE,'DD/MM/YYYY'))||''')';
         Set_Block_Property('DETAIL_BLOCK',DEFAULT_WHERE,svWhere_String);
    ELSE
         Set_Block_Property('DETAIL_BLOCK',DEFAULT_WHERE,' ');
    END IF;

  • Unable to persist data using oracle BC

    HI all
    I am using Jdeveloper 11.1.2.3.0.
    I have followed the Adf insider BC and Faces component tutorials.
    All works fine and i am able to view all data correctly.
    When i try to insert a new record, using create and insert or create, i can see the row added from the web interface, but it does not get persisted in DB.
    What could be the possible causes?
    Thanks

    Also, you need to make sure that your Task Flow uses a transaction, otherwise you would have to supply custom code for the commit to work. To determine this, open the Task Flow file, go to the Overview tab, then click on Behavior in the left-hand column. You should select « Always Begin New Transaction » or « Use Existing Transaction if Possible. »
    Best Regards,
    Frédéric.

  • I am not able to fecth data using this statement

    Hi All,
    Iam getting problem when i was using select queiry based on vbak,vbap and konv tables.
    Error is i am not able to get  all condition types but i am getting only first record
    Example...
    number of the document condition which is KNUMV
    condition item number which is KPOSN
    condition type which is kshcl
    knumv              kposn             kshcl
    00000002          000100        zpro
    00000002          000100        zdsc
    00000002          000100        zima
    00000002          000100        zpak
    but iam getting only first fecord not getting all the records
    like
    000000002    000100    zpro
    code is ..........
    *select Sales Document: Header Data and Item Data from vbak and vbap
    select avbeln aerdat aernam aauart avkorg avtweg aspart akunnr avkbur avkgrp alifsk afaksk aaugru aknumv
           bposnr bmatnr bwerks blgort bkwmeng bpstyv babgru bbedae blprio bvstel bntgew bbrgew
           bvolum bfaksp bktgrm btaxm1 babfor bkalsm_k bmatkl bkondm bgsber bprctr
           into corresponding fields of table it_vbak
           from vbak as a inner join vbap as b on avbeln = bvbeln
           where a~vbeln in lr_vbeln and
                 a~vkorg in lr_vkorg and
                 a~vtweg in lr_vtweg and
                 a~spart in lr_spart and
                 b~werks in lr_plant and
                 a~auart in lr_auart and
                 a~erdat in lr_erdat.
    Move all the data to it_sorder
      IF sy-subrc = 0.
        LOOP AT it_vbak.
              MOVE-CORRESPONDING it_vbak TO it_sorder.
              APPEND it_sorder.
              CLEAR it_sorder.
        ENDLOOP.
      ENDIF.
    *select Conditions from konv
    IF NOT it_sorder[] IS INITIAL.
        SELECT knumv kposn STUNR KAPPL ZAEHK kschl kbetr KAWRT
               INTO CORRESPONDING FIELDS OF TABLE it_konv
               FROM konv FOR ALL ENTRIES IN it_sorder
               WHERE knumv = it_sorder-knumv and
                     kposn = it_sorder-posnr.
      ENDIF.
    Read Conditions  from it_konv move it to it_sorder
      sort it_konv by knumv .
       sort it_sorder by knumv .
        LOOP AT it_sorder.
        READ TABLE it_konv WITH KEY knumv = it_sorder-knumv
                                    kposn = it_sorder-POSNr binary search.
        IF sy-subrc = 0.
          it_sorder-Kposn = it_konv-kposn.
          it_sorder-STUNR = it_konv-STUNR.
          it_sorder-KAPPL = it_konv-KAPPL.
          it_sorder-ZAEHK = it_konv-ZAEHK.
          it_sorder-kschl = it_konv-kschl.
          it_sorder-kbetr = it_konv-kbetr.
          MODIFY it_sorder.
          CLEAR it_sorder.
        ENDIF.
        CLEAR it_konv.
      ENDLOOP.
    pls can you help me
    thanks
    mars

    I think the problem is here:
    sort it_konv by knumv .
    sort it_sorder by knumv .
    LOOP AT it_sorder.
    READ TABLE it_konv WITH KEY knumv = it_sorder-knumv
    kposn = it_sorder-POSNr binary search.
    There will be mulitple lines in it_konv with this key so it will only return the first. You need a second loop round it_konv eg:
    LOOP AT it_conv WHERE knumv = it_sorder-knumv and kposn = it_sorder-POSNr.
    * do stuff here
    ENDLOOP.
    Try that and see if it helps...
    Andy

  • Unable to copy data in planning

    Hi Gurus,
    I am unable to copy data using "copy data" in planning web application.
    getting an error "MSG_COPY_DATA_OPTIONS_FAILED: An error occurred while running the specified calc script. Check the log for details."
    here are the steps I checked:
    I checked whether planning and essbase are in sync.
    The DBA team says that there was no spikes in memory.
    when I take small data set it see data in target but the status in Job Console says processing for the past 45 min.
    I was copying only one month of data.
    please help.

    I see you must of read the two Oracle Support articles by what you wrote in your post.
    Have you checked the essbase app log? also it sometimes help to restart the planning web app when it happens.
    Also have a read of Re: Where is the calc script created when running the 'Copy Data' function ?
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • PCA_PLANDATA_POST -How to use this FM in ABAP

    Hi,
    I want to update Plan data using this FM.
    How do we proceed?
    data: begin of i_glpct occurs 0.
      include structure glpct.
      data: end of i_glpct.
    SELECT * FROM glpct
      INTO CORRESPONDING FIELDS OF table i_glpct
      WHERE rldnr = '8A'
      and RRCTY = '1'
      and Racct = '0000801020'
      and rvers = '001'.
    LOOP AT i_glpct.
    i_glpct-HSl01 = '33'.
      CALL FUNCTION 'PCA_PLANDATA_POST'
                           EXPORTING
                             I_DOCTY             = 'P0'
                             I_PLACT             = '1'
                             I_BATCH             = ' '
                           IMPORTING
                            E_RECORDS           = '1'
       TABLES
          t_glpct             = i_glpct
                            T_DOCUMENTS         =
                          EXCEPTIONS
                            POSTING_ERROR       = 1
                            OTHERS              = 2
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        else.
          write:/10 'Sucessfully updated'.
      ENDIF.
    ENDLOOP.

    It works but my t-code data is not update in R/3.
    I used commit work.
    What else could be the problem?
    REPORT x.
    data: begin of i_glpct occurs 0.
      include structure glpct.
      data: end of i_glpct.
    data: begin of t_glpct occurs 0.
      include structure glpct.
      data: end of t_glpct.
      data: l_wait type BAPITA-WAIT,
            is_return_com like bapiret2.
    SELECT * FROM glpct
      INTO CORRESPONDING FIELDS OF TABLE i_glpct
      WHERE rldnr = '8A'
      and RRCTY = '1'
      and Racct = '0000801020'
      and rvers = '001'.
    LOOP AT i_glpct.
    i_glpct-HSl01 = '33'.
    modify i_glpct.
    ENDLOOP.
    read table i_glpct.
      CALL FUNCTION 'PCA_PLANDATA_POST'
                           EXPORTING
                             I_DOCTY             = 'P0'
                             I_PLACT             = '1'
                             I_BATCH             = ' '
                          IMPORTING
                            E_RECORDS           =
        TABLES
          t_glpct             = i_glpct
                            T_DOCUMENTS         =
                          EXCEPTIONS
                            POSTING_ERROR       = 1
                            OTHERS              = 2
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        else.
    commit WORK.
    write:/10 'Sucessfully updated'.
      ENDIF.

  • Can i use this view in discoverer

    Hello
    I have a view like below in R12.
    GL_CODE_COMBINATIONS_KFV
    In etrm there is a warning:
    Oracle Corporation does not support access to Oracle
    applications data using this object, except from standard Oracle Applications programs.
    Can any one you please let me know if i can still use this for a custom sql report.
    thx
    kp

    You can use the KFV for a custom report - just be aware that the definition of the KFV can change (via a patch) without warning, and the Support will not help if you have issues with using the KFV.
    Srini

  • Not able to select data using DB link.

    Hi ,
    I have created the database link in oracle 8.1.7.0.0 to oracle 8.1.7.4.0
    But I am not able to select data using DB link.
    The error is = ORA 12154 : TNS: could not resolve service name.
    I have created the DB link with the same command in oracle 9.2.0.4.0 to oracle 8.1.7.4.0. I can select data using this link.
    Please suggest me the solution.
    Thanks,
    Shailesh

    If the service name is different on the 8i machine than on the 9i machine, you'll need to modify the service name when creating the link from 8i. Can you see the DB link in ALL_DB_LINKS in the 8i database?

  • How to delimit records using FM HR_INFOTYPE_OPERATION  ( in background )

    Hi all,
    Has anyone used HR_INFOTYPE_OPERATION with OPERATION = 'LIS9' to delimit a record? I keep on getting 'A complex application error has occurred' error message. When I go into dialog mode = '2', the FM will go into the Overview Screen and I realized that the Delimit Date on the top right of the screen is not what I specify as the new record's ENDDA but the original record's ENDDA. Also I have to manually click on Delimit icon on the top left of the screen before it gets delimited.
    Question:
    How do I pass in the delimited date to HR_INFOTYPE_OPERATION? I put it in the RECORD-ENDDA field but it doesn't seem to work?
    Thanks

    rohan,
    why dont you use change mode (mod) and just change the default end date to the date you want the record delimited? that is also delimiting.
    is this requirement for batch job?

  • I am facing 'How do you want to use this disc' whenever I read/open any lightscribe discs having data.

    Hi,
    When I insert a lightscribe DVD/CD into a lightscribe optical drive, then when I click to open the DVD, I faced this error 'How  do you want to use this disc', although the DVD was full of data. When opening these 
    lightscribe DVD/CD via NON lightscribe optical drive, I noticed that the DVD/CD  opened well without any problems at all.
    Also, how can the System show to me 'How  do you want to use this disc' , in particular when  a DVD is non rewritable(DVD-R) and also contains data)?
    Bear in mind, not all DVDs/CDs were not detected. However, only full lightscribe discs' (having data)
    However, even blank lightscribe discs were detected without problems. When insert a lightscribe disc having data, then I faced that error. However, when inserting  blank lightscribe discs I found that the disc were opened.  Also,
    non lightscribe discs were opened well.
    When checking the device manager, I didn't see any issue with DVD/CD drive. If there were a problem unrecongnising, then I would have seen 'a remarkable mark' in front of it.
    Note: I have faced this problem after trying formating a rewritable CD inserted onto the drive. Althouthg the format failed, all data on the disc was deleted. Anyway, after that, then inserting full-lightscribe  discs are unregonised
    Do you think the problem wth my optical drive. IF so, I would be saying why it wasn't happened with all other non lightscribe discs. If my lightscrib discs were corrupted, then why would they have opened well on another laptop.
    I have done:
    Press the Windows logo key+R to open the Run dialog box.
    Type devmgmt.msc in the Run dialog box, then press Enter. If you are prompted for an administrator password or for a confirmation, type the password, or click Allow
    In Device Manager, expand DVD/CD-ROM drives, right-click the CD and DVD devices, and then clickUninstall.
    When you are prompted to confirm that you want to remove the device, click OK.
    Restart the computer.
    But the same prolbem is existing.
    yes there is a virtual CloneDrive program installed on my PC, however, there is no any CD mounted into it. Even if a CD was mounted into Virtual Clondrive, there would be no problem at all, because the virtual CloneDrive is used to only
      mount ISO disc images into it, and not physical discs.
    Any I have do what you have said, when inserting a light-scribe disc having data, then I open it, I found this
    NOTE: in the above screen shot there is a lightscribe DVD having data inserted. However, in the screen shot below, there  a ightsrbe DVD not having data inserted. In the first screen shot, the disc is not reconginsed by Windows, however, in
    the second is recognised. 
    Even when I have inserted a lightscribe disc not having data(empty), it opened well regardless of  what virutal CloneDrive is enabled or disabled.
    But when cliced on my problem didn't solve,
    A man should convert his anger and sadness into strength to continue living in this life.

    Hi,
    The product Name of my computer is: HP Pavilion dv6-6093ex Entertainment
    Notebook PC support
    The number of my computer is : LM610EA#A2N.
    Could anyone please at this splendid forum take some of their precious time
    out to really reply my questions and solve my problems?
    FIRST OF ALL:
    My HP Pavilion Laptop is about 3 years old.
    My
    sister's Dell Inspiron laptop is 3 years old.
    My HP lapotp is well-cared, as opposed to my sister's Inspiron Dell laptop,
    which is always thrown in dust without caring at all. Also, its battery is
    always inserted even when it is fully charged while the laptop is plugged in to
    the main power supply.
    However, my laptop is either used on only battery, or on plugin. Also, it is
    kept from the dust.
    But, I really found that the battery of the Dell laptop
    still lasts about three and half hours, and there is no problem cooling fan is
    not oproperly preporly.
    I only remember one thing differently done on my laptop battery which is I
    charged it fully, then I stored it without using it for about four months, then
    when I reused it, I found it got worse over time. I.e. first time of using it
    after storing,I found it empty, then I charged it again fully, however, then it
    lasted about 2 hours, then 1 and half hours, next an hour, now it is only
    lasting about 20 minutes without performance. If there is high performance, then
    the computer shuts down suddenly.
    My problem is follows:::
    First: Whenever I inserted any Containing Data OR Data
    CD/DVD-R LightScribe discs, I found that HP optical driver was
    unable to read them. When clicking on the optical disc drive
    'duble-click', then I find that disc opens as this way(NOT: With a CD/DVD player
    is grayed out)
    Blank Or Used CD, DVD±R,RW lightscirbe is unable to be
    read:(clicking on it let it Open like a USB FlashDrive or With a CD,DVD player:
    NOTE: with CD/DVD Player is grayed out)
    Used CD/DVD±R/RW Non-LightScribe disc opens normal:
    Blank CD,DVD±R,RW Non-LightScribe opens normal(Opens like a USB FlashDrive or
    With a CD,DVD)::
    My HP CD/DVD DVD±R/RW specis are::
    Optical Drives
    hp CDDVDW TS-L633R
    Media Type DVD Writer
    Name hp
    CDDVDW TS-L633R
    Availability Running/Full Power
    Capabilities Random
    Access, Supports Writing, Supports Removable Media
    Read capabilities CD-R,
    CD-RW, CD-ROM, DVD-RAM, DVD-ROM, DVD-R, DVD-RW, DVD+R, DVD+RW, DVD-R DL, DVD-RW
    DL, DVD+R DL
    Write capabilities CD-R, CD-RW, DVD-RAM, DVD-R, DVD-RW, DVD+R,
    DVD+RW, DVD-R DL, DVD+R DL
    Config Manager Error Code Device is working
    properly
    Config Manager User Config FALSE
    Drive E:
    Media Loaded
    FALSE
    SCSI Bus 0
    SCSI Logical Unit 0
    SCSI Port 0
    SCSI Target Id
    1
    Status OK
    Trying to solve the problem,
    I have done these steps in order::
    I tried checking with dignostic ulitiy:
    I have tried Advanced View , this is the file of output data
    diagnostic utility
    LightScribe System Software Settings:
    SOFTWARE\LightScribe\MessageDir
    C:\Program Files (x86)\Common
    Files\LightScribe\
    SOFTWARE\LightScribe\LSPrintDialog C:\Program Files
    (x86)\Common
    Files\LightScribe\LSPrintDialog.exe
    SOFTWARE\LightScribe\LSPrintingDialog
    C:\Program Files (x86)\Common
    Files\LightScribe\LSPrintingDialog.exe
    SOFTWARE\LightScribe\LsPrintLauncher
    C:\Program Files (x86)\Common
    Files\LightScribe\LSPrintLauncher.dll
    SOFTWARE\LightScribe\ResourceDir
    C:\Program Files (x86)\Common
    Files\LightScribe\res
    SOFTWARE\LightScribe\LSPrintAPI C:\Program Files
    (x86)\Common
    Files\LightScribe\LSPrintAPI.dll
    SOFTWARE\LightScribe\Update\UpdateShellCommand
    http://www.lightscribe.com/go/downloads/windows
    SOFTWARE\LightScribe\Update\PreviousVersion
    1.18.20.1
    SOFTWARE\LightScribe\Update\CurrentVersion
    1.18.27.10
    SOFTWARE\LightScribe\Update\TrailingVersion
    SYSTEM\CurrentControlSet\Services\LightScribeService\Type
    16
    SYSTEM\CurrentControlSet\Services\LightScribeService\Start
    2
    SYSTEM\CurrentControlSet\Services\LightScribeService\ErrorControl
    0
    SYSTEM\CurrentControlSet\Services\LightScribeService\
    SYSTEM\CurrentControlSet\Services\LightScribeService\DisplayName
    LightScribeService Direct Disc Labeling
    Service
    SYSTEM\CurrentControlSet\Services\LightScribeService\ObjectName
    LocalSystem
    SYSTEM\CurrentControlSet\Services\LightScribeService\Description
    Used by the LightScribe software components to support 3rd party disc labeling
    applications using the LightScribe COM Application Programming Interface
    (LSCAPI). This service needs to run for LightScribe direct disc labeling to
    work.
    SYSTEM\CurrentControlSet\Services\Eventlog\Application\LightScribeService\
    SYSTEM\CurrentControlSet\Services\Eventlog\Application\LightScribeService\
    SYSTEM\CurrentControlSet\Services\Eventlog\Application\LightScribeService\TypesSupported
    7
    SYSTEM\CurrentControlSet\Services\Cdrom\Enum\0
    IDE\CdRomhp_CDDVDW_TS-L633R______________________0300____\4&334f7860&0&0.1.0
    SYSTEM\CurrentControlSet\Services\Cdrom\Enum\Count
    2
    SYSTEM\CurrentControlSet\Services\Cdrom\Enum\NextInstance
    2
    SYSTEM\CurrentControlSet\Services\Cdrom\Enum\1
    SCSI\CdRom&Ven_ELBY&Prod_CLONEDRIVE&Rev_1.4\1&2afd7d61&0&000000
    SOFTWARE\Microsoft\Windows
    NT\CurrentVersion\Winlogon\allocatecdroms
    0
    SYSTEM\CurrentControlSet\Services\CDRom\autorun 1
    SOFTWARE\INTEL\Intel
    Application Accelerator Not detected
    Drives and Media:
    Drive 0 : hp CDDVDW TS-L633R 0300 219 (E, Media
    Imaging Parameter : 114
    I tried running the below command line to fix potential disk issue 'Chkdsk
    /r /f'
    I cleaned the drive, discs, and so on.
    I have uninstalled the all third-party data recording software.
    I have uninstalled the Cyber DVD suite, lightscribe system software which
    came pre-installed with my HP pavilion Notebook.
    I have recovered my system from the Factory Recovery discs.
    I have tried opening all those LightScibe discs not opening on my HP optical
    drive, on a Dell optical drive, and all of them were opened well, although Dell
    optical drive did not have a lightscribe feature at all., nor third party disc
    recording software
    However, the problem is still with opening the discs LIGHT-SCRIBE
    Thus, my questions are:
    How to determine if the drive is corrupted and needs to be replaced with
    another one.
    I think there something needed to be done on the BIOS Of my HP
    laptop[[[A similar problems happened on my Desktop computer's optical
    drive which is as follows:::(ALL discs are opened as empty by Optical Drive of
    My Desktop Computer) ---while my optical drive of my desktop was connected to
    the primary slave IDE, and the HDD was connected to the
    primary master IDE, the optical drive and hard disk are functioning
    well. However, I remember that while burning an image with Nero essential V: 5,
    something went wrong, and then the Optical Drive of My Desktop Computer
    (HL-DT-ST DVD-RAM GH22NP20) became NOT recognised/Installed on
    BIOS, although it was still shown on the device manager as a
    recognised device. Also, it was listed on my computer, however, when entering a
    disc(blank or with data) into the drive, I found it was not recognised, and it
    opened empty(no files at it), although it contains data. Thus, I decided to boot
    to BIOS, and clicked on 'Autodetection for IDE', then I found that only HDD was
    still shown as installed on BIOS. However, the optical drive was not. Th I tried
    clicking on it on BIOS and then clicking on 'enter' to try to let the device be
    re-recognized. However, that made no difference. I had to take part my computer
    ,and then reconnected the optical drive onto the secondary slave
    IDE , and let HDD connected to the same primary master IDE.
    Then, I found that the problem solved and all discs became being read
    normally. Aslo, optical drive became installed on BIOS]]]
    What is meant with with double Layer Support.
    How much does it cost?
    A man should convert his anger and sadness into strength to continue living in this life.

  • I tried to sync my phone and received this message: "iTunes was unable to load data class info from sync services. Reconnect or try again later." Now it doesn't sync calendars because it says I need to download Outlook, which I already have

    I have synced my phone to my computer several times. This time i received this message: "iTunes was unable to load data class infor from sync services. Reconnect or try again later." It says if I want to sync calendar I must install Outlook to my computer?? Why does iTunes not recongnize that I already have Outlook installed on my computer?

    This worked for me...i did a restore on my computer to take it to a date prior to the last update i did on itunes and now it works just fine.  Everytime i do a backup it syncs my Outlook! When a request comes up saying there's a new version of itunes click here to download the latest one DON'T do it.
    Here's how to do a restore on your computer:
    Create a restore point
    A restore point is a representation of a stored state of your computer's system files. You can use a restore point to restore your computer's system files to an earlier point in time. Restore points are automatically created by System Restore weekly and when System Restore detects the beginning of a change to your computer, such as when you install a program or a driver.
    System image backups stored on hard disks can also be used for System Restore, just like the restore points created by system protection. Even though system image backups contain both your system files and personal data, your data files won't be affected by System Restore. For more information about system images, see What is a system image? You can create a restore point manually at any time by following the steps below.
    Go to the Windows website to watch the video. (1:08)
      Click to open System. 
    In the left pane, click System protection. If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
    Click the System Protection tab, and then click Create.
    In the System Protection dialog box, type a description, and then click Create.
    For more information about System Restore, see What is System Restore?
    I HOPE THIS WORKS!
    Annette9114

Maybe you are looking for