FM to Display Material Details

Hi,
I'm looking for a Bapi or a FM to get the details of the material according to the data in the tables created or Please suggest me a Bapi which displays all the details based only on the material Number. I.e. I have only material Number as input and nothing esle.
FMs BAPI_MATERIAL_GET_ALL and  BAPI_MATERIAL_GET_DETAIL require plant as input to display relevant plant data or sales org as input to display relevant sales data.
cheers,
Amber

Hi,
Thanks for your prompt response.
I remember using a FM or BAPI once, where i did only specify the material number as the input and the output contains  tables of mara , marc , maex etc..
Cheers,
Badam

Similar Messages

  • Fm to display material details based on material description

    Hi,
    Is there any bapi or fm to display material details based on material description
    Regards,

    Hi,
    Get the material number from material description from MAKT table and then use the FM BAPI_MATERIAL_GET_DETAIL.
    Regards,
    Nagaraj

  • Display the material details in alv grid based on material(in mara)

    hi,
    display the material details when get input of material from user in mara table using alv-grid display.
    give some examples.
    Thanks of advance.

    Hi
    For your help i am just giving you few hints.
    1. Create a selection screen.
    2. Select matnr from mara into an internal table.
    3. use fm Reuse_Alv_grid_display to display your entries from the internal table
    Please read about all of this step by step in the forum.

  • How 2 creat report for displaying the details of a Delivery Document using

    how to create report for displaying the details of a Delivery Document using the tables LIKP, LIPS
    thank you
    regards,
    jagrut bharatkumar shukla
    points will be rewarded

    HI
    I AM GIVING YOU MY DELIVERY DOCUMENT CODE...MODIFY IT ACCORDING TO YOUR REQUIREMENT
    *& Report  ZDELIVERY                                *
    report  zdelivery  message-id z9bhu          .
    types: begin of t_likp,
               vbeln type likp-vbeln,      "Delivery
               erdat type likp-erdat,      "Date for rec creation
    *           LFDAT TYPE LIKP-LFDAT,      "Delevery Date
    *           WAERK TYPE LIKP-WAERK,      "Currency
               kunnr type likp-kunnr,      "Ship-To Party
               kunag type likp-kunag,      "Sold-to party
               traty type likp-traty,      "Means-of-Transport
           end of t_likp.
    types: begin of t_lips,
               vbeln type lips-vbeln,      "Delivery
               posnr type lips-posnr,      "Delivery item
               matnr type lips-matnr,      "Material Number
               arktx type lips-arktx,      "Short Text for Sales Order Item
               lfimg type lips-lfimg,      "Actual quantity delivered
               netpr type lips-netpr,
    *           MEINS TYPE LIPS-MEINS,      "Base Unit of Measure
               vgbel type lips-vgbel,      "Doc no of the reference document
            end of t_lips.
    types: begin of t_vbpa,
               vbeln type vbpa-vbeln,      "SD DocumenT Number
               posnr type vbpa-posnr,      "Item number
               parvw type vbpa-parvw,      "Partner function
               kunnrb type vbpa-kunnr,      "Customer Number 1
           end of t_vbpa.
    types: begin of t_kna1,
               kunnr type kna1-kunnr,      "Customer Number 1
               name1 type kna1-name1,      "Name 1
               ort01 type kna1-ort01,      "City
               adrnr type kna1-adrnr,      "Address
           end of t_kna1.
    types: begin of t_li_vbpa,
               vbeln type likp-vbeln,      "Delivery
               erdat type likp-erdat,      "Date for rec creation
    *           LFDAT TYPE LIKP-LFDAT,      "Delevery Date
    *           WAERK TYPE LIKP-WAERK,      "Currency
               kunnr type likp-kunnr,      "Ship-To Party
               kunag type likp-kunag,      "Sold-to party
               traty type likp-traty,      "Means-of-Transport
               vbeln1 type lips-vbeln,      "Delivery
               posnr type lips-posnr,      "Delivery item
               matnr type lips-matnr,      "Material Number
               arktx type lips-arktx,      "Short Text for Sales Order Item
               lfimg type lips-lfimg,      "Actual quantity delivered
               netpr type lips-netpr,      "Net Price
    *           MEINS TYPE LIPS-MEINS,      "Base Unit of Measure
               vgbel type lips-vgbel,      "Doc no of the reference document
               vbeln3 type vbpa-vbeln,     "SD DocumenT Number
               parvw type vbpa-parvw,      "Partner function
               kunnrb type vbpa-kunnr,      "Customer Number 1
           end of t_li_vbpa.
    types: begin of t_final,
               vbeln type likp-vbeln,      "Delivery
               erdat type likp-erdat,      "Date for rec creation
               kunnr type likp-kunnr,      "Ship-To Party
               kunag type likp-kunag,      "Sold-to party
               traty type likp-traty,      "Means-of-Transport
               vbeln1 type lips-vbeln,      "Delivery
               posnr type lips-posnr,      "Delivery item
               matnr type lips-matnr,      "Material Number
               arktx type lips-arktx,      "Short Text for Sales Order Item
               lfimg type lips-lfimg,      "Actual quantity delivered
               netpr type lips-netpr,      "Net Price
               vgbel type lips-vgbel,      "Doc no of the reference document
               vbeln3 type vbpa-vbeln,     "SD DocumenT Number
               parvw type vbpa-parvw,      "Partner function
               kunnrb type vbpa-kunnr,     "Customer Number 1
               name1 type kna1-name1,      "Name 1
               ort01 type kna1-ort01,      "City
               adrnr1 type kna1-adrnr,     "Address
               name2 type kna1-name1,      "Name 1
               ort02 type kna1-ort01,      "City
               adrnr2 type kna1-adrnr,     "Address
               name3 type kna1-name1,      "Name 1
               ort03 type kna1-ort01,      "City
               adrnr3 type kna1-adrnr,     "Address
           end of t_final.
    *            D A T A  D E C L A R A T I O N
    *&*********Internal Table Declaration****************&*
    data: it_likp type standard table of t_likp.
    data: it_lips type standard table of t_lips.
    data: it_vbpa type standard table of t_vbpa.
    data: it_kna1 type standard table of t_kna1.
    data: it_li_vbpa type standard table of t_li_vbpa.
    data: it_li_vbpa_temp type standard table of t_li_vbpa.
    data: it_final type standard table of t_final.
    *&*********Work Area Declaration********************&*
    data: wa_likp type t_likp.
    data: wa_lips type t_lips.
    data: wa_vbpa type t_vbpa.
    data: wa_kna1 type t_kna1.
    data: wa_li_vbpa type t_li_vbpa.
    data: wa_li_vbpa_temp type t_li_vbpa.
    data: wa_final type t_final.
    *&*********Data Declaration************************&*
    data: d_vbeln type likp-vbeln.
    data: flag type i value 0.
    *           S E L E C T I O N  S C R E E N   D E C L A R A T I O N
    selection-screen begin of block block2 with frame title text-001.
    select-options: s_vbeln for d_vbeln obligatory.    "Delivery no
    selection-screen end of block block2.
    *            A T  S E L E C T I O N - S C R E E N   E V E N T S
    *AT SELECTION-SCREEN.
    *PERFORM VALIDATE_DATA.
    *            S T A R T   O F  S E L E C T I O N     E V E N T S
    start-of-selection.
    perform fetch_data.
    perform merge_data_kna1.
    *INCLUDE Z9BT_SH_***4_FORMS.
    call function 'OPEN_FORM'
    exporting
    *   APPLICATION                       = 'TX'
    *   ARCHIVE_INDEX                     =
    *   ARCHIVE_PARAMS                    =
        device                            = 'PRINTER'
    *   DIALOG                            = 'X'
    *   FORM                              = ' '
       language                          = sy-langu
    *   OPTIONS                           =
    *   MAIL_SENDER                       =
    *   MAIL_RECIPIENT                    =
    *   MAIL_APPL_OBJECT                  =
    *   RAW_DATA_INTERFACE                = '*'
    *   SPONUMIV                          =
    * IMPORTING
    *   LANGUAGE                          =
    *   NEW_ARCHIVE_PARAMS                =
    *   RESULT                            =
    exceptions
       canceled                          = 1
       device                            = 2
       form                              = 3
       options                           = 4
       unclosed                          = 5
       mail_options                      = 6
       archive_error                     = 7
       invalid_fax_number                = 8
       more_params_needed_in_batch       = 9
       spool_error                       = 10
       codepage                          = 11
       others                            = 12
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    sort it_final by vbeln.
    loop at it_final into wa_final.
    call function 'START_FORM'
    exporting
    *   ARCHIVE_INDEX          =
       form                   = 'Z9BT_DELIVERY'
       language               = sy-langu
    *   STARTPAGE              = ' '
    *   PROGRAM                = ' '
    *   MAIL_APPL_OBJECT       =
    * IMPORTING
    *   LANGUAGE               =
    exceptions
       form                   = 1
       format                 = 2
       unended                = 3
       unopened               = 4
       unused                 = 5
       spool_error            = 6
       codepage               = 7
       others                 = 8
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    call function 'WRITE_FORM'
    exporting
       element                        = 'ITEM_LIST'
       function                       = 'SET'
       type                           = 'BODY'
       window                         = 'MAIN'
    * IMPORTING
    *   PENDING_LINES                  =
    * EXCEPTIONS
    *   ELEMENT                        = 1
    *   FUNCTION                       = 2
    *   TYPE                           = 3
    *   UNOPENED                       = 4
    *   UNSTARTED                      = 5
    *   WINDOW                         = 6
    *   BAD_PAGEFORMAT_FOR_PRINT       = 7
    *   SPOOL_ERROR                    = 8
    *   CODEPAGE                       = 9
    *   OTHERS                         = 10
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    call function 'END_FORM'
    * IMPORTING
    *   RESULT                         =
    exceptions
       unopened                       = 1
       bad_pageformat_for_print       = 2
       spool_error                    = 3
       codepage                       = 4
       others                         = 5
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    endloop.
    call function 'CLOSE_FORM'
    * IMPORTING
    *   RESULT                         =
    *   RDI_RESULT                     =
    * TABLES
    *   OTFDATA                        =
    exceptions
       unopened                       = 1
       bad_pageformat_for_print       = 2
       send_error                     = 3
       spool_error                    = 4
       codepage                       = 5
       others                         = 6
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    *&      Form  VALIDATE_DATA
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form validate_data .
    select single vbeln into wa_likp-vbeln
                        from likp where vbeln in s_vbeln.
    append wa_likp to it_likp.
    if sy-subrc <> 0.
    flag = 1.
    endif.
    endform.                    " VALIDATE_DATA
    *&      Form  FETCH_DATA
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form fetch_data .
    select a~vbeln
           a~erdat
           a~kunnr
           a~kunag
           a~traty
           b~vbeln
           b~posnr
           b~matnr
           b~arktx
           b~lfimg
           b~netpr
           b~vgbel
           c~vbeln
           c~parvw
           c~kunnr
             into table it_li_vbpa
                    from likp as a
                    left outer join lips as b on a~vbeln = b~vbeln
                    inner join vbpa as c on b~vgbel = c~vbeln
                    where a~vbeln in s_vbeln and
                    c~parvw = 'RE'.
    endform.                    " FETCH_DATA
    *&      Form  MERGE_DATA_KNA1
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form merge_data_kna1 .
    if it_li_vbpa[] is not initial.
    it_li_vbpa_temp[] = it_li_vbpa[].
    sort it_li_vbpa_temp by kunnr.
    delete adjacent duplicates from it_li_vbpa_temp comparing kunnr.
    loop at it_li_vbpa into wa_li_vbpa.
    read table it_li_vbpa_temp into wa_li_vbpa_temp with key kunnr =
    wa_li_vbpa-kunag.
    if sy-subrc <> 0.
    wa_li_vbpa_temp = wa_li_vbpa.
    append wa_li_vbpa_temp to it_li_vbpa_temp.
    endif.
    read table it_li_vbpa_temp into wa_li_vbpa_temp with key kunnr =
    wa_li_vbpa-kunnrb.
    if sy-subrc <> 0.
    wa_li_vbpa_temp = wa_li_vbpa.
    append wa_li_vbpa_temp to it_li_vbpa_temp.
    endif.
    endloop.
    endif.
    if it_li_vbpa_temp[] is not initial.
    select  kunnr
            name1
            ort01
            adrnr into table it_kna1 from kna1
                        for all entries in it_li_vbpa_temp
                        where kunnr = it_li_vbpa_temp-kunnr.
    endif.
    loop at it_li_vbpa into wa_li_vbpa .
    wa_final-vbeln = wa_li_vbpa-vbeln.
    wa_final-erdat = wa_li_vbpa-erdat.
    *it_final-LFART = it_li_vbpa-LFART.
    wa_final-kunnr = wa_li_vbpa-kunnr.
    wa_final-kunag = wa_li_vbpa-kunag.
    *it_final-VSTEL = it_li_vbpa-VSTEL.
    wa_final-traty = wa_li_vbpa-traty.
    wa_final-vbeln1 = wa_li_vbpa-vbeln.
    wa_final-posnr = wa_li_vbpa-posnr.
    wa_final-matnr = wa_li_vbpa-matnr.
    wa_final-arktx = wa_li_vbpa-arktx.
    wa_final-lfimg = wa_li_vbpa-lfimg.
    wa_final-netpr = wa_li_vbpa-netpr.
    *wa_final-GEWEI = it_li_vbpa-GEWEI.
    *it_final-VOLUM = it_li_vbpa-VOLUM.
    *it_final-VOLEH = it_li_vbpa-VOLEH.
    wa_final-vgbel = wa_li_vbpa-vgbel.
    wa_final-vbeln3 = wa_li_vbpa-vbeln.
    *wa_final-PARVW = wa_li_vbpa-PARVW.
    wa_final-kunnrb = wa_li_vbpa-kunnrb.
    read table it_kna1 into wa_kna1 with key kunnr = wa_li_vbpa-kunnr.
    if sy-subrc = 0.
    wa_final-name1 = wa_kna1-name1.
    wa_final-ort01 = wa_kna1-ort01.
    wa_final-adrnr1 = wa_kna1-adrnr.
    endif.
    read table it_kna1 into wa_kna1 with key kunnr = wa_li_vbpa-kunag.
    if sy-subrc = 0.
    wa_final-name2 = wa_kna1-name1.
    wa_final-ort02 = wa_kna1-ort01.
    wa_final-adrnr2 = wa_kna1-adrnr.
    endif.
    read table it_kna1 into wa_kna1 with key kunnr = wa_li_vbpa-kunnrb.
    if sy-subrc = 0.
    wa_final-name3 = wa_kna1-name1.
    wa_final-ort03 = wa_kna1-ort01.
    wa_final-adrnr3 = wa_kna1-adrnr.
    endif.
    append wa_final to it_final.
    clear wa_final.
    endloop.
    endform.

  • Display Material |Attachment File in ALV report

    Dear All,
    I have to make ALV report for mutliple material attachment file.I want to display material wise attachment where user can see in report. We can see attachment list in Service For Object button in MM03 tcode for single material. And i also i do not want attachement list on tool bar where like MM03 is dispalying.
    I need ALV report for materialcodewise image/attachment file like,
    MaterialCode    File
    A101                any filename
    B101                 any filename
    So user can click on file base on material, then file will open and he can see image/attachment.
    Please guide me for above mentioned query.
    Regards,
    Shivam.

    Dear Shivam,
    You can have multiple attachments for a sinlge material. You need to consider that in your report.
    for getting the list of attachments using the static method CL_BINARY_RELATION=>READ_LINKS.
      DATA: lw_BOR TYPE sibflporb.
      DATA: lt_rel TYPE OBL_T_RELT,
                 lw_rel type OBL_S_RELT.
      DATA: lt_links TYPE obl_t_link,
                 lw_links type OBL_S_LINK.
      DATA: lo_root TYPE REF TO cx_root.
      lw_bor-instid = <Materail no.>   "<------- Materail No.
      lw_bor-typeid = 'BUS1001006'.
      lw_bor-catid  = 'BO'.
      lw_rel-sign = 'I'.
      lw_rel-option = 'EQ'.
      lw_rel-low = 'ATTA'.           "<----------Attachments
      APPEND lw_relt TO lt_rel.
      TRY.
          CALL METHOD cl_binary_relation=>read_links
            EXPORTING
              is_object           = lw_bor
              it_relation_options = lt_rel
            IMPORTING
              et_links            = lt_links.
        CATCH cx_root INTO lo_root.
      ENDTRY.
    Once you get the list of attachment populate your output table using the same.
    you can use FM SO_OBJECT_READ to get details of attachment.
    Make the column with attachment as hotspot, so that ALV take action in sinlge user click.
    In the user-command of ALV write the code to open the attachment.
    you can use the FM SO_DOCUMENTS_MANAGER
    Hope this helps you.
    Regards,
    Sachinkumar Mehta

  • How to prevent error message for material description in MDG material detail screen, when user click on check action

    Dear Experts,
    I have a requirement for making material description as non mandetory in change request view of mdg material screen.
    I have done that using field usage in get data method of feeder classes, but still message is displaying.
    This message 'Material description is mandatory is displaying with check action only, but not with save or submit after i anhance field property as not mandetory.
    How to prevent error message for material description in MDG material detail screen, when user click on check action.
    Thanks
    Sukumar

    Hello Sukumar
    In IMG activity "Configure Properties of Change Request Step", you can completely deactivate the reuse area checks (but will then loose all other checks of the backend business logic as well).
    You can also set the error severity of the checks from Error to Warning (per CR type, not per check).
    Or you provide a default value for the material description, e.g. by implementing the BAdI USMD_RULE_SERVICE.
    Regards, Ingo Bruß

  • How to get Material details based on 0material in 0figl_o02 DSO

    Hi
    In Financial Accounting we have DSO for General Ledger: Line items (0FIGL_o02)  It contains Material no. for each transaction record but other material details like Qty used and price for that material and other related details are not present and also not in the Datasource 0fi_gl_4. Pls let me know the logic so that using the Material no. I can get the related details of material from any other infoprovider in BI.
    Thanks

    Hi Puneetb,
    If you want data directly from the 0material infoObject in BW you can do 2 things:
    1. Edit the updaterule to your destination cube and determine the values in an ABAP routine
    2. Change the attributes to navigational in both infoObject and cube so you can use them in queries (in this scenario you allways display the current attribute values instead of the values when loading the data.
    Is this what you were looking for?
    Kind regard,
    Alex

  • I  wants to change material details in sale order , delivery  & billing

    dear guru
    I  wants to change material details in sale order , delivery  & billing
    becuse user entered wrong deatils but condition is same no range to be mantained in sale order ,delivery& billing
    Regards,
    Maha.U

    Hi,
    If Material A - Description Vicks is created in Material master n if you want the same material with change of description for respective customer,you can change the description like Vicks XL while creating SO in Description of Material line item.
    Same can be displayed in invoice as well.
    Thanks
    Shri

  • Query - Authorization Check for Material Details

    Hi Experts,
    I've got a requirement where I've to put authorization check in a number of transactions (standard as well as custom) which lead to material display some way or the other for specifc matarils (checking the authorization field). Few are for reports (may be interactive) as well. The need is to stop unauthorized people from getting access to the specifc material details such as dimensions (quantity,length, width, etc.).
    The first option would be to stop the user from viewing the material itself and showing some appropriate error message.
    The second option would be to make the above said details invisible in the screen for the specific matarials.
    The Authorization object is M_MATE_MAT.
    The Authorization field is BEGRU.
    The range of tcodes start from ME21, ME22, ME23, ME23N ...to MM01, MM02 etc. and a number of custom tcodes.
    What is the best way to achieve this? I guess I'd need to look for exits. Please suggest
    Thanks & Regards
    Pritam

    > I've got a requirement where I've to put authorization check in a number of transactions (standard as well as custom) which lead to material display some way or the other for specifc matarils (checking the authorization field). Few are for reports (may be interactive) as well. The need is to stop unauthorized people from getting access to the specifc material details such as dimensions (quantity,length, width, etc.).
    >
    > The first option would be to stop the user from viewing the material itself and showing some appropriate error message.
    >
    You can do this with authorization at transaction level.
    > The second option would be to make the above said details invisible in the screen for the specific matarials.
    >
    Invisible on the screen, you might need to consider the material screens user exit. I am not sure how your material master configured
    > The Authorization object is M_MATE_MAT.
    > The Authorization field is BEGRU.
    >
    > The range of tcodes start from ME21, ME22, ME23, ME23N ...to MM01, MM02 etc. and a number of custom tcodes.
    >
    > What is the best way to achieve this? I guess I'd need to look for exits. Please suggest
    All in all, you need user exits to have field level authorization and maintain authorizations at transaction level for the one you dont want to show anyone or to few

  • IQ02 -Display material and Serial Number

    IQ02 -Display material and Serial Number
    In IQ02 If we gives Serial Number as input if that Serial Number has more than one material it is displaying one more screen in ALV display.If i select one item in that list it is going to final screen displaying Serial number details.
    Now here we have a program like IQ02 (First Screen), I want that middle screen should be display in my program, I went in debug mode but i am not understanding how SAP is doing ? how can i call that middle screen..
    Is there any function module or some other way available to make my job easy....
    Thanks in advance,
    fractal

    I have written like this...
          submit riequi21 with dy_selm   = x_indsel
                with matnr     in range_matnr
                with sernr     in range_sernr
                with dy_mode   = 'X'
               with dy_tcode  = 'IQ08'
                and return.
    When i execute the program, it is displaying directly the final output screen. I want the middle screen (ALV display for selecting the row) should be display, in that middle screen if i select one line it has to go to final screen.
    how can i do this?
    thanks,
    fractal

  • Displaying Material Characteristic data in MD04

    Hi there,
    I have a requirement to display Material Characteristic information in the "Additional Data" tab for a given material in transaction MD04. (Screen 100 of Function Group M61K in se80)
    What is the best approach to doing this? Can this be configured (without programming), or if not, is it possible to use a BADI such as
    MD_ADD_COL_EZPS to achieve this? (from looking in forum, this appears to be an option)
    Will I need to modify the screen? - hoping to achieve this without modification...
    Any responses are appreciated.
    Thanks,
    David.

    Explore the methods ACTIVATE_ADD_COLUMNS and FILL_ADD_COLUMNS of this BADI.
    Example: This code adds a button on tool bar of MD04 and when clicked populates delivery column
    Method - ACTIVATE_ADD_COLUMNS
      button1_ez = "DELIVERY".
      ez1_mode = '2'.
    Method - FILL_ADD_COLUMNS
    Populate the column
      DATA: lv_column1    TYPE mdez-usex1,
            lv_ebeln      TYPE ekbe-ebeln,
            lv_ebelp      TYPE ekbe-ebelp.
    Get Delivery Doc# for corresponding PO/STO
      lv_ebeln = ie3mdpslx-delnr.
      lv_ebelp = ie3mdpslx-delps.
      SELECT SINGLE belnr
             FROM ekbe
             INTO lv_column1
             WHERE ebeln = ie3mdpslx-delnr
             AND   ebelp = ie3mdpslx-delps.
      IF sy-subrc EQ 0.
        MOVE lv_column1 TO emdezx_usex1.
      ENDIF.
    Thanks,
    SKJ

  • ALV report i want to display in each P.O , i want to display item details

    Hi all,
    in alv report i want to display in each P.O , i want to display item details. is it possible without hierarchical display.

    hi,
    once you retrive po number from ekko then retrive data from ekpo and loop at ekpo and append all the item details to your internal table.

  • Report to display PO details and download details in an excel fil

    Hi,
    I have been asked to develop a report for "Develop report to display PO details and download details in an excel file".
    Could any one guide me technically what are the different tables i need to take to generate the report. Treat this is very urgent. Pls provide sample code too....
    Thanks in advance....

    Purchase Order PO
    Tcode for creation ME21,ME22,ME23. tables EKKO,EKPO.
    refer this program
    REPORT ZPOCHANGE.
    This is a subroutine perform in the Purchase order Layout sets.
    Description :  To retreive the details of changed remarks in PO output and to capture the retrival date
                         Additional features with the previous changed appearing.  e.g. from .... to
    Note        :  If the latest modification details required
    Please Uncomment the lines mentioned under  'Last Modified Remarks only'
    Information
    /: PERFORM CHDATE IN PROGRAM ZPOCHANGE
    /:               USING &EKKO-EBELN&
    /:               CHANGING &RVDATE2&
    /: ENDPERFORM.
    /: IF &RVDATE2& EQ ' '.
    /  Revision Date: NIL
    /: ELSE.
    /  Revision Date: &RVDATE2&
    /: ENDIF.
    Main Window
    /E CHANGE_REMARKS
    /: PERFORM CHDET IN PROGRAM ZPOCHANGE
    /:            USING &EKPO-EBELP&
    /:            USING &EKKO-EBELN&
    /:            USING &T166T-CHTXT&
    /:            USING &T166T-CTXNR&
    /:            CHANGING &ITAB1-F_NEW&
    /:            CHANGING &ITAB1-F_OLD&
    /:ENDPERFORM.
    /:IF &ITAB1-F_NEW& NE ' '
    =  &ITAB1-F_OLD(C)& CHANGED TO &ITAB1-F_NEW(C)&
    /:ENDIF
    You might need to apply Note 373524 - Message determination and printing
    TABLES : CDSHW , "Change documents, formatting table
             CDHDR , "Change document header
             EKPO  , "Purchasing Document Item
             EKKO  , "Purchasing Document Header
             T166C . "Print-Relevant Purchasing Document Changes
    DATA   : ITAB1 LIKE CDSHW OCCURS 100 WITH HEADER LINE.
    DATA   : ITAB2 LIKE EKPO  OCCURS 100 WITH HEADER LINE.
    DATA   : DOCUM LIKE EKKO OCCURS 100 WITH HEADER LINE.
    DATA   : TABKEY LIKE CDSHW-TABKEY.
    data    : begin of ctab occurs 10,
              tname like t166c-tname,
              fname like t166c-fname,
              TABKEY LIKE CDSHW-TABKEY,
              FLAG(3),
              end of ctab.
    DATA   : VAL1(15), VAL2(15).
    DATA : M1(20), M2(10), M3(10),M4(5).
    DATA : RVDATE(10),RVDATE2(10) , EBELN LIKE EKKO-EBELN, COUNT TYPE I.
    Text number for change text(CTXNR), CHANGE TEXT(CHTXT), Purchase order
    Number and item number are passed from Layoutset
          FORM CHDET                                                    *
    -->  ITAB                                                          *
    -->  OTAB                                                          *
    FORM CHDET TABLES ITAB STRUCTURE  ITCSY
                      OTAB STRUCTURE  ITCSY.
      LOOP AT ITAB.
        CASE ITAB-NAME.
          WHEN 'T166T-CHTXT'.
            MOVE ITAB-VALUE TO M1.
          WHEN 'T166T-CTXNR'.
            MOVE ITAB-VALUE TO M2.
          WHEN 'EKKO-EBELN'.
            MOVE ITAB-VALUE TO M3.
          WHEN 'EKPO-EBELP'.
            MOVE ITAB-VALUE TO M4.
        ENDCASE.
      ENDLOOP.
    Throught this function change details are retrived into itab1.
      CALL FUNCTION 'ME_CHANGES_READ'
           EXPORTING
                DOCUMENT_CATEGORY = 'F'
                DOCUMENT_NUMBER   = M3
           TABLES
                XCDSHW            = itab1.
      SELECT SINGLE * FROM T166C WHERE CTXNR = M2.
      IF SY-SUBRC = 0.
        CONCATENATE M3 M4  INTO TABKEY.
    ********Last Modified Remarks only**********************
       read table ctab with key  tname  = T166C-TNAME
                                         tabkey  = tabkey
                                         fname   = T166C-FNAME.
       if sy-subrc ne 0.
        LOOP AT ITAB1 WHERE TABNAME = T166C-TNAME
                                      AND   TABKEY+3(15) = TABKEY
                                      AND   FNAME = T166C-FNAME.
    *********Last Modified Remarks only**********************
           ctab-tname  = t166c-tname.
           ctab-fname  = t166c-fname.
           ctab-tabkey = tabkey.
           append ctab.
          delete itab1.
          exit.
        endloop.
    Captured details are exported to Layoutset
        LOOP AT OTAB.
          CASE OTAB-NAME.
            WHEN 'ITAB1-F_OLD'.
              OTAB-VALUE = ITAB1-F_OLD.
              MODIFY OTAB.
              CLEAR : ITAB1-F_OLD.
            WHEN 'ITAB1-F_NEW'.
              OTAB-VALUE = ITAB1-F_NEW.
              MODIFY OTAB.
              CLEAR : ITAB1-F_NEW.
          ENDCASE.
        endloop.
      endif.
    ******Last Modified Remarks only****************
    ENDIF.
      clear ctab.
    ENDFORM.
          FORM CHDATE                                                   *
    -->  ITAB                                                          *
    -->  OTAB                                                          *
    Form for revision date retrival. PO no. is passed from layoutset
    and in the change document header latest modified date is captured
    and passed to revision date field in Layoutset.
    FORM CHDATE TABLES ITAB STRUCTURE  ITCSY
                      OTAB STRUCTURE  ITCSY.
      CLEAR : RVDATE, EBELN.
      LOOP AT ITAB.
        CASE ITAB-NAME.
          WHEN 'EKKO-EBELN'.
            MOVE ITAB-VALUE TO EBELN.
        ENDCASE.
      ENDLOOP.
    SELECT UDATE INTO CDHDR-UDATE FROM CDHDR WHERE OBJECTCLAS = 'EINKBELEG'
                                                       AND OBJECTID = EBELN.
        IF RVDATE < CDHDR-UDATE.
          RVDATE = CDHDR-UDATE.
        ENDIF.
        COUNT = COUNT + 1.
      ENDSELECT.
      LOOP AT OTAB.
        CASE OTAB-NAME.
          WHEN 'RVDATE2'.
         CONCATENATE RVDATE6(2) '.' RVDATE4(2) '.' RVDATE(4) INTO RVDATE2.
            IF COUNT = 1.
              RVDATE2 = ''.
            ENDIF.
            MOVE RVDATE2 TO OTAB-VALUE.
            MODIFY OTAB.
        ENDCASE.
      ENDLOOP.
    CLEAR : COUNT.
    ENDFORM.
    Message was edited by:
            Karthikeyan Pandurangan

  • Second line item in Shoppin cart is not displaying the details

    Second line item's district  value is not displayed when the detailed button of second line item is clicked.
    In the shopping cart , there are two line items are added. ( before ordering )
    click on the detail button of first line item, then click on the Ship to address tab . it is displaying the details of the first line item ship to address.
    For getting the value in the district field, BBP_doc_change_badi is implemented .
    The problem is when i click on the detail button of second line itme , the value in the district field is cleard.
    When i click on refresh buttion after that, the value is there.
    I debugged BBP_DOC_CHANGE_Badi~bbp_SC_change method,
    When the second line item is clicked, it populates only the value of first line item . After that if i click on any other buttion, the it_item in the badi populates the second line item value.
    Is this a standard error in SRM or is there any way to display the value of second line item when it is clicked at the first time

    Hi,
    In item category details insure there is tickmark for Schedule line allowed,
    In sales order at item level under shipping tab see storage location ,plant is appearing or not,
    Kapil

  • Display Invoice Details in 3 pages only, as per the tags, data is overflown

    Hi,
    I have a requirement to display invoice details in pdf output from XML Source using rtf template.
    The PDF output will display invoice details for One address number per page.
    When I execute the report in JDE standard version I get the pdf output in three pages as expected.
    from the blank template when I executed the report for a data selection of One business unit and three address numbers. Below is the query.
    SELECT * FROM PRODDTA.F03B11 WHERE RPDIVJ =110037 AND LTRIM(RTRIM(RPMCU))=03285 AND RPAN8 IN(204346,204352,202370).
    The XML source in the printqueue shows me five address number tags instead of three as per the data selection given above. The data in the second tag has overflown to third and similarly from 4th to 5th tag.
    When I take the said XML source it is displaying 5 pages. Is there way to design the rtf template where it can print only 3 pages.
    Below I have given the actual source code.
    <?xml version="1.0" encoding="WINDOWS-1252" standalone="no" ?>
    - <!-- Generated by EnterpriseOne Universal Batch Engine
    -->
    - <R553505>
    + <Properties>
    <Version>HES0002</Version>
    <Title>Comprehensive Invoice</Title>
    <Machine>HIES10</Machine>
    <Host>HGN11</Host>
    <Environment>DV900</Environment>
    <User>VRDDU</User>
    <Role>*ALL</Role>
    <Company>HDSD</Company>
    <OneWorldRelease>E900</OneWorldRelease>
    <Date>7/15/2010</Date>
    <Time>5:58:57</Time>
    </Properties>
    + <PageFooters>
    - <Page_Footer_S20>
    <audit_info_in_event_rules_ID6>audit info in event rules</audit_info_in_event_rules_ID6>
    <PLEASE_MAKE_CHECK_PAYABLE_TO___ID3>PLEASE MAKE CHECK PAYABLE TO :</PLEASE_MAKE_CHECK_PAYABLE_TO___ID3>
    <NameAlpha_ID5>Trey McAfee</NameAlpha_ID5>
    </Page_Footer_S20>
    - <Page_Footer_S20>
    <audit_info_in_event_rules_ID6>audit info in event rules</audit_info_in_event_rules_ID6>
    <PLEASE_MAKE_CHECK_PAYABLE_TO___ID3>PLEASE MAKE CHECK PAYABLE TO :</PLEASE_MAKE_CHECK_PAYABLE_TO___ID3>
    <NameAlpha_ID5>Trey McAfee</NameAlpha_ID5>
    </Page_Footer_S20>
    - <Page_Footer_S20>
    <audit_info_in_event_rules_ID6>audit info in event rules</audit_info_in_event_rules_ID6>
    <PLEASE_MAKE_CHECK_PAYABLE_TO___ID3>PLEASE MAKE CHECK PAYABLE TO :</PLEASE_MAKE_CHECK_PAYABLE_TO___ID3>
    <NameAlpha_ID5>Trey McAfee</NameAlpha_ID5>
    </Page_Footer_S20>
    </PageFooters>
    + <Columnar_S7_Column_Headings Language="">
    <Invoice_Date_ID28>Date</Invoice_Date_ID28>
    <Document_Number_ID22>Number</Document_Number_ID22>
    <Document_Type_Description_ID42>Type</Document_Type_Description_ID42>
    <Pay_Item_ID34>Item</Pay_Item_ID34>
    <Due_Date_ID30>Due Date</Due_Date_ID30>
    <Remark_ID32>Remark</Remark_ID32>
    <Amount_ID48>Amount</Amount_ID48>
    <Taxable_Amount_ID16>Amount</Taxable_Amount_ID16>
    <Document_Company_ID44>Doc Co</Document_Company_ID44>
    <Address_Number_ID36>Address Number</Address_Number_ID36>
    <Tax_Amount_ID40>Tax Amount</Tax_Amount_ID40>
    <Co___ID46>Co</Co___ID46>
    </Columnar_S7_Column_Headings>
    - <Columnar_S7_Group>
    + <On_Address_Number_S8>
    <Date_01_ID31>2010-02-06</Date_01_ID31>
    <Remit_To_Constant_ID98>Remit To:</Remit_To_Constant_ID98>
    <Date_Constant_ID106>Date:</Date_Constant_ID106>
    <Account_Constant_ID108>Account:</Account_Constant_ID108>
    <AddressNumber_ID28>204346</AddressNumber_ID28>
    <Company___Address_Line_1_ID36>HKJHKLKJLKJLKLK, LLC</Company___Address_Line_1_ID36>
    <RefNo_ID126>10000106001</RefNo_ID126>
    <Refer.No__ID125>Refer.No:</Refer.No__ID125>
    <Company___Address_Line_2_ID38>JHJKLH Bank, 925 All Rd</Company___Address_Line_2_ID38>
    <Company___Mailing_Name_ID34>JHKJHK Trophy LLC</Company___Mailing_Name_ID34>
    <Page_Number_ID89>1</Page_Number_ID89>
    <Page_Constant_ID110>Page:</Page_Constant_ID110>
    <Company___Address_Line_3_ID40>Clifton NJ 07012</Company___Address_Line_3_ID40>
    <Lease_Number_Constant_ID122>Lease Number:</Lease_Number_Constant_ID122>
    <Customer_Address_Constant_ID102>Customer Address:</Customer_Address_Constant_ID102>
    <Billing_Address_Constant_ID100>Billing Address:</Billing_Address_Constant_ID100>
    <Customer___Alpha_Name_ID116>AEGON</Customer___Alpha_Name_ID116>
    <Customer___Mailing_Name_ID73>400 ket Street</Customer___Mailing_Name_ID73>
    <Customer___Address_Line_1_ID75>Su 400</Customer___Address_Line_1_ID75>
    <Customer___Address_Line_2_ID77>Lolle K 40202</Customer___Address_Line_2_ID77>
    <a_ID123>a</a_ID123>
    <Notification_Constant_ID104>Please be advised that your account has been debited or back-charged as follows:</Notification_Constant_ID104>
    - <Columnar_S7>
    <Invoice_Date_ID27>2010-02-06</Invoice_Date_ID27>
    <DocVoucherInvoiceE_ID21>10000106</DocVoucherInvoiceE_ID21>
    <Document_Type_Description_ID41>Manual Billing</Document_Type_Description_ID41>
    <Pay_Item_ID33>001</Pay_Item_ID33>
    <Due_Date_ID29>2010-03-01</Due_Date_ID29>
    <Remark_ID31>JAN 10 CLEANING INVOICES</Remark_ID31>
    <Amount_ID47>1176.16</Amount_ID47>
    <Taxable_Amount_Value_ID15>1176.16</Taxable_Amount_Value_ID15>
    <CompanyKey_ID43>03285</CompanyKey_ID43>
    <AddressNumber_ID35>204346</AddressNumber_ID35>
    <Company_ID45>03285</Company_ID45>
    </Columnar_S7>
    - <Columnar_S7>
    <Pay_Item_ID33>002</Pay_Item_ID33>
    <Due_Date_ID29>2010-03-01</Due_Date_ID29>
    <Remark_ID31>FEB 10 CLEANING</Remark_ID31>
    <Amount_ID47>872.00</Amount_ID47>
    <Taxable_Amount_Value_ID15>872.00</Taxable_Amount_Value_ID15>
    <CompanyKey_ID43>03285</CompanyKey_ID43>
    <AddressNumber_ID35>204346</AddressNumber_ID35>
    <Company_ID45>03285</Company_ID45>
    </Columnar_S7>
    - <Columnar_S7>
    <Pay_Item_ID33>003</Pay_Item_ID33>
    <Due_Date_ID29>2010-03-01</Due_Date_ID29>
    <Remark_ID31>ADMIN FEE</Remark_ID31>
    <Amount_ID47>143.37</Amount_ID47>
    <Taxable_Amount_Value_ID15>143.37</Taxable_Amount_Value_ID15>
    <CompanyKey_ID43>03285</CompanyKey_ID43>
    <AddressNumber_ID35>204346</AddressNumber_ID35>
    <Company_ID45>03285</Company_ID45>
    </Columnar_S7>
    <Total_Invoice_Amount_Value_ID2>2191.53</Total_Invoice_Amount_Value_ID2>
    <Total_Amount_Invoiced_Constant_ID190>Total Amount Invoiced</Total_Amount_Invoiced_Constant_ID190>
    <Tax_Amount_Constant_ID192>Tax Amount</Tax_Amount_Constant_ID192>
    <Balance_Due_Constant_ID184>Balance Due</Balance_Due_Constant_ID184>
    <Balance_Credit_Due_Value_ID6>2191.53</Balance_Credit_Due_Value_ID6>
    <Transaction_Currency_ID47>USD</Transaction_Currency_ID47>
    <Credit_Due_Constant_ID194>Credit Due</Credit_Due_Constant_ID194>
    </On_Address_Number_S8>
    - <On_Address_Number_S8>
    <Page_Breake_S21 />
    <Date_01_ID31>2010-02-06</Date_01_ID31>
    <Remit_To_Constant_ID98>Remit To:</Remit_To_Constant_ID98>
    <Date_Constant_ID106>Date:</Date_Constant_ID106>
    <Account_Constant_ID108>Account:</Account_Constant_ID108>
    <AddressNumber_ID28>204352</AddressNumber_ID28>
    <Company___Address_Line_1_ID36>Lou Trophy, LLC</Company___Address_Line_1_ID36>
    <RefNo_ID126>10000109001</RefNo_ID126>
    <Refer.No__ID125>Refer.No:</Refer.No__ID125>
    <Company___Address_Line_2_ID38>ValBank, 925 All Rd</Company___Address_Line_2_ID38>
    <Company___Mailing_Name_ID34>Loui Trophy LLC</Company___Mailing_Name_ID34>
    <Page_Number_ID89>1</Page_Number_ID89>
    <Page_Constant_ID110>Page:</Page_Constant_ID110>
    <Company___Address_Line_3_ID40>Clifton NJ 07012</Company___Address_Line_3_ID40>
    <Lease_Number_Constant_ID122>Lease Number:</Lease_Number_Constant_ID122>
    <Customer_Address_Constant_ID102>Customer Address:</Customer_Address_Constant_ID102>
    <Billing_Address_Constant_ID100>Billing Address:</Billing_Address_Constant_ID100>
    <Customer___Alpha_Name_ID116>Commn Bank</Customer___Alpha_Name_ID116>
    <Customer___Mailing_Name_ID73>400 Market Street</Customer___Mailing_Name_ID73>
    <Customer___Address_Line_1_ID75>Suite 140</Customer___Address_Line_1_ID75>
    <Customer___Address_Line_2_ID77>Lo KY 40202</Customer___Address_Line_2_ID77>
    <a_ID123>a</a_ID123>
    <Notification_Constant_ID104>Please be advised that your account has been debited or back-charged as follows:</Notification_Constant_ID104>
    </On_Address_Number_S8>
    - <On_Address_Number_S8>
    - <Columnar_S7>
    <Invoice_Date_ID27>2010-02-06</Invoice_Date_ID27>
    <DocVoucherInvoiceE_ID21>10000109</DocVoucherInvoiceE_ID21>
    <Document_Type_Description_ID41>Manual Billing</Document_Type_Description_ID41>
    <Pay_Item_ID33>001</Pay_Item_ID33>
    <Due_Date_ID29>2010-03-01</Due_Date_ID29>
    <Remark_ID31>JAN 10 CLEANING INVOICES</Remark_ID31>
    <Amount_ID47>75.00</Amount_ID47>
    <Taxable_Amount_Value_ID15>75.00</Taxable_Amount_Value_ID15>
    <CompanyKey_ID43>03285</CompanyKey_ID43>
    <AddressNumber_ID35>204352</AddressNumber_ID35>
    <Company_ID45>03285</Company_ID45>
    </Columnar_S7>
    - <Columnar_S7>
    <Pay_Item_ID33>002</Pay_Item_ID33>
    <Due_Date_ID29>2010-03-01</Due_Date_ID29>
    <Remark_ID31>FEB 10 CLEANING</Remark_ID31>
    <Amount_ID47>385.00</Amount_ID47>
    <Taxable_Amount_Value_ID15>385.00</Taxable_Amount_Value_ID15>
    <CompanyKey_ID43>03285</CompanyKey_ID43>
    <AddressNumber_ID35>204352</AddressNumber_ID35>
    <Company_ID45>03285</Company_ID45>
    </Columnar_S7>
    - <Columnar_S7>
    <Pay_Item_ID33>003</Pay_Item_ID33>
    <Due_Date_ID29>2010-03-01</Due_Date_ID29>
    <Remark_ID31>ADMIN FEE</Remark_ID31>
    <Amount_ID47>46.00</Amount_ID47>
    <Taxable_Amount_Value_ID15>46.00</Taxable_Amount_Value_ID15>
    <CompanyKey_ID43>03285</CompanyKey_ID43>
    <AddressNumber_ID35>204352</AddressNumber_ID35>
    <Company_ID45>03285</Company_ID45>
    </Columnar_S7>
    <Total_Invoice_Amount_Value_ID2>506.00</Total_Invoice_Amount_Value_ID2>
    <Total_Amount_Invoiced_Constant_ID190>Total Amount Invoiced</Total_Amount_Invoiced_Constant_ID190>
    <Tax_Amount_Constant_ID192>Tax Amount</Tax_Amount_Constant_ID192>
    <Balance_Due_Constant_ID184>Balance Due</Balance_Due_Constant_ID184>
    <Balance_Credit_Due_Value_ID6>506.00</Balance_Credit_Due_Value_ID6>
    <Transaction_Currency_ID47>USD</Transaction_Currency_ID47>
    <Credit_Due_Constant_ID194>Credit Due</Credit_Due_Constant_ID194>
    </On_Address_Number_S8>
    + <On_Address_Number_S8>
    <Page_Breake_S21 />
    <Date_01_ID31>2010-02-06</Date_01_ID31>
    <Remit_To_Constant_ID98>Remit To:</Remit_To_Constant_ID98>
    <Date_Constant_ID106>Date:</Date_Constant_ID106>
    <Account_Constant_ID108>Account:</Account_Constant_ID108>
    <AddressNumber_ID28>202370</AddressNumber_ID28>
    <Company___Address_Line_1_ID36>Lou Trophy, LLC</Company___Address_Line_1_ID36>
    <RefNo_ID126>10000112001</RefNo_ID126>
    <Refer.No__ID125>Refer.No:</Refer.No__ID125>
    <Company___Address_Line_2_ID38>Val Bank, 925 All Rd</Company___Address_Line_2_ID38>
    <Company___Mailing_Name_ID34>Lou Trophy LLC</Company___Mailing_Name_ID34>
    <Page_Number_ID89>1</Page_Number_ID89>
    <Page_Constant_ID110>Page:</Page_Constant_ID110>
    <Company___Address_Line_3_ID40>Clifton NJ 07012</Company___Address_Line_3_ID40>
    <Lease_Number_Constant_ID122>Lease Number:</Lease_Number_Constant_ID122>
    <Customer_Address_Constant_ID102>Customer Address:</Customer_Address_Constant_ID102>
    <Billing_Address_Constant_ID100>Billing Address:</Billing_Address_Constant_ID100>
    <Customer___Alpha_Name_ID116>Ern Young</Customer___Alpha_Name_ID116>
    <Customer___Mailing_Name_ID73>Suit 0</Customer___Mailing_Name_ID73>
    <Customer___Address_Line_1_ID75>22 6th Street</Customer___Address_Line_1_ID75>
    <Customer___Address_Line_2_ID77>Mp N 55402</Customer___Address_Line_2_ID77>
    <a_ID123>a</a_ID123>
    <Notification_Constant_ID104>Please be advised that your account has been debited or back-charged as follows:</Notification_Constant_ID104>
    </On_Address_Number_S8>
    + <On_Address_Number_S8>
    + <Columnar_S7>
    <Invoice_Date_ID27>2010-02-06</Invoice_Date_ID27>
    <DocVoucherInvoiceE_ID21>10000112</DocVoucherInvoiceE_ID21>
    <Document_Type_Description_ID41>Manual Billing</Document_Type_Description_ID41>
    <Pay_Item_ID33>001</Pay_Item_ID33>
    <Due_Date_ID29>2010-03-01</Due_Date_ID29>
    <Remark_ID31>FEB 10 CLEANING</Remark_ID31>
    <Amount_ID47>110.00</Amount_ID47>
    <Taxable_Amount_Value_ID15>110.00</Taxable_Amount_Value_ID15>
    <CompanyKey_ID43>03285</CompanyKey_ID43>
    <AddressNumber_ID35>202370</AddressNumber_ID35>
    <Company_ID45>03285</Company_ID45>
    </Columnar_S7>
    + <Columnar_S7>
    <Pay_Item_ID33>002</Pay_Item_ID33>
    <Due_Date_ID29>2010-03-01</Due_Date_ID29>
    <Remark_ID31>ADMIN FEE</Remark_ID31>
    <Amount_ID47>11.00</Amount_ID47>
    <Taxable_Amount_Value_ID15>11.00</Taxable_Amount_Value_ID15>
    <CompanyKey_ID43>03285</CompanyKey_ID43>
    <AddressNumber_ID35>202370</AddressNumber_ID35>
    <Company_ID45>03285</Company_ID45>
    </Columnar_S7>
    <Total_Invoice_Amount_Value_ID2>121.00</Total_Invoice_Amount_Value_ID2>
    <Total_Amount_Invoiced_Constant_ID190>Total Amount Invoiced</Total_Amount_Invoiced_Constant_ID190>
    <Tax_Amount_Constant_ID192>Tax Amount</Tax_Amount_Constant_ID192>
    <Balance_Due_Constant_ID184>Balance Due</Balance_Due_Constant_ID184>
    <Balance_Credit_Due_Value_ID6>121.00</Balance_Credit_Due_Value_ID6>
    <Transaction_Currency_ID47>USD</Transaction_Currency_ID47>
    <Credit_Due_Constant_ID194>Credit Due</Credit_Due_Constant_ID194>
    </On_Address_Number_S8>
    </Columnar_S7_Group>
    </R5503B505>

    Thanks for your response Shastry, but I am having trouble understanding it. Not sure how the above steps will read the current date.
    To be more specific, I want to display only that cost that falls in fiscal year.
    In above example now since it is 03/26/2011 and my fiscal year starts on 04/01 . I want to display cost from row 1 and when the same report will be run after 04/01/2011 it should display cost from  row 2.
    Like wise if the report is run after n number of years , it should display cost as per the fiscal year at that time.
    So i guess the formula should really depend on system date/current date/ print date
    Thanks!

Maybe you are looking for