How to add 2 more field to the  Header of FBL5N ALV report output

Hi All,
I have copied and made some modification to the standard transaction FBL5N and added some fields to the ALV report line Items but how to add fields to the header part i.e if you execute the transaction FBL5n, you will get the ALV report, in the header part customer no, company code then I need to add the 2 more fields. can any one tell me that which structure or where I need to add these fields to be appear in ALV output screen.
Thanks in advance.
Swapna.

Hi Mohamed,
If you copied Z-FM successfully, then you have to go to subroutine TOP_OF_PAGE to add your field:
*&      Form  TOP_OF_PAGE
FORM top_of_page.
  DATA: b_suppress   LIKE boole-boole,
        opfi_text    LIKE eptext OCCURS 10 WITH HEADER LINE,
        n_color      TYPE i.
*  IF     NOT it_items-bukrs IS INITIAL               "737295
*     AND NOT it_items-konto IS INITIAL               "737295
*     AND NOT it_items-koart IS INITIAL.              "737295
  gs_items = gt_alv.
*  ENDIF.                                             "737295
* skip first call at top of page:
  IF NOT gd_first_top IS INITIAL.
    CLEAR gd_first_top.
    EXIT.
  ENDIF.
  IF x_grid = c_x OR x_inet = c_x.                          "1012201
    PERFORM grid_top_of_page.
    EXIT.
  ENDIF.
*... open FI: get header text.
* first fill some RFXPO fields for general info:
  CLEAR: s_rfxpo, wa_kna1, wa_lfa1, wa_ska1.
  s_rfxpo-bukrs = gs_items-bukrs.
  s_rfxpo-kkber = gs_items-kkber.
  s_rfxpo-koart = gs_items-koart.
  s_rfxpo-konto = gs_items-konto.
  s_rfxpo-vrbez = gs_variant-variant.
  s_rfxpo-waers = gs_items-waers.
* update master record:
  PERFORM fill_master_rec  USING gs_items-koart
                                 gs_items-konto
                                 gs_items-bukrs. " note 698396
  CALL FUNCTION 'OPEN_FI_PERFORM_00001640_E'
    EXPORTING
      i_rfxpo             = s_rfxpo
      i_kna1              = wa_kna1
      i_lfa1              = wa_lfa1
      i_ska1              = wa_ska1
    IMPORTING
      e_suppress_standard = b_suppress
    TABLES
      t_lines             = opfi_text.
*... display open FI text:
  IF x_konto_sort = 'X'.
    LOOP AT opfi_text.
      CASE opfi_text-color.
        WHEN 1.
          FORMAT COLOR 1.
        WHEN 2.
          FORMAT COLOR 2.
        WHEN 3.
          FORMAT COLOR 3.
        WHEN 4.
          FORMAT COLOR 4.
        WHEN 5.
          FORMAT COLOR 5.
        WHEN 6.
          FORMAT COLOR 6.
        WHEN 7.
          FORMAT COLOR 7.
      ENDCASE.
      WRITE: / opfi_text-text.
    ENDLOOP.
    FORMAT RESET.
  ENDIF.
*... display other header text:
  IF b_suppress NE 'X'.
    PERFORM display_custom_header.
    PERFORM display_ccard_lines.
  ENDIF.
" Put your field somewhere...
ENDFORM.                               " TOP_OF_PAGE
Good luck,
Thanks,

