GR DN Billing report

Dear All,
I need the monthly one report like:
Total Production GR by posting date
Total Delivery Qty form GR
Total Billing Qty from Delivery
Balance in hands
Is there any standard report in one screen?
Or any idea please advice.
Thanks and B/R
Bishnu
05/10

Thanks for your reply.
One more things, can you advice me?
for the sales document flow we can find all the document transact list in VBFA table.
Is there any document for goods movement(GR from production order) flow table?
I only getting the goods movement from delivery note in VBFA table.
Thanks and b/R
Bishnu
06/10

Similar Messages

  • Billing report with due date field

    Dear Friends,
    Can you please tell the logic of Billing report with due date field.
    Input.  billing document no, date range, sales organisation
    Output : billing document no, sales organisation, Amount. Due date.
    If any clarification required, Please let me know.
    Thanks in advance
    Ranjan

    Is it VF05 is suffiant for your purpose?
    use further selection criteria tab.
    Amit.

  • Showing diff in billing report from dev to prd

    Hi,
    my requirement in production
    document flow - sales order-del-pgi-invoice-cancelled invoice-new invoice
    we have developed a report for billing documents, in that when i enter the selection screen inputs its not showing the new invoice details, it is reflecting only the older invoice details
    same replica i have created in development its working but no in production
    please post your answers urgently,
    thanks in advance

    Dear Nashpalle9,
    Check the following.
    Whether the selection input you give in PRDN is valid for the NEW INVOICES.
    In such billing reports, usually there will be BILLING TYPE as Selection option.
    Check whether the NEW INVOICE TYPE is included.
    Check whether the new invoices are created in the date range given in the selection screen (if you are having date as selection option).
    Without giving us the details about your selection screen, how can you expect others to
    please post your answers urgently,
    Check and revert back.
    Thanks & Regards,
    Hegal K Charles

  • Difference in profit center (s_plo_86000030) report and billing report (Z )

    Dear  SAP GURUS
    We have develped a billing report - z reprt  - but  the std profit center report -( S_PL0_8600030)
    NOT matching with it in output? kindly advise me to check and see the logic on the z report so that
    we can confirm  the reason for difffernces ?
    I mean how a functional consutlant can check the logic behind program ?
    Edited by: johnrambo on Jul 6, 2010 8:05 AM

    Dear,
    Are you able to see the General Ledger View of that entry?
    mukesh

  • How to Prepare FD for a Periodic Billing report

    Hello Gurus,
    I need to create a FD for  Periodic Billing report.
    could  anyone of you help me to prepare it?
    My Basic doubts are:
    how do i know what are the characteristics, KFs,Mp etc should i use in creating?
    While discussing regarding requirement what should i ask the user to give inputs.
    Please help me to do it.
    BR,
    Shyamala.

    hi
    why dont u use Prompt Display  to "Place label on side of prompt" ?? . it will align automatically.
    Regards
    Sher

  • SO/Billing Report

    Is the any standard report showing, SO/Billing report by material with Tax code
    thanks

    There is no standard report available for SO/Billing with tax code and material.
    In case you want to get this report, ABAP report has to be developed. You can check whether Querry work for this particular thing.
    Also if you want to match the item level data with FI - GL account , this will not match correctly.
    Cheers
    Prashant

  • Help required for our Crystal Reports billing reports

    Hi there, excuse me if this is the wrong location to make this post, just registered today and in need of help. We employee an in house developer and use Crystal Reports 2008, Service Pack 3 and have a couple of issues using Crystal Reports effecting the bills we email out to our clients and hoping someone can advise or point us in the direction of a partner who is an expert in this area.
    Issues are:
    We use a background colour for each section of our customers bill. When a section rolls over on to another page i.e. multiple sections we cant get the background colour grow to the bottom of the page. For example the customer sees the background colour stop possibly 1/2 way down the page.
    Intermittently about 30% of the time where the customer has more than 2 pages we get a blank page inserted with nothing but has our logo in the same position.
    Displaying $ figures using the default currency format on to the bill shows negative figures with the $ in front of the - i.e. $-2.81 instead of -$2.81
    We have an issue occasionally the last line on the bottom of a page changes the thickness of the line and also the position i.e. the line appears lighter & sometimes indented about 10mm.
    We would love to apply a banner down the right hand side of our landscaped page however the bill is broken into sections which we understand we cant have a full length banner? Open to ideas.
    Thank you for any direction on how to resolve these issues, we have been living with them for 3 years. As mentioned above happy to pay for any expert to help us through this or refer to a partner.
    Thanks again
    Dwayne

    To add to Jamie's post. Updating to Service Pack 7 will not be a bad idea either. You will have to contact sales: 866-681-3435or Customer Interaction Center: SAP Service Marketplace Content Page to get the SP.
    Other than that, one question per Discussion would be great. SCN Rules of Engagement.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Question regarding billing report

    is there a standard report where i can see all the billing documents for all customers with respect to all materials for specific dates? vf05 gives me material specific or payer specific details, where as i need all customers and all materials in one. thanks!

    Hi,
    No standard report is existing with your requirement.
    In "VF05" T.Code,we have to give the payer.So it will not give for all.
    But in the T.Code "VF05N",this report will give all the billing documents irrespective of any payer.It will list you all the existing billing documents based on your selection.But the problem here is you will not get the materials numbers.
    So we have two options.
    Make a copy of the existing report "VF05N" and add the new field material here in the columns list.
    To get the material number,pass the billing documentnumber into "VBRP" table and get the material number.
    Another way is to create a new "Z" report.
    Regards,
    Krishna.

  • Pulling GL_ACCOUNT info into Sales Billing Report(based on VDITM)

    Dear all,
    I want populate profit center(this I can get from mat_plant attribute) and gl_account in the Report.
    My problem is how do I get the join condition between general ledger data and vditm to get the GL_ACCOUNT for each billing item.
    anyone any ideas?
    Regards,
    RK

    Hi rajesh,
    You directly have the VBRP-PRCTR profit center in the 13_VDITM ,
    And one possible way of getting the GL Account in the billibg extractor is , Billing item table has sales document in it VBRP-AUBEL and , FI-AR table BSID also have Sales Doc with GL Account , may you can can give a try with this realtion
    or as a alternate you can try a look up from DSO 0FIAR_O03 in BI which will have sales doc and GL Account
    I am just guessing this possibilty , please investigate and implement
    Regards,
    Sathya

  • My form showing an alert after prcessin the bill report

    I m sending my code and i want to remove message and run the biill process easly bill is not processing and show msg--: bill already processed
    my code is
    declare
    cursor c_agcd is
         select distinct bilagcd,nvl(trde_disc,0),agty,fedn,f_typ from cr_agmast
         where unit=:block3.unit and bilagcd is not null
         and bilagcd in( select distinct oldagcd from cr_dbksup
         where unit=:block3.unit and publ=:block3.ppubl and supdate between :frdt and :todt and rsup<>0
         and BTYP='Y' ---and agty=:block3.agty or :block3.agty is null)
         and (oldagcd =:block3.pagcd or :block3.pagcd is null))
         order by cr_agmast.f_typ desc,cr_agmast.bilagcd;
         sup_rec c_agcd%rowtype;
         v_typ varchar2(5);
         vagty varchar2(5);
         vagcd varchar2(15);
         vtrde_disc number(7,2):=0;
         v_rec_cnt number:=0;
    cursor c_supply is
    select sum(rsup),oldagcd ,supdate,sor,publ,comm from cr_dbksup
         where unit=:block3.unit and publ=:block3.ppubl and oldagcd is not null
         and oldagcd = vagcd and supdate between :frdt and :todt and rsup<>0
         group by oldagcd,supdate,sor,publ,comm
         order by supdate;
         ppubl      varchar2(6);
         vedtn      varchar2(5);
         tot_sup                     number(8)          :=0;
         rate                               number(7,2)     :=0;
         vcomm                          number(7,2)     :=0;
         gross_amt                number(12,2):=0;
         v_gross_amt           number(12,2):=0;
         v_disc_amount      number(12,2):=0;
         net_amt                     number(12,2):=0;
         disc_amount           number(12,2):=0;
         bagcd varchar2(20);
         billno varchar2(20);
         pdate date;
         pcopy number(10):=0;
    /*cursor      c_rate is
         select distinct amtr from cr_rate where edtn =vedtn;*/
    /*     cursor c_rate is
    select distinct sor from cr_dbksup where unit=:block3.unit and
              edtn=sup_rec.fedn and glcode = sup_rec.glcode;
         cn number(5);*/
         cursor c_rate is
         select distinct sor from cr_dbksup
              where unit=:block3.unit and publ=:block3.ppubl and
                             edtn=sup_rec.fedn and oldagcd = sup_rec.bilagcd;
         cn number(5);
    cursor c_dt is
         select distinct fr_date FROM fin.freeze_type
              where divn=:block3.unit AND fr_typ='SCR';
    v_fdt date;
    begin
         select count(*) into v_rec_cnt from cr_bill
              where unit=:block3.unit and publ=:block3.ppubl and bldate = :block3.bill_dt;
         if nvl(v_rec_cnt,0)>0 then
              message('Bill Already processed for this Publication '||:block3.ppubl);
              message('Bill Already processed for this Publication '||:block3.ppubl);
              raise form_trigger_failure;
         end if;
         :system.message_level :=25;
         -----check validationfor freeze Voucher
         open c_dt;
         fetch c_dt into v_fdt;
         close c_dt;
         if v_fdt>:block3.bill_dt then
              message('Freeze date '||v_fdt||' Not allowed to Enter/Update/Delete Data of Freeze Date ');
              message('Freeze date '||v_fdt||' Not allowed to Enter/Update/Delete Data of Freeze Date ');
              raise form_trigger_failure;
         end if;
         --message('i m here ');message('i m here ');
         open c_agcd;
         loop
              fetch c_agcd into vagcd,vtrde_disc,vagty,vedtn,v_typ;
              exit when c_agcd%notfound;
              pcopy                     :=0;
              v_disc_amount     :=0;
              gross_amt           :=0;
              disc_amount      :=0;
              net_amt                :=0;
              --message('i m here c_supply');message('i m here c_supply');
              open c_supply;
              loop
                   fetch c_supply into tot_sup,bagcd,pdate,rate,ppubl,vcomm;
                   exit when c_supply%notfound;
                   v_gross_amt           :=      tot_sup*rate;
                   v_disc_amount      := v_gross_amt*vcomm/100;
                   pcopy                          :=     pcopy                    +     tot_sup;
                   gross_amt                :=      gross_amt      + v_gross_amt;
                   disc_amount               :=     disc_amount     +     v_disc_amount;
                   tot_sup     :=0; rate :=0;vcomm:=0; v_disc_amount     :=0;
              end loop;
              net_amt           := round((gross_amt - disc_amount),0);
              select nvl(count(1),0) into cn from cr_bill
              where unit=:block3.unit and publ=:block3.ppubl
              and agcd =bagcd and bldate = :block3.bill_dt;
              if nvl(cn,0) = 0 then
                   billno := bill();
              end if;
              synchronize;
              :block3.dagcd := bagcd ;
              :block3.amount:= net_amt;
              synchronize;
              --message('i m here net_amt '||bagcd||' , '||billno);message('i m here net_amt '||bagcd||' , '||billno);
              if net_amt is not null and net_amt >0 then
                        update cr_bill set totblamt = gross_amt , copr =pcopy, amtr = net_amt, comm_per =vtrde_disc, comm_amt = disc_amount,
                                                                     frdt =:block3.frdt , todt = :block3.todt, agty =vagty ,surt =rate,doctyp='SCR'
                        where unit=:block3.unit and publ=:block3.ppubl and agcd = bagcd and bldate = :block3.bill_dt; --and edtn = vedtn;
                   if sql%notfound then
                        insert into cr_bill(unit,bldate,bill,agcd,glcode,totblamt,publ,edtn,copr,amtr,comm_per,comm_amt,frdt,todt,agty,surt,doctyp)
                        values(:block3.unit,:block3.bill_dt,billno,bagcd,bagcd,gross_amt,ppubl,vedtn,pcopy,net_amt,vtrde_disc,disc_amount,
                        :block3.frdt,:block3.todt,vagty,rate,'SCR');
                   end if;
                   update cr_outmast set amount =net_amt,balance = net_amt
                        where unit=:block3.unit and doctyp='BIL' and publ=:block3.ppubl and agcd =bagcd and billdt = :block3.bill_dt;--and edtn =vedtn;
                   if sql%notfound then
                        insert into cr_outmast(unit,agcd,glcode,doctyp,billno,billdt,voucherno,voucherdt,publ,amount,balance,edtn)
                        values(:block3.unit,bagcd,bagcd,'BIL',billno,:block3.bill_dt,billno,:block3.bill_dt,ppubl,net_amt,net_amt,vedtn);
                   end if;
              end if; -- for o balance entry
              close c_supply;
         end loop;
         close c_agcd;
         commit;     
         forms_ddl('commit');
         message('Bill has been Processed');
         message('Bill has been Processed');
         --set_item_property('process',visible,property_false);
         go_item('exit');
    end;

    The data form should show exactly what is in essbase so if you query essbase with the Excel Add-in you should see the same number.
    Seems like either your data is not what you expect it to be or the form definition is incorrect.
    Regards,
    -John

  • Where have the CSV bill reports gone?

    I download my quarterly bill in CSV format as some calls are claimed back from an employer.  Since the change of the website I cannot find where the CSV download option has gone to.  Can someone please direct me to it?

    Hi AndrewD,
    Welcome to the forum!
    CSV files are available for the calls on the current bill only. To get to it:
    - View your most recent bill;
    - Click on ‘What you used’ on the navigation menu on the left of the page;
    - Scroll down to the bottom of the page where the text link (‘Download Data’) is for the CSV file;
    - Click on the text link to start the CSV download.
    All the best,
    Stephanie
    Stephanie
    BTCare Community Manager
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post. If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • Report of billing

    Dear All,
    how can i get billing report with reference to purchase order which is mention in sales order.what is the correct procedure will get this documents or transaction code if any standard are there in SAP ECC 6.0.
    Regards
    Ajit

    There is no standard report to meet your requirement.
    Field XBLNR from table VBRK will take the reference of the value what you require.  But it depends on your copy control VTFL.  In VTFL, if you select your delivery type and billing type and click on blue lens on top left, you can see a field "Reference number".   There if you maintain "A",  you can generate a report from VBRK.
    thanks
    G. Lakshmipathi

  • Reg: Billing Plan Report

    Hi
    I got one FS from Client side regarding Billing Report i unable to write the logic for some Fields, please find attach the Ouput Format required from Clinet.
    Sales Order Number (VBAK-VBELN)
    Project Definition Number
    Project Definition (from project)
    Project Manager (person responsible from project)     
    Customer Number   
    Customer Name
    Order Type
    Sales Order Line
    Billing Plan Item Number
    Billing Item Milestone Description (from Project)
    Billing Plan ItemValue
    Billing Item Currency
    Billing Block Status
    Billing Plan Item Billing Type
    Milestone Planned Billing Date      
    Milestone Release Confirmation Date
    Billing Plan Item Invoice Number
    I am unable to find the logic for  the Below output Feilds
    Billing Item Milestone Description (from Project)
    Milestone Planned Billing Date      
    Milestone Release Confirmation Date
    Billing Plan Item Invoice Number
    Please let know which Table which will fetch this details
    The Input for this report is Plant ( Mandatory Feild) and optional Feild are  Sale order No and Project Definition No.
    Kindly help me out SAP GURUS
    Regards

    Hi,
    The logic for Billing plan item invoice number is:
    Pass the sales order number into VBKD table.Execute.
    Select your lineitem and fetch the value if Billing plan number(FPLNR).
    To know the number of items in billing plan enter this FPLNR into FPLT Table.Execute.
    Pass the FPLNR into VBFA table and Execute.
    You will find the invoice numbers for your billing plan items.
    Regards,
    Krishna.

  • Billing and SO Report

    Is there any standard SAP SO/ Billing report  show  by Material with Tax Code in there?
    Points will be reward

    Hi,
    Thanks for reply, i am using it in my query report now bt it is taking hell of time to find customer wise document flow.

  • How to display values in top of page in ALV report

    Hai,
      This is my billing report program, i developed that object by using ALV but i could not able to use Top-of-page. please any one correct my code,
    *& Report  ZE0232_ALV_BILLING                                          *
    report  ze0232_alv_billing.
    type-pools: slis.
    data: repid like sy-repid.
    data: fieldcatalog type slis_t_fieldcat_alv,
          wa_fieldcatalog type slis_fieldcat_alv.
    data : ievent type slis_t_event,
    wevent type slis_alv_event.
    data: sal_text like tvkot-vtext,
          DIS_TEXT LIKE TVTWT-VTEXT,
          DIV_TEXT LIKE TSPAT-VTEXT.
    tables: vbrk.
    data: begin of i_vbrk occurs 0,
          vbeln like vbrk-vbeln,
          fkdat like vbrk-fkdat,
          erdat like vbrk-erdat,
          kunrg like vbrk-kunrg,
          name1 like kna1-name1,
          netwr like vbrk-netwr,
          stext like tvkot-vtext,
          dtext like tvtwt-vtext,
          divtext like tspat-vtext,
          end of i_vbrk.
    selection-screen begin of block billing with frame.
    parameters: salesorg like vbrk-vkorg.
    select-options: dischanl for vbrk-vtweg,
                    division for vbrk-spart,
                    bildat for vbrk-fkdat.
    selection-screen end of block billing.
    select vbeln fkdat erdat kunrg netwr from vbrk into corresponding fields of table i_vbrk where vkorg = salesorg
                                                                                    and vtweg in dischanl
                                                                                    and spart in division
                                                                                    and fkdat in bildat.
    select vtext from tvkot into sal_text where vkorg = salesorg and spras = 'EN'.
    endselect.
    select vtext from TVTWT into DIS_text where VTWEG IN dischanl and spras = 'EN'.
    endselect.
    select vtext from TSPAT into DIV_text where SPART IN DIVISION and spras = 'EN'.
    endselect.
    loop at i_vbrk.
      move: sal_text to i_vbrk-stext,
            DIS_TEXT TO I_VBRK-DTEXT,
            DIV_TEXT TO I_VBRK-DIVTEXT.
      modify i_vbrk.
    endloop.
    perform get_fieldcatalog.
    call function 'REUSE_ALV_GRID_DISPLAY'
    exporting
        i_callback_program                = repid
      I_GRID_TITLE                      =
        i_callback_top_of_page            = 'TOPS'
        it_fieldcat                       = fieldcatalog
      tables
        t_outtab                          = i_vbrk
    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.
    *&      Form  GET_FIELDCATALOG
          text
    <b>form tops.
      write :/ 'Hai Welcome'.
    endform.                    "tops</b>&----
    *&      Form  get_fieldcatalog
          text
    form get_fieldcatalog.
      wa_fieldcatalog-col_pos = '1'.
      wa_fieldcatalog-fieldname = 'VBELN'.
      wa_fieldcatalog-tabname   = 'I_VBAK'.
      wa_fieldcatalog-seltext_m = 'SALES DOCUMENT'.
    WA_fieldcatalog-rollname  = 'VBELN'.
      wa_fieldcatalog-hotspot   = 'X'.
      append wa_fieldcatalog to fieldcatalog.
      clear wa_fieldcatalog.
      wa_fieldcatalog-col_pos = '2'.
      wa_fieldcatalog-fieldname = 'FKDAT'.
      wa_fieldcatalog-tabname   = 'I_VBAK'.
      wa_fieldcatalog-seltext_m = 'BILL DATE'.
    WA_fieldcatalog-rollname  = 'VBELN'.
    WA_fieldcatalog-hotspot   = 'X'.
      append wa_fieldcatalog to fieldcatalog.
      clear wa_fieldcatalog.
      wa_fieldcatalog-col_pos = '3'.
      wa_fieldcatalog-fieldname = 'ERDAT'.
      wa_fieldcatalog-tabname   = 'I_VBAK'.
      wa_fieldcatalog-seltext_m = 'CREATED DATE'.
      append wa_fieldcatalog to fieldcatalog.
      clear wa_fieldcatalog.
      wa_fieldcatalog-col_pos = '4'.
      wa_fieldcatalog-fieldname = 'KUNRG'.
      wa_fieldcatalog-tabname   = 'I_VBAK'.
      wa_fieldcatalog-seltext_m = 'CUSTOMER NO'.
      append wa_fieldcatalog to fieldcatalog.
      clear wa_fieldcatalog.
      wa_fieldcatalog-col_pos = '5'.
      wa_fieldcatalog-fieldname = 'NAME1'.
      wa_fieldcatalog-tabname   = 'I_VBAK'.
      wa_fieldcatalog-seltext_m = 'CUSTOMER NAME'.
      append wa_fieldcatalog to fieldcatalog.
      clear wa_fieldcatalog.
      wa_fieldcatalog-col_pos = '6'.
      wa_fieldcatalog-fieldname = 'NETWR'.
      wa_fieldcatalog-tabname   = 'I_VBAK'.
      wa_fieldcatalog-seltext_m = 'NET VALUE'.
      append wa_fieldcatalog to fieldcatalog.
      clear wa_fieldcatalog.
      wa_fieldcatalog-col_pos = '7'.
      wa_fieldcatalog-fieldname = 'STEXT'.
      wa_fieldcatalog-tabname   = 'I_VBAK'.
      wa_fieldcatalog-seltext_m = 'SALES ORG'.
      append wa_fieldcatalog to fieldcatalog.
      clear wa_fieldcatalog.
      wa_fieldcatalog-col_pos = '8'.
      wa_fieldcatalog-fieldname = 'DTEXT'.
      wa_fieldcatalog-tabname   = 'I_VBAK'.
      wa_fieldcatalog-seltext_m = 'DIS.CHANNEL'.
      append wa_fieldcatalog to fieldcatalog.
      clear wa_fieldcatalog.
      wa_fieldcatalog-col_pos = '9'.
      wa_fieldcatalog-fieldname = 'DIVTEXT'.
      wa_fieldcatalog-tabname   = 'I_VBAK'.
      wa_fieldcatalog-seltext_m = 'DIVISION'.
      append wa_fieldcatalog to fieldcatalog.
      clear wa_fieldcatalog.
    endform.                    "GET_FIELDCATALOG

    HI see this report
    you can know how to write TOP-OF_PAGE code
    and insert LOGO also
    *& Report  ZTEST_ALV_LOGO
    REPORT  ztest_alv_logo.
    TYPE-POOLS : slis.
    *ALV Formatting tables /structures
    DATA: gt_fieldcat TYPE slis_t_fieldcat_alv.
    DATA: gt_events   TYPE slis_t_event.
    DATA: gs_layout   TYPE slis_layout_alv.
    DATA: gt_page     TYPE slis_t_listheader.
    DATA: gs_page     TYPE slis_listheader.
    DATA: v_repid     LIKE sy-repid.
    *ALV Formatting work area
    DATA: w_fieldcat TYPE slis_fieldcat_alv.
    DATA: w_events   TYPE slis_alv_event.
    DATA: gt_bsid TYPE TABLE OF bsid WITH HEADER LINE.
    INITIALIZATION.
      PERFORM build_events.
      PERFORM build_page_header.
    START-OF-SELECTION.
    *perform build_comment.     "top_of_page - in initialization at present
      SELECT * FROM bsid INTO TABLE gt_bsid UP TO 10 ROWS.
    *perform populate_for_fm using '1' '3' 'BUKRS' '8' 'GT_BSID' 'Whee'.
    *USING = Row, Column, Field name, display length, table name, heading
    *OR
      PERFORM build_fieldcat.
      gs_layout-zebra = 'X'.
    *top of page event does not work without I_callback_program
      v_repid = sy-repid.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program                = v_repid
          i_structure_name                  = 'BSID'
       i_background_id                   = 'ALV_BACKGROUND'
          i_grid_title                      = 'This is the grid title'
      I_GRID_SETTINGS                   =
          is_layout                         = gs_layout
          it_fieldcat                       = gt_fieldcat[]
          it_events                         = gt_events[]
        TABLES
          t_outtab                          = gt_bsid.
    Form..............:  populate_for_fm
    Description.......:  Populates fields for function module used in ALV
    FORM populate_for_fm USING p_row
                               p_col
                               p_fieldname
                               p_len
                               p_table
                               p_desc.
      w_fieldcat-row_pos      = p_row.          "Row Position
      w_fieldcat-col_pos      = p_col.          "Column Position
      w_fieldcat-fieldname    = p_fieldname.    "Field name
      w_fieldcat-outputlen    = p_len.          "Column Lenth
      w_fieldcat-tabname      = p_table.        "Table name
      w_fieldcat-reptext_ddic = p_desc.         "Field Description
      w_fieldcat-input        = '1'.
      APPEND w_fieldcat TO gt_fieldcat.
      CLEAR w_fieldcat.
    ENDFORM.                    " populate_for_fm
    *&      Form  build_events
    FORM build_events.
      DATA: ls_event TYPE slis_alv_event.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          i_list_type = 0
        IMPORTING
          et_events   = gt_events.
      READ TABLE gt_events
                 WITH KEY name =  slis_ev_user_command
                 INTO ls_event.
      IF sy-subrc = 0.
        MOVE slis_ev_user_command TO ls_event-form.
        APPEND ls_event TO gt_events.
      ENDIF.
      READ TABLE gt_events
                 WITH KEY name =  slis_ev_top_of_page
                 INTO ls_event.
      IF sy-subrc = 0.
        MOVE slis_ev_top_of_page TO ls_event-form.
        APPEND ls_event TO gt_events.
      ENDIF.
    ENDFORM.                    " build_events
    *&      Form  USER_COMMAND
    When user command is called it uses 2 parameters. The itab
    passed to the ALV is in whatever order it currently is on screen.
    Therefore, you can read table itab index rs_selfield-tabindex to get
    all data from the table. You can also check r_ucomm and code
    accordingly.
    FORM user_command USING  r_ucomm     LIKE sy-ucomm
                             rs_selfield TYPE slis_selfield.
      READ TABLE gt_bsid INDEX rs_selfield-tabindex.
    error checking etc.
      SET PARAMETER ID 'KUN' FIELD gt_bsid-kunnr.
      CALL TRANSACTION 'XD03' AND SKIP FIRST SCREEN.
    ENDFORM.                    "user_command
    *&      Form  top_of_page
    Your own company logo can go here if it has been saved (OAOR)
    If the logo is larger than the size of the headings in gt_page,
    the window will not show full logo and will have a scroll bar. Thus,
    it is a good idea to have a standard ALV header if you are going to
    use logos in your top of page.
    FORM top_of_page.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary = gt_page
          i_logo             = 'ENJOYSAP_LOGO'.
    ENDFORM.                    "top_of_page
    *&      Form  build_fieldcat
    *Many and varied fields are available here. Have a look at documentation
    *for FM REUSE_ALV_LIST_DISPLAY and REUSE_ALV_FIELDCATALOG_MERGE
    FORM build_fieldcat.
      w_fieldcat-fieldname  = 'BUDAT'.
      w_fieldcat-seltext_m  = 'Dte pst'.
      w_fieldcat-ddictxt(1) = 'M'.
      w_fieldcat-edit = 'x'.
    Can change the position of fields if you do not want them in order
    of the DDIC or itab
    w_fieldcat-row_pos = '1'.
    w_fieldcat-col_pos = '10'.
      APPEND w_fieldcat TO gt_fieldcat.
      CLEAR w_fieldcat.
    ENDFORM.                    " build_fieldcat
    *&      Form  build_page_header
          gt_page is used in top of page (ALV subroutine - NOT event)
          *H = Header, S = Selection, A = Action
    FORM build_page_header.
    For Headers, Key is not printed and is irrelevant. Will not cause
    a syntax error, but is not used.
      gs_page-typ  = 'H'.
      gs_page-info = 'Header 1'.
      APPEND gs_page TO gt_page.
      gs_page-typ  = 'H'.
      gs_page-info = 'Header 2'.
      APPEND gs_page TO gt_page.
    For Selections, the Key is printed (bold). It can be anything up to 20
    bytes. It gets printed in order of code here, not by key value.
      gs_page-typ  = 'S'.
      gs_page-key  = 'And the winner is:'.
      gs_page-info = 'Selection 1'.
      APPEND gs_page TO gt_page.
      gs_page-typ  = 'S'.
      gs_page-key  = 'Runner up:'.
      gs_page-info = 'Selection 2'.
      APPEND gs_page TO gt_page.
    For Action, Key is also irrelevant.
      gs_page-typ  = 'A'.
      gs_page-info = 'Action goes here'.
      APPEND gs_page TO gt_page.
    ENDFORM.                    " build_page_header
    <b>Reward if useful</b>

