Add BSTNK to FBL5N

Hi,
I would like to include field BSTNK in FBL5N.
My BTE works for FM 1650 as I am able to see the field. However no data shows. I have tried tables VBKD and VBAK and no values poulate.
But when I use another table (VBRP) and another text field (ARKTX) it works as expected.
Here is the code that works:
E_POSTAB = I_POSTAB.
if sy-tcode = 'FBL5N'.
tables vbrp.
select single arktx
   from vbrp
   into e_postab-zzbstnk
   where vbeln = i_postab-vbeln.
   endif.
Here is the one that does not work:
E_POSTAB = I_POSTAB.
if sy-tcode = 'FBL5N'.
tables vbak.
select single bstnk
   from vbak
   into e_postab-zzbstnk
   where vbeln = i_postab-vbeln.
   endif.
The only difference between these 2 is the tables/fields used.
I appreciate any assistance.
If I am in the wrong forum space, please let me know....
Thanks,
Sonia.

Thanks Eli & Jov!
I had a feeling it was something along the lines of my interpretation of the fields in RFPOS structure.
Thanks for clearing that up. Makes sense.
Eli, I ended up finding a corresponding field (SGTXT) in table bsis with the fields I wanted from VBAK so I used that one and it worked. However, this is very helpful for future reference where i have to add sales order fields to FBL5N.
Thanks sooo much but y'all and just to be sure, vbel2 will give me the corresponding sales doc number in RFPOS?
Thanks,
Sonia.

