Project code  wise aging

dear   expert all
parameter    from date  to to date , project code
  one of my client requriment  i have  need   project  code wise  aging report .
send  me the query.

Hi Zal....
Very Good Afternoon.........
          The question was simple. Sinha was simply asking about the Project code wise aging report. If I'm not wrong then for every marketing document level, on header level as well as on row level the project code field is there with the help of which we can categorise the transactions. So if sinha is doing billing as per the project code then he can get the project code wise aging report.
Even you can get the project code wise trial balance sheet also............
Regards,
Rahul

Similar Messages

  • How to Project Code wise Authorization.

    Hi,
    i want to give project code wise authorizations to users. in
    authorization we can give only total project code
    Full/Readonly/No Authorizations. A user only he want to see 
    Project Code Hyd. remaining project code he want see in all
    the documents. for documnet numbering we have option
    Grouping  like this is there any option to prevent projec code to
    users.
    reds,
    samapth.

    It is possible to do through SDK. although on a rather large scale. You need to establish an UDO idientify the userid with multiple project code, or project code with mulitple user ID. Then all the project code drop down inside SBO will need to be replaced by SDK to show only the project associated with current log in user id. To make it more complete, you need to establish error message in the SP_transactionnofication to hold the document if project code used (as they can still manually type in) is not usable by them!

  • Project Code Reports.

    HI,
    I Designed Project Code wise Reports in T.B. here i want give
    authorizations for users. user1 he want to generate only
    project code 1. here iam using paramets for Project code.
    what i am choosing in this parameters it's retriving.but i wat to
    give authorization to users to generate only this project code
    only.
    in Authorzation we have tha option Full autorization and
    None.and one more Additional Authorization Creator in this  we
    have the option  Full/Read/None
                           Full/None.
    How we can give autorization for users to generate only this
    Project code only. plz guide me.
    Regds,
    samapth.
    Edited by: Philip Eller on Jul 2, 2008 11:49 AM
    Edited by: Rui Pereira on Jul 9, 2008 5:06 PM
    Edited by: Rui Pereira on Aug 8, 2008 1:53 PM

    You can make (a) restricted query(ies) and authorize User1 only to use this query.

  • Aging report - detailed needs invoice project code

    Dear All,
    Would it be possible for us to have project code (on A/R invoice header) on Aging report - detailed print layout? I found all fields in Aging report - detailed PLD are sys var. Is there a way for us to figure out which sys var is for project code of the invoice? Thanks a lot.
    Regards,
    Yuka

    Unfortunately you can't, you have to recreate it using crystal. In all SAP std reports you only able to show/print what it already shows.

  • Project code based  Sales Order and Purchase Order - Item wise Report

    Dear all,
    Scenario:
    We are doing business based on Projects.  So, for every Sales , Project code is created and Sales order is booked with Project code and subsequently Purchase Order is booked with Project code. (Note:Some cases, few items might not be purchased since stock is available.)
    We want report like
    SO Project code
    SO Posting date
    SO Sales Employee
    SO Customer Name
    SO Item code
    SO Quantity
    SO Unit price
    SO Row Total
    PO Project code
    PO Posting date
    PO Sales Employee
    PO Customer Name
    PO Item code
    PO Quantity
    PO Unit price
    PO Row Total
    *SO line item and PO line item for same project should be parallel , that is important and challenge (certain cases, item in SO might not be in PO, for such cases Blank field should appear for PO Item code.)
    Thanks in advance,
    Regards,
    Dwarak.

    Hi Dwarak.......
    Your Report is right but a small change you have to make Left join RDR1 with POR1........
    Try this.......
    SELECT T0.PrjCode, T1.Project, T0.PrjName, T1.DocNum, T1.DocDate, T1.CardName, T2.ItemCode, T2.Dscription, T2.Quantity, T2.Price, T2.LineTotal, T3.Project, T4.ItemCode, T4.Dscription, T4.Quantity, T4.Price, T4.LineTotal FROM OPRJ T0 INNER JOIN ORDR T1 ON T0.PrjCode = T1.Project INNER JOIN RDR1 T2 ON T1.DocEntry = T2.DocEntry LEFT JOIN OPOR T3 ON T0.PrjCode = T3.Project LEFT OUTER JOIN POR1 T4 ON T3.DocEntry = T4.DocEntry AND T2.ITEMCODE = T4.ITEMCODE INNER JOIN OITM T5 ON T2.ItemCode = T5.ItemCode WHERE T0.PrjCode ='[%0]' AND
    T5.ItmsGrpCod in ('108', '110') GROUP BY T0.PrjCode, T1.Project, T0.PrjName, T1.DocNum, T1.DocDate, T1.CardName, T2.ItemCode, T2.Dscription, T2.Quantity, T2.Price, T2.LineTotal, T3.Project, T4.ItemCode, T4.Dscription, T4.Quantity, T4.Price, T4.LineTotal
    Regards,
    Rahul

  • Projectcode wise aging ?

    hi all
      please help me out of this query. one of client requriment  project wise aging
       please check this query if need to bechange  please tell me
      please help me.......................................................................
    DECLARE @CutOff datetime
    DECLARE @Projectcode varchar(50)
    set @CutOff = '04/05/2011'
    set @Projectcode ='MH28'
    declare @openinvoice table(
      docnum numeric(19,0),
      proCode varchar(100),
      cardcode varchar(15),
      cardname varchar(100),
      unapplied numeric(19,2),
      source varchar(5),
      docdate datetime,
      docduedate datetime,
      daysPastDue int,
      Balance numeric(19,2)
    insert into @openinvoice(docnum,proCode, cardcode, cardname,docdate,docduedate,dayspastdue,balance)
    select DISTINCT
      t9.docnum, t10.project,  t9.cardcode,  t9.cardname,  t9.docdate, t9.docduedate, cast(@cutoff-t9.docduedate as int) as DaysPastDue,  t9.doctotal- t9.paidtodate
    from
    oinv t9 inner join inv1 t10
    on
    t9.docentry=t10.docentry
    where
      t9.docdate < @cutoff+1
    and t10.project=@Projectcode
    insert into @openinvoice(docnum,proCode, cardcode,cardname,unapplied,source)
    select
       t0.docnum, t0.prjcode,t0.cardcode, t0.cardname, doctotal, 'OR' as Src
    from
      orct t0  join rct2 t1 on t0.docnum=t1.docnum
    where
      t0.doctype='C' and
      t0.docdate < @CutOff+1 
    and t0.prjcode =@Projectcode
    insert into @openinvoice(docnum, proCode,cardcode,cardname,unapplied,source)
    select
      t2.transid,t0.project,t0.shortname, t1.cardname,
      case when t0.debit>0 then t0.debit else t0.credit*-1 end AmtPosted,
      'JE' as Src
    from
        ojdt t2 inner join jdt1 t0 on t2.transid=t0.transid inner join ocrd t1 on t0.shortname=t1.cardcode
    where
      t1.cardtype='C' and
      t2.transtype=30 and
      t2.REFdate < @CutOff+1
      and t2.project=@Projectcode
    INSERT into @openinvoice(docnum,cardcode, cardname,unapplied,source)
    select
      t0.docnum, t0.cardcode, t0.cardname,
      doctotal-PAIDTODATE as balance, 'CM' as Src
    from
    orin t0 inner join (select distinct docentry,baseentry from rin1 where docdate < @CutOff+1 ) T1 on t0.docentry=t1.docentry
    where
      t0.docstatus='O' and
    t1.baseentry is null and
      t0.docdate<@cutoff+1
    select 
       cardcode, cardname,
      sum(case when DaysPastDue<=0 then balance else 0 end) as CurrBal,
      sum(unapplied) as UnApplied, source,
      sum(case when DaysPastDue<=30 then balance else 0 end) as Days30,
      sum(case when DaysPastDue<=60 then balance else 0 end) as Days60,
      sum(case when DaysPastDue<=90 then balance else 0 end) as Days90
      sum(case when DaysPastDue>90 then balance else 0 end) as Days90Over
    from
      @openinvoice
    group by
      cardcode, cardname,source
    order by
    cardcode
    Edited by: sinha0010 on May 3, 2010 2:44 PM
    Edited by: sinha0010 on May 3, 2010 2:48 PM
    Edited by: sinha0010 on May 3, 2010 2:50 PM

    DECLARE @CutOff datetime
    DECLARE @Projectcode varchar(50)
    set @CutOff = '04/05/2011'
    set @Projectcode ='MH28'
    declare @openinvoice table(
      docnum numeric(19,0),
      proCode varchar(100),
      cardcode varchar(15),
      cardname varchar(100),
      unapplied numeric(19,2),
      source varchar(5),
      docdate datetime,
      docduedate datetime,
      daysPastDue int,
      Balance numeric(19,2)
    insert into @openinvoice(docnum,proCode, cardcode, cardname,docdate,docduedate,dayspastdue,balance)
    select DISTINCT
      t9.docnum, t10.project,  t9.cardcode,  t9.cardname,  t9.docdate, t9.docduedate, cast(@cutoff-t9.docduedate as int) as DaysPastDue,  t9.doctotal- t9.paidtodate
    from
    oinv t9 inner join inv1 t10
    on
    t9.docentry=t10.docentry
    where
      t9.docdate < @cutoff+1
    and t10.project=@Projectcode
    insert into @openinvoice(docnum,proCode, cardcode,cardname,unapplied,source)
    select
       t0.docnum, t0.prjcode,t0.cardcode, t0.cardname, doctotal, 'OR' as Src
    from
      orct t0  join rct2 t1 on t0.docnum=t1.docnum
    where
      t0.doctype='C' and
      t0.docdate < @CutOff+1 
    and t0.prjcode =@Projectcode
    insert into @openinvoice(docnum, proCode,cardcode,cardname,unapplied,source)
    select
      t2.transid,t0.project,t0.shortname, t1.cardname,
      case when t0.debit>0 then t0.debit else t0.credit*-1 end AmtPosted,
      'JE' as Src
    from
        ojdt t2 inner join jdt1 t0 on t2.transid=t0.transid inner join ocrd t1 on t0.shortname=t1.cardcode
    where
      t1.cardtype='C' and
      t2.transtype=30 and
      t2.REFdate < @CutOff+1
      and t2.project=@Projectcode
    INSERT into @openinvoice(docnum,cardcode, cardname,unapplied,source)
    select
      t0.docnum, t0.cardcode, t0.cardname,
    doctotal-PAIDTODATE as balance, 'CM' as Src
    from
      orin t0 inner join (select distinct docentry,baseentry from rin1 where docdate < @CutOff+1 ) T1 on t0.docentry=t1.docentry
    where
      t0.docstatus='O' and
      t1.baseentry is null and
      t0.docdate<@cutoff+1
    Edited by: sinha0010 on May 4, 2010 7:53 AM
    Edited by: sinha0010 on May 4, 2010 7:59 AM
    Edited by: sinha0010 on May 4, 2010 8:00 AM
    Edited by: sinha0010 on May 4, 2010 8:04 AM

  • Accounts Receivable Report: Customer Wise Ageing Analysis report -FI module

    Hi Gurus,
                 Can anyone help me in providing standard report(source code) or already done sample report(source code) for Accounts Receivable Report: Customer Wise Ageing AnalysisThis is in FI Module. Though it is FI Module we need to fetch details related to Sales Module, and the days should be <0     30     60     90     120     180     365     >365     
    It is urgent I need to deliver this report by this week end.
    Please help me . Waiting for your reply.
    Points Rewarded for help rendered and I would personally send a good gift if you can help me
    Yours Truly,
    Rajiv Christopher.
    Edited by: Rajiv Christopher on Apr 2, 2008 11:33 AM

    Hi,
    i am attaching aging report.
    see if this is useful to you.
    REPORT ZFUS0102 MESSAGE-ID OA
                    LINE-SIZE 270.
    Title:      GR/IR AGING REPORT
    Date:       January 2001
    TABLES: DISVARIANT, EKPO.
    TYPE-POOLS: SLIS.
    Tables
    TABLES:
      BSIS,
      EKKO.
    working table
    DATA:  BEGIN OF RTAB OCCURS 0,
             HKONT   LIKE BSIS-HKONT,
             ZUONR   LIKE BSIS-ZUONR,
             BUDAT   LIKE BSIS-BUDAT,
             SHKZG   LIKE BSIS-SHKZG,
             DMBTR   LIKE BSIS-DMBTR,
             PRCTR   LIKE BSIS-PRCTR,
          END OF RTAB.
    DATA: BEGIN OF WTAB OCCURS 0,
             ZUONR(2) TYPE N,
             PRCTR   LIKE BSIS-PRCTR,
             DAYS(4)  TYPE P,
             DMBTR   LIKE BSIS-DMBTR,
          END OF WTAB.
    DATA: BEGIN OF PTAB OCCURS 0,
             ZUONR(2),
             PRCTR   LIKE BSIS-PRCTR,
             AMT30   LIKE BSIS-WRBTR,
             AMT60   LIKE BSIS-WRBTR,
             AMTPL   LIKE BSIS-WRBTR,
             TOTAL   LIKE BSIS-WRBTR,
          END OF PTAB.
    PARAMETERS:  COMPANY LIKE BSIS-BUKRS OBLIGATORY,
                 ACCT    LIKE BSIS-HKONT OBLIGATORY,
                 DATE    LIKE SY-DATUM OBLIGATORY.
    SELECT-OPTIONS: S_EKORG FOR EKKO-EKORG.
    PARAMETERS: P_VARI LIKE DISVARIANT-REPORT.
    DATA: WS-AMT30 LIKE BSIS-WRBTR.
    DATA: WS-AMT60 LIKE BSIS-WRBTR.
    DATA: WS-AMTPL LIKE BSIS-WRBTR.
    DATA: TITLE(21) VALUE 'GR/IR Aging Report'.
    DATA: LIN TYPE I.
    DATA: GX_VARIANT LIKE DISVARIANT,
          G_VARIANT LIKE DISVARIANT.
    DATA:  LAYOUT   TYPE SLIS_LAYOUT_ALV,
           L_F      TYPE SLIS_T_FIELDCAT_ALV   WITH HEADER LINE,
           GROUP    TYPE SLIS_T_SP_GROUP_ALV   WITH HEADER LINE,
           COLOR    TYPE SLIS_T_SPECIALCOL_ALV WITH HEADER LINE.
    DATA:  LT_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER,
           LS_LINE TYPE SLIS_LISTHEADER,
           T_EVENTS   TYPE SLIS_T_EVENT.
    CONSTANTS: FORMNAME_TOP_OF_PAGE TYPE SLIS_FORMNAME VALUE 'TOP_OF_PAGE'.
    INITIALIZATION.
      PERFORM EVENTTAB_AUFBAUEN USING T_EVENTS[].
      PERFORM VARIANT_INIT.
    Get default variant
      GX_VARIANT = G_VARIANT.
      CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
           EXPORTING
                I_SAVE     = 'A'
           CHANGING
                CS_VARIANT = GX_VARIANT
           EXCEPTIONS
                NOT_FOUND  = 2.
      IF SY-SUBRC = 0.
        P_VARI = GX_VARIANT-VARIANT.
      ENDIF.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_VARI.
      PERFORM VARIANT_INPUTHELP_F14.
    START-OF-SELECTION.
      LS_LINE-TYP  = 'S'.
      WRITE SY-DATUM TO LS_LINE-INFO DD/MM/YY.
      WRITE SY-UZEIT TO LS_LINE-INFO+10.
      WRITE SY-UNAME TO LS_LINE-INFO+20.
      WRITE TITLE    TO LS_LINE-INFO+30.
      APPEND LS_LINE TO LT_TOP_OF_PAGE.
      PERFORM FIELDS.
      IF NOT P_VARI IS INITIAL.
        PERFORM PAI_OF_SELECTION_SCREEN.
      ELSE.
        CALL FUNCTION 'REUSE_ALV_VARIANT_SELECT'
             EXPORTING
                  I_DIALOG            = ' '
                  I_USER_SPECIFIC     = 'A'
                  I_DEFAULT           = ' '
            I_TABNAME_HEADER    =
            I_TABNAME_ITEM      =
                  IT_DEFAULT_FIELDCAT = L_F[]
                  I_LAYOUT            = LAYOUT
             IMPORTING
            E_EXIT              =
                  ET_FIELDCAT         = L_F[]
            ET_SORT             =
            ET_FILTER           =
             CHANGING
                  CS_VARIANT          = DISVARIANT
             EXCEPTIONS
                  WRONG_INPUT         = 1
                  FC_NOT_COMPLETE     = 2
                  NOT_FOUND           = 3
                  PROGRAM_ERROR       = 4
                  OTHERS              = 5.
      ENDIF.
    Decide which tables to access.
      PERFORM MAIN_SELECT.
      MOVE TITLE  TO LAYOUT-WINDOW_TITLEBAR.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
           EXPORTING
                I_CALLBACK_PROGRAM      = 'ZFUS0102'
                I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
                IS_LAYOUT               = LAYOUT
                IT_FIELDCAT             = L_F[]
                IT_SPECIAL_GROUPS       = GROUP[]
                I_SAVE                  = 'A'
                IS_VARIANT              = G_VARIANT
                IT_EVENTS               = T_EVENTS
           TABLES
                T_OUTTAB                = PTAB
           EXCEPTIONS
                PROGRAM_ERROR           = 1
                OTHERS                  = 2.
          FORM FIELDS                                                   *
    FORM FIELDS.
      L_F-FIELDNAME     = 'ZUONR'.
      L_F-OUTPUTLEN     = 6.
      L_F-SELTEXT_L     = 'SERIES'.
      L_F-REPTEXT_DDIC  = 'SERIES'.
      L_F-REF_TABNAME   = 'PTAB'.
      L_F-SP_GROUP      = 'A'.
      APPEND L_F. CLEAR L_F.
      L_F-FIELDNAME     = 'PRCTR'.
      L_F-OUTPUTLEN     = 10.
      L_F-SELTEXT_L     = 'PROFIT CTR.'.
      L_F-REPTEXT_DDIC  = 'PROFIT CTR.'.
      L_F-REF_TABNAME   = 'PTAB'.
      L_F-SP_GROUP      = 'A'.
      APPEND L_F. CLEAR L_F.
      L_F-FIELDNAME     = 'AMT30'.
      L_F-SELTEXT_L     = '30 DAYS'.
      L_F-REPTEXT_DDIC  = '30 DAYS'.
      L_F-REF_TABNAME   = 'PTAB'.
      L_F-SP_GROUP      = 'A'.
      L_F-REF_TABNAME   = 'BSIS'.
      L_F-REF_FIELDNAME = 'WRBTR'.
      L_F-DO_SUM        = 'X'.
      APPEND L_F. CLEAR L_F.
      L_F-FIELDNAME     = 'AMT60'.
      L_F-SELTEXT_L     = '60 DAYS'.
      L_F-REPTEXT_DDIC  = '60 DAYS'.
      L_F-REF_TABNAME   = 'PTAB'.
      L_F-SP_GROUP      = 'A'.
      L_F-REF_TABNAME   = 'BSIS'.
      L_F-REF_FIELDNAME = 'WRBTR'.
      L_F-DO_SUM        = 'X'.
      APPEND L_F. CLEAR L_F.
      L_F-FIELDNAME     = 'AMTPL'.
      L_F-SELTEXT_L     = '60+ DAYS'.
      L_F-REPTEXT_DDIC  = '60+ DAYS'.
      L_F-REF_TABNAME   = 'PTAB'.
      L_F-SP_GROUP      = 'A'.
      L_F-REF_TABNAME   = 'BSIS'.
      L_F-REF_FIELDNAME = 'WRBTR'.
      L_F-DO_SUM        = 'X'.
      APPEND L_F. CLEAR L_F.
      L_F-FIELDNAME     = 'TOTAL'.
      L_F-SELTEXT_L     = 'TOTAL'.
      L_F-REPTEXT_DDIC  = 'TOTAL'.
      L_F-REF_TABNAME   = 'PTAB'.
      L_F-SP_GROUP      = 'A'.
      L_F-REF_TABNAME   = 'BSIS'.
      L_F-REF_FIELDNAME = 'WRBTR'.
      L_F-DO_SUM        = 'X'.
      APPEND L_F. CLEAR L_F.
    ENDFORM.
          FORM MAIN_SELECT                                              *
    FORM MAIN_SELECT.
      SELECT HKONT ZUONR BUDAT SHKZG DMBTR PRCTR
           INTO TABLE RTAB
           FROM BSIS
           WHERE BUKRS = COMPANY
           AND   HKONT = ACCT.
      IF SY-SUBRC = 0.
        SORT RTAB.
        PERFORM PROCESS_RTAB.
        PERFORM PROCESS_WTAB.
      ENDIF.
    ENDFORM.                    " MAIN SELECT
          FORM VARIANT_INPUTHELP_F14                                    *
    FORM VARIANT_INPUTHELP_F14.
      DATA:  G_EXIT(1) TYPE C.
      CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
           EXPORTING
                IS_VARIANT          = G_VARIANT
                I_SAVE              = 'A'  " g_save
              it_default_fieldcat =
           IMPORTING
                E_EXIT              = G_EXIT
                ES_VARIANT          = GX_VARIANT
           EXCEPTIONS
                NOT_FOUND = 2.
      IF SY-SUBRC = 2.
        MESSAGE ID SY-MSGID TYPE 'S'      NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ELSE.
        IF G_EXIT = SPACE.
          P_VARI = GX_VARIANT-VARIANT.
        ENDIF.
      ENDIF.
    ENDFORM.
          FORM USER_COMMAND                                             *
    -->  UCOMM                                                         *
    -->  SELFIELD                                                      *
    FORM USER_COMMAND USING UCOMM LIKE SY-UCOMM SELFIELD TYPE
    SLIS_SELFIELD.
      IF UCOMM EQ '&IC1'.
        IF SELFIELD-TABINDEX <= 0.
          MESSAGE S108.
          EXIT.
        ENDIF.
      IF SELFIELD-SEL_TAB_FIELD CS 'LIFNR'.
        SET PARAMETER ID 'LIF' FIELD SELFIELD-VALUE.
        CALL TRANSACTION 'XK02'.
      ELSE.
        IF SELFIELD-SEL_TAB_FIELD CS 'VEND'.
          SET PARAMETER ID 'LIF' FIELD SELFIELD-VALUE.
          CALL TRANSACTION 'FBL1'.
        ENDIF.
      ENDIF.
        CLEAR SY-UCOMM. CLEAR UCOMM.
      ENDIF.
    ENDFORM.
          FORM TOP_OF_PAGE                                              *
    FORM TOP_OF_PAGE.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
           EXPORTING
                IT_LIST_COMMENTARY = LT_TOP_OF_PAGE.
    ENDFORM.
          FORM EVENTTAB_AUFBAUEN                                        *
    -->  P_T_EVENTS                                                    *
    FORM EVENTTAB_AUFBAUEN USING P_T_EVENTS TYPE SLIS_T_EVENT.
      DATA: LS_EVENT TYPE SLIS_ALV_EVENT.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
           EXPORTING
                I_LIST_TYPE = 0
           IMPORTING
                ET_EVENTS   = P_T_EVENTS.
      READ TABLE P_T_EVENTS WITH KEY NAME = SLIS_EV_TOP_OF_PAGE
                                                     INTO LS_EVENT.
      IF SY-SUBRC = 0.
        MOVE FORMNAME_TOP_OF_PAGE TO LS_EVENT-FORM.
        APPEND LS_EVENT TO P_T_EVENTS.
      ENDIF.
    ENDFORM.                               " EVENTTAB_AUFBAUEN
          FORM PAI_OF_SELECTION_SCREEN                                  *
    FORM PAI_OF_SELECTION_SCREEN.
      IF NOT P_VARI IS INITIAL.
        MOVE G_VARIANT TO GX_VARIANT.
        MOVE P_VARI TO GX_VARIANT-VARIANT.
        CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE'
             EXPORTING
                  I_SAVE     = 'A'  " g_save
             CHANGING
                  CS_VARIANT = GX_VARIANT.
        G_VARIANT = GX_VARIANT.
      ELSE.
        PERFORM VARIANT_INIT.
      ENDIF.
    ENDFORM.                               " PAI_OF_SELECTION_SCREEN
          FORM VARIANT_INIT                                             *
    FORM VARIANT_INIT.
      CLEAR G_VARIANT.
      G_VARIANT-REPORT = 'ZFUS0102'.
    ENDFORM.                               " VARIANT_INIT
    *&      Form  PROCESS_RTAB
          text
    -->  p1        text
    <--  p2        text
    FORM PROCESS_RTAB.
      DATA TLNS TYPE I.
      DESCRIBE TABLE S_EKORG LINES TLNS.
      LOOP AT RTAB.
        IF TLNS GT 0.
          SELECT SINGLE EKORG FROM EKKO INTO EKKO-EKORG
            WHERE EBELN = RTAB-ZUONR(10).
          CHECK EKKO-EKORG IN S_EKORG.
        ENDIF.
        IF NOT RTAB-BUDAT > DATE.
          MOVE RTAB-ZUONR(2) TO WTAB-ZUONR.
          COMPUTE WTAB-DAYS = DATE - RTAB-BUDAT.
          IF RTAB-SHKZG = 'H'.
            WTAB-DMBTR = RTAB-DMBTR * -1.
          ELSE.
            WTAB-DMBTR = RTAB-DMBTR * 1.
          ENDIF.
          MOVE RTAB-PRCTR TO WTAB-PRCTR.
          APPEND WTAB.
        ENDIF.
      ENDLOOP.
      FREE RTAB.
    ENDFORM.                    " PROCESS_RTAB
    *&      Form  PROCESS_WTAB
          text
    -->  p1        text
    <--  p2        text
    FORM PROCESS_WTAB.
      SORT WTAB BY ZUONR PRCTR DAYS.
      LOOP AT WTAB.
        PTAB-ZUONR = WTAB-ZUONR.
        PTAB-PRCTR = WTAB-PRCTR.
        AT END OF DAYS.
          SUM.
          IF WTAB-DAYS > 60.
            WS-AMTPL = WS-AMTPL + WTAB-DMBTR.
          ELSE.
            IF WTAB-DAYS > 30.
              WS-AMT60 = WS-AMT60 + WTAB-DMBTR.
            ELSE.
              WS-AMT30 = WS-AMT30 + WTAB-DMBTR.
            ENDIF.
          ENDIF.
        ENDAT.
        AT END OF PRCTR.
          PTAB-AMTPL = WS-AMTPL.
          PTAB-AMT30 = WS-AMT30.
          PTAB-AMT60 = WS-AMT60.
          COMPUTE PTAB-TOTAL = PTAB-AMTPL + PTAB-AMT30 + PTAB-AMT60.
          APPEND PTAB.
          WS-AMTPL = 0.
          WS-AMT30 = 0.
          WS-AMT60 = 0.
        ENDAT.
      ENDLOOP.
      SORT PTAB BY ZUONR PRCTR.
    ENDFORM.                    " PROCESS_WTAB
    regards,
    Sindhu

  • Division wise Aging for Customers

    Hi,
    Can we take division wise ageing for customers and add the division field at the time of payment entry(F-28)?
    Thanks in advance

    Hi
    Use T code S_ALR_87012167. It depends on your organizational structure also
    Regards
    Sanil

  • XL REPORTER: Balance sheet by project code

    Dear all,
    I am trying to use XL report to create BS report by project code (in columns).  I could get it to work 90%.  I am now stuck at the point where i need to separately show the amount when there's no project code assigned.  When i use column expandsion on the project code, I could get all data (with project codes) to show up nicely. But I couldn't get a separtely column shown NULL project code.  Can anyone provide some advice on this issue?

    Hi,Alan Chan.
    you can put column  ALL Posted Items it will display (Null
    Project+Project)  Amount next as you said Column wise All
    Projects amounts.
    Ex.
    *G/L A/C Name** All Posted Items Project A Project B Project........
    Above you metioned Null Projects means you are not choosing
    Project when you are raising JE Documents that's right ? you
    will take Document Series wise.
    Reads,
    sampath kumar devunuri.

  • Supplier Wise Aging Report As of Date

    Hi,
    We are on 12.1.3
    I have wrote a query to find the Supplier Wise Aging Report .But it is not working for back date i.e if we applied Amount 1000  today, in report patameter if a pass the value from to yesterday date - report should display sum of all aging. If we gave till today.. the value should be 1000 less
    My Query:
    SELECT   yy.vendor_name, yy.vendor_id vendor_num, yy.segment1,
             yy.SUM remaining_advance_amount, yy.less30, yy.greater30,
             yy.greater60, yy.greater90, yy.greater120
    --         (SELECT COUNT (1)
    --            FROM ap_invoices_all aia
    --           WHERE aia.cancelled_date IS NULL
    --             AND aia.vendor_id = yy.vendor_id
    --             AND TRUNC (aia.invoice_date) BETWEEN :p_from_date AND :p_to_date
    --             AND aia.amount_paid <> aia.invoice_amount) out_stnd_bill,
    --         (SELECT SUM (NVL (apd.prepay_amount_remaining, 0))
    --            FROM ap_invoices_all aib,
    --                 ap_invoice_distributions_all apd
    --           WHERE aib.cancelled_date IS NULL
    --             AND aib.vendor_id = yy.vendor_id
    --             AND aib.invoice_id = apd.invoice_id
    --             AND apd.reversal_flag = 'N'
    --             AND TRUNC (aib.invoice_date) BETWEEN :p_from_date AND :p_to_date
    --             AND aib.invoice_type_lookup_code = 'PREPAYMENT') on_ac_amount
    FROM     (SELECT   xx.vendor_name, xx.vendor_id, xx.segment1,
                       SUM (NVL (xx.less_30, 0)) less30,
                       SUM (NVL (xx.greater_30, 0)) greater30,
                       SUM (NVL (xx.greater_60, 0)) greater60,
                       SUM (NVL (xx.greater_90, 0)) greater90,
                       SUM (NVL (xx.greater_120, 0)) greater120,
                       (  SUM (NVL (xx.less_30, 0))
                        + SUM (NVL (xx.greater_30, 0))
                        + SUM (NVL (xx.greater_60, 0))
                        + SUM (NVL (xx.greater_90, 0))
                        + SUM (NVL (xx.greater_120, 0))
                       ) SUM
                  FROM (SELECT   c.vendor_name, c.vendor_id, c.segment1,
                                 (CASE
                                     WHEN ((SYSDATE) - TRUNC (b.invoice_date) <=
                                                                                30
                                        THEN NVL ((  NVL (b.invoice_amount, 0)
                                                   - NVL (b.prepay_amount_applied,
                                                          0
                                                  0
                                     ELSE 0
                                  END
                                 ) less_30,
                                 (CASE
                                     WHEN ((SYSDATE) - TRUNC (b.invoice_date)
                                              BETWEEN 31
                                                  AND 60
                                        THEN NVL ((  NVL (b.invoice_amount, 0)
                                                   - NVL (b.prepay_amount_applied,
                                                          0
                                                  0
                                     ELSE 0
                                  END
                                 ) greater_30,
                                 (CASE
                                     WHEN ((SYSDATE) - TRUNC (b.invoice_date)
                                              BETWEEN 61
                                                  AND 90
                                        THEN NVL ((  NVL (b.invoice_amount, 0)
                                                   - NVL (b.prepay_amount_applied,
                                                          0
                                                  0
                                     ELSE 0
                                  END
                                 ) greater_60,
                                 (CASE
                                     WHEN ((SYSDATE) - TRUNC (b.invoice_date)
                                              BETWEEN 91
                                                  AND 120
                                        THEN NVL ((  NVL (b.invoice_amount, 0)
                                                   - NVL (b.prepay_amount_applied,
                                                          0
                                                  0
                                     ELSE 0
                                  END
                                 ) greater_90,
                                 (CASE
                                     WHEN ((SYSDATE) - TRUNC (b.invoice_date) >
                                                                               120
                                        THEN NVL ((  NVL (b.invoice_amount, 0)
                                                   - NVL (b.prepay_amount_applied,
                                                          0
                                                  0
                                     ELSE 0
                                  END
                                 ) greater_120
                            FROM ap_payment_schedules_all a,
                                 ap_invoices_v b,
                                 po_vendors c
                           WHERE a.invoice_id = b.invoice_id
                             AND b.vendor_id = c.vendor_id
                             AND b.invoice_type_lookup_code = 'PREPAYMENT'
                             -- AND a.amount_remaining <> 0
                             AND TRUNC (b.invoice_date) BETWEEN :p_from_date
                                                            AND :p_to_date
                             AND b.cancelled_date IS NULL
                        --AND c.segment1 = 837
                        ORDER BY c.vendor_name) xx
              GROUP BY xx.vendor_name, xx.vendor_id, xx.segment1) yy
    ORDER BY yy.vendor_name;

    Hi Octavio,
    As per this note 1290116.1.
    There is no replacement for this table
    Thanks
    Vishwa

  • Error while approving change document(TR lost project code)

    Hi All,
    I am having issue in change document approval, when we are approving change document for unit testing or if release management approving change for pre-production or production approval, we are getting error, I started coming from last two days only,\
    when I did detail analysis,  in all transports project code related to change document, disappear
    although if I create new change document, project code appear,
    Do we have  way to solve this issue?, I even not able to decouple the transport from change document, it giving error, do we have way where we can resync change document and transport?
    Dinesh

    Hi All,
    Do anyone have some solution for this issue?, it  is bigger than I thought, I can check it impacted all systems, and all transports,  all transports seems to issue they lost project code in it we rollover maintenance cycle last week and this problem started from their, we put charm master note and few other charm fixes(notes) last week,
    this problem not coming any new change document, but all change document created before rollover impacted
    Dinesh

  • Error while "Project Code Generation" in Entity service

    Hi SDN's,
    I have created an entity service which is the help documentaion of NWDS. After completion of all steps while generating project code i am getting an error called "AbstractStringBuffer not reachable"
    Can any body help me in solving this issue.
    Thanks in advance

    Hi Raju,
    it seems like you have a version problem, try to use jdk 1.4 or higher and try.
    Or go to
    Prefrences --> Java --> Installed JRE's here change the Jdk to the latest,compatable version
    Sometimes reinstallation also solves such problems.
    Award pts if help full
    Cheers
    Souza

  • How to Make Project Code as Mandatory

    Hi ! I Need Project code as mandatory in Po's and Sales Order in Row Level. How to Make that one. Also i have a issue with approved PO's. If some PO got approved is there any option to make amendment and resend for again approval.
    Thanks and Regards
    Kamal

    Hi Kamal.......
    Try this below SP for making project Code Mandatory........
    For Sales Order:
    If @object_type='17' and @transaction_type='A'
    BEGIN
    If Exists (Select T0.DocEntry from ORDR T0 Inner Join RDR1 T1
    On T0.DocEntry=T1.DocEntry
    Where T1.Project Is Null
    And T0.DocEntry = @list_of_cols_val_tab_del)
    BEGIN
    Select @error = -1,
    @error_message = 'Please select Project'
    End
    End
    For Purchase Order:
    If @object_type='22' and @transaction_type='A'
    BEGIN
    If Exists (Select T0.DocEntry from OPOR T0 Inner Join POR1 T1
    On T0.DocEntry=T1.DocEntry
    Where T1.Project Is Null
    And T0.DocEntry = @list_of_cols_val_tab_del)
    BEGIN
    Select @error = -1,
    @error_message = 'Please select Project'
    End
    End
    If your PO is approved and you want to ammend it then your approver has to reject the PO first and it will come to you and then make edition and send it again......
    Regards,
    Rahul

  • F.01 Balance Sheet-Report to see in company code wise

    Hi Experts
    Goodevening
    We are recently upgraded to ECC.6 version of SAP.
    The issue is, when we use Tcode F.01 relating to Balance Sheet Report it is giving the result in Business Area Wise of all the assets and liabilities.
    Is there any possiblility to see the report in company code wise and not the business area wise. since the same asset is displayed in different business area wise.
    eg.,
    21100/1011004  Gross Block - Intangible assets  647,080.00
    21100/1011004 Gross Block - Intangible assets    22,048.00
    21100/1011004 Gross Block - Intangible assets  2,847,283.25
    21100/1011004 Gross Block - Intangible assets 92,040.00 21100/1011005 Gross Block - Plant And Machin75,258,226.67 21100/1011005 Gross Block - Plant And Machin   216,968.87     
              the problem is like above
    now we want to see the report in lumsum, without business area wise.
    pls suggest me how to get the report
    thanks in advance
    warm regards
    kishore

    Dear Kishore,
    While executing in F.01 give all parameters without Business Area and Execute
    Apart from that if you need to additional thing go through dynamic selection in F.01.
    Assign point.........thanks in Advance.
    Rgds
    Madhuri

  • Cannot assign Project Code to GST Tax Code

    Hi all
    With reference to SAP Message 389302, SAP has acknowledged the following limitation.
    We would like to feedback to SAP Development team for correction of such limitation so that there is an option to assign Project Code to GST Tax Code in AP Transaction. 
    Our Client is not able to assign Project Code to Input GST Recoverable in AP Invoice transaction posted to General Ledger.
    Currently, we are able to assign Project Code to the GL account for expense and AP Vendor so it will Dr Expense with Project Code Cr AP Creditor with Project Code but there is no way for us to assign Project Code to GST Code in AP transaction.
    This is very incomplete and User has to make extra
    effort to assign Project Code that is missing in Journal Entry created in from AP Invoice transaction with GST for printing the Balance Sheet by Project Code.
    Kedalene Chong

    Jac,
    Another issue is cost center or profit center. It must also be assigned in th journal entry.
    Rgds,

Maybe you are looking for

  • Clarification on Master - Detail events usage on OBIEE 11g dashoards

    Hi , Can Master - Detail events feature be used within two different analysis on dashboard ? If yes , please let me know how . If no , are there any alternatives for the below requirement : 1. I have a pivot table consisting of one dimension hierarch

  • Connection pooling with SQL Server 2008 and Tomcat 6.0

    Hello Everybody, I'm creating a web application using struts 2.0 , tomcat 6.0 and sql server 2008. Everything works fine but i'm unable to create connection pooling with sql server 2008.Please help me to solve this issue. Code for this is as foolows:

  • How to create and save a file in flex web application ?

    Hi,       I want to create and save a file form flex web application. Is it possible ? I have done some googling and found that its only possible through file referece, which needs some serverside implementation be called. Is it not possible with fil

  • Example of elements and JText components use sought

    In reading documentation of Swing document classes I continually see references to the use of elements. Many classes have methods that involve elements, e.g. DefaultStyledDocument.getParagraphElement(). However, I have not found any documentation tha

  • Leopard and snow leopard

    I just wonder if one day, perhaps next year (?), when OS X 10.5.6 will be replaced totally by a a new version, will 10.5.x still be serviceable or will I need to get the latest version in order for my notebook to still be usable??