Problem with standard Routine "Seniority"

Hi gurus,
I have a problem with the routine "Seniority" that evaluate the length of service for the infoObject 0SRVCLEN - Length of Service. It is a standard routine in the update rule 0HR_PA_0.
The problem occurs when the Employee has less than a year of service. The result of the routine is "0" but in the BW query "0" is interpreted like "#" - Not assigned.
How can I change the value of the Not assigned result?
This is the main part of the routine:
  IF NOT EMPLOYEE_WA-ENTRYDATE IS INITIAL.
    RESULT = ULTIMO0(4) - EMPLOYEE_WA-ENTRYDATE0(4).
    IF ULTIMO4(4) LT EMPLOYEE_WA-ENTRYDATE4(4).
      RESULT = RESULT - 1.
    endif.
  ENDIF.
Thanks
Alberto

Sonal,
To find the number of items please correct the code as below:
Determine number of PO item lines
LOOP AT TKOMV WHERE<b> KNUMV = TKOMV-KNUMV</b>
                            AND      NOT KPOSN IS INITIAL.
AT NEW KPOSN.
I = I + 1.
ENDAT.
ENDLOOP.
Keep rest all code as it is.
Let me know if this works,
Thanks.

Similar Messages

  • Problem in standard routine 0RPM_DSKF in transfer rules 0rpm_role_d

    HI all,
    I am extracting the data from xRPM 4.0 to BW 7.0.Even though i am using BI 7.0 presently we are using 3.5 only.I have installed the transfer rules after that i am trying to activate the transfer rules .But i am getting the error with standard routine ( Syntax error ) written In transfer rules for one key figure 0RPM_DSKF.
    Data source : 0RPM_ROLE_D
    Data Target : 0RPM_C02
    Info Source : 0RPM_SRAR_02
    Routine :
    if TRAN_STRUCTURE-&RU& <> 'FTE'.
    RESULT = TRAN_STRUCTURE-ANUMBER.
      else.
        RESULT = 0.
      endif.
    There is no filed inT.Stru contains RU.
    Please suggest me what would be the solution for this.
    If is there any relavant OSS Note plz provide me that and also provide me the valuable suggestions.
    Thanks & Regards
    Ramakanth

    Hi Rathy!
    Thank you very much for your quick help! Usually I do the same. Now I faced with BI system, where data source were already activated in system A and replicated. I can see all needed active sata source un BI already. But I can not see transfer rules in content!
    What you can advise?
    Reagrds, Iryna.

  • Problems with Standard Apps views (eBusiness Suite)

    Hi all,
    I am working with Oracle Application Express and Oracle eBusiness Suite 11.5.10. We have integrated OAE with EBS, but now we are having problems with the standard views (owner APPS).
    I would need the help from somebody that works with OAE and EBS.
    Once we want to query one of the standard views, like ap_invoices, it is necessary to initialize the session with a script like this:
    begin
    DBMS_APPLICATION_INFO.SET_CLIENT_INFO(219);
    end;
    This script lets us to access to the data from the table AP_INVOICES_ALL using the view AP_INVOICES.
    Once I have run the script from SQL Commands (SQL Workshop), I try to run a query using the standard view, for example:
    SELECT * FROM apps.ap_invoices
    From a Report or from SQL Commands (SQL Workshop) always I get the next error:
    "ORA-01722: invalid number."
    However, if I run this query from SQL Plus (same db user), there is any problem, the query works and retrieves rows.
    If I get the source code of the view, remove all the columns, keeping the next SQL:
    SELECT 1
    FROM ap.AP_INVOICES_ALL
    WHERE NVL(ORG_ID,NVL(TO_NUMBER(DECODE(SUBSTRB(USERENV('CLIENT_INFO'),1,1),' ',NULL,SUBSTRB(USERENV('CLIENT_INFO'),1,10))),-99)) = NVL(TO_NUMBER(DECODE(SUBSTRB(USERENV('CLIENT_INFO'),1,1),' ',NULL,SUBSTRB(USERENV('CLIENT_INFO'),1,10))),-99)
    Run this SQL in OAE and I obtain the error again, however from SQL Plus the query works correctly.
    I suppose somebody that works this EBS and OAE has had this problem. How did you solve it?
    Thanks in advance.
    Regards, Luis
    PD. I have tried to not used the views and use the tables filtering the ORG_ID and looks it can work, but I do not like this option.

    Luis - I don't know where you are running these blocks - the SQL Command Processor in APEX? Anyway, for every APEX page request the engine executes something like the following, depending on your version:    begin
        dbms_application_info.set_client_info(g_user);
        dbms_session.set_identifier(substr(g_user,1,(64 - length(g_instance)-1))||':'||to_char(g_instance));
        dbms_application_info.set_module('APEX:APPLICATION '||to_char(g_flow_id),'PAGE '||to_char(g_flow_step_id));       
        exception when others then null;
        end;In the above code, the value of g_user is the logged-in username, perhaps ADMIN in your case.
    Keep in mind that when you do a set_client_info in the database session, that persists only for the duration of the session. On the next page request, you'll get a new database session (or a recycled one).
    Scott

  • Problems with standard checkings

    Hi,
    We'd like to know if someone has worked in a proyect with two different Systems S1 and S2, data cannot be copied (transfered) from one to the other but we must check data from system S1 refering to data in tables in system S2.
    This scenario is a problem when standard checkings are done in the tables, due to of course checkings are done over tables of current system.
    Do anybody know how to manage standar checkings in current system S1 to allow the checkings against tables in system S2?
    Thank u very much !!!!!!!!
    Best Regards.

    The solution was proposed from another point of view.   Thanks to all for your help.
    Best Regards.

  • Java debugging - problems with standard input

    Hi
    I hope somebody can help me with this problem.
    I'm developing a Java app that reads from the standard input. I use System.in.read() to do that. When I debug it, I use the Standard I/O window instead of the Run Log window to pass in values, but nothing happens (i.e. the line following the read() is never reached). I also tried to run the app and then attach the debugger to use the Run Log window as standard input, with the same result. If I add a breakpoint before the call to read(), the debugger pauses the execution, so I suppose the breakpoints are OK.
    In the executable Info window, Debugging tab, I use the pseudo terminal with the Java debugger.
    So my question is: how can I enter values from the standard input in debugging mode?

    I believe that you are seeing these problems because we have found the
    current versions of RMI found in the JDK to be inherently unscalable -- we
    do not listen for them. As you noticed, we recommend that you use our
    packages for now, and then do the simple change that you found if you decide
    that you do not like WLS. (If you do decide that you do not like us, please
    definitely let us know why you chose the way you did!)
    Thanks,
    Michael
    Michael Girdley
    Product Manager, WebLogic Server & Express
    BEA Systems Inc
    "Tim Dawson" <[email protected]> wrote in message
    news:397b8cc2$[email protected]..
    We're developing a J2EE application on NT using WLS 5.1, SP3, but we don't
    want to be tied to any particular J2EE server, so we're making sure that
    none of our code is weblogic specific.
    In keeping with this philosophy, I created an RMI service that used the
    standard java.rmi.* imports instead of weblogic.rmi.* and used thestandard
    RMIC compiler rather than the weblogic.rmic compiler.
    Unfortunately, I couldn't get the system to work. I kept getting
    "java.rmi.MarshalException: Error marshaling transport header; nested
    exception is: java.io.EOFException" whenever I'd call Naming.lookup().
    Of course, when I did the search & replace with java.rmi.* with
    weblogic.rmi.*, and switched from the standard rmic to weblogic.rmic,
    everything started working just fine. This is the ONLY change I made!
    Has anyone else run into similar problems?
    Tim Dawson
    Sr. Software Architect
    is.com

  • Problem with Transformation Routine

    Hi all
    I am using a DSO 0FIGL_O02 taking data from the DataSource 0FI_GL_4 . I have a field 0Customer to the DSO & for that i´m taking data from the another DSO ZPCA_EC3 .
    The folllowing is the Tranformation Routine i have tried
    Routine 1,
    Data : zcustomer type /BIC/AZPCA_EC300-CUSTOMER.
    select single customer
           from  /BIC/AZPCA_EC300
           into  ZCUSTOMER
           where AC_DOC_NO = SOURCE_FIELDS-BELNR.
         RESULT = zcustomer.
    Routine 2.
    Data : zcustomer type /BIC/AZPCA_EC300-CUSTOMER.
    select single customer
           from  /BIC/AZPCA_EC300
           into  ZCUSTOMER
           where AC_DOC_NO = SOURCE_FIELDS-BELNR
            and  COMP_CODE = SOURCE_FIELDS-bukrs
            and FISCYEAR  = SOURCE_FIELDS-gjahr.
        RESULT = zcustomer.
    I dont get any errors for this Routine , But when i run the DTP it is going on Running & Running for hours, with no results , But again no errors also.
    What could be the problem  ?
    Could anyone help me write a better routine .here is my requirement
    I want to pick up 0Customer field data from ZPCA_EC3 based on 0AC_DOC_NO in both ZPCA_EC3 & 0FI_GL_4 DataSource.
    Regards
    Ramesh

    Hi,
    well I don't know the key of your ods. But the first check would be to use fields in the where clause which are in the key or a additional index. Another option might be to select the data for the complete data package at once into a internal table and access the internal table in the routine. May be you can also do the whole thing in the start routine.
    regards
    Siggi

  • Problems with standard update trought delta

    Hi my case is this:
    i got an Infoobject called: 0UCCONTRACT, this has its attributes, among them , there is one called 0UCBLC_REAS, the problem is this:
    the Infoobject 0UCCONTRACT is updated everyday throught DELTA , but its NAV.attribute 0UCBLC_REAS is not updated, when i look the data source 0UCCONTRACT_ATTR and search a record the datasource is ok in R3, the field is standard not Z, and the table EVER where the Data source serach data is ok is updated,
    then i did a repair load just bringing one record to prove, and when i see in the infoobject that record was updated,
    in summary, when i load data trought delta doesnt update this nav.attribute
    when i load data trought Full or Repair , this nav attribute can be updated, why? i dont know and just happen with this nav attribute,
    please i'll really appreciate it , thanks

    nanay

  • Problem with CAPI routines get_date|num|char_value

    Hi CDM Ruleframe users,
    I created the following testscript
    (table a (id number,begindate date))
    begindate is initial 01-01-2000 for id=1
    1) update table a set begindate= sysdate
    2) rollback.
    3) app_a_capi.get_date_value
    In the debug monitor i log the data value this routine returns. This routine returns the new value of the date value (sysdate) instead of the old one(01-01-2000)!
    Is this because the built-in cache of the CAPI is not working properly?
    We are using CDM Ruleframe with CAPI generator v 6.0.2.1.
    Kind regards,
    Jan-Derk Weitering
    null

    Jan-Derk,
    It is technically not possible to rollback the CAPI cache (stored in package variables) just by issueing a database rollback command. There is no ON ROLLBACK database trigger to catch the event.
    If you want to do a rollback in a CDM RuleFrame environment, you should always call qms_transaction_mgt.abort_transaction instead. This combines rollback with clean up of transaction management, clears all business rules from the rule stacks and clears all messages from the cg$errors message stack.
    After this, it is possible that the CAPI cache still contains the wrong value, but no business rule code will look at it because there is no open transaction anymore. When a new DML action is performed, the CAPI cache is cleared (with each DML action, the CAPI compares the current transaction id to the previous transaction id).
    I hope this explains it,
    regards,
    Sandra

  • Problem with standard distribution function

    Hi,
    The task is following:
    There are three cubes - one with data to be distributed (non-transactional), one with reference data (non-transactional) and one where the distributed data should be written (transactional).
    I am trying to use standard IP planning function Distribute with Reference Data to achieve the result. However when I put 0INFOPROV as a characteristic to be changed, I can select value for it only in block FROM and TO, and not in REFERENCE DATA SELECTION.
    So to tell the system, taht reference data are located in third cube I have added new car which for the is always filled with constant in the reference cube (for every record).
    But it seems that it does not help: When trying to execute, following error message appears: Cannot find reference data for sub-process 1 of the function
    Anywone has ever customied standard function in a way that it is able to use data from three cubes? What do I do wrong?
    Thanks in advance,
    Marcin
    ps. I work with IP, but assume that BPS is very similar regarding stadard planning functions, so any suggestion is welcome.

    of course you can include 0infoprov into fields to be changed, but in your szenario it wouldn' make any sense.
    if fox formulas you set values for 0infoprov by yourself, in distr. function you are telling the system: distribute origin field value for char xy according all posted values in certain reference records.
    as 0infoprov is a technical infoobject and given the fact that your reference records are stored in cube 3 which is non transactional as well) -> to tell the function, that your reference records are stored in cube 3 you have to set 0infoprov as reference char.
    if you can not copy all data before distribution (to be honest i don't see any reason why this shouldn't be possible) you could only ditribute the values using function of type fox or exit.

  • Problem with Standard Midi files

    When I open a standard midi file in Logic Pro X and I press "play", after a while, let's say a minute, the system crashes and a box inform me that the "System's overloaded. The audio engine was not able to process all required data in time. (-10011)"
    Any hints on how to solve this problem?
    Many thanks!
    Deashi

    Hi Deashi Barai,
    Thanks for using Apple Support Communities.  This article has some basic troubleshooting for Logic Pro X that might help solve your issue:
    Logic Pro X: Troubleshooting basics
    http://support.apple.com/kb/HT5859
    Additionally, this is an older article addressing the same error in previous versions of Logic Pro that might also provide insight or help:
    Logic: CoreAudio System Overload Messages
    http://support.apple.com/kb/TA24535
    Cheers,
    - Ari

  • Document Distribution DMS, problem with standard workflow WS20000104

    Hi,
    In our document distribution process we stacked with the problem, when we run the document distribution (via tcode CVI8) we got the error of workflow WS20000104. After some search at SCN we found that there is the similar issue, described in the thread: Document distribution workflow in error. Solution which was offered and marked as worked is to enable/activate Result Parameter check box, but in our case this check box is disabled and when we try to edit the BOR in order to activate Result Parameter check box the system asked to input Access Code.
    Is there any way (note) to enable this check box without access code?
    Thanks.

    Hi, Deepak Kori
    In transaction SWU3 there is the following situation:
    Maintain Runtime Environment is completely green, including sub-categories;
    Maintain Definition Environment is red because of Check Entries from HR Control Tables;
    Maintain Additional Settings and Services is red because of Maintain Web Server;
    Classify Tasks as General is completely green, including sub-categories;
    Guided Procedures is red because of Maintain Guided Procedures Gateway.
    Could you, please, explain what do you mean under «workflow settings are activated», how parameters described above are related to workflow and may be related to our problem?
    If described situation can be assumed as activated, what should we do now? Otherwise, how to make these settings to be activated?
    Thanks.

  • Facing a problem with standard text in custom program

    Hi,
    As per my requirement i need to create a standard text (transaction code s010 ) in custom program using below code. But when click save button then it needs to be come out of the screen without click back button.
    CALL FUNCTION 'CREATE_TEXT'
        EXPORTING
          FID         = G_THEAD-TDID
          FLANGUAGE   = G_THEAD-TDSPRAS
          FNAME       = G_THEAD-TDNAME
          FOBJECT     = G_THEAD-TDOBJECT
          SAVE_DIRECT = 'X'
          FFORMAT     = '*'
        TABLES
          FLINES      = I_TLINE
        EXCEPTIONS
          NO_INIT     = 1
          NO_SAVE     = 2
          OTHERS      = 3.
      IF SY-SUBRC <> 0.
      ELSE.
        CALL FUNCTION 'EDIT_TEXT'
          EXPORTING
            HEADER        = G_THEAD
            SAVE          = 'X'
          TABLES
            LINES         = I_TLINE
          EXCEPTIONS
            ID            = 1
            LANGUAGE      = 2
            LINESIZE      = 3
            NAME          = 4
            OBJECT        = 5
            TEXTFORMAT    = 6
            COMMUNICATION = 7
            OTHERS        = 8.
        IF SY-SUBRC <> 0.
        ENDIF.
      ENDIF.
    Can you please help me how to do this
    Regards
    nag

    But when click save button then it needs to be come out of the screen without click back button.
    can you explain me, what do you mean by that.
    ~satya

  • Facing problem with standard master data source *0bp_def_address_attr *

    Hi All,
    I am using BW 3.5 version
    I am loading master data form 0bp_def_address_attr(stabdard data source)  as part of my daily activities.
    this loading is failing frequently throwing following error message
    30 duplicate record found. 1243 recordings used in table /BI0/PBPARTNER
    ID : RSDMD
    message number 199
    Is there any way I can avoid this failure?How can I handle duplicate records?
    Please help me!!
    Warm regards
    Nanduri Aditya

    Thanks for your answers and sorry for my late reply
    Hi Srinivas,
    I am using  3.5  there is no ' handle duplicate records' option in info pacakge.
    Hi Francisco,
    Thanks for your answers,
    2 OSS notes are relevant to my problem. Currently I am checking in Dev whether it will fix my problem or not.
    Thanks a lot it was avery helpful answer.
    Warm Regrads,
    Nanduri Aditya

  • Problem with S_ALR_87013149 and S_ALR_87013148

    Hello Experts,
    I have a problem with standard reports S_ALR_87013149 and S_ALR_87013148.
    They give no data : "No records were selcted"
    What's the solution for that ?
    Thanks,
    Ferdaws

    Hi,
    Whenever you have a message like this for any report, it could be for two reasons:
    a) selection parameters
    b) authorizations (could be verified by SU53 transaction)
    Please, check both...
    Regards,
    Eli

  • Problem with total button in alv..?

    Hi abapers,
                      i am facing a problem with standard alv total button
    all the others button r working fine
    but when i am trying to add any column total by using standard total button
    its throwing dump..
    Can anyone tell me wat to do

    Hi Aarif Baig,
    Paste your dump analysis...
    what dump you are geting and source code for your field catelog...  ??
    as well as which field you are removing from your fieldcatelog so that dump is not coming... ??
    and code for that field in fieldcatelog  ??
    and is the type of that filed in fileld catelog and internal table is same or not... ??
    if i am not wrong you will be getting dump for message  x000..
    Please give complete details what you did with little source code and dump analysis....
    Hope it will solve your problem..
    Thanks & Regards
    ilesh 24x7
    ilesh Nandaniya

Maybe you are looking for

  • Server 2012 R2 SMB - The process cannot access the file '\\server\share\test.txt' because it is being used by another process.

    Hi, We are having issues with Server 2012 R2 SMB shares. We try to write some changes to a file, but we first create a temporary backup in case the write fails. After the backup is created we write the changes to the file and then we get an error: Th

  • Lookup in staging area

    We have a column on the source table which contain a person's country information. A single country name could be represented in different formats (for e.g. United States of America, USA, U.S.A). The target database has a table which stores the equiv

  • Weird Msg after repairing permissions

    hello I am on Lion OS, I repaired permissions and got the following message Warning: SUID file "System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAg ent" has been modified and will not be repaired. What is it.? and do I fix

  • New report application

    hi, i'm begginer but i want to do small web report.(i did only one easy application in servlet&bean). So, user have txt file with some 5 columns of data. i want to do web interface to user can send this file to the server(f.e.) and next java have to

  • Set intial view

    I posted the following over on the Acrobat Windows forum, but no joy with any answers so forgive the repeat if you have seen this before. Is it possible to script or command the parameters of the view/display settings in the user's reader? Specifical