Similar Messages

  • Add fields in  FBL5N output

    Hi
         I have to add some fields in output list in FBL5N transaction code.
    How to add the fields?
         Is it possible to copy the standard program and again shall i add the new fields in output list.
        Please tell me how to do it?
    Thanks.

    There is a Business Transaction Event (BTE) for that, its number [00001650|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=00001650+bte&adv=false&sortby=cm_rnd_rankvalue]. Look at OSS [Note 112312 - Line item: Display of offsetting a/c information|https://service.sap.com/sap/support/notes/112312] and [Note 373268 - Line item: new display field|https://service.sap.com/sap/support/notes/373268] for an implementation sample and guidance.
    - Append a structure to structure [RFPOS|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=rfpos&adv=false&sortby=cm_rnd_rankvalue] with your fields (SE11)
    - Run report [RFPOSXEXTEND|https://www.sdn.sap.com/irj/sdn/advancedsearch?query=rfposxextend&cat=sdn_all]
    - Create a FM (copy of [SAMPLE_INTERFACE_00001650|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=sample_interface_00001650&adv=false&sortby=cm_rnd_rankvalue]) to fill these fields (SE37)
    - Optimize and bufferize your FM (accountants love when there are many lines) (SE37)
    - Link the FM to the BTE ([FIBF|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=fibf&adv=false&sortby=cm_rnd_rankvalue])
    - Run [BALVBUFDEL|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=balvbufdel&adv=false&sortby=cm_rnd_rankvalue] to correct the ALV buffer inconsistency
    - Adapt your layout variants
    In more recent versions take also a look at BADI like [BADI FI_ITEMS*|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=badi+fi_items&adv=false&sortby=cm_rnd_rankvalue]
    Regards

  • How to Add field to Selection screen of Tx. FBL5N

    Hi All,
    In Tx. FBL5N, there is a field Customer number (on Customer selection screen).
    In addition to the above we need to add field Customer name in Selection screen.
    How do we go about it ?
    PS :- We have found steps to add fields to FBL5N output. But, we dont want it on output, we want to add it on Selection screen.
    Regards,
    Ashish

    Hi,
    Only certain table fields are allowed in dynamic selection, please see this sap note for detail :
    Sap Note 310886 - Line items: Dynamic selections ignored
    Permitted tables:
    SKA1: all fields
    SKB1: all fields
    BSIS: all fields
    So BKPF-CPUDT field is not allowed for dynamic selection.
    check this thread Add new Fields to Dynamic Selection FBL5n
    Or
    Enhancing Selection Views in the dynamic selection of some SAP transactions like FB03, FBL3N, FBL5N
    This enhancing related to SAP OSS Note: 188663 and 832997
    Requirement: The business requires the Doc. Header Text be added in the dynamic selection in SAP transactions FB03
    ■Execute Transaction code SE36. Click F4. Enter the SAP table name wherein you think the field could be found. In this case the SAP table is BKPF and the logical database is BRF
    ■From the initial screen of SE36, Choose from the path EXTRAS >> Selection Views
    ■Copy Selection View u201CSAPu201D to u201CCUSu201D
    ■Change the selection views u201CCUSu201D
    ■In the right corner, double click your table BKPF.
    ■In the right corner, check whether what functional groups does your field belong. If it is 01 then input it beside your field name.
    ■Then Save it afterwards.
    Prabhudas

  • Add BSED-WBZOG(Drawee) to FBL5N

    Hello all,
    We want to add the field "Drawee(BSED-WBZOG)" to the FBL5N customer line item report.
    Do you know the way that how i can add it to FBL5N output ?
    Thanks,
    Best Regards
    Dash

    Hi Dash,
    In SPRO, you can add this field in Define Special Fields for Line item display and you will be able to see this in FBL5n. BSED appears there in the list. T-Code is O7R3
    Regards,
    SAPFICO

  • Assign Reason Code via FBL5n

    Good Afternoon SAP Guru's,
    If a user forgets to assign a reason code, how can they add it via FBL5N?  When you go into the item and you select Additional Data, it is not there.
    Where do I find this in customizing?
    Thanks!
    POINTS ASSIGNED!

    Thank you Kishan
    I did that before and I got an error message:
    field BSEG-RSTGR does not exist in the screen SAPMF05L 1301
    That is why I find it odd that I am not able to drill into the particular line item, change, and then additional data, the reason code field is not there.
    That is why I thought there was something wrong in the original config but I cannot find it.
    Any idea?  More points awarded

  • FBL5N : how to add a column of the Account's name?

    Hi,
    the list displayed by Tcode : FBL5N contain only the number of account, please how to add a column of Account's name ?
    Please advise
    Regards.

    When you are in the FBL5N display results screen, use the menu option Settings --> Special Fields. 
    There are also the following notes which would explain you how to add special or new fields to the line items :
    - 310886     Line items: Dynamic selections ignored
    - 215798     FBL*N: Special fields are not displayed
    - 373268     Line item: new display field
    The special field has to exist in table T021S.

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

  • 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 'profit center'  under documents of dynamic selections in FBL5N

    Dear Friends,
    In fbl1n (vendor line item display) if i choose dynamic selection ..left side of the window consists of fields....under document ...'profit center' is there....
    In fbl5n(customer line item display) for the same ,profit center is not there.....!!!
    How to add 'profit center' into the available list in FBL5N
    Regards,
    Madhu..!!!

    Hi,
    Do Ctrl + f8 (Change layout).  In it u have profit center for FBL5n
    Pls. assign points, if useful
    Regards,
    Sridevi

  • Add new field in Txn FBL5N

    Hi SAP,
    How to add "new" field eg: object key in customer line item (FBL5N) via config? any menu path?
    I will give points for those who can solve my problem.
    TQ
    Regards,
    Nazrul

    Hi
    The path for adding additional line ittems for display in customer line items is
    IMG>Financial Accounting (New)>Accounts Recievebl & payables>Customer Accounts>Line Items>Display Line Items>Define Additional Fields for Line Items Display
    Thanks & Regards
    Sanil K Bhandari

  • How to add profit center in fbl5n selection screen

    how to add profit center in fbl5n selection screen
    and
    it is save to copy  ddf from sap to cus
    wll it affect anything else

    When you are on selection screen of FBL5N, press (Shift + F4) DYNAMIC SELECTIONS, there you will see a Dynamic selection screen along with your normal FBL5N selection screen, you will find Profit Centre ther, if you don't find Profit Centre in Dynamic Selection Screen you can add the same from the list on the left, search for profit centre, place your cursor on Profit centre and press the Arrow Button(Copy Selected) on top of the list. Now you will find Prfit Centre in Dynamic selection screen, fill the field with values and press save, that's it.....
    Reward points if useful, get back in case of query...
    Cheers!!!

  • How to add additional field " SEGMENT" in the FBL5N Report

    Hello ,
    The Requirement is we need add the field " Segment" in the Report FBL5N.
    Could you please advice How to add the field " Segment" to the FBL5N Report.
    Thanx & Regards
    Ramesh

    Hi,
    try SAPNET note 373268.
    Best regards, Christian

  • I want to add some fields in the report of FBL5N, Can anybody tell me how ?

    I want to add some fields in the report of FBL5N, Can anybody tell me how to do it?
    The fields are sales order, delivery, order quantity, net value and others.
    I can only find the shipment number in FI document.
    Thank you very much.

    Dear Jie,
    Billing document number can be displayed in customer line item display
    (FBL5N) and not in G/L line item display (FBL3N).
    The value of VBELN is saved in table BSEG. So, this means, you
    have to define the field BSEG-VBELN as a special field in table
    T021S. Then you can use it in FBL3N, because then the report looks
    directly in BSEG-VBELN.
    For further information,please read the SAP note 207436. You don't have to
    implement the coding corrections, if they are already in your system
    with the hotpackage. But it explains very detailed the system
    behaviour. The example in the note with field EBELN could be
    replicated on your field VBELN.
    About the MEINS field, please refer to 1-U_MEINS (bseg-meins field).
    The SAP note 215798 may also be helpful.
    Mauri

  • FBL1N & FBL3N affected when using BTE to add new column in FBL5N

    Hi,
    I have a requirement to add a new column External Financial document number (AKKB-BAANR) in tcode FBL5N. And I used BTE ( Business transaction event) to enhance the standard program.
    In order to add the new column, I append new structure in 3 structures: RFPOS, RFPOSX & RFOSXEXT. Normally we just append new structures in 2 structure RFPOS & RPOSX and run the program RFPOSXEXTEND, but I got error when running this program, so I just appended directly new structure in structure RFPOSXEXT.
    Now FBL5N is running with new added column, but the problem is that other tcodes like FBL1N & FBL3N are also affected with a new column. That's because all 3 code FBL1N, FBL3N & FBL5N are using the structure RFPOS.
    Can you give me a suggestion on this issue? Are there any ways of configuration to "turn off" the new column in those tcodes FBL1N & FBL3N ?
    Thank you.

    Hi Madhu,
    Thanks for your reply. But currently the new added column are "hidden" from users, i.e, it is saved in another layout. Therefore I don't have to create another layout. I just want to make the new column disppear in the layout option also.
    Thank you.

  • Add fields fbl5n

    dear all,
    My client wants to know the what is the type of document type in fbl5n ie., description of document type how can i add the field that is not their in the list of fields in dynamic fields
    thanks

    Hi,
    To add new fields in FBL5N:
    to enhance the structures RFPOSX and RFPOS in order to add the new fields;
    to run the report RFPOSXEXTEND in order to update the structure std for ALV RFPOSXEXT';
    Active the BTE 00001650 to fill the new fields
    To active the BTE:
    Create a function Z_INTERFACE_00001650 as copy of SAMPLE_INTERFACE_00001650;
    Run trx BF24 to create an own product;
    Run trx BF34 to assign the fm Z_INTERFACE_00001650 to event 00001650 and create the link with your product.
    U can find the trx BF* in trx FIBF
    regards,
    Siddharth.

Maybe you are looking for

  • Do I need to download drivers for an HP 8600 all in one printer after upgrading to Mavericks from Mountain Lion?

    I am about to upgrade my Mac's OS from Mountain Lion to Mavericks.   I recently networked to my Mac on our home wireless network an HP 8600 all in one printer/scanner and an HP LaserPro 127.   I saw a note posted in a non-Apple forum stating that the

  • Sound out of iTunes is "Warbling"

    Today, when I opened iTunes to listen to radio, the sound coming out of it was "warbling", like every tone is repeated once. I was running 5.0.1, so the first thing I did was update to 6.0.1, but the same thing was still happening. When I open Window

  • I can't edit text in pdfs

    I can edit font colors on pdfs.  My tools doesn't have a content option.  I only have Export PDF, Create PDF, Send Files, Store Files.  Any ideas? 

  • Ppds Planned order quantity is taken back to DP for analysis

    Hi Guru,             Can any one explaine in step by step how i can release my order quantity from PPDS to DP to do my further analysis? Please it will be really great if any one can guide me. Thanks & Regards, Kumar.

  • The data Form is invalid. Check log for details.

    Hi All, I am getting the following error, when I try to open a form. The data form 1. Current Year Forecast Input Form is invalid. Check log for details. Could you please let us know the path of the log file. Thanks & Regards, Sravan Kumar.