Maybe you are looking for

  • SSO logout question

    Good day gentlemen, I'm having a little problem with SSO built-in authentication scheme. I've created a simple application to test it, and enabled the built-in authentication scheme, Oracle Application Server Single Sign-On (Application Express as Pa

  • Can't drag and drop songs to iPod or iPhone?!?! Help!?! Urgent!?

    So today for the first time I purchased a lot of songs and movie from the iTunes store. After purchasing items from the iTunes store, I wanted to put it in my iPhone and IPod, and it didn't work. I used to be able to do this all the time. I would dra

  • Query - Stock Value (On a Selected Date)

    Hi all I came up with the below query to display the stock value at a given date in the past.The total value is correct as per the Inventory Audit report. However, it displays the total value for the two warehouses that we have, yet I want it to disp

  • Calendar recurrence options and filters

    I am trying to create a calendar entry that repeats every week but lasts for 3 or 4 days straight. As in, the event goes from Wednesday thru Saturday and repeats every week for 10 weeks? How can I accomplish this, at the moment all I see in my  recur

  • SAP TV - I do not get to transfer to FI

    Hi, I am having a problem about SAP TV: I do a travel request but I have no Special GL Accounting to the Vendor. I think that is because this status: Status actual - Request entered/ To be Settd                         Trip Completed/ To be Settd. If