Similar Messages

  • How to add field to the header for FBL5N ALV report

    Hi,
       I need to add fields to the customer line item display ALV report(FBL5N) header part.Right now there are four fields in the header like customer, company code, name and city, after that I need to add first name last name and phone no. Can any one tell me where exactly I need to add and populate there fields to be appear in ALV output list.
    Thanks in Advance
    Swapna

    Yes I have tried, I have place a break point in that perform but it does not stop. I think that is not the correct place to added and populate fields. That routine is for populate selection screen ranges single and multiple values and parameters only.
    Thanks
    Swapna

  • How to add more fields to the self registration page?

    Hello,
    I am running on OIM 11.1.2.1.0.
    How can I add the Organization field to the self registration page?  Could you point me to a doc if it exists.
    Thanks
    Khanh

    Hello,
    I successfully added the organization field to the self registration form following the instructions in this doc: http://docs.oracle.com/cd/E37115_01/admin.1112/e27149/customattr.htm#BABGDEIC
    I used Data Component – User Registration, then UserVO1.  There were 2 fields: Organization and Organization Name.  I added both to the form.  Then I tried to submit a self registration request.  When I logged in as xelsysadm to check out the request, the Organization field on the request is not populated.
    I know that under OIM 11gr2, the reviewer must provide the organization.  I am wondering if this has something to do with the value of the organization not being carried over to the request level approval.
    Could someone please help?
    Thanks
    Khanh

  • How to add more comments in the Nomination Header notes tab

    Short Text 
    How to add more comments in the Nomination Header notes tab 
    In the nomination screen, there are the tabs for header and item notes.
    Within each of those tabs, there are categories for the type ofcomments. Currently in the nomination maintenance screen header notes
    there are onlythree comment categories are available 1) General comments 2) Carriercoment 3) Shipper Comment and We would like add more comments in this
    section. In the configuration we couldn't find a place where we can add
    more customer specific comments. Can we add comments in the header
    notes tab and if so where can we add the additional comments ?

    Hello Giri,
    You could try the following to create new text types for nomination header.
    1) Execute transaction SM31
    2) The view here is V_TTXIDI
    3) Click on maintain .
    4) Create new entries .
    5) Since you want to add new more comments in the nomination header enter the text object as OIJRCODE_H
    6) Enter a text ID starting with Z
    7) Enter a description and save the new entry.
    In case you want to add new comments at the item level use the text object as OIJRCODE_I.
    When you restart the transaction O4NM again you will see the new entry added.
    This will solve the issue.
    Regards,
    Sandil

  • Add new fields on the header screen of COR1

    Hi Experts,
    I am new to this type of work, please help me in doing....
    My requirement is, to add one field on the header details of the COR1 from a Z table.
    Can anyone please tell me how to handle this.
    I searched the regarding this in SDN but i had not got any solution.
    Can any one please tell me how to handle this(screen shots will be more helpfull).
    Please take it as priority.
    Thanks in advace,
    Kruthik
    Edited by: kruthik_06 on Jun 20, 2011 9:04 AM

    Hi all,
    I need to know if is it possible to add a custom field in COR1 for process order. I searched forum for something about this, but cannot find anything.
    can anybody please suggest me something ?
    thanks
    Kruthik

  • Add new fields in the header of  RFITEMAR

    hi,
      i want to add new fields in the header of RFITEMAR report ,so first i copy i to zRFITEMAR ,then i want to add
                           " Total Quantity "   in the header after City field .
    can any one help me????????
    please ,, i waiting your answers..
    thank you......

    hi ,
       thanks for your response , but first i try to copy the function then it give an error as it is reserved for sap , so i change it's name and copy it and change function group to z also then it  relese an error for function pool , any way.
    where can i make change in that function .
    and how can i copy it . please tell me every think in more detials.
    waiting
    thanks.

  • How to add more fields at level task for importing to MsProject

    Hi everyone,
    We would like to have the same number of fields either for importing as exporting; or at least, the fields that we need.
    The problem is when we are configurating the fields for exporting from cProjects to MsProject, we found 81 available fields and then we don't find the same amount for importing (34). So, in some cases we don't find fields which were configurated for exporting and it is no posible to upload the information back because the field is no available for importing.
    Does anyone knows how to add more fields for importing at the cProjects side?
    Thanks a lot,
    CAMILO URIBE

    Some fields can not be migrated because of MsProject designe. The above is the reason why cProjects' customizing does not offer the
    mapping of the same nuember of fields.

  • CRM  IC Winclient - How to add new fields in the BP Search of TRX CIC0

    Hello Experts,
    I want to know how to add new fields in the BP Search of TRX CIC0. In the HTML that we're using here I need to add the URL of the BP.
    Can you help me?
    Thanks in advance.
    Caíque Escaler

    Hi
    make append to tables in se11 - CCMBP1FIELDS, CCMBP2FIELDS
    in spro in Define customer-specific search control -> mark fields with X.
    and enhance html template CRM_CIC_SEARCH_DISPLAY. -> tcode smw0, look for package CRM_CIC_COMPONENTS for html CRM_CIC_SEARCH_DISPLAY. export it from SAP, edit, and import.
    you will need to enhance function module used for searching - you will find him in spro in Search Strategies.
    Regards
    Radek

  • How to add new fields to the system form (Ex.expenses to a/r invoice form)

    hi
    can any one tell me how to add new fields to the system form (Ex.expenses to a/r invoice form)
    i want to add expenses field to system a/r invoice form and connect data base also.
    i used the code of samples\11.system form manipulation(vb.net) but i'm not able to get it....so can any one help with code or concepts.
    reply soon plz..
    thankQ

    If I understood you correctly, you are just trying to add new fields to the invoice form and then use them in your form. you should first go and add the field to your tables, which you would do by going to Tool --> User Defined Fields --> Manage User Fields. There are different documents or categories given. For ex. for invoices, Sales Orders you would add your field under the Marketing Documents. If you want the field to be just one per invoice, add it to the Title, otherwise if you want a field per invoice or Sales Order line, add it to the Rows section. Once you have done that then you can just create a edit box or drop down to represent the field and set the datasource for that to your field. If you want example code to do that, let me know.

  • How to Add IBAN Field in the Bank Details Infotype?

    Hello All,
    I need to know the procedure for How to add IBAN field in the bank details infotype?
    Could anyone help me please.
    I m new to SAP HR.
    Immediate help will be appreciated.
    Thanks.
    Regards,
    Mudassir.Imtiaz

    Hi mudassir,
    For IBAN implementation:
    1. Implement SAP Notes 925410, 1409674, 1405521
    2. Go to t-code FIBF - From menu select Settings - P/S Modules - of an SAP Application - Create entry
    For Turkey we've added the following entry (depends on country) :
    00003040 TR CONVERT_IBAN_2_BANK_ACCOUNT_TR
    3. Go to V_T588M for module pool MP000900 and screen 2000 select IBAN & Q0009-IBAN00 fields as standard.
    4. Go to table T77S0 and make value of ADMIN IBAN entry S.
    Regards,
    Dilek

  • Need to display data on the right side in the header area of alv report.

    hi experts,
                       I want to display data in the header area of alv report on the right side  . I have already used function for events on the header side data is getting displayed on the left side .but i want data to be displayed on the right side.
    regards,
    andrews.

    Hi,
    Hope this below code helps you.
    Take care,
    Çağatay.
    * build header for alv
    FORM top_of_page_split USING r_top TYPE REF TO cl_dd_document.
    DATA: s_tab TYPE sdydo_text_table,
          c_area TYPE REF TO cl_dd_area,
          text TYPE sdydo_text_element.
    TYPES: BEGIN OF tab_text,
    text TYPE sdydo_text_element,
    END OF tab_text.
    DATA: i_text TYPE TABLE OF tab_text.
    DATA: w_text TYPE tab_text.
    CALL METHOD r_top->initialize_document.
    CALL METHOD r_top->vertical_split
    EXPORTING
    split_area = r_top
    split_width = '70%'
    IMPORTING
    right_area = c_area.
    CONCATENATE sy-datum+4(2)
    sy-datum+6(2)
    sy-datum(4)
    INTO date1.
    CONCATENATE 'DATE'  date1
    INTO w_text-text
    SEPARATED BY ':'.
    APPEND w_text TO i_text.
    CONCATENATE 'time:' sy-uzeit INTO w_text .
    APPEND w_text TO i_text.
    CONCATENATE 'uesr:' sy-uname INTO w_text .
    APPEND w_text TO i_text.
    CONCATENATE 'local date:' sy-datlo INTO w_text .
    APPEND w_text TO i_text.
    CONCATENATE 'time zone:' sy-zonlo INTO w_text .
    APPEND w_text TO i_text.
    s_tab[] = i_text[].
    CALL METHOD c_area->add_text
    EXPORTING
    text_table = s_tab
    fix_lines = 'X'
    sap_fontsize = cl_dd_document=>medium
    sap_emphasis = cl_dd_document=>strong.
    CALL METHOD r_top->add_gap
    EXPORTING
    width = 60.
    text = 'THIS IS REPORT HEADING'.
    CALL METHOD r_top->add_text
    EXPORTING
    text = text
    sap_emphasis = 'STRONG'.
    CALL METHOD r_top->new_line.
    CALL METHOD r_top->add_gap
    EXPORTING
    width = 70.
    text = 'THIS IS REPORT HEADING1'.
    CALL METHOD r_top->add_text
    EXPORTING
    text = text
    sap_emphasis = 'STRONG'.
    CALL METHOD r_top->new_line.
    CALL METHOD r_top->add_gap
    EXPORTING
    width = 80.
    text = 'THIS IS REPORT HEADING2'.
    CALL METHOD r_top->add_text
    EXPORTING
    text = text
    sap_emphasis = 'STRONG'.
    CALL METHOD r_top->new_line.
    text = 'Report Subheading1'.
    CALL METHOD r_top->add_text
    EXPORTING
    text = text
    sap_emphasis = 'NORMAL'.
    CALL METHOD r_top->new_line.
    text = 'Report Subheading2'.
    CALL METHOD r_top->add_text
    EXPORTING
    text = text
    sap_emphasis = 'NORMAL'.
    CALL METHOD r_top->new_line.
    text = 'Report Subheading3'.
    CALL METHOD r_top->add_text
    EXPORTING
    text = text
    sap_emphasis = 'NORMAL'.
    CALL METHOD r_top->new_line.
    ENDFORM. "TOP_OF_PAGE_SPLIT

  • How to add new fields in the cube?

    Hi,
    I have a cube running and loading data for 8 months now.  Now I have a requirement such that I have to include 3 more fields in the report.  Here, 2 fields are there in DSO and 1 field is not even in the data source.  Can anybody help me with this?
    Thanks and regards..

    Hi Rakesh Ramanan,
    For the two field that are already present in DSO,you can add them in Cube no problem in this.
    But for the new field which is not present in itself in data source you need to modify the datasource .For this firstly you have to go RSA6 transaction select your data source,double click on extract structure then you can append structure,here you need to select the field which you want to add, there are four option  for the append  field added that are
    i)Selection :They act as selection criteria for data extraction in RSA3 transaction.
    ii)Hide field: As a result of this selection, the field is no longer made available in BW.
    iii)Inversion : The value of the key figure is then transferred in inverted form i.e. multiplied by (u20131) into BW or BI.
    iv)Field only: Deselect the indicator u2018Field Onlyu2019 to enable the Service API to pass on the append structure field to the extractor together with the fields of the delivered extract structures in the field list as well as in the selection table.
    You also need to deciede that how you gonna fill this appnded field table or using function module.
    there are many articla available in sdn you can go through them.I have also work on the datasource Enhancement based on the FM and frame the work in one doc if you want just reply me i will provide you that.
    Thanks,
    Deepak

  • How to add new fields in the EBP front end..

    Hi All,
    Can any one let me know the process of how to add new fileds in the shopping cart creation screens by using the "Tag Browser" option in the Object navigator.
    Best Regards,
    Mahesh. J

    Hi
    <b>Please go through the following links for more details and examples -></b>
    http://help.sap.com/saphelp_47x200/helpdata/en/a2/8c6eeb2d8911d596a000a0c94260a5/frameset.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/d3/5ecbe22a8a11d5991f00508b6b8b11/frameset.htm
    This will definitely help.
    <u>For adding customer fields to the Shopping cart, you need to refer SAP OSS Bote 672960 and 485891.</u>
    Do let me know, incase you need any other details.
    Regards
    - Atul

  • How to add a field to the selection screen and when the user enters ...

    hi all,
    can any one plesase send the code of how to add a field to seletiion screen and when the user enters in the field , it should be store in the database table , the table is MKPF and the field is BKTXT.  Thanks.

    Hi Kripa,
       If u r using PNP ldb then the screen u will get is the screen for that ldb and if u want to add some more fields then u define using selection-screen..as follows
    SELECTION-SCREEN BEGIN OF BLOCK mysel WITH FRAME TITLE text-111.
    PARAMETERS: n_in_en  RADIOBUTTON GROUP g1,
                q_ev  RADIOBUTTON GROUP g1.
    SELECTION-SCREEN END OF BLOCK mysel.
    SELECTION-SCREEN BEGIN OF BLOCK mysel1 WITH FRAME TITLE text-222.
    PARAMETERS: r_date TYPE sy-datum DEFAULT sy-datum.
    SELECTION-SCREEN END OF BLOCK mysel1.
    SELECTION-SCREEN BEGIN OF BLOCK mysel2 WITH FRAME TITLE text-333.
    PARAMETERS:f_ver(3) TYPE c DEFAULT 1,
               c_no(10) TYPE c DEFAULT '9D0161',
               u_id(15) TYPE c,
               password(15) TYPE c,
               r_email(30) TYPE c DEFAULT PARAMETERS: s_not TYPE c AS CHECKBOX.
    PARAMETERS:t_run TYPE c  AS CHECKBOX.
    SELECTION-SCREEN END OF BLOCK mysel2.
    SELECTION-SCREEN BEGIN OF BLOCK mysel3 WITH FRAME TITLE text-444.
    SELECTION-SCREEN BEGIN OF BLOCK mysel4 WITH FRAME TITLE text-555.
    PARAMETERS: p_ser  RADIOBUTTON GROUP g2,
    a_ser  RADIOBUTTON GROUP g2.
    SELECTION-SCREEN END OF BLOCK mysel4.
    SELECTION-SCREEN BEGIN OF BLOCK mysel5 WITH FRAME TITLE text-666.
    PARAMETERS:p_path TYPE string.
    SELECTION-SCREEN END OF BLOCK mysel5.
    SELECTION-SCREEN END OF BLOCK mysel3.
    u will get this additional screen after the screen of ldb.
    I hope this will help u..
    Thanks & Regards
    Ashu Singh.

  • Add a field in the header of MB21/MB22

    Hello gurus, i am interested in adding  one field in the header of the mb21 (reservations), but i didn't find one exit or one badi for my purposes. My question is someone knows an easy manner for adding the fields to the screen. I tried to use enhancements and create one badi and a group of functions. But i don't know how to add the field to the screen. I tried to create a subscreen in a group of functions, but in this point i'm lost, because i don't know how connect the screen that i create in the group of functions with the standard.. ( i don't want to modify the standard directly, including the standard screens),
    With my best regards.

    Hi
    Check this
    MB_RES_BAPI_CREATE1   BAdI: Adoption of Customer's Own Fields
    MB_RES_BAPI_DETAIL1  Display of Customer's Own Fields
    Regards
    Pavan

Maybe you are looking for

  • Photoshop CS5 Won't Open

    When I click on the program, the hourglass next to the mouse appears, but the program never opens. The credits do not even roll. I tried deleting the preferences, but that did not do anything. It will not even let me uninstall Photoshop. I have tried

  • Jndi and serializable objects

    Hi, I am attempting to create a cache on the web server to store frequently accessed reference data. I do so by running a series of queries in a startup class. The data retrieved from the result set of each query is stored in a custom class and bound

  • Ipod touch g2 wifi issue

    Hi All, just got my new 2nd generation ipod touch yesterday, it's running on the newest version (2.1). But now i'm encountering problems when contacting to the network. At home it wouldn't work at all, when connecting it always says "could not connec

  • Can I connect the iphone 3gs with ipad 2?

    Hallo can I connect the iphone 3gs with ipad 2?

  • Small TV Monitor Recommendations?

    Hello all, I need to add a NTSC TV monitor to my edit setup to view  television playback. It needs to be smallish to fit in a 15" tall space on the console. It will be fed with a GTX 670. Any recommendations for a "best value" TV? Thanks in advance,