Help Needed : Payroll Schema - Function P0014

Dear Experts,
My scenario is as follows, I have an employee whose July Payroll was processed. Thereafter there was a change in basic pay w.e.f from 1st July. Now while evaluating August payroll, retroactive accounting is triggered and both months are processed, and the difference is carried forward.
The function P0014 along with a PCR is being used in the payroll schema, and by looking at the payroll log, I can see that in July's processing it works fine. However when it is called in August's processing, P0014 appears to be empty, and as a result the PCR is not called because there are no wagetypes selected. I want P0014 to be evaluated for August as well, so that the recurring payments are processed twice, in both July and August.
Would really appreciate if anyone can help on this matter.
Regards,
Talha

Yes the employee has an infotype record dated from 1.1.2014 onwards to 31.12.9999, so it should be valid for both months.
I think I am missing something with its evaluation, in that the wagetypes loaded through P0014 can only be processed once.
From my testing I have seen that function P0014 loads the wagetypes only in the first month of evaluation; i.e. if I run Retroactive further back from June; P0014 loads the wagetype while in June Payroll, and is empty for July and August.

Similar Messages

  • Help needed with printf function!!!!

    public class Try
    {public static void main (String[] args)
    {int a;
    String b;
    a = 000002;
    b = "JSmith";
    System.out.printf(b + "%d", a);
    }}I need a help with the printf function.
    The result of this small excercise that I just made is:
    Jsmith2
    How do I make it so that the zeros is also displayed? (using the printf)
    I want it to look like this: Jsmith000002
    Thank you in advance

    TrySystem.out.printf(b + "%06d", a);(I don't have a compiler here so I haven't tested this).
    The "6" is the width - the minimum number of characters that will be
    printed and the "0" (it's a zero) is a flag indicating that the output should
    be padded with zeros.
    You should also note that the value of a is two. It doesn't matter whether
    you say a=2; or a=0002; - a is still just plain two.

  • Help needed with sql function

    Hi,
    i have a function like below. basically what it does is, check whether first 2 places of a column_name is *'N_'*. if yes then i am replacing column_name which has *'N_' to ''*
    CASE WHEN SUBSTR(column_name,1,2) = 'N_' THEN
    *':NEW.'||REPLACE(column_name,'N_','')*
    i designed this based on the requirement. now i am facing a small issue. i have a column name 'RGN_ID'. so the above function replaces the RGN_ID as RGID as N_ comes in the middle of the column_name the above function accidentally replaces this as well. wherein i need to replace the first 2 position of column_name which starts like 'N_'
    can you please suggest any solution for this?
    Edited by: user13178284 on Jun 29, 2010 6:11 AM

    Thanks!. But i am afraid if this would help.
    there may be many column names having 'N_' at whatever position. for eg., TRAN_ID. here N_ comes at 4th and 5th position.
    i understand i need to place some kind of check above this function.so that if 'N_' comes anywhere in between the column_name i shouldnt replace it instead i should just replace column_name starting wtih 'N_'.
    any idea about this?

  • Help needed Converting MSSQL function to PL/SQL

    Hello,
    I have the following MSSQL code which I need to migrate to Oracle 10g. The problem I am having is the MSSQL code creates a temp table as the return type and I am unsure how to get the same functionality in PL/SQL.
    MSSQL CODE_
    CREATE FUNCTION [dbo].[QueryCurrentWhy]
    @ColumnID INT,
    @GroupID INT,
    @Parents VARCHAR(8000)
    RETURNS @R TABLE(ID1 int IDENTITY (1, 1) NOT NULL, ID2 int, ColID int, [Name] VARCHAR(255), Tlevel int, ParentID int, Processed BIT)
    AS
    BEGIN
    RETURN
    END
    The code I have currently written in PL/SQL is below. I firstly create a global temp table and then a sequence and trigger for it. I then create the Function in the hope I can specify the temp table as the return type. Problem is I get the error "PLS-00201: identifier 'TEMPR' must be declared". Im guessing this is because the temp table is declared outside the function declaration?
    ORACLE CODE_
    CREATE GLOBAL TEMPORARY TABLE tempR
    ID1 INT NOT NULL,
    ID2 INT,
    ColID INT,
    Name VARCHAR2(255),
    Tlevel INT,
    ParentID INT,
    Processed CHAR(1)
    CREATE SEQUENCE gCounter
         START WITH 1
         INCREMENT BY 1
    CREATE OR REPLACE TRIGGER gTrigger
    BEFORE INSERT ON tempR
    FOR EACH ROW
    DECLARE TEMP_NO INT;
    BEGIN
         SELECT gCounter.NEXTVAL INTO TEMP_NO FROM DUAL;
    :NEW.ID1 := TEMP_NO;
    END;
    CREATE OR REPLACE FUNCTION TSORADB.QueryCurrentWhy
    aColumnID INT,
    aGroupID INT,
    aParents VARCHAR2(8000)
    RETURN tempR
    AS
    BEGIN
    RETURN;
    EXCEPTION when NO_DATA_FOUND then null;
    END;
    Basically is it possible for me to declare the temp table in the return statement, if not then what is the best way to go about this?
    Thanks in advance
    Toby
    Edited by: redeye on Jul 27, 2009 3:26 PM

    Unfortunately I didnt write the original function or stored procedure and the person who did is no longer with the company, so apologies for any confusion with what I am saying.
    Maybe it'll be more helpful if i paste the contents of the function?
    CREATE OR REPLACE FUNCTION TSORADB.QueryCurrentWhy
    aColumnID INT,
    aGroupID INT,
    aParents VARCHAR2(8000)
    RETURN tempR
    AS
    --BEGIN
    aPKColTypeID INT;
    aFKDColTypeID INT;
    aFKDSColTypeID INT;
    aFKIColTypeID INT;
    aColType VARCHAR2(30);
    aTableID INT;
    aName VARCHAR2(255);
    aNameWhyMost VARCHAR2(255);
    aNameWhyMost2 VARCHAR2(255);
    aLongNameStr VARCHAR2(1000);
    aConnectStr VARCHAR2(1000);
    aColID INT;
    aColIDWhyMost INT;
    aColIDWhyMost2 INT;
    aColIDWhyMostLast INT;
    aCount INT;
    aID1 INT;
    aID2 INT;
    aPreID2 INT;
    aMaxID2 INT;
    aCurrentID2 INT;
    aTLevel INT;
    aTLevel2 INT;
    aTlevelLast INT;
    aNewLevel INT;
    aMaxTLevel INT;
    aMaxTLevel2 INT;
    aParentID INT;
    aParentID2 INT;
    aNewParentID INT;
    aProcessed number (1);
    --aCurVar1 CURSOR;
    aParent INT; aStrEntityIDSet varchar(2000); aStrPipeSepValsInput varchar(2000); aEndPointInput int; aSeperatorIndex int;
    aNumTempDoc INTEGER := 0;
    --aColumnID INT DEFAULT(0);
    --aGroupID INT DEFAULT(0);
    --aParents VARCHAR(8000) DEFAULT('');
    BEGIN
    SELECT ColumnTypeID INTO aPKColTypeID FROM TSORADB.HKColumnType WHERE ColumnTypeName = 'PK';
    SELECT ColumnTypeID INTO aFKDColTypeID FROM TSORADB.HKColumnType WHERE ColumnTypeName = 'FKD';
    SELECT ColumnTypeID INTO aFKDSColTypeID FROM TSORADB.HKColumnType WHERE ColumnTypeName = 'FKDS';
    SELECT ColumnTypeID INTO aFKIColTypeID FROM TSORADB.HKColumnType WHERE ColumnTypeName = 'FKI';
    IF (aGroupID is null)
    THEN
         aGroupID := -1;
    END IF;
    --Tokenize the parent array and get back a set of values.
    IF(aParents is not null)
    THEN
    BEGIN
         aStrEntityIDSet := aParents;
         aStrPipeSepValsInput := '|' + ltrim(rtrim(aStrEntityIDSet)) + '|';
         --print aStrPipeSepValsInput
         aEndPointInput := INSTR(aStrPipeSepValsInput, '|');
         aStrPipeSepValsInput := INSTR (aStrPipeSepValsInput, LENGTH (aStrPipeSepValsInput) - aEndPointInput); -- take out the '|' pattern
         WHILE (LENGTH (aStrPipeSepValsInput) > 0)
         LOOP
         BEGIN
              aEndPointInput := INSTR(aStrPipeSepValsInput, '|'); -- get the next '|' pattern
              aParent := SUBSTR(aStrPipeSepValsInput, 1, aEndPointInput - 1);
              --PRINT 'aParent is ' + CONVERT (NVARCHAR, aParent)
              aStrPipeSepValsInput := INSTR (aStrPipeSepValsInput, LENGTH (aStrPipeSepValsInput) - aEndPointInput);
              INSERT INTO TmpParent (ColID) VALUES (aParent);
         END;
         END LOOP;
    END;
    END IF;
    SELECT hkc.TableID, hkc.Name, hkct.ColumnTypeName
    INTO aTableID, aName, aColType
    FROM TSORADB.HKColumns hkc
    INNER JOIN TSORADB.HKColumnType hkct on hkc.ColTypeID = hkct.ColumnTypeID
    WHERE hkc.ColumnID = aColumnID;
    IF aColType in ('PK','PKD')
    THEN
         -- Generate Unique Path Table Start
         SELECT
         CASE WHEN FKIs3.Name is null
         THEN PKs3.Name
         ELSE FKIs3.Name
         END Name
         INTO aName
         FROM TSORADB.HKColumns PKs3
         INNER JOIN
         SELECT hkc3.TableID FROM TSORADB.HKColumns hkc3
         WHERE hkc3.ColumnID = aColumnID
         ) HKC3 ON PKs3.TableID = HKC3.TableID
         LEFT OUTER JOIN
         SELECT TableID, Name
         FROM TSORADB.HKColumns
         WHERE ColTypeID = aFKIColTypeID
         ) FKIs3 ON PKs3.TableID = FKIs3.TableID
         WHERE PKs3.ColTypeID = aPKColTypeID AND ((aGroupID=-1 AND PKs3.GroupID IS NULL) OR PKs3.GroupID=aGroupID);     
    END IF;
    -- Insert query column itself
    aTlevel := 0;
    aParentID := 0;
    aID2 := 1;
    IF (aColType = 'ATT')
    THEN
    BEGIN
    INSERT INTO tempR(ID2, ColID, Name, Tlevel, ParentID, Processed)
    SELECT distinct aID2, TopHKCs.ColumnID as ColID, aName as Name,aTlevel as Tlevel, aParentID as ParentID, 1 as Processed
         FROM TSORADB.HKColumns TopHKCs
    WHERE TopHKCs.ColumnID = aColumnID;
    aID2 := aID2 + 1;
    aTlevel := 1;
         aParentID := aColumnID;
         -- Get the non-compound name for the parent
         SELECT
         CASE WHEN FKIs3.Name is null
         THEN PKs3.Name
         ELSE FKIs3.Name
         END Name
         INTO aName
         FROM TSORADB.HKColumns PKs3
         INNER JOIN
         SELECT hkc3.TableID FROM TSORADB.HKColumns hkc3
         WHERE hkc3.ColumnID = (SELECT ColumnID FROM TSORADB.HKColumns WHERE TableID = aTableID AND ColTypeID = aPKColTypeID)
         ) HKC3 ON PKs3.TableID = HKC3.TableID
         LEFT OUTER JOIN
         SELECT TableID, Name
         FROM TSORADB.HKColumns
         WHERE ColTypeID = aFKIColTypeID
         ) FKIs3 ON PKs3.TableID = FKIs3.TableID
         WHERE PKs3.ColTypeID = aPKColTypeID AND ((aGroupID=-1 AND PKs3.GroupID IS NULL) OR PKs3.GroupID=aGroupID);
         INSERT INTO tempR(ID2, ColID, Name, Tlevel, ParentID, Processed)
    SELECT aID2, ColumnID, aName, aTlevel, aParentID, 0
    FROM TSORADB.HKColumns
         WHERE TableID = aTableID
         AND ColTypeID = aPKColTypeID;
    aID2 := aID2 + 1;
    END;
    ELSE
    BEGIN
         INSERT INTO TmpR1(ColID, Name, Tlevel, ParentID, Processed)
         SELECT nonCompoundHks.ColumnID as ColID, aName as Name,aTlevel as Tlevel, aParentID as ParentID, 0 as Processed
         FROM TSORADB.HKColumns nonCompoundHks
         WHERE nonCompoundHks.Name = aName --lower(nonCompoundHks.Name) = lower(aName)
         AND ((aGroupID=-1 AND nonCompoundHks.GroupID IS NULL) OR nonCompoundHks.GroupID=aGroupID)
         AND nonCompoundHks.ColTypeID = aPKColTypeID
         AND EXISTS
              select ColumnID
              From TSORADB.HKColumns hkc4
              WHERE hkc4.TableID = nonCompoundHks.TableID
              AND (hkc4.ColTypeID = aFKDColTypeID OR hkc4.ColTypeID = aFKDSColTypeID)
         AND NOT EXISTS
              select ColumnID
              From TSORADB.HKColumns hkc5
              WHERE hkc5.TableID = nonCompoundHks.TableID
              AND hkc5.ColTypeID = aFKIColTypeID
              AND ((aGroupID=-1 AND hkc5.GroupID IS NULL) OR hkc5.GroupID=aGroupID)
         INSERT INTO TmpR1(ColID, Name, Tlevel, ParentID, Processed)
         SELECT compoundPk.ColumnID as ColID, aName as Name,aTlevel as Tlevel, aParentID as ParentID, 0 as Processed
         FROM TSORADB.HKColumns compoundPk
         INNER JOIN TSORADB.HKColumns compoundHkc on compoundHkc.TableID = compoundPk.TableID AND compoundHkc.ColTypeID = aFKIColTypeID
    INNER JOIN (
              SELECT hkc.ColumnID
              FROM TSORADB.HKColumns hkc
              WHERE hkc.ColTypeID = aPKColTypeID
              AND hkc.Name = aName --lower(hkc.Name) = lower(aName)
              AND ((aGroupID=-1 AND hkc.GroupID IS NULL) OR hkc.GroupID=aGroupID)
              AND NOT EXISTS
              select ColumnID
              From TSORADB.HKColumns hkc2
              WHERE hkc2.TableID = hkc.TableID
              AND (hkc2.ColTypeID = aFKDColTypeID OR hkc2.ColTypeID = aFKDSColTypeID)
              AND ((aGroupID=-1 AND hkc2.GroupID IS NULL) OR hkc2.GroupID=aGroupID)
    ) Indys ON Indys.ColumnID = compoundHkc.ForeignKey
         WHERE compoundPk.ColTypeID = aPKColTypeID;
         INSERT INTO tempR(ID2, ColID, Name, Tlevel, ParentID, Processed)
         SELECT ID2, ColID, Name, Tlevel, ParentID, Processed FROM TmpR1;
         FETCH FROM aCurVar1 INTO aColID, aName, aTlevel, aParentID, aProcessed
         WHILE aafetch_status = 0
         BEGIN     
              IF(aParents is null or EXISTS (SElECT ColID FROM aTmpParent WHERE ColID = aColID) )
              BEGIN
                   INSERT INTO tempR(ID2, ColID, [Name], Tlevel, ParentID, Processed) VALUES(aID2, aColID, aName, aTlevel, aParentID, aProcessed)
                   SET aID2 = aID2 + 1
              END
              FETCH NEXT FROM aCurVar1 INTO aColID, aName, aTlevel, aParentID, aProcessed
         END
         CLOSE aCurVar1 */
    END;
    END IF;
         begin
         SELECT COUNT(*) INTO aNumTempDoc FROM tempR WHERE Processed = 0 and Tlevel < 1;
         end;
    WHILE aNumTempDoc > 0
    LOOP
    BEGIN
    -- Get current row
         SELECT ID1, ID2, ColID, Name, Tlevel, ParentID
         INTO aID1, aID2, aColID, aName, aTlevel, aParentID
         FROM tempR
         WHERE Processed = 0 AND ROWNUM = 1
         ORDER BY ID1;
    UPDATE tempR SET processed = 1 WHERE ID1 = aID1;
    aPreID2 := aID2;
    -- Get why parents
    declare CURSOR aCurVar1 IS --SELECT * FROM TSORADB.HKColumns;
         SELECT distinct FKDPKs.ColumnID as ColID,
              CASE WHEN FKDFKI.NAME is null
              THEN FKDPKs.Name
              ELSE FKDFKI.Name
              END Name,
         (aTlevel+1) as Tlevel,
         PREHKCs.ColID AS ParentID,
         0 as Processed
         FROM TSORADB.HKColumns FKDPKs
         INNER JOIN
         TSORADB.HKColumns FKDFKs ON FKDPKs.ColumnID = FKDFKs.ForeignKey
    INNER JOIN
         TSORADB.HKColumns FKDFKs2 ON FKDFKs2.TableID = FKDFKs.TableID
         INNER JOIN
         tempR PREHKCs ON PREHKCs.ColID=aColID AND PREHKCs.ColID = FKDFKs2.ColumnID AND PREHKCs.Tlevel=aTlevel
         LEFT OUTER JOIN
         SELECT TableID, Name, GroupID
         FROM TSORADB.HKColumns
         WHERE ColTypeID = aFKIColTypeID
         ) FKDFKI ON FKDFKI.TableID = FKDPKs.TableID
         INNER JOIN TSORADB.HKColumnType ON FKDPKs.ColTypeID=HKcolumnType.ColumnTypeID
         WHERE FKDPKs.ColTypeID=aPKColTypeID AND FKDPKs.ColumnID <> aColumnID
         AND FKDFKs.ColTypeID=aFKDColTypeID
    AND ((aGroupID=-1 AND FKDPKs.GroupID IS NULL) OR FKDPKs.GroupID=aGroupID);
         BEGIN
    OPEN aCurVar1;
    aCount := 1;
    SELECT MAX(ID2) INTO aID2 FROM tempR;
    LOOP
         FETCH aCurVar1 INTO aColID, aName, aTlevel, aParentID, aProcessed;
         Exit when aCurVar1%NOTFOUND; -- Exit the loop when no more rows are found.
    --WHILE aafetch_status = 0
    BEGIN
    IF (aCount = 1) -- The first Why Parent
              THEN
                   INSERT INTO tempR(ID2, ColID, Name, Tlevel, ParentID, Processed) VALUES(aPreID2, aColID, aName, aTlevel, aParentID, 0);
    ELSE -- The multiple Why Parents
    BEGIN
                   aID2 := aID2 + 1;
    -- Copy the previous parent with increased ID2
    INSERT INTO tempR(ID2, ColID, Name, Tlevel, ParentID, Processed) SELECT aID2 as ID2, ColID, Name, Tlevel, ParentID, 1 AS Processed FROM tempR WHERE ID1 <= aID1 AND ID2 = aPreID2;
    -- Insert the new why parent
    INSERT INTO tempR(ID2, ColID, Name, Tlevel, ParentID, Processed) VALUES(aID2, aColID, aName, aTlevel, aParentID, 0);
    END;
    END IF;          
    aCount := aCount + 1;
              --FETCH NEXT FROM aCurVar1 INTO aColID, aName, aTlevel, aParentID, aProcessed;
    END;
         END LOOP;
    CLOSE aCurVar1;
         END;
         SELECT COUNT(*) INTO aNumTempDoc FROM tempR WHERE Processed = 0 and Tlevel < 1;
    END;
    END LOOP;
    -- Generate Unique Path Table End
    RETURN;
    EXCEPTION when NO_DATA_FOUND then null;
    END;
    The table which is returned to the SProc is used in the following way, (MSSQL code, as am yet to migrate). Basically using some of the returned column values along with DB values to populate a second temp table
    INSERT INTO #TmpR1 SELECT * FROM QueryCurrentWhy(@ColumnID, @GroupID, @Parents)
    SET @Tlevel = 1
    INSERT INTO @R
    SELECT HKColumns.Columnid as ColID, HKColumns.Tableid as TblID, R1.Name as [Name], HKColumns.NounID AS KeyCompA, R1.ParentID AS KeyCompB, HKColumns.ColTypeID as ColTypeID, ColumnTypeName as ColType, 0 as HasWhats,
    CASE WHEN R2.ColID is null
    THEN 0
    ELSE 1
    END HasWhyParent,
    0 as IsSelected
    FROM HKColumns
    INNER JOIN #TmpR1 AS R1
    ON HKColumns.ColumnID = R1.ColID AND R1.Tlevel=@Tlevel
    INNER JOIN HKColumnType
    ON HKColumns.ColTypeID=HKcolumnType.ColumnTypeID AND HKColumns.ColTypeID=@PKColTypeID
    LEFT JOIN #TmpR1 AS R2
    ON R2.ID2 = R1.ID2 AND R2.Tlevel=@Tlevel+1 AND R2.ParentID=R1.ColID

  • Help needed - ABAP for  function modules and routines.

    Dear BW gurus,
    Hope everyone is doing great.
    I gotta project recently and we are going live in 3 weeks.My BWLead is getting rolled out in a week and he has to make the knowledge transfer to me ASAP.The bottle-necking thing is I need to have a good idea about the function modules and routines.So I request our SND community to help me out with good ABAP documents for function modules,routines and query.
    my mail id is [email protected]
    Thanks in advance
    Have a nice day
    Regards
    sathiya

    Hello Sam,
    You can create function module in ABAP using tcode SE37.
    For more informations on ABAP:
    http://help.sap.com/saphelp_47x200/helpdata/en/c9/5472f6787f11d194c90000e8353423/frameset.htm
    Use http://help.sap.com
    and also use <b>ABAPDOCU</b> transaction.
    Check these links also...
    <b>Online PDFs:</b>
    http://easymarketplace.de/online-pdfs.php
    <b>ABAP HELP</b>
    If you check these links, you can find many example programs.
    http://www.sap-img.com/abap.htm
    http://www.sapdevelopment.co.uk/tips/tipshome.htm
    http://help.sap.com/printdocu/core/Print46c/en/Data/Index_en.htm
    http://sap.ittoolbox.com/nav/t.asp?t=322&p=322&h1=322
    http://sappoint.com/abap/
    FAQs in ABAP
    http://www.sap-img.com/abap/more-than-100-abap-interview-faqs.htm
    Smart forms
    http://www.sap-basis-abap.com/sapsf001.htm
    Workflow
    <http://www.sap-img.com/workflow/sap-workflow.htm>
    ALV
    http://www.geocities.com/mpioud/Abap_programs.html
    Mail
    http://www.geocities.com/mpioud/Z_EMAIL_ABAP_REPORT.html
    http://www.thespot4sap.com/Articles/SAP_Mail_SO_Object_Send.asp
    Table control in BDC
    http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
    SAP Scripts:
    http://sappoint.com/abap/
    http://www.henrikfrank.dk/abapuk.html
    Some useful ABAP Links for learning:
    http://cma.zdnet.com/book/abap/index.htm
    http://www.sapdevelopment.co.uk/
    http://www.sap-img.com/
    http://juliet.stfx.ca/people/fac/infosys/abap.htm
    http://help.sap.com/saphelp_46c/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_46c/helpdata/en/d6/0db357494511d182b70000e829fbfe/frameset.htm
    http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
    http://www.sapgenie.com/abap/example_code.htm
    http://www.geocities.com/SiliconValley/Campus/6345/abapindx.htm
    http://help.sap.com/printdocu/core/Print46c/en/Data/Index_en.htm
    http://help.sap.com/saphelp_40b/helpdata/en/4f/991f82446d11d189700000e8322d00/applet.htm
    http://www.sap-img.com/abap-function.htm
    http://www.sapgenie.com/abap/code/abap19.htm
    http://www.sap-img.com/abap/more-than-100-abap-interview-faqs.htm
    http://www.planetsap.com/Tips_and_Tricks.htm
    http://help.sap.com/saphelp_40b/helpdata/ru/d6/0dc169494511d182b70000e829fbfe/applet.htm
    http://www.henrikfrank.dk/abapexamples/SapScript/symbols.htm
    http://www.henrikfrank.dk/abapexamples/index.html
    http://sap.ittoolbox.com/documents/document.asp?i=752
    http://members.aol.com/_ht_a/skarkada/sap/
    http://sappoint.com/abap/
    http://members.tripod.com/abap4/SAP_Functions.html
    http://members.ozemail.com.au/~anmari/sap/index.html
    http://www.planetsap.com/Userexit_List.htm
    http://www.planetsap.com/Tips_and_Tricks.htm
    http://www.kabai.com/abaps/q.htm
    http://www.planetsap.com/Userexit_List.htm
    http://help.sap.com/saphelp_bw21c/helpdata/en/c4/3a8090505211d189550000e829fbbd/frameset.htm
    http://www.sapgenie.com/abap/bapi/example.htm
    http://help.sap.com/saphelp_45b/helpdata/en/65/897415dc4ad111950d0060b03c6b76/content.htm
    http://www.sap-basis-abap.com/index.htm
    http://help.sap.com/saphelp_40b/helpdata/en/fc/eb2c46358411d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_46c/helpdata/en/aa/aeb23789e95378e10000009b38f8cf/frameset.htm
    http://www.geocities.com/ResearchTriangle/1635/system.html
    http://www.sapdesignguild.org/resources/MiniSG/3_Managing/3_Functions_Table_Control.htm
    http://help.sap.com/saphelp_45b/helpdata/en/d1/801bdf454211d189710000e8322d00/content.htm
    http://www.sapfans.com/sapfans/repos/saprep.htm
    http://www.planetsap.com/howdo_a.htm
    http://help.sap.com/saphelp_util464/helpdata/en/69/c2516e4ba111d189750000e8322d00/content.htm
    http://www.sapgenie.com/abap/smartforms_detail.htm
    http://www.sap-img.com/abap.htm
    http://help.sap.com/saphelp_46c/helpdata/en/fc/eb2d67358411d1829f0000e829fbfe/content.htm
    http://www.geocities.com/victorav15/sapr3/abap.html
    http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
    http://abap4.tripod.com/Other_Useful_Tips.html
    http://help.sap.com/saphelp_45b/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm
    http://www.sap-basis-abap.com/sapmm.htm
    http://sap.ittoolbox.com/nav/t.asp?t=303&p=448&h1=303&h2=322&h3=448
    http://sapfans.com/
    http://cma.zdnet.com/book/abap/ch03/ch03.htm
    http://help.sap.com/saphelp_40b/helpdata/en/4f/991f82446d11d189700000e8322d00/applet.htm
    http://sappoint.com/abap/
    http://www.henrikfrank.dk/abapuk.html
    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/abapindx.htm
    http://www.sapgenie.com/abap/index.htm
    http://www.sap-img.com/abap.htm
    http://www.sapdevelopment.co.uk/tips/tipshome.htm
    http://help.sap.com/printdocu/core/Print46c/en/Data/Index_en.htm
    http://sap.ittoolbox.com/nav/t.asp?t=322&p=322&h1=322
    http://sap.ittoolbox.com/nav/t.asp?t=448&p=448&h1=448
    http://www.thespot4sap.com/
    http://www.kabai.com/abaps/q.htm
    http://www.geocities.com/mpioud/Abap_programs.html
    http://www.sapgenie.com/abap/tips_and_tricks.htm
    http://www.sapassist.com/code/d.asp?whichpage=1&pagesize=10&i=10&a=c&o=&t=&q=&qt=
    For FAQ
    http://www.sap-img.com/abap/more-than-100-abap-interview-faqs.htm
    http://www.sapgenie.com/faq/abap.htm
    BAPI-step by step
    http://www.sapgenie.com/abap/bapi/example.htm
    http://www.sapgenie.com/abap/bapi/example.htm
    Web log for receive email and processing it through ABAP
    /people/thomas.jung3/blog/2004/09/09/receiving-e-mail-and-processing-it-with-abap--version-610-and-higher
    For Logical database
    http://help.sap.com/saphelp_46c/helpdata/en/9f/db9bed35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_46c/helpdata/EN/35/2cd77bd7705394e10000009b387c12/frameset.htm
    Useful link to websites
    http://www.hernangn.com.ar/sap.htm
    Useful for background
    http://www.sappoint.com/basis/bckprsng.pdf
    http://help.sap.com/saphelp_nw04/helpdata/en/6f/08703713bf277ee10000009b38f8cf/frameset.htm
    http://publib.boulder.ibm.com/infocenter/wbihelp/index.jsp?topic=/com.ibm.wbix_adapters.doc/doc/mysap4/sap4x41.htm
    Table control in BDC
    http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm
    For posting web log,
    /people/sap.user72/blog/2005/06/28/sdn-weblogs-making-it-easier
    Dynamic Internal table -web log in sdn
    /people/subramanian.venkateswaran2/blog/2004/11/19/dynamic-internal-table
    ALV
    http://www.geocities.com/mpioud/Abap_programs.html
    Mail
    http://www.geocities.com/mpioud/Z_EMAIL_ABAP_REPORT.html
    http://www.thespot4sap.com/Articles/SAP_Mail_SO_Object_Send.asp
    http://www.sapdevelopment.co.uk/reporting/email/attach_xls.htm
    BOM Explosion
    /people/prakash.singh4/blog/2005/05/15/explode-boms-in-enterprise-portal-using-htmlb-tree--part-1-abap
    BOM
    http://help.sap.com/saphelp_erp2005/helpdata/en/ea/e9b7234c7211d189520000e829fbbd/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/d1/2e4114a61711d2b423006094b9d648/frameset.htm
    http://www.sap-img.com/sap-sd/sales-bom-implementation.htm
    http://www.sap-basis-abap.com/sappp007.htm
    OLE
    http://www.sapgenie.com/abap/ole.htm
    http://help.sap.com/saphelp_46c/helpdata/en/59/ae3f2e488f11d189490000e829fbbd/frameset.htm
    ALVGRID with refresh
    http://www.geocities.com/mpioud/Z_DEMO_ALV_REFRESH_BUTTON.html
    For language setting and decimal separator
    /people/horst.keller/blog/2004/11/16/abap-geek-7-150-babylonian-confusion
    Oracle queries
    http://sqlzoo.net/
    To format SQL
    http://www.sqlinform.com/
    SCOT settings
    http://www.sap-img.com/basis/basis-faq.htm
    Status Icon [ALV,Table Control,Tab Strip]
    http://www.sapdesignguild.org/resources/MiniSG-old/from_develop/norm_status_icons.htm#positioning_4
    ALV Group Heading
    http://www.sap-img.com/fu037.htm
    For multiMedia
    /people/thomas.jung3/blog/2005/05/11/using-classic-activex-controls-in-the-abap-control-framework
    Uploading LOGO in SAP
    http://www.sap-img.com/ts001.htm
    LSMW
    http://www.sap-img.com/sap-data-migration.htm
    http://www.sapgenie.com/saptech/lsmw.htm
    http://sapabap.iespana.es/sapabap/manuales/pdf/lsmw.pdf
    http://www.sap.info/public/INT/int/glossary/int/glossaryletter/Word-17643ed1d6d658821_glossary/L#Word-17643ed1d6d658821_glossary
    http://www.consolut.de/saphelp/sap_online_help.html
    http://www.sap-img.com/
    http://www.sappoint.com/
    http://www.sapdevelopment.co.uk/
    http://www.allsaplinks.com/idoc_search.html
    Best Regards,
    Thangesh

  • Help needed with Map function in Lumira

    Hi,
    I've bee using Luira for lots of great tile charts and bar charts, but now I am looking to make use of the mapping visulization in Lumira.
    Bascially I want to get a count of the number of retail stores by state. 
    I uploaded my data , and some have been populated and looks nice (see first screenshot) , but for others the state is not found (see second screenshot).
    I have looked in the help documents, and some of the training, but have yet to find a solution.
    What I'd like to know is how I can fix the "unfound" states, or at least find out what is the source file which stores all the states?
    Above is the results so far, below is the missing states that I need to resolve. How can I fix for these "not found" states  or compare the format of my original excel data vs the data from Lumira.
    Alteratively if there is a way to match via post-code / zip-code please tell me how.
    Thanks,
    Paul

    Hi Paul,
    the geo-hierarchies take all cities that are greater than 100.000 for the name resolution and for the smaller ones you would need to use latitude/longitude information to get them resolved by Lumira.
    You can find mre information on how to use latitude/ longitude information from here:
    https://scn.sap.com/docs/DOC-33118
    Regards,
    Clarissa

  • Help needed in schema and flow of my DB

    I am dealing with a large scale of data and the senario is that.
    i am getting data from stream , i have developed an aplication called AClient (in C++) which is getting data from stream and putting that data live in my db table called live using ODBC (previously i was using Pro C but i didnot find good help on that for new versions), this data insertion is like 2000 records per min, each record is approx. 200k.
    As this data is very critical so we can't afford to miss this data.Data is automatically getting commit on each insertion, so the I/O operations bar is HIGH.
    Now after saving this data live, we perform some actions using oracle JOBs,
    I1. One job is used to fetch approx. 200,000 from table Live, merge 5-6 records into one record after every 1 hour, and put these records in a table named COM.
    I2. One jos is used to fetch approx. 200,000 from table Live other than those inserted in COM, and put them in another table INCOM.
    I3. One job is to fetch all records preior to 6 hours, and put them in an archive table ARC, also delete them from Live.
    Now to export this data in CSVs we are using some more Oracle JOBs.
    E1. One job is to fetch last two hours data from COM table and export this data in CSV format after every 2 hours.
    E2. One job is to fetch one day records from INCOM table and export this data in CSV format scheduled in night time , once for a day.
    Now the problem is that i am facing performace issues, i have got a very good hardware with 32GB RAM , 1.5T harddisk and quard core processsors.
    TOP issues are fetching data is too slow, and I/O operations shown in OEM preformace tab are too many.
    Please guide me what should i do.
    like using partition tables,
    and/or use of BI tools, fetch using cubes & dimensions.
    and/or use any special tunning related to memory or I/O.
    and/or rescheduling the JOBs.
    and/or perform analyze table to make fetch process faster.
    ANY HELP.

    I have worked on this system many times before.
    Not the one you have written but others that could be described with the exact same words.
    And each and every time the reason is that they don't scale and the performance is abysmal.
    What you have done, in the design, is systematically violate every performance and scalability rule and all, seemingly, for a good reason.
    The problem is that databases don't work that way.
    If you can not risk losing data write a log file, just as Oracle writes its redo logs.
    Then write one process that takes the raw input and generates the desired output.
    I can already hear the protest about how this can not be done. I've heard those too over and over again. Yet, amazingly, there are
    those of us out here that get paid to do so ... and we do so successfully.
    So if you want to avoid hiring a high-priced consultant ... rethink the design.
    PS: You do not need an ARC table at all. Ever. This is Oracle not a toy.

  • Help needed in decode function

    I am trying to use decode function shown below
    select decode(deptid,(select deistinct dept_id from dept),'found') into id from student ;
    it shows error ORA 01427:single-row subquery returns more than one row.
    could you people help me resovle the issue.
    Thanks.

    Funny thing how many mistakes can be in one little line. I try to list what is wrong here. maybe it helps you to understand what is going on.
    select decode(deptid,(select deistinct dept_id from dept),'found') into id from student ;1) "deistinct" => wrong spelling "distinct"
    2) Uniqueness => the typical DEPT table has DEPT_ID as a primary key. So DISTINCT would do nothing here. "select distinct dept_id from dept" is the same as "select dept_id from dept".
    3) decode with a multi-row subquery => the decode function only accepts single values. e.g: ,"decode(deptid,(select max(dept_id) from dept),..." => THis is not really useful, just an example.
    4) decode without handling other values => it is better to say what should happen, when the values does not match. decode(deptid,:x,'found','notfound')
    5) select .. into ... from. => INTO is only used in a PL/SQL . So I assume this statement is part of a larger PL/SQL block. In that case "into id " is a problem. The select would return many values, but your ID variable could probably hold only one value.
    6) Identification of values => For all students that could be returned, you only would know 'found'. At least select the ID for the student too, else you wouldn't know which student was found. select id, 'found' ... from student.
    7) Don't select everthing and check for each row later. Select only relevent rows. That means do your checks in the WHERE clause of a select statement not in the SELECT clause. Example: "select id from student where dept_id in (select dept_id from dept);" Possible in this case is also a join "select student.id from student, dept where student.dept_id=dept.dept_id"
    8) referential integrity. Why do have to do this check anyway? On table student there should be a FK constraint, so that only values can be inserted where the DEPT_ID is correct. Then you select would be "select id from student;".

  • Help needed with analytical function

    I want to get the employee details of the highest and 2nd highest salaried employee in a particular department. But also the department should have more than 1 employee.
    I tried the query and it gave me proper results. But I'm wondering if there is some other alternative than using the subquery.
    Here is the table and the result query :
    with t as
    select 1 emp_id,3 mgr_id,'Rajesh' emp_name,3999 salary,677 bonus,'HR' dpt_nme from dual union
    select 2 ,3 ,'Gangz',4500,800,'Finance' from dual  union
    select 3 ,4 ,'Sid',8000,12000,'IT' from dual  union
    select 4 ,null,'Ram',5000,677,'HR' from dual  union
    select 5 ,4,'Shyam',6000,677,'IT' from dual union
    select 6 ,4 ,'Ravi',9000,12000,'IT' from dual  
    select * from
    (select emp_id, mgr_id, emp_name, dpt_nme, salary, row_number() over (partition by dpt_nme order by salary desc) rn from t where dpt_nme in
    (select dpt_nme from t group by dpt_nme having count(*) > 1)) where rn < 3

    Hi,
    You need a sub-query, but you don't need more than that.
    Here's one way to eliminate the extra sub-query:
    WITH     got_analytics     AS
         SELECT  emp_id,     mgr_id,     emp_name, dpt_nme, salary
         ,     ROW_NUMBER () OVER ( PARTITION BY  dpt_nme
                                   ORDER BY          salary     DESC
                           )         AS rn
         ,     COUNT (*)     OVER ( PARTITION BY  dpt_nme
                                       )         AS dpt_cnt
         FROM     t
    SELECT  emp_id,     mgr_id,     emp_name, dpt_nme, salary
    ,     rn
    FROM     got_analytics
    WHERE     rn     < 3
    AND     dpt_cnt     > 1
    ;Analytic functions are computed after the WHERE clause is applied. Since we need to use the results of the analytic ROW_NUMBER function in a WHERE clause, that means we'll have to compute ROW_NUMBER in a sub-query, and use the results in the WHERE clause of the main query. We can call the analytic COUNT function in the same sub-query, and use its results in the same WHERE clause of the main query.
    What results would you want if there's a tie for the 2nd highest salary in some department? For example, if you add this row to your sample data:
    select 7 ,3 ,'Sunil',8000,12000,'IT' from dual  union? You may want to use RANK instead of ROW_NUMBER.

  • Help needed with cfcalendar function

    I have a Coldfusion application which requires the user to select a date to sign up for a class. The problem that I am having is that the available dates are within a pre-determined range (i.e. from current date until end of year) and are Wednesdays only. I thought I could use the cfcalendar function, but do not understand how to use it with the conditions mentioned. Is this possible to do with cfcalendar, and if so, could someone please give me an example of how to do this? If there is an easier way to do this, I would really appreciate any ideas.
    Thanks in advance!  

    TrySystem.out.printf(b + "%06d", a);(I don't have a compiler here so I haven't tested this).
    The "6" is the width - the minimum number of characters that will be
    printed and the "0" (it's a zero) is a flag indicating that the output should
    be padded with zeros.
    You should also note that the value of a is two. It doesn't matter whether
    you say a=2; or a=0002; - a is still just plain two.

  • Help needed using REPLACE function

    Post Author: Domo
    CA Forum: Formula
    I need to swap out HTML special characters for their corresponding symbols.
    The text field in question obviously contains many number codes, e.g. &#39; for an apostrophe (') and I would like to write a formula which replaces these for it's corresponding text character.
    How would I go about this? I know how to use replace for single entries, e.g. Replace(, "&#39;", "'"); but how do I apply this to multiple entries?
    I have been using Crystal syntax for other formulas in the report (not sure if Basic and Crystal can be used?).

    Post Author: Domo
    CA Forum: Formula
    Yeah it seems using a combination of Basic and Crystal syntax is possible in CR9.
    I simply created the following formula in the end:
    dim strInputstrInput = {TEXT.STRING}formula = replace(replace(replace(replace(replace(replace(replace(replace(replace(strinput, "<P>", "")," ", " "), "&#39;", "'"), "</P>", ""), "&#58;", ":"), "<BR>", CHR(13)), "&#60;", "<"), "&#62;", ">"), "&#34;", "''")
    Looks a little messy but it works!

  • Help needed on split function

    Hi All,
    i have a small code :-
    String selecteID = "QP|10009";
    String radioId []= selectedID.split("|");
    int i = 0 ;
    System.out.println("radioId[0] ="+radioId);
    System.out.println("radioId[1]= "+radioId[++i]);
    Its output is
    radioId[0]=
    radioId[1]=Q
    However i wanted the code to return ans as :--
    radioId[0]=QP
    radioId[1]=10009
    Why does the split function does not work for '|' ? Or we cannot use '|' in case of split functions.

    Personally I prefer split("[|]")coz I hate trying to read RE's full of those dang \\'s
    Keith

  • Help needed for Instr function

    Hi,
    I using instr function to find the delimiter '|' .the function does retrives value , if the character contains
    special charcater. (i.e)INSTR('Carán|','|',1,6) returns
    only zero as the value , which is not correct. kindly suggest me some solution for the above problem.
    Thanks in advance.

    By INSTR('Carán|','|',1,6) , you are trying to find location of 6th occurance of special character '|' . Since there is no such occurence, it is returning 0.
    sql> select instr('Caran|','|') from dual;
    INSTR('CARAN|','|')
    6
    Thanks

  • HELP NEEDED WITH SLEEP FUNCTION

    Sometimes when I hold the play button the backlight turns on instead of sleeping.
    Do you know whats wrong?

    mabey try a reset/
    Nano 4GB black,Moto RAZR V3 black, PSP, all kinds of cases for nano,radio/remote   Windows XP   <img src="http://i36.photobucket.com/albums/e13/superman5656/s.gif"align="right"</span>

  • Need help- need to read a customer table from the payroll schema

    Hi gurus,
    I need to read an amonunt from a customer table in the payroll schema. Is it possible to input TABLE XXXX in the schema, or is impossible to read from a customer table?Do I need to create a report to upload the amount in an infotype?
    Thanks in advanced for for support!

    You should create your own custom operation (based on operation TABLE) to read your custom table from a Payroll PCR.
    If your custom table's name is longer than 5 characters, you may be required to use operations VAOFF and/or VALEN prior to your custom operation in the PCR.

Maybe you are looking for