Really urgent: help in making report for status of vendor payement

Hi,
I am making a report in which i have to display the status of vendor whether it is paid or not?
Till now i am able to have knowledge that when we do MIGO there are the Financial Documents form there i get the account no.. whichit is stored in the BKPF table. From there we have the account no... and after that there are 4 tables into which i have to look after the tables i.e. BSAS,BSIK,BSIS, n BSAK.
Plzz tell me how should i make a report as the Acount no.. have to move among these tables to get the status of it pament.
plzz provide me some guidelines for making a report for it as help will be deifnately rewarded.
Edited by: abaper2008 on May 21, 2008 6:52 AM

Hi,
Hi,
I making a report in which i have to display the vendor payment is done or not?
Curently i am using the 4 tables of Financial :-
BSAK,BSIS,BSIK AND BSAS which gives the status of vendor whether it is paid or not . 1 thing i observed that data compared wit htew MKPF table among these tables(BSAS,BSIK N BSAK) is not coming right as i am taking common field XBLNR among them all .
One more thing i observed that BLART is getting changed in each table.
for instance,
if the BLART is WE for material document and i am taking XBLNR filed from this table MKPF and den looking XBLNR in BKPF where the entry consist of BLART - RE n WE and finally when i look up in the BSAK table the field consist of RE .
How can i see that it is being paid or not the BLART is keep on changing.
Plzz proivde me guidelines as how to rectify the problem?
Edited by: abaper2008 on May 21, 2008 9:03 AM

