Add additional join to a PLD report

Hi.  I would like to print the address for the father card on the AR invoice.  To do this I need to add an additional join to the ocrd table.  Can you add an additional join in PLD reports or do I need to recreate this in Crystal?
Thanks!
Serena Cyr

Hi.  Thanks so much for your response.  The problem is I'm trying to display the ship to address for the customer which is how the joins are already setup to the ocrd table.  I'm trying to display the bill to address for the consolidated business problem.  This is where the problem is.  Can I create an additional reference to the ocrd table with a different join to the fathercard instead of the business partner in PLD or do I need to recreate this report in Crystal?
Thanks!
Serena

Similar Messages

  • How to add additional field to the existing report

    hi,
    report name is RHXPE_EXPIRED_QUALI
    if u execute report alv list is genereted with like this.
    object type, id of related object, object name, object type, id of related object,last name, first name like this
    where can i get these field descriptios in the prigram becoz many perform ststements r there. i want to add additional field text.
    program is:
    CORRECTIONS
    DATE       CORRECTION NOTE    AUTHOR DESCRIPTION
    09.03.2001            0388404 XSC    Wrong list output for multiple Os
    05.06.2001 AL0K023393 0410219 Lud    Wrong keydate for search with
                                         Pchbegda and pchendda.
    30.01.2002 S6BK000033 0491055 TS     Report: RHXPE_EXPIRED_QUALI
                                         doesn't provide a spool list.
    REPORT rhpk_find_pers_with_expired_qu MESSAGE-ID pq.
    TABLES : pchdy.
    INCLUDES
    INCLUDE rhxmacro.
    INCLUDE rhpeini0.
    TABLES
    DATA: objects  LIKE hrsobid    OCCURS 1 WITH HEADER LINE.
    VARIABLES
    DATA: subrc LIKE sy-subrc.
    DATA: orgeh_text LIKE t777o-otext.
    SELECTION SCREEN
    objid
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    PARAMETERS:
       pchplvar LIKE p1000-plvar NO-DISPLAY,    "plan version
       pchotype LIKE pchdy-otype NO-DISPLAY. "objecttype
    Objid
    rhx-f4-objid-data.
    SELECT-OPTIONS:  pchobjid FOR pchdy-objid_str NO INTERVALS.
    Search
    PARAMETERS:
      pchseark LIKE pchdy-seark.           "matchcode object plom.
    SELECTION-SCREEN END OF BLOCK b1.
    Objecttime
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-001.
    PARAMETERS: se_begd LIKE  p1000-begda DEFAULT sy-datum,  "'19000101',
                se_endd LIKE  p1000-endda DEFAULT high_date.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-005.
    PARAMETERS:
       h_events LIKE dynp_rhpp-gen_train,  "with training sugg
       h_qual LIKE dynp_rhpp-expired_qual. "with Qual
    SELECTION-SCREEN END OF BLOCK b3.
    AT SELECTION-SCREEN ON pchobjid.
      PERFORM check_objid_sign(rhxchk00) USING pchobjid-sign.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR pchobjid-low.
      rhx-f4-objid-low pchplvar pchotype pchobjid '' ''.
    AT SELECTION-SCREEN.
      PERFORM check_plvar(rhxchk00) USING pchplvar.
      PERFORM check_seark(rhxchk00) TABLES pchobjid
                                    USING  pchseark pchplvar pchotype.
    INITIALIZATION
    INITIALIZATION.
      PERFORM read_t77s0_parameters_for_pe.
    get user parameters/Planvariante und Beginndatum setzen:
      pchotype = $orgeh.
      CALL FUNCTION 'RHP0_USER_PARAMETERS_GET'
           EXPORTING
                fill_if_initial = 'X'
           IMPORTING
                plvar           = pchplvar
                begda           = se_begd
                endda           = se_endd
              with_key        =
              SUBSTITUTE      =
              ESSENTIAL       = only_essential
                org_unit        = pchobjid-low
          EXCEPTIONS
                OTHERS     = 0.
    SE_BEGD = LOW_DATE.   "Correction AL0K023393 0410219
      IF NOT pchobjid-low IS INITIAL.
        pchobjid-sign   = 'I'.
        pchobjid-option = 'EQ'.
        APPEND pchobjid.
      ENDIF.
    START-OF-SELECTION
    START-OF-SELECTION.
    correction 0491055
    correction was done for getting a spool list in background-processing.
      CASE sy-batch.
        WHEN space.
          SUBMIT rhpe_expired_quali
               WITH pchplvar = pchplvar
               WITH pchotype = pchotype
               WITH pchobjid IN pchobjid
               WITH pchbegda = se_begd
               WITH pchendda = se_endd
               WITH h_qual = h_qual
               WITH h_events = h_events
                      AND RETURN.
        WHEN 'X'.
          SUBMIT rhpe_expired_quali
               WITH pchplvar = pchplvar
               WITH pchotype = pchotype
               WITH pchobjid IN pchobjid
               WITH pchbegda = se_begd
               WITH pchendda = se_endd
               WITH h_qual = h_qual
               WITH h_events = h_events
                      TO SAP-SPOOL.
      ENDCASE.
    END-OF-SELECTION
    END-OF-SELECTION.

    Hi,
    I think you need to show more programs.
    you said, the report program is 'RHXPE_EXPIRED_QUALI', but you upload  'rhpk_find_pers_with_expired_qu' program.
    usually, ALV field is modifyed in 'PERFORM fieldcatalog_modify', if you use Functional ALV.
    Try to search 'fieldcatalog function', you will find easy.
    Regard,
    SY Kim

  • How to add Additional fields in standard SAP Report RMCLOBJVN ,TCODE CL6BN

    i am facing problem in Report RMclobjvn , TCODE is CL6BN
    i have to add some additional fields on the result screen.
    but when i search inside the report i could not retrieve any user exits but through a search utility i got 4 user exits of which 2 seem to be useful.these are
    <b>Exit name
    CLCLRS01  Additional Fields on the Result Screen
    CLCLRS02  Fill the Additional Fields on the Result Screen</b>
    i activated the these exits and have tried putting in break point in side the include.
    But the problem is this that
    [<b>b]that CL6BN Tcode is not triggering anyhow these userexits.</b></b>
    does anyone has any solution for adding the additional fields.

    Hai Manish
    Check the following Links
    You can do it in two ways using append structure or include structure of that standard table.
    once you added , you need to adjust it and activate using the menu utilities->data base utulity-> Activate and Adjust .
    check this SAP help..
    for append structure
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eb61446011d189700000e8322d00/frameset.htm
    for include structure.
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eb54446011d189700000e8322d00/content.htm
    Regards
    Sreeni

  • How to add additional fields to zreport which contains standard report code

    Hi Experts,
    In order to add additional fields to standard report i copied the code into zreport but i am unable to  add additonal field into report because the code is looking so complex.
    standard report:AQZZ/SAPQUERY/FKF1============
         or
    sapmenu->accounting->financial accounting->accounts payable->information system->reports for accounts payable accounting->master data->S_ALR_87012087-Addresslist.
    Additional feilds to add is :Region,company code,country
    Please let me know how toidentify ALV and guide me how to solve this.
    Regards,
    naresh.

    Hello Naresh,
    First check whether these three fields are available in the text elements area.
    Please write your code in the subroutine %comp_ldesc.
    Repeat the code for your three new fields
    perform ldesc(rsaqexce) using 'G00010000X010       00  A1'
        %txt1 %txt2 %txt3 'LFA1-LIFNR' LFA1-LIFNR 'LFA1-LIFNR'.
      read table %textpool_langu into %textpool_langu_line
                                 with key ID = 'I' key = 'A01'.
      if sy-subrc is initial. %txt1 = %textpool_langu_line-entry.
      else. %txt1 = %txt_unknown.
      endif.
    So this subroutine will give you the basic list. Now Program is creating ALV with this basic list. So I think you don't need to worry about that. Please have a thorugh look at the code over this perform, and write accordingly.
    I think this is enoogh.
    Please update if you got the solution, which will be informative for others.
    regards,
    Antony Thomas
    Edited by: Antony Thomas on Jul 27, 2010 7:57 AM

  • Add additional table in Outgoing payment PLD.

    Dear Expert,
    Can i know how to add additional table which is VPM4 to my Outgoing payment PLD to show out the Bank GL account number? In original outgoing payment PLD does not have this table.
    Regards,
    Vivian

    The "system print layout templates" provided with SAP Business One can be "saved as" and users can customize them according to their company needs. Due to the database structure not all the tables can be related to any field in any template.
    You can bring additional table in to PLD by Using ALT + clicking on the "Table" field opens the entire list of tables, including the tables that do not appear by default.

  • How to add additional field into output table for RFIDYYWT(Generic Withholding Tax Reporting)

    Hi Experts,
    How to add additional field into output table VENDORS/WH TAX TYPES AND CODES in RFIDYYWT(Generic Withholding Tax Reporting).
    I have no idea how to start with, please give some advice.
    Thanks!
    Ice

    Dear Ice,
    Use Append structure, see given link:
    https://help.sap.com/saphelp_nw04s/helpdata/en/cf/21eb61446011d189700000e8322d00/content.htm
    Regards,
    Abbas.

  • Could not add a database field in the new PLD report..

    Hi All,
    Am working on a PLD report and am not able to add a Databse field on the Report.
    I want to add a new field on my Report which should fetch the Field Tax Amount from the table AR invoice tax amount per document....
    when i add the new database field the drop down for tables does not display the desired table....
    Can any one help me on this....
    Thanx in advance
    Manish Chaudhary

    Hello,
    here is some thread links relate to your problem :
    1. Detail of all tax codes and tax amounts in A/R Invoice PLD
    2. Calculate Tax breakup in PLD
    Rgds,

  • How to add additional field " SEGMENT" in the FBL5N Report

    Hello ,
    The Requirement is we need add the field " Segment" in the Report FBL5N.
    Could you please advice How to add the field " Segment" to the FBL5N Report.
    Thanx & Regards
    Ramesh

    Hi,
    try SAPNET note 373268.
    Best regards, Christian

  • Text type to PLD report ??

    Anyone know how to bring the information from the row text detail from the form to the PLD report? Cannot find the help anywhere.
    For example,
    I open the new Sale order and create as the following..
    Item1
    Item2
    Text
    Item3
    Text
    Item4
    When I print, it has shown
    Item1
    Item2
    (blank)
    Item3
    (blank)
    Item4
    I don't know why it did not show up and it's blank.. plz let me know if you have any idea to help.
    Edited by: MickeySAPB1 on Aug 12, 2011 5:13 PM

    Hi,
    You must add a DB type field in your PLD to retrieve the Text row.
    Just follow these steps:
    1. Add DB field into repetitive area of PLD
    2. Select the new field
    3. In the Field Properties form, select the Content tab
    4. Source Type: Database (should already be selected)
    5. Table: AR Invoices - Rows
    6. Column: Text - Text
    Save PLD and try it.
    Regards,
    Vítor

  • To add additonal rows(text)  in ALV report

    Hi there,
    I want to add additional ROWS at the bottom of each grouping.
    Right now I am getting customer wise total comission amount but the requirement is on commsion amt ,i need to calculate 10 % tax and 2% tax and these taxes should get genrated below the commsion amt column as like below:
    Company code Customer Commsion Amt
    2000 101 1000
    2000 101 2000
    Total Comsion 3000
    10% Service Tax 300
    2% Edn Tax 6
    Total 3306
    2000 102 1230
    2000 102 678
    The output should be like this in ALV report .Could anyone plz help me out on this.
    I will really appreciate your help.
    Thanks,

    Hi Archana,
    You can have the subtotal displayed for each company code and commision in the alv.
    At end of each  comp code and customer , pass the total of the whole amount into a line and you can display a line of this total. 
    Your alv gets displayed like this .
    2000 101 1000
    2000 101 2000
    Total Comsion 3000
    10% Service Tax 300
    2% Edn Tax 6
                            3306
    Thanks,
    Guru

  • Add custom query to standard PLD layout

    Hi Everybody,
    I need to change the standard Invoice PLD report, in order to include additional data that is
    kept in my UDO.
    Is it possible to define a custom query inside PLD to retrieve data from the UDO
    (the UDO is linked to the Invoice) and show it in the Invoice layout?
    Thanks all,
    Manuel Dias

    Hi Manuel,
    One workaround you can try is to use UDF and formatted search to retrive the info on the invoice screen and then directly display it on the invoice PLD.
    Hope it helps.
    Regards,
    Hamsa

  • Add Additional Attributes/Metadata to a Question to Enable Deeper Segmentation Analysis?

    In Captivate, is it possible to add additional attributes/metadata to a quiz question, to allow for more flexible and effective reporting?  For example, I want to categorize questions in two different buckets: Difficulty (Easy, Medium and Difficult) and Concept/Subject (Math, Verbal and Science etc..).
    That way, I can analyze a students performance by not only their aggregate score, but also where their strenghts and weaknesses lie - if I see that a student is struggling with all Easy Math questions, I'll know what to focus on during our next lesson?
    Any assistance would be much appreciated.

    Hi,
    We can create Question Pools with Questions of different difficulty level called directly to the slides.
    But this would not give the advantage on LMS end, this would simply filter questions and would present them in the order you like, attaching meta data to a specific question would not be possible from Captivate, neither would you be able to call it on LMS report directly. You can assign a unique Interaction ID to each question item though capture the questions corresponding to the ids. If you LMS can refine the resuklts based upon the pre-assigned id, that should be great.
    Meanwhile, this would be in a different line, but have you checked the pre-test quiz, can that fit somehow, in you requirements?
    http://help.adobe.com/en_US/captivate/cp/using/WS6029a80579ffffcd5a87e66f135bd55f8cc-7ffc. html
    Thanks,
    Anjaneai

  • Add additional selection fields to RPUAUD00- Logged changes in infotype rpt

    Hi,
    I'am trying to add additional selection fields to Logged changes in infotype  report and was wondering if this can be done through customization instead of creating a copy of the std report to add the additional fields?
    Thanks

    Hi Ajay, The requirement is to add fields like personnel subarea, op code for reporting purposes.
    Thanks

  • Setting system variable in the Detailed Aging PLD report

    Does anyone know which variable I can use to get the FC value displayed on the Aged Debtors PLD detailed form?
    The current aging layout (in SBO) either shows it all in LC or in the currency you choose, but if you have a Business Partner who trades in different currencies and you have invoices raised in those different currencies you cannot see the value for each currency seperately, which is causing some distress.
    I was hoping that by some miraculous twist of fate I can include the FC value in the PLD report thereby saving the hassle of having to re-write the report. (I have checked the System Variable Excel spreadsheet but cannot find it in there.)
    Many thanks
    Hayden

    Hi Julie
    I wondered if you are able to help me get the foreign currency Code and Value into this query you did from a previous post.
    I'm getting odd results and I cant work out where I'm going wrong
    Many thanks
    Hayden
    /* SELECT FROM OINV T0 / declare @AgingDate DateTime / WHERE */ SELECT @AgingDate = GetDate()
    /* SELECT FROM OCRD T1 / declare @CustomerFrom nvarchar(20) / WHERE */ set @CustomerFrom  = ''
    /* SELECT FROM OCRD T2 / declare @CustomerTo nvarchar(20) / WHERE */ set @CustomerTo = ''
    /* SELECT FROM OCRD T3 / declare @OnHold nvarchar(20) / WHERE */ set @OnHold = 'N'
    /* SELECT FROM OSLP T4 / declare @SalesRep nvarchar(30) / WHERE */ set @SalesRep = ''
    IF @AgingDate = CONVERT(datetime, '', 112) set @AgingDate = GetDate()
    select
         JD.FCCurrency [Foreign Currency],
         ocrd.CardCode [BP Code],
         ocrd.CardName [BP Name],
         ocrd.FrozenFor [On Hold],
         @AgingDate [Aging Date],
         isnull(T7.[BalanceDue],0) [Balance],
         isnull(T7.[Current],0) [Current],
         isnull(T7.[30Days],0) [1 Month],
         isnull(T7.[60Days],0) [2 Months],
         isnull(T7.[90Days],0) [3+ Months],
         ocrd.CreateDate,
         T8.[Last Payment Date],
              (SELECT
                   SUM(T1.DocTotal)
              FROM ORCT T1
              WHERE T1.CardCode = T8.CardCode AND
                        T1.DocDate = T8.[Last Payment Date]) [Total Last Payment],
         oslp.SlpName [Sales Rep],
         ocrd.CntctPrsn [Key Contact],
         ISNULL(ocpr.Tel1, ISNULL(ocpr.Cellolar, ocrd.Phone1)) [Contact Phone]
    from ocrd left outer join
         ocpr on ocpr.Name = ocrd.CntctPrsn and
         ocpr.CardCode = ocrd.CardCode left outer join
         oslp on oslp.SlpCode = ocrd.SlpCode left outer join
              SELECT
                   T0.CardCode,
                   SUM(T1.Original-T1.Cleared) [BalanceDue],
                   SUM(CASE
                             WHEN T1.AgeDays < 0 THEN T1.Original+T1.Cleared
                             ELSE 0
                        END) [Current],
                   SUM(CASE
                             WHEN T1.AgeDays BETWEEN 0 AND 30 THEN T1.Original+T1.Cleared
                             ELSE 0
                        END) [30Days],
                   SUM(CASE
                             WHEN T1.AgeDays BETWEEN 31 AND 60 THEN T1.Original+T1.Cleared
                             ELSE 0
                        END) [60Days],
                   SUM(CASE
                             WHEN T1.AgeDays > 60 THEN T1.Original+T1.Cleared
                             ELSE 0
                        END) [90Days],
                   SUM(CASE
                             WHEN T1.AgeDays > 30 THEN T1.Original+T1.Cleared
                             ELSE 0
                        END) [Overdue]
              FROM ocrd T0 LEFT OUTER JOIN
                   (SELECT
                        T1.CardCode,
                        T0.TransId,
                        T0.Line_ID,
                        DateDiff(m, T0.DueDate, @AgingDate) [AgeMonths],
                        DateDiff(d, T0.DueDate, @AgingDate) [AgeDays],
                        --Get standar Debit/Credit Col OR FCCredit/FCDebit columns for
                        --caluculations in outer query
                        ( CASE WHEN T0.FCCurrency IS NULL THEN T0.Debit Else T0.FCDebit END )
                        ( CASE WHEN T0.FCCurrency IS NULL THEN T0.Credit Else T0.FCCredit END ) [Original],
                        --T0.Debit-T0.Credit [Original],
                        SUM(ISNULL(T2.ReconSum,0)*     CASE T2.IsCredit WHEN N'C' THEN 1 ELSE -1 END) [Cleared],
                             ( CASE WHEN T0.FCCurrency IS NULL THEN T0.Debit Else T0.FCDebit END )
                             ( CASE WHEN T0.FCCurrency IS NULL THEN T0.Credit Else T0.FCCredit END )
                        + SUM(ISNULL(T2.ReconSum,0)* CASE T2.IsCredit WHEN N'C' THEN 1 ELSE -1 END) [Balance]
                        --(T0.Debit-T0.Credit) + SUM(ISNULL(T2.ReconSum,0)* CASE T2.IsCredit WHEN N'C' THEN 1 ELSE -1 END) [Balance]
                   FROM jdt1 T0 inner join
                        ocrd T1 on T1.CardCode = T0.ShortName left outer join
                        itr1 T2 on T2.TransId = T0.TransId and
                        T2.TransRowId = T0.Line_ID and
                        T2.ReconNum = (     select
                                                 T3.ReconNum
                                            from oitr T3
                                            where     T3.ReconNum = T2.ReconNum and
                                                      T3.Canceled = N'N' and
                                                      T3.ReconType = 7 and
                                                      T3.ReconDate <= @AgingDate)
                   WHERE     T0.RefDate <= @AgingDate and
                             T1.CardType = 'C' and
                             (T1.CardCode >= @CustomerFrom OR @CustomerFrom = '') and
                             (T1.CardCode <= @CustomerTo OR @CustomerTo = '')
                   GROUP BY T1.CardCode, T0.TransId, T0.Line_ID, T0.DueDate, T0.Debit, T0.FCDebit, T0.Credit, T0.FCCredit, T0.FCCurrency
    --                    ( CASE WHEN T0.FCCurrency IS NULL THEN T0.Debit Else T0.FCDebit END )
    --                    ( CASE WHEN T0.FCCurrency IS NULL THEN T0.Credit Else T0.FCCredit END ), T0.FCCurrency
                        --T0.Debit-T0.Credit
                   ) T1 on T1.CardCode = T0.CardCode
              WHERE T0.CardType = N'C'
              GROUP BY T0.CardCode ) T7 on T7.CardCode = ocrd.CardCode left outer join
                   (SELECT
                        T1.CardCode,
                        Max(T1.DocDate) [Last Payment Date]
                   FROM ORCT T1
                   WHERE     (T1.CardCode >= @CustomerFrom OR @CustomerFrom = '') and
                             (T1.CardCode <= @CustomerTo OR @CustomerTo = '')
                   GROUP BY T1.CardCode ) T8 on T8.CardCode = ocrd.CardCode
    --put this join to get the
    --currency symbol from Journal Row table
    Left Outer join JDT1 JD On OCRD.CardCode = JD.ShortName
    where ocrd.CardType = 'C' and
         --(oslp.SlpName = @SalesRep OR @SalesRep = '') and
         (ocrd.CardCode >= @CustomerFrom OR @CustomerFrom = '') and
         (ocrd.CardCode <= @CustomerTo OR @CustomerTo = '') and
         (ocrd.ValidFor <>'Y') and
         ( (ocrd.FrozenFor = @OnHold and (GetDate() Between isnull(ocrd.FrozenFrom, DateAdd(d,-1,GetDate())) and isnull(ocrd.FrozenTo, DateAdd(d,1,GetDate())))))
    order by ocrd.CardCode

  • Add PO Number to Account Analysis Report in R12

    Hi Guys,
    I have a requirement to Add PO Number to Account Analysis report under sub ledger Accounting application in R12.
    Could you please help, if this requirement is feasible and what are the joins require for it.
    As per my knowledge it goes like xla_transactions-> AP_invoices_all then to PO_headers_all.
    Is there any other alternative for this.
    Quick response will highly be appreciated.
    Thanks

    You can't go from ap_invoices_all to po_headers_all.
    You will have to go from ap_invoice_distributions_all to po_distributions_all using the po_distribution_id.
    And remember to perform an outer join because for some invoice distributions, you may not have a po.
    Hope this helps
    Sandeep Gandhi
    Independent Techno-functional Consultant

Maybe you are looking for

  • Won't load to desktop

    Problem: Old power mac G4 won't boot to the desktop. By default it loads OS X. When it loads the apple and the spinning thing under the apple load. Then OS X begins to load with the status bar and message. Right after the message "waiting for network

  • Will the iphone 5 be unlocked?

    Hi everyone, I'm just wondering if the soon-to-come-out Iphone 5 will be unlocked or will it be locked to each other the carriers (such as AT&T,Verizon, and sprint)? Because I have a t-mobile phone number, so i was just wondering if I it individually

  • Upgrade discount amount ?

    I am eligible for New Every Two and my upgrade discount is $50. I was talking to a buddy who is also eligible but gets $100 discount on the same exact phones.  WTH ?   They just give some people better deals than others ?   Not fair

  • Appearance of secured portlets in the page

    I have portlets that are secured by user_id all published in one page. When a user signs on, they see their portlets and blank lines for portlets that they do not have access to. Is their any way to avoid these balnk lines. Thanks Valli

  • Issue regarding ck11n

    Hi guru: When I create material cost estimte for finish goods XXX,i encountered below issue: msgno 213 cost component structure z1 is not active             168 cost estimate for material 121 /plant 1000 is incorrect             240 cost component sp