Report table & field problem

Hi,
i created a report vendor aging report.
I have to add a field purchase organization at selection-screen and at output.
1)i picked the field ekorg and lifnr from lfm1 table.
2) I made same report but picked ekorg and lifnr from EKKO table.
the output is different. both the reports for same pruchase organization
showing some diffenent vendors. for same vendor the total is also coming different.
Please let me know which one is the correct method. i.e LFM1-ekorg or EKKO-ekorg
Thanks

Hi,
Since it is vendor aging report.. you need to p ick the data from LFM1.
Regards
Ansari

Similar Messages

  • Table field problem.

    Hi all,
        when i am using t5ub1 table it doesn't contain LTEXT field in that table fields list.when I see the list output of that table it is coming.actually i want to use that LTEXT field.How can i use that.

    Hi murugesh.
         thanks for reply.but the thing is in se11 when i use t5uba table i am giving BAREA =10 and
    PLTYP = medi.After execution the data is desplaying all the fields.In that output list there is field BPLAN.
    if we double click on that field output it is displaying some data.at the last of that screen after double clicking we can find LTEXT field.I want to take that field.How can i.can u give me suggession.

  • VAT Report - Tables, Fields &  Link

    Hi experts,
    I am new to ABAP, I need to develop report for VAT, The format is attached. but i don't know which table contains the TAX BASE AMT & VAT AMT and how to link the same.
    G/L ACCOUNT     DOCUMENT NO     POS DATE      AMOUNT     INVOICE     PO NUMBER     PO ITEM     PO QUANTITY     MATERIAL     MATERIAL DESC     VENDOR     VENDOR DESC     TIN NUMBER     TAXCODE     CLEAR DOCUMENT     CLEARED AMOUNT     CLEARED DATE     CHECK NO     CHECK NO
    Pl help
    Perumal.

    for vat related reports usually follwing table are used.
    bkpf
    BSET
    BSAK
    EKBE
    ekkn
    LFA1
    T001W
    bseg  " use this table if you have all the primary key.. other wise use.. BSID abd BSAD.
    i cannot give you the filds as ..it may change according to your requirment..
    check out this tabels.. you will get a general idea,,
    regards,
    safel

  • What is table field name for order status report  of rate per unit and  bal

    hi  i want to make FS for order status report i almost get all table and field but i don't get only two field  rate per unit and balance value  table field didn't get please help me searching in field and table
      i want to develop my status report

    Hi,
    Check tables VBAK and VBAP wherein you will get all header and item details.
    VBUK and VBUP for header and line item statuses.
    KONV would give you rates/pricing details for each condition type determines in the sales order.
    VBAK-KNUMV = KONV-KNUMV is how you relate both of them.
    Hope that helps.
    Regards,
    Amit

  • Table fields used for basic key figures in report writer/report painter

    Does anyone know how I can find which <u>table field</u> is actually being used for SAP defined <b>basic key figures</b> in report writer report? For example, <b>HSL</b> is a basic key figure for income statement, library 0F1, report 0F-GUVV. It only shows data is coming from table GLFUNCT. How does the report writer program knows which fields to select? What is the logic behind the basic key figures?
    Any advice is appreciated!!
    Minami

    I have now resolved this issue.
    I had to manually update TablesT804B and T804F. 
    I've added entries to T804A in the past without the need to update T804B or T804F manually so it appears that the way these tables work together has changed following an upgrade or application of support packs.
    Regards
    Mel

  • Table/field/report showing approver of payment run in F110

    After reviewing the payment proposal in F110, supervisor approves the Payment Run by clicking u201CStart immediatelyu201D in Schedule Payment pop-up. 
    For audit purposes, we need to view who approved specified payment runs.  Anyone knows the table, field, or report would contain that information? 
    Appreciate any help.

    They're a document that records when things get changed.  "Things" includes pretty much anything from material master to sales orders, hence "general".  
    But It isn't enabled by default for all tables, mainly for performance reasons. Is it enabled for the relevant REG.... table(s) in the data dictionary?  You might need to check with a basis guy or abapper.
    I'd say enabling it is simpler than modding the standard programs and tables, like by adding fields to REGUV.

  • Are Output of reports generated stored in tables & fields in SAP?

    Hi,
    If a report is generated or if a scheduled job is executed, is the output stored in SAP tables & fields or just displayed on the screen.
    Thank You...
    Nag.

    Hi Rajesh,
    You are right that, If posting happens, obviously the data is going to be stored in tables.
    I am not talking about posting. I want to know if the job is scheduled for report generation (where there is no posting involved) whether the result is stored in tables or not. After executing SM37, we will select the job and click Spool right. I am talking about the report result stored there.
    waiting for your reply...
    Thank you,
    Nag

  • What report will tell me which tables/fields are used in a transaction

    Hi
    I'm new to SAP, but was wondering how I can navigate the data dictionary so I can get a list of all the tables, fields and field details for all fields used in the following transactions: IW29, IW39 and IW49N.
    Thanks and take care,
    Shayne

    Hi,
    Welcome to SAP!
    There are two ways to find what are all the tables used in the program,
    1. Easy & Effective way is to use ST05 and do SQL Trace.
    2. Normally, when you want to see the corresponding code in the program related to database activities, then do this,
        Goto SE38 --> Put the report name (say RIQMEL20) -> Press F9 --> Select data base activities (SELECT, DELETE, MODIFY, INSERT). Click Ok. This will show all the program lines.
    Regards,
    Vamsi

  • Re: Problem in ALV reports using Field symbols

    Hi Friends,
    Can you tell me how to convert a normal report using field symbols into ALV report
    can ypu please suggest me any solutions.I am sending the code along with this mail.
    Regards,
    Dinesh
    <b>Coding:</b>
    *& Report  YSDBTEMP                                                    *
    REPORT  YSDBTEMP                                .
    tables: ekko , ekpo .
    TYPE-POOLS: SLIS.
    *Internal Table Declaration
    data: begin of line ,
          ebeln like ekko-ebeln , "Purchasing Document No.
          bedat like ekko-bedat , "Purchasing Document Date
          matnr like ekpo-matnr , "Material No.
          netwr like ekpo-netwr , "Net Order Value in PO Currancy
          meins like ekpo-meins , "UOM
          change like ekpo-menge ,
    end of line .
    *Internal table Declaration
    DATA: IT_final like table of line  with header line.
    DATA :  FIELDCATALOG TYPE SLIS_T_FIELDCAT_ALV with header line.
    DATA :  V_REPID TYPE SYREPID.
    DATA :  IT_LISTHEADER TYPE SLIS_T_LISTHEADER.
    data :  i_layout type slis_layout_alv .
    Header for Main Grid Display
    data:i_header1 type slis_t_listheader with header line.
    Header for Interactive Report Display
    data:i_header2 type slis_t_listheader with header line.
    *Field Symbol declaration.
    FIELD-SYMBOLS: <FS> type any table.
    **select option Declaration
    selection-screen begin of block block.
    select-options: s_ebeln for ekko-ebeln .
    selection-screen end of block block .
    start-of-selection.
      perform get_data.
      perform field_cat.
      perform layout using i_layout .
      perform grid_display .
    *&      Form  get_data
          text
    -->  p1        text
    <--  p2        text
    FORM get_data .
    SELECT EKKO~EBELN
      EKKO~BEDAT
      EKPO~EBELP
      EKPO~MATNR
      EKPO~NETWR
      EKPO~MEINS
      EKPO~MENGE
      EKPO~BPRME
      INTO CORRESPONDING FIELDS OF table IT_FINAL
      FROM EKKO INNER JOIN EKPO ON EKKOEBELN = EKPOEBELN
      WHERE EKKO~EBELN IN S_EBELN.
    ENDFORM.                    " get_data
    *&      Form  field_cat
          text
    -->  p1        text
    <--  p2        text
    FORM field_cat .
      fieldcatalog-fieldname = 'EBELN'.
      fieldcatalog-seltext_m = 'Purchase Order No'.
      fieldcatalog-col_pos = 1.
       append fieldcatalog .
      clear fieldcatalog.
      fieldcatalog-fieldname = 'BEDAT'.
      fieldcatalog-seltext_m = 'Purchasing Document Date'.
      fieldcatalog-col_pos = 2.
       append fieldcatalog .
      clear fieldcatalog.
      fieldcatalog-fieldname = 'MATNR'.
      fieldcatalog-seltext_m = 'Material No'.
      fieldcatalog-col_pos = 3.
       append fieldcatalog .
      clear fieldcatalog.
      fieldcatalog-fieldname = 'MATNR'.
      fieldcatalog-seltext_m = 'Net order'.
      fieldcatalog-col_pos = 4.
       append fieldcatalog .
      clear fieldcatalog.
    ENDFORM.                    " field_cat
    *&      Form  layout
          text
         -->P_I_LAYOUT  text
    FORM layout  USING    P_I_LAYOUT.
      i_layout-lights_tabname = 'IT_FINAL'.
      i_layout-box_tabname = 'IT_FINAL'.
    ENDFORM.                    " layout
    *&      Form  grid_display
          text
    -->  p1        text
    <--  p2        text
    FORM grid_display .
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
      I_CALLBACK_PROGRAM = SY-REPID
    I_CALLBACK_PF_STATUS_SET = 'SET_PO_PF_STATUS'
      I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
      IS_LAYOUT = I_LAYOUT
      IT_FIELDCAT = FIELDCATALOG[]
    *IT_EVENTS = I_EVENT[]
      TABLES
      t_outtab = <fs>.
    endform.

    Hi,
    This is one sample program,
    Check this.
    I hope it is helpful to you.
    TABLES : zeastable_02,zeastable_04.
    TYPE-POOLS : slis.
    TYPES : BEGIN OF fieldst,
            name LIKE zeastable_02-name,
            znum LIKE zeastable_02-znum,
            empno LIKE zeastable_04-empno,
            zempsalary LIKE zeastable_04-zempsalary,
            END OF fieldst.
    DATA itab TYPE TABLE OF fieldst WITH HEADER LINE.
    DATA: w_report_id  LIKE sy-repid.            "Program name
    DATA: w_title   TYPE lvc_title VALUE    'Assignment 1 in ALV'.
    DATA: w_layout   TYPE slis_layout_alv.      "Layout setup
    DATA: w_fieldcat TYPE slis_t_fieldcat_alv.  "Field Catlog
    START-OF-SELECTION.
      SELECT-OPTIONS employee FOR zeastable_04-empno.
    SELECT zeastable_02name  zeastable_02znum
           zeastable_04empno zeastable_04zempsalary
           INTO CORRESPONDING FIELDS OF TABLE itab FROM
           zeastable_02 INNER JOIN zeastable_04 ON
           zeastable_02name = zeastable_04name
           WHERE  zeastable_04~empno IN employee.
    w_report_id = sy-repid.
    PERFORM i_layout CHANGING w_layout.
    PERFORM i_fieldcat CHANGING w_fieldcat.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
        i_callback_program                = 'ZEASALV_04'
         i_grid_title                      = w_title
         is_layout                         = w_layout
         it_fieldcat                       = w_fieldcat
         i_save                            = 'A'
        TABLES
          t_outtab                          = itab
       EXCEPTIONS
         program_error                     = 1
         OTHERS                            = 2
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      PERFORM i_layout CHANGING w_layout.
      PERFORM i_fieldcat CHANGING w_fieldcat.
    *&      Form  i_layout
          text
         <--P_W_LAYOUT  text
    form i_layout  changing p_w_layout.
    clear w_layout.
      w_layout-colwidth_optimize = 'X'.
      w_layout-edit = ' '.
    endform.                    " i_layout
    *&      Form  i_fieldcat
          text
         <--P_W_FEILDCAT  text
    form i_fieldcat  changing p_w_feildcat.
    data: l_line_fieldcat type slis_fieldcat_alv.
    clear l_line_fieldcat.
      l_line_fieldcat-fieldname = 'NAME'.
      l_line_fieldcat-ref_tabname = 'itab'.
      l_line_fieldcat-seltext_m = 'NAME'.
      l_line_fieldcat-key  = 'X'.
       append l_line_fieldcat to w_fieldcat.
      clear l_line_fieldcat.
      l_line_fieldcat-fieldname = 'ZNUM'.
      l_line_fieldcat-ref_tabname = 'itab'.
      l_line_fieldcat-seltext_m = 'NUMBER'.
      l_line_fieldcat-key  = 'X'.
      append l_line_fieldcat to w_fieldcat.
      clear l_line_fieldcat.
      l_line_fieldcat-fieldname = 'EMPNO'.
      l_line_fieldcat-ref_tabname = 'itab'.
      l_line_fieldcat-seltext_m = 'EMPLNUM'.
    *l_line_fieldcat-key  = 'X'.
      append l_line_fieldcat to w_fieldcat.
      clear l_line_fieldcat.
      l_line_fieldcat-fieldname = 'ZEMPSALARY'.
      l_line_fieldcat-ref_tabname = 'itab'.
      l_line_fieldcat-seltext_m = 'SALARY'.
    *l_line_fieldcat-key  = 'X'.
      append l_line_fieldcat to w_fieldcat.
    endform.                    " i_fieldcat
    Reward for useful answers.

  • Problem with fetching table field

    Hi all, im explaining the problem, please provide me the query.
    i am having the follong tables
    1)location table contains one PK(loc_id)and authorization field, etc.
    2)accont table contain one FK(loc_id) and hrid , attuid fields etc
    3)LINE table contains INTERLATA_PIC_FREEZE & INTRALATA_PIC_FREEZE and some more fields.
    4)TRUNK table contains INTERLATA_PIC_FREEZE & INTRALATA_PIC_FREEZE and some more fields.
    5)NODAL_TSG table contains INTERLATA_PIC_FREEZE & INTRALATA_PIC_FREEZE and some more fields.
    6)REMOTE_CALL_FWD table contains INTERLATA_PIC_FREEZE & INTRALATA_PIC_FREEZE and some more fields.
    7)Order2misc table contains FK(SER_LOC_ID) of Location table
    PIC means INTERLATA_PIC_FREEZE/INTRALATA_PIC_FREEZE
    PLOC means INTERLATA_PIC_FREEZE/INTRALATA_PIC_FREEZE
    i need to send an authorization field value to another interface.
    condition
    ===========
    if(LOCATION.AUTHORIZATION using Account.loc_id is not null and LINE.INTERLATA_PIC_FREEZE not equal to 'F' and LINE.INTRALATA_PIC_FREEZE not equal to 'F' and similaraly for TRUNK, NODAL_TSG and REMOTE_CALL_FWD table fields)
    else
    fetch the authorization field from
    LOCATION.AUTHORIZATION using Order2misc.ser_loc_id
    =======
    please provide me the query.
    thanks in advance

    HI thanks for ur reply
    i tried lmy best.
    im able to put that into 2 queries, but i need to join both of them in single query
    query-1
    ======
    Select l.authorization
    from location l JOIN ACCOUNT a on a.loc_id = l.loc_id
    and l.authorization is not null
    where not exists
    select * from Line where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
    union all
    select * from trunk where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
    union all
    select * from NODAL_TSG where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
    union all
    select * from REMOTE_CALL_FWD where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
    query--2
    =======
    Select l.authorization
    from location l JOIN order2misc o on o.ser_loc_id = l.loc_id
    and l.authorization is null
    where exists
    select * from Line where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
    union all
    select * from trunk where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
    union all
    select * from NODAL_TSG where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
    union all
    select * from REMOTE_CALL_FWD where INTERLATA_PIC_FREEZE = 'F' or INTRALATA_PIC_FREEZE = 'F'
    ================
    i need a single query. and correct me if the above query's are wrong

  • Add fields to reporting table/structure CCSS

    My customer has defined some new fields (Z......) for WBS reporting in table PRPS. They would like to use these fields in report painter reports, but we have not managed to make them available in the library used (6P3). In order to make that happen they must show in the reporting table/structure used (CCSS) I guess? According to SAP there's no "easy way" of doing this, but obviously it should be possible.
    Can somebody give ma an idea how this can be done?

    Eventually we manage to get the customer defined field to show up as a characteristic in the relevant library. The reason we struggled with this was the defined length of the field. SAP does not accept a characteristic with a defined field length of more than 24 characters (we had 30). We ended up redefining the length of the field directly in include CI_CC1Z.
    Edited by: Roar Sørli on Feb 5, 2009 2:52 PM

  • Problem accessing TABLE fields in SELECT statement

    Hi,
    We are currently using Oracle Database 10.2.0.2.0.
    In the following code, using a function to access TABLE fields works, but not when accessing the table fields directly (in the latter case, I get a no data found exception).
    Why is that?
    Thanks for your help.
    Olivier
    PS: I do have a lengthy explanation of why we would want to do that as well as the full packages, etc... But I didn't want to bore you to no end.
    I'll post it if required.
    CREATE OR REPLACE PACKAGE PA_TEST_DEVTBL AS
       TYPE TBL_ROLCODE IS TABLE OF LANROLE.ROLCODE%TYPE INDEX BY BINARY_INTEGER;
       TYPE TBL_ROLLABEL IS TABLE OF LANROLE.ROLLABEL%TYPE INDEX BY BINARY_INTEGER;
    end PA_TEST_DEVTBL;
    CREATE OR REPLACE PACKAGE BODY PA_TEST AS
       -- Array containing the selected data
       TblRolCode PA_TEST_DEVTBL.TBL_ROLCODE;
       TblRolLabel PA_TEST_DEVTBL.TBL_ROLLABEL;
       -- Functions created to retrieve each array data
       FUNCTION F_GET_ROLCODE( nIndex NUMBER ) RETURN LANROLE.ROLCODE%TYPE IS
       BEGIN
          RETURN TblRolCode( nIndex );
       END F_GET_ROLCODE;
       FUNCTION F_GET_ROLLABEL( nIndex NUMBER ) RETURN LANROLE.ROLLABEL%TYPE IS
       BEGIN
          RETURN TblRolLABEL( nIndex );
       END F_GET_ROLLABEL;
       PROCEDURE S_TEST (
    -- THIS DOESN'T WORK (ORA-01403: no data found)
    OPEN cReturn FOR
    SELECT TblRolCode( ROWNUM ),
    TblRolLabel( ROWNUM )
    FROM TABLE( CAST( tblRows AS T_TBL_NUMBER ) );
    -- BUT THIS WORKS !!!
    OPEN cReturn FOR
    SELECT F_GET_ROLCODE( ROWNUM ) AS ROLCODE,
    F_GET_ROLLABEL( ROWNUM ) AS ROLLABEL
    FROM TABLE( CAST( tblRows AS T_TBL_NUMBER ) );
    ..

    well it could be managed by simple HTML tags or simple javascript properties and events itself...
    All you have to do is encode URL and pass it as the request parameters to the next page.
    Checkout a simple example down below.
    MainTable.jsp:
    ============
    <table>
    <thead>
    <tr>
    </tr>
    </thead>
    <tbody>
    <c:forEach var="DTOBean" items="${request.dbList}">
      <tr>
         <td><c:out value="${DTOBean.rowId}"/></td>
         <td onClick="window.location.href='/testpage.jsp?col2='+escape('<c:out value="${DTOBean.col2}"/>')+'&col3='+escape('<c:out value="${DTOBean.col3}"/>'); " ><c:out value="${DTOBean.col1"/></td>
        <!-- or try with to work with simple hyperlink
          <td><a href="# " onclick="window.location.href='/testpage.jsp?col2='+escape('<c:out value="${DTOBean.col2}"/>')+'&col3='+escape('<c:out value="${DTOBean.col3}"/>');"><c:out value="${DTOBean.col1"/></a></td>
        -->
          <td><c:out value="${DTOBean.col2"/></td>
          <td><c:out value="${DTOBean.col3"/></td>
      </tr>
    </c:forEach>
    </tbody>
    </table>
    --------------------------------------------------testpage.jsp:
    ==========
    Column2 : <c:out value="${param.col2}"/>
    Column3 : <c:out value="${param.col3}"/>
    --------------------------------------------------Hope that might help.
    REGARDS,
    RaHuL

  • Problem in finding table fields to enhance 0CRM_SRV_CONFIRM_H for 'Code'

    Hi,
    My source system for BW is CRM. This development is related 'Service Order and Confirmations'. The relevant data source in CRM system is 0CRM_SRV_CONFIRM_H. This data source does not have any information for 'Catalog/Code Group/ Classification Codes' for a Service ticket. So, I have to enhance the data source with it.
    'Catalog/Code Group/ Classification Codes'  is present in the table CRMD_SRV_SUBJECT but there is no common joining fields for the table with datasource or CRMD_ORDERADM_I or CRMD_ORDERADM_H table. CRMD_SRV_SUBJECT has a field called GUID, but transaction data stored in that is not matching with any GUID column of datasource or CRMD_ORDERADM_I or CRMD_ORDERADM_H table.
    Data source can be joined with CRMD_ORDERADM_H [ DS-GUID = CRMD_ORDERADM_H-GUID ] and with CRMD_ORDERADM_I [ DS-GUID = CRMD_ORDERADM_I -HEADER ].
    Thus, I think, the transaction data is stored in some other table which can be joined with the data source. Please help me giving the relevant table/field name to enhance the data source.
    Thanks in advance,
    Dibyendu

    Hi Dibyendu ,
    Please checkout Database view
    <b>CRMV_REPORT_SUBJ</b>
    ==============
    Join between below 4 tables
    CRMD_ORDERADM_H
    CRMD_LINK
    CRMD_SRV_OSSET
    CRMD_SRV_SUBJECT
    ==================
    CRMD_ORDERADM_H     CLIENT     =     CRMD_LINK     CLIENT
    CRMD_ORDERADM_H     GUID     =     CRMD_LINK     GUID_HI
    CRMD_LINK     CLIENT     =     CRMD_SRV_OSSET     CLIENT
    CRMD_LINK     GUID_SET     =     CRMD_SRV_OSSET     GUID_SET
    CRMD_SRV_OSSET     CLIENT     =     CRMD_SRV_SUBJECT     CLIENT
    CRMD_SRV_OSSET     GUID     =     CRMD_SRV_SUBJECT     GUID_REF
    Thanks,
    Aby Jacob

  • Passing a table-field value in Crystal to a Store Procedure in SQL Server

    I have been checking all over the interenet via searches and although some seem to come close to this, its still not what I want.
    Essentially I need to pass value from Table-Field record (for each record read/selected) via a paramete to a Stored Procedure(SP) in SQL Server 2205/2008.  I do NOT want to be prompted for a value for this parameter each time the report is run, simple pass the value in which will be used along with other select criteria to bring back one value for the report to use in a calcuation per record.
    The value of the parameter is a date, but I understand it would be better to pass it in as a varchar(8) - 'YYYYMMDD' - and then reconvert it inside the SP, as follows:
    In Crystal Reports 2008 SP3, I have a formula defined as,
    trans_date = ToText ({F1ARS_STMT_WS_TRAN.TRANS_DATEI}, 'YYYYMMDD')
    and essential just want to pass this to the SP below ... i.e. trans_date  ---> @strTransDate
    I then link the key fields [EXCH_RATE_TABLE_NAME] and [TRANS_CCY_CODE] to other tables in the Database Expert, and put [EXCH_RATE_AMT] on the report and use it to calculate what I want.
    This works fine when the prompt comes up and I put in a proper date, but I don't what it to prompt, but simple pass the F1ARS_STMT_WS_TRAN.TRANS_DATEI in via the fornula/parameter and let teh SQL do the rest for each record selected..
    CREATE PROCEDURE [dbo].sp_GET_EXCH_RATE_AMT (@strTransDate varchar(8))     --use format 'YYYYMMDD' to represent the date as a string.
         -- Add the parameters for the stored procedure here
         -- @TransDate datetime = now
    AS
           declare @TransDate datetime
         set @TransDate = CONVERT(DATETIME, @strTransDate, 112)
    BEGIN
         -- SET NOCOUNT ON added to prevent extra result sets from
         -- interfering with SELECT statements.
         SET NOCOUNT ON;
        -- Insert statements for procedure here
    SELECT [EXCH_RATE_TABLE_NAME], [TRANS_CCY_CODE], [EXCH_RATE_AMT]
    FROM [F1CCY_EXCH_RATE]
    WHERE [MAJOR_CCY_CODE] = 'BBD'
    AND   [START_DATEI] =
         SELECT MAX([START_DATEI])
         FROM [F1CCY_EXCH_RATE]
         WHERE [MAJOR_CCY_CODE] = 'BBD'
         AND   [START_DATEI] <= @TransDate
    END
    GO
    GRANT EXECUTE ON sp_GET_EXCH_RATE_AMT TO PUBLIC
    GO
    Thanks for any help.  Can't tell the headache this has caused my both literally and figuratively.

    Hello,
    I moved your post to the Report Design forum. Lots of SQL help in here...
    I believe the problem is due to you using a Parameterized Stored Procedure. The first thing CR has to do is connect to your DB source which requires the date parameter before it can run the query to add the date filter, it's the SP that is prompting for the parameter. Therefore the report has not run so it can't get the field value from the report until you fill in the info for the SP. Catch 22 problem.... Which came first, the Chicken or the Parameter....
    The report will work as you have noted but I don't know of anyway to refresh unless parameter is filled in again....
    Jason has a lot of great solutions when it comes to these dilemmas, Possibly using a Command Object may help but I believe you will still run into the same issue....
    Only way I can think of is to not use a parameter in the SP and let CR do the filtering client side. Of course this means all data is coming back to the client PC as you are likely trying to find a work around for.
    Thank you
    Don

  • Find Table Field  for  Q0045-OPELO in HR Payroll

    Dear All,
      I have a requirement to find the Loan Balance as on date from Infotype 0045.
    In the screen field it show that data is  linked to  this table field...   Q0045-OPELO .
    Now My Problem is how To find the  Database table Name where exactlly the amount value store and i can use that fro my report to  calculate the  Loan Balance for required Employee.
    Its urgent..........
    Regards
    Lakhan

    Hi Lakhan,
    The loan balance amount is not stored in the database table. It is instead stored against WT /LLB in the payroll cluster table PCL2. If you want to retrieve this amount, then you have to use a macro to select the payroll results for the period you are running the report and then select the RT table.
    The /LLB entry (if exists) in the RT table will hold the loan balance amount.
    Hope this helps.
    -Akshay
    Edited by: Akshay Patil on Dec 26, 2007 3:51 PM

Maybe you are looking for