Similar Messages

  • CPH Reports for Status Attribute.

    Using Central performance History (RZ23n), is it possible to create reports for Status attributes?
    Eg: I want to create for number of abap dumps, dead locks for  each day.
    As per documentation it says we can create for performance values and we are able to create CPH reports for R3Dialog Response time...
    http://help.sap.com/saphelp_nw70/helpdata/en/c2/49773dd1210968e10000000a114084/content.htm
    Any help or ideas are appreciated.
    Thanks,
    Venkat.

    Thank you Shyam for so prompt reply,
    We are using the same report. But its bit uneasy to go to change document of each and every ticket. Also in this report we could not find how much days the notification lay in New status or in In-process status. We require somewhat in following format.
    Ticket number     New           Customer action     In-process
    000001          1Day          1.3 Days          1 Day
    000002          1.3 Days                           2.3 Days           1 Day
    000003          3 Days          3.4 Days          1 Day
    We are not bothered about days, week or hours etc. The purpose is to indentify how much time every ticket took stage wise. May be through ABAP this possible but we are looking for standard reports.
    Thanks
    Anand Rao

  • Really Urgent: Problem in making link b/w sales order and production order

    Hi,
    I am trying to make link b/w the sales order delivery(VL03) by taking its Batch Number(LIPS- Delivery table) and linking with AFPO(Production order Table) field (batch no) so that i can see the fruther operations done o dat production order made against sales order,but it is not coming .
    I want to have help which allows me to make link b/w delivery (vf03) and the productiona order.
    plzz help me out it is really urgent.
    Edited by: ric .s on Apr 11, 2008 7:43 AM
    Edited by: ric .s on Apr 11, 2008 7:59 AM
    Edited by: ric .s on Apr 11, 2008 9:23 AM

    You have delivery no(VBELN) & itam no (Posnr)from lips table.
    Now
    1. go to VBFA table end get the corresponding sales oredr no and order item no.
    In VBFA table pass the delivery no in VBELN and delivery item in POSNN and 'J' in VBTYP_N and 'C' in VBTYP_V.
    Now VBELV & POSNV will return the sales order no and sales order item.
    2. Got to VBAP table and get the corresponding AUFNR to the order no and item no.
    3. Now with that AUFNR you will get a connection with AFPO(Production order Table.

  • Urgent!! Deploy reports for Developer suite 10g (Newbie)

    Hi All,
    I've generated few jsp report using report builder from developer suite 10g. I know in the developer suite 9i. I just copy these jsp files under \reports\j2ee\web. Then start OC4J Instance, and type in from browser as http://localhost:8888/reports/testreport.jsp?userid=username/password@dbconnection. However, it doesn't work for 10g. Is there any different in deploy report for 10g? Please help....
    Thanks,
    Best Regards,

    Andy,
    It's impossible to help us if you doesn't specify what error messages you get?
    If I should take a guess, you're using the wrong port number. Did you check if it's correct before posting your message? Most Developer Suite 10g installations comes with port number 8889.
    Regards,
    Martin Malmstrom

  • VERY URGENT HELP WITH THIS REPORT

    interactive Report for displaying vendor information based on the
    selection made the corresponding Vendor Bank Details
    are listed such that the line selected in the basic list was visible
    along with the secondary list.
    I'M UNABLE TO IMPLEMENT THIS PART HOW TO DO IT " such that the line selected in the basic list was visible
    along with the secondary list."

    hi,
    do u want interctive report in classical report?

  • Purchasing report for one time vendor

    Hi,
    I am using ECC 6.0
    What standard report is available to display purchase order, GR and invoice belonging to one time vendor (CPD account group) ?
    Thanks for your help.
    Kind regards,
    Yann

    Special GL transactions (like down payments) are not allowed for one-time vendors.  Please refer to the following SAP Note.
    https://service.sap.com/sap/support/notes/19638

  • ALV Report for Purchasing Each Vendor

    Hi Anybody,
    I am developing Purchasing Report. But I want display records in ALV Report based Vendor ID and Name.
    Like Standard Report ME2M.
    Ex: 
      Vendor ID : A0002                Name : UMS SEMICONDUCTOR PTE LTD.,
        sNO     po no        item    Price        Qty
         1.       10001          10    12.30           10
         2.       10002          20    30.30           50
         3.       10003          30    40.30           150
      Vendor ID : X0012                Name : ALPHA PTE LTD.,
          sNO     po no        item    Price        Qty
         1.       10004          10    1.30           10
         2.       10005          20    50.30          50
         3.       10006          30    620.30        150
    How to I will do?.  Anybody please tell me.
    Tks
    S.Muthu.
    IT Dept.

    hi..follow this code..
    ===================================================================
    ===================================================================
    report  .
    ========================== Global definitions  ====================
    Data Types
    type-pools: slis.
    types: begin of tp_data,
    lifnr like ekko-lifnr,
           end of tp_data,
           tp_tbl_data type standard table of tp_data.
    Constants
    Data objects (variable declarations and definitions)
    Report data to be shown.
    data: it_data type standard table of tp_data.
    Heading of the report.
    data: t_heading type slis_t_listheader.
    ======================= Selection Screen ==========================
    selection-screen: begin of block b1 with frame title text-t01.
    DATA: w_aux_lifnr like ekko-lifnr.
    SELECT-OPTIONS s_lifnr for w_aux_lifnr
    DEFAULT LIFNR .
    selection-screen: end of block b1.
    ======================== Event Blocks =============================
    at selection-screen.
    start-of-selection.
      perform get_data using it_data.
    end-of-selection.
      perform build_alv using it_data t_heading.
    ======================== Subroutines ==============================
    *&      Form  get_data
          Gets the information to be shown in the report.
    form get_data using t_data type tp_tbl_data.
    SELECT ekko~lifnr
    INTO CORRESPONDING FIELDS OF TABLE t_data
    FROM ekko as ekko
    WHERE ekko~lifnr in s_lifnr
    endform.                    " get_data
    *&      Form  build_alv
          Builds and display the ALV Grid.
    form build_alv using t_data type tp_tbl_data
                         t_heading  type slis_t_listheader.
    ALV required data objects.
    data: w_title   type lvc_title,
          w_repid   type syrepid,
          w_comm    type slis_formname,
          w_status  type slis_formname,
          x_layout  type slis_layout_alv,
          t_event    type slis_t_event,
          t_fieldcat type slis_t_fieldcat_alv,
          t_sort     type slis_t_sortinfo_alv.
    refresh t_fieldcat.
    refresh t_event.
    refresh t_sort.
    clear x_layout.
    clear w_title.
    Field Catalog
      perform set_fieldcat2 using:
    1 'LIFNR' 'LIFNR' 'EKKO' space space  space  space  space  space space space space space space space t_fieldcat .
    Layout
    x_layout-zebra = 'X'. 
    Top of page heading
      perform set_top_page_heading using t_heading t_event.
    Events
      perform set_events using t_event.
    GUI Status
      w_status = ''.
      w_repid = sy-repid.
    Title
    w_title = <<If you want to set a title for
                the ALV, please, uncomment and edit this line>>.
    User commands
      w_comm   = 'USER_COMMAND'.
    Order
    Example
    PERFORM set_order USING '<field>' 'IT_DATA' 'X' space space t_sort.
    Displays the ALV grid
      call function 'REUSE_ALV_GRID_DISPLAY'
        exporting
          i_callback_program       = w_repid
          it_fieldcat              = t_fieldcat
          is_layout                = x_layout
          it_sort                  = t_sort
          i_callback_pf_status_set = w_status
          i_callback_user_command  = w_comm
          i_save                   = 'X'
          it_events                = t_event
          i_grid_title             = w_title
        tables
          t_outtab                 = t_data
        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.
    endform.                    " build_alv.
    *&      Form  set_top_page_heading
          Creates the report headings.
    form set_top_page_heading using t_heading type slis_t_listheader
                                    t_events  type slis_t_event.
    data: x_heading type slis_listheader,
          x_event   type line of slis_t_event.
    Report title
      clear t_heading[].
      clear x_heading.
      x_heading-typ = 'H'.
      x_heading-info = ''(001).
      append x_heading to t_heading.
    Program name
      clear x_heading.
      x_heading-typ = 'S'.
      x_heading-key = 'Program: '.
      x_heading-info = sy-repid.
      append x_heading to t_heading.
    User who is running the report
      clear x_heading.
      x_heading-typ = 'S'.
      x_heading-key = 'User: '.
      x_heading-info = sy-uname.
      append x_heading to t_heading.
    Date of execution
      clear x_heading.
      x_heading-typ = 'S'.
      x_heading-key = 'Date: '.
      write sy-datum to x_heading-info.
      append x_heading to t_heading.
    Time of execution 
      clear x_heading.
      x_heading-typ = 'S'.
      x_heading-key = 'Time: '.
      write sy-uzeit to x_heading-info.
      append x_heading to t_heading.
    Top of page event
      x_event-name = slis_ev_top_of_page.
      x_event-form = 'TOP_OF_PAGE'.
      append x_event to t_events.
    endform.
    *&      Form  set_events
          Sets the events for ALV.
          The TOP_OF_PAGE event is alredy being registered in
          the set_top_page_heading subroutine.
    form set_events using t_events type slis_t_event.
    data: x_event   type line of slis_t_event.
    Example
    clear x_event.
    x_event-name = .
    x_event-form = .
    append x_event to t_event.
    endform.
    *&      Form  set_order
          Adds an entry to the order table.
    FORM set_order USING p_fieldname p_tabname p_up p_down p_subtot
                         t_sort TYPE slis_t_sortinfo_alv.
      DATA: x_sort TYPE slis_sortinfo_alv.
      CLEAR x_sort.
      x_sort-fieldname = p_fieldname.
      x_sort-tabname   = p_tabname.
      x_sort-up = p_up.
      x_sort-down = p_down.
      x_sort-subtot = p_subtot.
      APPEND x_sort TO t_sort.
    ENDFORM.                    "set_order
    *&      Form  set_fieldcat2
          Adds an entry to the field catalog.
       p_colpos: Column position.
       p_fieldname: Field of internal table which is being described by
    *            this record of the field catalog.
       p_ref_fieldname: (Optional) Table field / data element which
    *                describes the properties of the field.
    *                If this field is not given, it is copied from
    *                the fieldname.
       p_ref_tabname: (Optional) Table which holds the field referenced
    *              by <<p_ref_fieldname>>.
                      If this is not given, the parameter
                      <<p_ref_fieldname>> references a data element.
       p_outputlen: (Optional) Column width.
       p_noout: (Optional) If set to 'X', states that the field is not
    *           showed initially. If so, the field has to be
                included in the report at runtime using the display
                options.
       p_seltext_m: (Optional) Medium label to be used as column header.
       p_seltext_l: (Optional) Long label to be used as column header.
       p_seltext_s: (Optional) Small label to be used as column header.
       p_reptext_ddic: (Optional) Extra small (heading) label to be
    *                used as column header.
       p_ddictxt: (Optional) Set to 'L', 'M', 'S' or 'R' to select
                  whether to use SELTEXT_L, SELTEXT_M, SELTEXT_S,
                  or REPTEXT_DDIC as text for column header.
       p_hotspot: (Optional) If set to 'X', this field will be used
    *             as a hotspot area for cursor, alolowing the user
    *          to click on the field.
       p_showasicon: (Optional) If set to 'X', this field will be shown
                     as an icon and the contents of the field will set
    *             which icon to show.
       p_checkbox: (Optional) If set to 'X', this field will be shown
                   as a checkbox.
       p_edit: (Optional) If set to 'X', this field will be editable.
       p_dosum: (Optional) If set to 'X', this field will be summed
                (aggregation function) according to the grouping set
                by the order functions.
       t_fieldcat: Table which contains the whole fieldcat.
    FORM set_fieldcat2 USING
          p_colpos p_fieldname p_ref_fieldname p_ref_tabname
          p_outputlen p_noout
          p_seltext_m p_seltext_l p_seltext_s p_reptext_ddic p_ddictxt
          p_hotspot p_showasicon p_checkbox p_edit
          p_dosum
          t_fieldcat TYPE slis_t_fieldcat_alv.
      DATA: wa_fieldcat TYPE slis_fieldcat_alv.
      CLEAR wa_fieldcat.
    General settings
      wa_fieldcat-fieldname = p_fieldname.
      wa_fieldcat-col_pos = p_colpos.
      wa_fieldcat-no_out = p_noout.
      wa_fieldcat-hotspot = p_hotspot.
      wa_fieldcat-checkbox = p_checkbox.
      wa_fieldcat-icon = p_showasicon.
      wa_fieldcat-do_sum = p_dosum.
    Set reference fieldname, tablenam and rollname.
    If p_ref_tabname is not given, the ref_fieldname given
       is a data element.
    If p_ref_tabname is given, the ref_fieldname given is a
       field of a table.
    In case ref_fieldname is not given,
       it is copied from the fieldname.
      IF p_ref_tabname IS INITIAL.
        wa_fieldcat-rollname =   p_ref_fieldname.
      ELSE.
        wa_fieldcat-ref_tabname = p_ref_tabname.
        IF p_ref_fieldname EQ space.
          wa_fieldcat-ref_fieldname =   wa_fieldcat-fieldname.
        ELSE.
          wa_fieldcat-ref_fieldname =   p_ref_fieldname.
        ENDIF.
      ENDIF.
    Set output length.
      IF NOT p_outputlen IS INITIAL.
        wa_fieldcat-outputlen = p_outputlen.
      ENDIF.
    Set text headers.
      IF NOT p_seltext_m IS INITIAL.
        wa_fieldcat-seltext_m = p_seltext_m.
      ENDIF.
      IF NOT p_seltext_l IS INITIAL.
        wa_fieldcat-seltext_l = p_seltext_l.
      ENDIF.
      IF NOT p_seltext_s IS INITIAL.
        wa_fieldcat-seltext_s = p_seltext_s.
      ENDIF.
      IF NOT p_reptext_ddic IS INITIAL.
        wa_fieldcat-reptext_ddic = p_reptext_ddic.
      ENDIF.
      IF NOT p_ddictxt IS INITIAL.
        wa_fieldcat-ddictxt = p_ddictxt.
      ENDIF.
    Set as editable or not.
      IF NOT p_edit IS INITIAL.
        wa_fieldcat-input     = 'X'.
        wa_fieldcat-edit     = 'X'.
      ENDIF.
      APPEND wa_fieldcat TO t_fieldcat.
    ENDFORM.                   "set_fieldcat2
    ======================== Subroutines called by ALV ================
    *&      Form  top_of_page
          Called on top_of_page ALV event.
          Prints the heading.
    form top_of_page.
      call function 'REUSE_ALV_COMMENTARY_WRITE'
        exporting
        i_logo             = <<If you want to set a logo, please,
                             uncomment and edit this line>>
          it_list_commentary = t_heading.
    endform.                    " alv_top_of_page
    *&      Form  user_command
          Called on user_command ALV event.
          Executes custom commands.
    form user_command using r_ucomm     like sy-ucomm
                            rs_selfield type slis_selfield.
    Example Code
    Executes a command considering the sy-ucomm.
    CASE r_ucomm.
       WHEN '&IC1'.
         Set your "double click action" response here.
         Example code: Create and display a status message.
         DATA: w_msg TYPE string,
               w_row(4) TYPE n.
         w_row = rs_selfield-tabindex.
         CONCATENATE 'You have clicked row' w_row
                     'field' rs_selfield-fieldname
                     'with value' rs_selfield-value
                     INTO w_msg SEPARATED BY space.
         MESSAGE w_msg TYPE 'S'.
    ENDCASE.
    End of example code.
    endform.                    "user_command

  • Audit report for block/release Vendor Invoices

    Dear Experts,
    I need a report for Internal Control purposes that traces the block / release invoices per Vendor, with the respective reasons, users involved , date, invoices amount.
       Is there any standard report for it ? 
    Thank you for your help
    Kind Regards
    Jose Marques

    Hai !!
    Your Problem will be solved by using the transaction code AUT10, select the transaction code MRBR
    You can find your solution by getting the report on from the table BSEG
    Regards
    shamul heq

  • Urgent: Need help in making report

    Hi,
    i am making a report in which i have to display the minimum level,maximum level,reorder level and stock level. Plzz tell me which tables should i use ?
    if there is a material which have 3 values and we have to display these as a sum of values in 1 line of material.how should i use dis?
    for instance,
    222000(item id)             25
    222000(item id)             10
    222000(item id)             15
    i want to display the out put as :-
    222000    50
    in the same way for other materials ,how should i do dis?
    Plzz help me in solving dese 2 problems as help will be deinfately rewarded.

    Hi,
    Check table MDTP, PLPR, PLSC.
    for ur field query.
    And for
    222000(item id) 25
    222000(item id) 10
    222000(item id) 15
    u store this values into an internal table say itab.
    U declare one more internal table.
    like
    data: begin of itab1 occurs 0,
              item id..............,
              value----
            end of itab1.
    loop at itab.
    move-corresponding itab to itab1.
    collect itab1.
    clear itab1.
    endloop.
    now ur itab1 will show like
    222000 50
    If it is helpfull pls do reward .
    Regards
    Srimanta

  • HELP - REALLY URGENT : iCal sending loop mails for an alarm, and more

    Hi.
    My iCal is not working since 2 months now. Even I post here something, I had no replies. iCal is REALLY slow since 2 months, needing 20 seconds to pass a field (as to go from 20 to 00 field in a 20:00 meeting).
    I reinstalled totally my Mac OS for that and it did not change anything. It's linked to SyncServer.
    Worst, now I have an alarm that was set last year, to send an email. Everytime I start my laptop, iCal loop this alarm and sent 500 mails, I have to force to quit SyncServer. And if I go to iCal to remove the alarm, iCal crash !
    I can't loose all my datas... please do help me !

    I made that, but as my OS X reinstallation, did not solve anything
    and even .mac sync does not work anymore now pff i'm getting tired of Apple in this kind of situation, nobody cares

  • Urgent Help Required In Reports 6i for 11.5.10

    we have a scenario where we have nested repeating frames. whenever we are trying to run the report we are getting the following error
    REP-1219: 'R_Comp_Int_Comp' has no size -- length or width is zero.
    please help me to solve the error. we are running this report in oracle applications 11.5.10.
    any kind of help will be highly appreciated.

    Hi,
    Please check the height and width of the frame not to be less than the items enclosing.
    Check VERTICAL and HORIZONTAL elasticity properties of the frame.
    Check if the current frame is crossing its parent frame of illegal anchoring with other objects.
    Last oprtio, is always best.
    Delete this frame and re-create it.
    Cheers
    Ram Kanala

  • Please help...Its really urgent- Which class to use for this?

    Can someone help me with this? I want to read characters from a file
    Ultimately I want to load some information from a text file which has information like this:
    0123456789
    0
    1
    4
    10
    X0123456789
    01202120212
    11202120212
    20212021202
    I want to load the information from X onwards .. all the rows and columns in a 2D array..
    I am not able to read the file at all ...
    I tried RandomAccessFile, BufferedReader..... They had problems.....what class sould I use.. any if you can give hints how I can reach X and start reading to 2d array...... It will be really very very helpful........
    Please help......

    Hi...
    See this is the partial code
    class LanguageRecognizer
         String word;
         String fileName;
         BufferedReader reader;
         char transitionTable[][];
         char letters[];
         char startState;
         char endStates[];
         int rows;
         int columns;
         public void getFileName(String fileName_)
              /********** Create File Objects to read file ******************************/
              try{
              this.fileName = fileName_;
              java.io.BufferedReader reader = new java.io.BufferedReader(new FileReader(fileName));
                   /***** Read File **************/
                   int i;
                   int X = 0;
                        /** as long as its not the EOF **/
                        while((i=reader.read()) != -1)
                             //Print all characters
                             System.out.println((char)i);
                             if (((char)i)=='X')
                                  X = i;
                                  System.out.println("X is at "+(char)i);                         
                             }//if
                        }//while          
              catch(Exception e)
                   e.printStackTrace();
              /**Call Prompt user and ask user to enter a word****************************/
                   promptUser();
         }//getFileName()When I say
    The while loop prints this file containing:
    0123456789
    0
    1
    4
    10
    X0123456789
    01202120212
    11202120212
    20212021202
    But it prints it in this format :
    0
    1
    2
    3
    4
    5
    6
    7
    8
    9
    //Want to take this in the letter[]
    0 //want to take this as the startstate
    1 // This is the end state which could be more than one so in endState[]
    4 // This is the number of rows in the transition table
    1 // This is columns
    0
    //This is the transition table that I want in a 2D array......
    X // This is the X printed with the if() in the code
    X
    0
    1
    2
    3
    4
    5
    6
    7
    8
    9
    0
    1
    2
    0
    2
    1
    2
    0
    2
    1
    2
    1
    1
    2
    0
    2
    1
    2
    0
    2
    1
    2
    2
    0
    2
    1
    2
    0
    2
    1
    2
    0
    2
    So I want to capture each letter typed in arrays.......But I am not able to seperate them and get them in my datatypes... atleast not using this class BufferedReader.... so can I use this class and get it or which class can I use??

  • Really urgent: reagring flow of report

    Hi,
    If there is a Finished Product which is sold in the market by the company and we want to know which RAW MATERIAL is used in it and what is the status of the bill of that raw material whether it is paid or not?
    I want to know what are the tables to be used in this report and what will be the flow of the report.
    plzz help me out as help will be definately rewarded.

    Hi,
    I want to know that where should i start this report ? 1st i will take material which is in sales order and then run it MRP if it is requiered ,but 1 thing is dere any tcode that tells that whether its MRP runned or not? after that it there will be production order for that ?  plzz guide me as help will be definately rewarded.
    PLZZZZZ HELP ME OUT .......................
    Edited by: ric .s on Apr 10, 2008 6:43 AM

  • Urgent help required regarding reports Arabic Characters (Right to Left)

    Hello Members
    I am facing problem while deploying oracle reports on application server (Forms & Reports). I am using Developer Suite 10g 10.1.2.0.2 and same version of Application Server on Windows Environment. I have some fields in Arabic and some are in English. The reports output is in PDF format. I am also using PDF Subset fonts feature to subset the Arabic font problem.
    Now the problem which I cannot is that I wanted that PDF generate report read Right to Left only for some specific fields not all fields. For example the following fields displayed as
    395/دمام (Actually reading left to right and same saved in database)
    But I wanted to be numbers are displayed first and then arabic word (dammam) while reading right to left.
    My NLS_settings on developer suite and application server is “AMERICAN_AMERICA.AR8MSWIN1256”
    When I am changing the nls_settings to “ARABIC_SAUDI ARABIA.AR8MSWIN1256”. It convert the whole report layout from righ to left and then it is not reading well the English fields i.e. left to right.

    The problem was solved by changing
    REPORTS_BIDI_ALGORITHM=UNICODE
    REPORTS_ARABIC_NUMERAL=ARABIC
    But now i have another issue that i wanted to display one filed with REPORTS_ARABIC_NUMERAL=ARABIC and second with REPORTS_ARABIC_NUMERAL=HINDI. During my all search i found that this is applied on Report wise and we cannot set for one filed.
    Would any body will help me to change REPORTS_ARABIC_NUMERAL for one field at runtime or design time either changing the registry value or any configuration file of application server ?

  • Nee help on ALV report for Total of BSEG-BUZEI & F1 document in FB03

    Hi friends,
    I need to diplay line items total & when double clicked on BELNR field it should open the F1 document in FB03.
    Could anyone plz guide me on this.
    Waiting for response.
    below is my code,
    Kindly needed help.
    REPORT  YALV_1.
    TABLES : BKPF,BSEG.
    Data for ALV display
    TYPE-POOLS: SLIS.
    data : int_fcat type SLIS_T_FIELDCAT_ALV,
           fieldcatalog type slis_t_fieldcat_alv with header line.
    DATA:  wa_sortinfo TYPE slis_sortinfo_alv,
           i_sortcat TYPE slis_t_sortinfo_alv.
    TYPES  : BEGIN OF T_BKPF,
            BUKRS TYPE BKPF-BUKRS,
            BELNR TYPE BKPF-BELNR,
            GJAHR TYPE BKPF-GJAHR,
            BLART TYPE BKPF-BLART,
            BLDAT TYPE BKPF-BLDAT,
            BUDAT TYPE BKPF-BUDAT,
            END OF T_BKPF.
    types: begin of t_bseg,
           BUZEI TYPE BSEG-BUZEI,
           end of t_bseg.
    DATA : it_bkpf TYPE STANDARD TABLE OF t_bkpf with header line,
          wa_bkpf TYPE t_bkpf,
           it_bseg type standard table of t_bseg.
          wa_bseg type t_bseg.
    field to store report name
    DATA :  i_repid like sy-repid.
    select bukrs belnr gjahr blart bldat budat from bkpf into table
    it_bkpf where blart = 'AA'.
    field to check table length
    *data i_lines like sy-tabix.
    *Start-of-selection.
    START-OF-SELECTION.
    perform data_retrieval.
    perform build_fieldcatalog.
    PERFORM sortcat_init CHANGING i_sortcat.
    perform display_alv_report.
    *&      Form  BUILD_FIELDCATALOG
          Build Fieldcatalog for ALV Report
    form build_fieldcatalog.
    There are a number of ways to create a fieldcat.
    For the purpose of this example i will build the fieldcatalog manualy
    by populating the internal table fields individually and then
    appending the rows. This method can be the most time consuming but
    *can
    also allow you  more control of the final product.
    Beware though, you need to ensure that all fields required are
    populated. When using some of functionality available via ALV, such
    *as
    total. You may need to provide more information than if you were
    simply displaying the result
                  I.e. Field type may be required in-order for
                       the 'TOTAL' function to work.
      fieldcatalog-fieldname   = 'BUKRS'.
      fieldcatalog-seltext_m   = 'Company Code'.
      fieldcatalog-col_pos     = 0.
      fieldcatalog-outputlen   = 4.
    fieldcatalog-do_sum      = 'X'.
    fieldcatalog-no_zero     = 'X'.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'BELNR'.
      fieldcatalog-seltext_m   = 'Doc No'.
      fieldcatalog-col_pos     = 1.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'GJAHR'.
      fieldcatalog-seltext_m   = 'Fiscal Year'.
      fieldcatalog-col_pos     = 2.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'BLART'.
      fieldcatalog-seltext_m   = 'DOC Type'.
      fieldcatalog-col_pos     = 3.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'BLDAT'.
      fieldcatalog-seltext_m   = 'Doc Date'.
      fieldcatalog-col_pos     = 4.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'BUDAT'.
      fieldcatalog-seltext_m   = 'Popsting Date'.
      fieldcatalog-col_pos     = 5.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'BUZEI'.
      fieldcatalog-seltext_m   = 'Line Items'.
      fieldcatalog-col_pos     = 6.
      fieldcatalog-do_sum      = 'X'.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
    endform.                    " BUILD_FIELDCATALOG
    FORM sortcat_init CHANGING i_sortcat TYPE slis_t_sortinfo_alv.
      CLEAR wa_sortinfo.
      wa_sortinfo-fieldname = 'BUKRS'.
      wa_sortinfo-tabname = 'T_BKPF'.
      wa_sortinfo-spos = 1.            " First sort by this field.
      wa_sortinfo-up = 'X'.            "   Ascending
      wa_sortinfo-subtot = 'X'.        " Subtotal at Name1
      APPEND wa_sortinfo TO i_sortcat.
      CLEAR wa_sortinfo.
      wa_sortinfo-fieldname = 'BELNR'.
      wa_sortinfo-tabname = 'T_BKPF'.
      wa_sortinfo-spos = 2.            " Sec sort by this field.
      wa_sortinfo-up = 'X'.            "   Ascending
      wa_sortinfo-subtot = 'X'.        " Subtotal at Name1
      APPEND wa_sortinfo TO i_sortcat.
    ENDFORM.                    " sortcat_init
    *&      Form  DISPLAY_ALV_REPORT
          Display report using ALV grid
    form display_alv_report.
      i_repid = sy-repid.
      call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = i_repid
               i_callback_top_of_page   = 'TOP-OF-PAGE'  "see FORM
               i_callback_user_command = 'USER_COMMAND'
               i_grid_title           = outtext
               is_layout               = gd_layout
                it_fieldcat             = fieldcatalog[]
               it_sort                = i_sortcat
               it_special_groups       = gd_tabgroup
               IT_EVENTS                = GT_XEVENTS
                i_save                  = 'X'
               is_variant              = z_template
           tables
                t_outtab                = IT_BKPF
           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.
    endform.                    " DISPLAY_ALV_REPORT
    *&      Form  DATA_RETRIEVAL
    form data_retrieval.
    IF it_bkpf[] IS NOT INITIAL.
       select buzei from bseg into
         table it_bseg for all entries in it_bkpf
         where bukrs = it_bkpf-bukrs
         and belnr = it_bkpf-belnr
         and gjahr = it_bkpf-gjahr.
         endif.
    endform.                    " DATA_RETRIEVAL.

    Hello
    1.
    form display_alv_report.
    i_repid = sy-repid.
    call function 'REUSE_ALV_GRID_DISPLAY'
    exporting
    i_callback_program = i_repid
    i_callback_user_command = 'USER_COMMAND'
    it_fieldcat = fieldcatalog[]
    i_save = 'X'
    tables
    t_outtab = IT_BKPF
    exceptions
    program_error = 1
    others = 2.
    2.
    * FORM USER_COMMAND
    FORM user_command USING u_com LIKE sy-ucomm sel_lin TYPE slis_selfield.
    CASE u_com.
      WHEN '&IC1'. 
        CASE sel_lin.
          WHEN 'BELNR'.
          read TABLE IT_BKPF INDEX sel_lin-tabindex.
          SET PARAMETER ID 'BLN' FIELD IT_BKPF-BELNR.
          SET PARAMETER ID 'BUK' FIELD IT_BKPF-BUKRS.
          SET PARAMETER ID 'GJR' FIELD IT_BKPF-GJAHR.
          CALL TRANSACTION 'FB03' AND SKIP FIRST SCREEN. 
        ENDCASE.
    CLEAR u_com.
    ENDCASE.
    ENDFORM. "USER_COMMAND

Maybe you are looking for

  • How can I link .svg files in the .html code?

    How can I link .svg files in the .html code?

  • CmcApp don't work after deployment on SAP Netweaver 7.0

    Hello, I've installed BOE XI3.1sp3 and after installation deployed Web Components to SAP Netweaver 7.0Ehp1. After deployment, I've try to launch CMC application in web browser. The url is http://<j2ee_server>:<j2ee_port>/CmcApp. Logon screen looks go

  • Error 1097 when calling dll

    I'm using more than 20 functions from a .dll code to Labview and have in some of then the 1097 error. Error 1097 occurred at Call Library Function Node Possible reason(s): LabVIEW:  An exception occurred within the external code called by a Call Libr

  • Upgraded OS ans what are all steps to change in instance

    Hi, I just upgraded my RHEL version from 4.2 to 5. Now what all the changes need to do in my single node instance R12.0.0 to startup the application tier.??.. database version is 10.2.0.2 thanks, vasanth

  • Abap ques

    1.What is the difference Between Role and Profile? 2.What is the process of dialog program from first to last? 3.How can one use Bar codes in Sap-script? 4.Answer the following set of questions a)     What is MANUE field in NAST table? b)     What is