Copy of FBL5N

HI all,
I copied the FBL5N Report (RFITEMAR) to ZRFITEMAR and made some code changes.
while saving the layout in Z report it is saving in standard report RFITEMAR  instead of z report ZRFITEMAR.
where ever the program name is hardcoded as RFITEMAR changed to Zreport ZRFITEMAR, even the layout is saving in standard report.
Is there any procedure to save the layout  OR  do we need copy the layout separetely ,if so please help with procedure.
thanks in advance.

Put a break-point at FI_ITEMS_DISPLAY call, and check values passed to parameters
- caller_repid ,
- i_u_save
- is_u_variant
But be aware that you must have created a default variant to display your data, else FI_ITEMS_DISPLAY will detect that no existent variant is passed and will provide a default variant '1SAP' AND change report name back to standard report
You should first copy ALV variant from RFITEMAR to ZRFITEMAR. (copy data from file LTDX, LTDXD and LTDXT changing the report name in a small report)
Regards,
Raymond

Similar Messages

  • Copy of FBL5N report

    Hi Friends,
    I have to add new pushbuttons in the application tool bar of standard FBL5N report output. For that i have copied FBL5N into ZFBL5N and also copied status  'ALV_ITEMS_AR' into  'ZALV_ITEMS_AR'
    and copied the function  'FI_ITEMS_DISPLAY' into 'ZFI_ITEMS_DISPLAY'.  I have added the required pushbuttons in the status 'ZALV_ITEMS_AR' with existing pushbuttons but i could not able to see those
    in the report output. Even i am not able to see the standard pushbutton 'Dispute case' in this Z report output.  For standard in debugging i have checked the push code for this button it is showing like
             sy-ucomm = +CUS05
             sy-pfkey    = ALV_ITEMS_AR
    but i am not able to see anything with description 'Dispute case' in SE41 for the same pf status, i am able to see the description 'List_items05' against same user command.
    Please guide me how to create new pushbuttons in the copied report and how to display that Dispute case pushbutton like standard in the Z report output.
    Thanks a  lot in advance.

    Hello,
    How many button do you have to add? Cause if you want to add only two specifics buttons you should use BADI :
    FI_ITEMS_MENUE01 and FI_ITEMS_MENUE02.
    With BADI FI_ITEMS_MENUE03 you just can add specific entries in the menu.
    Inside BADI FI_ITEMS_MENUE01implement method LIST_ITEMS01 with your ABAP code (USER_COMMAND) and don't forget to switch to "Fcodes" tab to add function text (button text).
    If you don't add a function text, the button or menu entrie will not be displayed.
    I hope it's helping you.
    Mathieu

  • Query regarding COPY OF FBL5N : No items selected (see long text)

    Dear All,
    Currently i am executing FBL5N report and it is ok.
    Now i have copied FBL5N program to ZFBL5N.
    Now the issue is when i am trying to execute ZFBL5N, this messge comes and report not generated in some cases.
    "No items selected (see long text) ".
    This error has not come for all cases but just for few cases and i have tried to found out the case,
    and i found that, whenever we maintain vendor in control data tab of XD02(Change Customer : general data) then only above message has come.
    Now i am not getting one thning, Why FBL5N not giving above error because i have copied the program and nothing difference in both code then why ZFBL5N giving error and FBL5N generate report and what should i do for above error.
    Please help regarding this matter
    Regards,
    Shivam.

    Dear Nabheet,
    I have debugg, code is same for both cases becuase i have just copied now.
    Although, i have debugg also and i have seen in coding, when program goes in perform form "read_vendor_items" and in that perform, there is written function, call function 'LDB_PROCESS'
    . Now when i going during debugg time,
       call function 'LDB_PROCESS'
        exporting
          ldbname                     = 'KDF'
          expressions                 = it_dyn_texpr[]
        tables
          callback                    = it_callback
          selections                  = it_selscreen
        exceptions
          ldb_selections_error        = 1
          ldb_selections_not_accepted = 2
          free_selections_error       = 3
          callback_no_event           = 4
          callback_no_program         = 5
          callback_no_cbform          = 6
          others                      = 7.
    After pass this function moduel in case of ZFBL5N, it_pos table is not filled but in case of FBL5N, it_pos table is filled one record and that record also shown.
    But code is same but different only program name.
    Now what can you suggest.
    Regards,
    Shivam.

  • Copy of IF_EX_FI_ITEMS_MENUE01

    Hi,
    I have a development(report) done from the copy of FBL5N, so a need modify some parameters of IF_EX_FI_ITEMS_MENUE01, this Interface is used by FBL5N.
    How can I copy the IF_EX_FI_ITEMS_MENUE01? I tried to copy by SE24, but didn´t copy.
    tks

    hai ritcha,
    there is a option for enhanceing interface
    from function module menu u have an option enhance interface
    but i doubt wether it will allow u to change the reference structure or not
    may be enhance interface will allow to add new lines to interface but i doubt wether ur problem wil be addressed
    m.a

  • Line-count/page number in alv

    My report is a z copy of FBL5N .In that i wud have included the page no as a part of the heading , my issue is, since it is display some other information like customerr number company code name etc., my page no will also display only if the top_of_page event is called , but this will be called only if the info related to the first customer is printed it will call the event again say for example like my inpur is for customer a customer b company code a company code b if the records for customer a and company code a combination is over it will call the top-of-page event again so it doesnt matter for any number of number say like it can even have 100's of records in the display for this entire 100 records my page number will be displayed as 1 for the next combination it will be displayed as 2 but when i try to take the printed copy 100 number of records cannot be displayed in a single sheet in that case my page number shud vary but since the top-of-page event is called only once for the entire 100 records it is displaying repeatedly as 1 only how can i sove it

    Hi,
    check the following link:
    http://www.sapbrain.com
    regards,
    bhaskar

  • F4 help for layout

    hi all,
    i have copied the  FBL5N(Report - RFITEMAR) to ZReport and added one field, and changed the name of the report to ZReport
    wherever the standard program name has been hardcoded.
    now the report is working fine for me, whereas while others using the same report, if there are trying to save the layout and check the F4 help they are not able to see the layouts they are created,but i am able to see the layouts i have created.
    could anyone please let me know any default settings need to be done or any changes need to be made anywhere else.
    thanks in advance.

    please check the value passed to the parameter I_SAVE in the funtion module for displaying report in ALV.
    Below is the documentation on what values can be passed and their usage
    Value range
    ' ' = display variants cannot be saved
    Defined display variants (e.g. delivered display variants) can be selected for presentation independently of this flag.
    Changes can not be saved.
    'X' = standard save
    Display variants can be saved as standard display variants.
    User-specific saving is not possible.
    'U' = only user-specific saving
    The user can only save display variants user-specifically
    'A' = standard and user-specific saving
    The user can save a display variant user-specifically and
    as standard display variant. The user chooses in the display variant
    save popup.

  • How to copy the line item description to other same line items - FBL5N

    Hi All,
    I have an issue while printing the description in the script.In the final internal table there are multiple same line items but the description is comming for the only one line item but my requirement is i want to copy the description text(bseg-sgtxt) to the other same line items also. I trying to use the control break statements but i am not getting the solution.
    can any one please provide me the solution.
    FYI.. please find the attched text doc..in the document the first four lineitems are same but description is comming for only one line item. I want to display the description to all the same line items.
    Thanks in advance.
    Regards,
    koushik

    Hi Bharat,
    Can u just attach the code where populating the internal table with description.
    Regards,
    Shashikanth

  • Copy of standard method which is used in fbl5n tcode

    hello all
    i need to copy the standard method into z...how to do this?

    Hi,
    Hope that you want to copy a method of a particular class.
    Following are the simple and easier steps to make a Std SAP method customized.
    Goto the required method(using SE24 tcode).
    In the function keys section, there will be an icon for Other object, on clicking it a pop-up screen appears.In this screen at the bottom there will be an icon for 'Copy'.  
    On clicking the 'Copy' icon, it will open another pop-up window again and asks where to copy the method(here we can specify a Z method name) in the
    To' section.
    On pressing continue, the Z method will be created and stored under the speified name. We can then activate the method.
    By this way, we can easily make the customized version of a standard SAP object.
    Hope this helps...
    Regards,
    Dilli

  • Fields not getting updated in FBL3N and FBL5N

    Hi
    I have introduced new fields like material number, quantity sales document number, etc in through FBL3N --> Settings --> List special fields.
    Also i added one more field in 'sort key' as sales document number. I updated sort key in customer master and GL master (i.e. reconcliation account of customer A/c)
    But inspite of doing this, i can see those fields after change layout. But these fields are still empty. I do not know why its empty.
    When i changed sort key to sales document number, sales delivery number is coming instead of sales document number in assignment field.
    Please help

    Dear Meenakshi,
    Even though there are various fields available in FBL5N or FBL3N, all the fields are not updated for all the transactions. Based on transaction to transaction, fields get updated and mostly these are SAP standards. If you want certain fields, you need to develop Z reports accordingly.
    For example when GR is posted, system does not update PO number in Purchase order field. But alternatively it is updated in REFKEY1 field. Similarly when billing is done, it does not update material code in FI tables so it does not appear in FBL5N.
    Regarding Sort key, check with your SD consultant, what copy control it is used. In finance, assignment field is updated based on copy control used in SD.
    Regards,
    Niraj

  • Changes in standard FBL5N tcode output report

    Hi Experts,
    I have a req of making a ztransaction for the standard tcode FBL5N for customer line item display . In this i need to replace the icons showing status ie open ,cleared etc and icons for showing whether its overdue or due  with texts describing the statuses instead of these colored icons . How can that be done and how do i find where these icons are created and their colors in the standard program .
    Could you help in how to go about this . Thanks in advance
    Ankit

    hi,
    you dont need create one zprogram (zfbl5n)
    You must use the enhancement for this purpose...
    See the steps:
    1 – Create the new field via append structures for RFPOS e RFPOSXEXT (SE11).
    2 - Ceate the product for the BTE in BF24 transaction, for example ZFADD.
    3 - copy the function SAMPLE_INTERFACE_00001650 and insert your codding for filling your field. More information, you can see the sap note 112312.
    4 - in BF34, assign the event 00001650 for the product ZFADD and new function created.
    Best Regards,
    Luiz Fernando do Carmo
    Sap FI Consultant - Brasil - São Paulo

  • FBL5N customer line item ALV report -- define exit points

    Customer wants to modifications on FBL5N std sap report. Here's what I think are the options:
    1. Modify SAP program (which I dont prefer at all to do)
    2. Copy SAP Program into Y/Z program
    3. User-exits or BAdIs.
    I am in process of doing step 2.
    I tried to find any user-exits for the requirement but there seems no user-exit. There is no std BAdI delivered for the same purpose either.
    Hence, I was wondering if I can create BAdI so as to define the exit points where I need. Can you suggest on howt to go about this procedure?

    If you copy and change the program, you have to be aware that in some of the includes, it checks the program name and calling transaction and behaves differently if it's not the normal program name or transaction. If SAP makes significant changes to the program during an upgrade, your changed program won't have these SAP changes. I don't know of any BADIs or user exits for report programs.
    Some people wiil disagree with me on this, but I really don't have a problem with making mods to the original SAP code, particulary if you can isolate them in another include and keep changes to the SAP code to a minimum. With version management and SPAU at upgrade and support pack time, you can keep track of your changes and re-apply them if needed.
    But it's easy for me to say because I've been doing this for quite a while. If you really don't want to make the changes, then you're probably better off copying and changing a Z program.
    Rob

  • FBL5n layout question

    Hi
    In FBL5N report , we have a option to select the layout. My one user has a different set of layout options avilable where another user has different sets of layout. I want to set the default layout for a particular user . can some one shed some light on the layout option. Can it be copied or how to set the default for a user.
    Thanks
    Satya

    OK
    2 things to consider here.
    1 there is a global layout, this is the one you want to select to give to all users.
    You can set this in FBL5N via environment, select layout
    Check which users have access to create global layouts, ask the security expert to find the correct authorization and run a report to see who can set this, you dont want all users to be able to set this.

  • Fbl5n profit center is cracked   , itz possible to get profit center value

    fbl5n profit center is cracked u  , itz possible to get profit center value
    in ur zfbl5n report
    der r few changes in program to b made
    Message was edited by:
            Ronei Shedi

    Hello Ronei,
    No need to make a copy of the FBL5N to have the profit center in the list.
    You can have it in the ALV Layout.
    Select profit center in the Hidden fields column and pass it to left hand side column.
    Save as a Display Variant.
    Next time when you run the FBL5N, select your display variant in the last frame "List Output".
    Regards,
    Naimesh Patel

  • In FBL5N report user wants the sales document number to be displayed,

    HI, Guys
    Need ur help to sort out the problem
    In FBL5N report user wants the sales document number to be displayed,
    but the sales ducument number column is coming blank and this needs to pick from VBRP table
    As I discussed with Abaper, he reqiures a key field which common in BSEG abd VBRP table
    So,Please guide me in approaching the right way
    Munender

    Hi,
        Speak with your SD consultant. They can set up the copy control in SD so that the sales order is populated in the invoice in field ZUONR (Assignment).This will then copy to the assignment field in accounting.
    Alternatively you can use an exit to populate another field during the Posting.
    Kind regards

  • 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,

Maybe you are looking for