Reference (XBLNR) field is empty in PO history tab (ME23N)

Hi all,
I created a PO the the GR.
The PO history is updated and in the field reference shows the value I entered in the GR in field "Delivery note"
After that I created an invoice in MIRO and entered a value in fields: "Reference", "Header text", etc
The PO history shows the invoice but the field "Reference" is blank.
Can somebody tell me how to populate the field "Reference" in the PO history tab for invoices?
Regards,
CD

Hi,
could you please check whether the flag "GR-bsd IV" is set in the PO item data?
Normally when you enter invoice content of 'Reference' (INVFO-XBLNR)           
field is never saved in EKBE-XBLNR. The EKBE-XBLNR for IR is only              
filled with the delivery note saved in EKBE-XBLNR for GR, provided             
that 'GR based IR' is active in PO item.                                       
Best regards
Erika

Similar Messages

  • Purchase order history tab is displayed

    Hi,
    When purchase order history tab (me23n) is displayed?
    Thanks.
    deniz.

    GR for movement type '101'. IR via tcode MIRO.IR happens first before GR only in case where friegth charges are paid to a third party.

  • How to get required data in Reference (XBLNR)

    As a result of posting customer partial payment there is a new document posted with a new amount that is left to be paid, however this new document doesnu2019t derive Invoice number / Reference from the original document. The invoice number is copied only to field u2018Assignmentu2019 (BSEG-ZUONR) which is in customer line item while I need it in u2018Referenceu2019 (BKPF-XBLNR). As Reference is empty, instead of invoice number there is a document number printed on dunning letters that doesnu2019t say anything to customer and make him confused.
    Do you know how to create substitution that will copy data fromu2019 Assignmentu2019 to u2018Referenceu2019 of the same document (I was trying to write exit in ZGGBS000 but it didnu2019t work).
    Second idea is to write some program that when posting / clearing via F-28 will derive invoice number from cleared document (from its u2018Referenceu2019) but where I should do this?
    The last idea that comes to my mind is to change dunning printout so that when u2018Referenceu2018 is empty then data from u2018Assignmentu2019 should be printed instead of document number.
    Anybody knows how to realize these ideas or knows any other solution?
    Thank you in advance.

    Hi Anna
    We welcome you to SDN!
    I think ZGGBS000 should work, provided you create it at Call up Point = "Doc Header" and Not "Line Item" (in OBBH)
    If not ZGGBS000, you can use BTE 1120.... I had similar requirement to copy invoice no in F-28.. But, there is a catch in it... What if you select 2 invoices in F-28? Which invoice no would you update in reference?
    If you want to use F-28 option, then you will have to put a restriction in the BTE saying that you cant select more than 1 line item in F-28... Then only you can update invoice no in XBLNR field
    Regards
    Ajay M

  • Payment terms and Due date field gets emptied after residual clearing

    Hi
    There is advance of Rs.50000 in Vendor ledger and Invoice of Rs.200000 (with payment term - G019)
    I cleared these two line items (residual clearing). One new line item got created of Rs.150000. When i saw that line item, i saw that there payment term field and due date field got emptied. My requirement is that the original payment term entered in initial invoice document (of Rs.200000) should automatically get populated in new line item of Rs.150000.
    How to fulfill this requirement?

    Thanks for the prompt reply.
    I wanted to ask one more thing. Same way when i do partial clearing (not residual), is it possible to populate the invoice's due date in advance line item. One link is that my invoice reference gets populated advance line item. So i want due date (not payment term) also to get populated in advance line item.
    Please help.
    Edited by: Deepak Agrawal on Jul 29, 2011 11:43 AM

  • Validation in f-48 for reference key field mandatory

    Hi,
    please help in Validation
    Prerequisite for validation of reference key field mandatory in f-48 for particular user
    Regards,
    Mahendra

    Hi,
    The validation will be
    Prerequisites:
    BKPF-TCODE = 'F-48' AND
    SYST-UNAME= ( Enter user name here)
    Check
    BKPF-XBLNR <> ''
    Message
    Go to message click on change Icon near message Number on next screen select individual Maintenance and right message in free number available and enter this number in ob28 message screen for this validation.
    Regards
    Edited by: MILIND on Feb 22, 2011 2:32 PM

  • ERS user exit, pass Delivery note(LFSNR) in MIGO to Reference(XBLNR)in MIRO

    Hi Experts,
    I need to assign Delivery Note(LFSNR) in MIGO, to field Reference(XBLNR) in MIRO. that means "Reference " field must contain the delivery note information instead of Invoice doc number.
    how can i use component MRMH0001.where can i use?
    i am new to user exits.
    please help me. i need logic and steps.
    Thanks in advance
    Reward points will be given.
    Srinu

    hi
    Overview
    R/3 provides three "customization spots" that allow you to enhance FI/CO features without modifying the standard code. Although often collectively referred to as "user exits," two of the three have different names. SAP Enhancements are used to expand the standard functionality within SAP. Enhancements use function modules and are called from the standard SAP code. Each module in the system has a set of delivered enhancements that help companies expand the standard functionality where they need it. Enhancements were new in release 3.0.
    The Open FI Interfaces or Business Transaction Events are also used to expand the standard functionality within SAP. These events are defined in the IMG. Business Transaction Events were new in release 4.0. They are not available for all modules and are not called on all integrated transactions into FI as of release 4.5B. This will change with each release and should be retested.
    The older User Exits in FI/CO are "Z" programs that are defined in table T80D for client-dependent user exits, and in table T80I for client-independent user exits. These are also used to expand the standard functionality within the FI/CO modules. These User Exits have been available since the early releases of SAP. All of these FI/CO User Exits are listed in this document in the Configuring User Exits (Older). The list is included because these User Exits are not a part of the Enhancements or Business Transaction Events and do not have an Info System for searching.
    Benefits
    • Standard SAP functionality can be enhanced without modification to the standard code.
    • Upgrades do not erase the functionality and it does not have to be re-transported or re-entered into the system. The enhancements should be thoroughly tested when upgrading to ensure the system will still work as implemented.
    Configuring SAP Enhancements
    Basic Steps in Configuring an Enhancement
    • Find the appropriate Enhancement.
    • Enter the ABAP code in the "Z" program within the function module.
    • Create a project.
    • Add the Enhancement to the project.
    • Activate the project.
    Example Business Scenario for Enhancements
    Company A has a requirement to validate all customer master records created with a U.S. address. The U.S. entity reports on the industry field on the customer master. This is only a U.S. requirement and should not be required for the other countries, so the field status would not work. To accomplish this requirement, Company A will need to set up an Enhancement for the customer master transaction. The necessary steps are detailed below with screenprints. This example was configured in a 4.6C system.
    to find the suitable exit for ur requirements check the following program
    Hi
    Find the available exits with the following program:::
    *& Report  ZFINDUSEREXIT
    report  zfinduserexit.
    tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
    tables : tstct.
    data : jtab like tadir occurs 0 with header line.
    data : field1(30).
    data : v_devclass like tadir-devclass.
    parameters : p_tcode like tstc-tcode obligatory.
    select single * from tstc where tcode eq p_tcode.
    if sy-subrc eq 0.
    select single * from tadir where pgmid = 'R3TR'
    and object = 'PROG'
    and obj_name = tstc-pgmna.
    move : tadir-devclass to v_devclass.
    if sy-subrc ne 0.
    select single * from trdir where name = tstc-pgmna.
    if trdir-subc eq 'F'.
    select single * from tfdir where pname = tstc-pgmna.
    select single * from enlfdir where funcname =
    tfdir-funcname.
    select single * from tadir where pgmid = 'R3TR'
    and object = 'FUGR'
    and obj_name eq enlfdir-area.
    move : tadir-devclass to v_devclass.
    endif.
    endif.
    select * from tadir into table jtab
    where pgmid = 'R3TR'
    and object = 'SMOD'
    and devclass = v_devclass.
    select single * from tstct where sprsl eq sy-langu and
    tcode eq p_tcode.
    format color col_positive intensified off.
    write:/(19) 'Transaction Code - ',
    20(20) p_tcode,
    45(50) tstct-ttext.
    skip.
    if not jtab[] is initial.
    write:/(95) sy-uline.
    format color col_heading intensified on.
    write:/1 sy-vline,
    2 'Exit Name',
    21 sy-vline ,
    22 'Description',
    95 sy-vline.
    write:/(95) sy-uline.
    loop at jtab.
    select single * from modsapt
    where sprsl = sy-langu and
    name = jtab-obj_name.
    format color col_normal intensified off.
    write:/1 sy-vline,
    2 jtab-obj_name hotspot on,
    21 sy-vline ,
    22 modsapt-modtext,
    95 sy-vline.
    endloop.
    write:/(95) sy-uline.
    describe table jtab.
    skip.
    format color col_total intensified on.
    write:/ 'No of Exits:' , sy-tfill.
    else.
    format color col_negative intensified on.
    write:/(95) 'No User Exit exists'.
    endif.
    else.
    format color col_negative intensified on.
    write:/(95) 'Transaction Code Does Not Exist'.
    endif.
    at line-selection.
    get cursor field field1.
    check field1(4) eq 'JTAB'.
    set parameter id 'MON' field sy-lisel+1(10).
    write the code in the right form and check by keeping a break point
    HI
    To search for a badi, go to se 24 display <b>class cl_exithandler.</b>
    double click on method get_instance, get a break point on case statement.
    execute and start the required transaction in new session.
    look for variable <b>exit_name.</b> It would show the available badi's.
    also check the following links
    User Exit
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    http://www.planetsap.com/userexit_main_page.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    <b>Please do reward if useful</b>
    Regards
    Dinesh

  • Make "Reference Document" field as mandatory in Confirmation

    Hi Experts,
    I have a requirement in confirmation to make "Reference Document" field as mandatory. I have done the config and able to see  ' * ' (mandatory) in the reference document field in confirmation. However, system is not validating for entry in that field, I am able to save or post the confirmation w/o the entry in the reference document field.
    Version: SRM 7.0 SP05 with EP
    SPRO -> SRM Server -> Cross Appl... -> Extension and Field Control (Personalization) -> Configure Field Control -> Configure Control for Fields on Header Level --> Metadata for Fields on Document Headers
    Structure Field Name : REF_DOC_NO
    Bus. Object Type      :  BUS2203
    Bus. Object Subtype : CF
    Transaction Type      : CONF
    Field Visible               : X
    Field Enabled             : X
    Field Required           : X
    Please advice.
    BR,
    Siva

    Schuffelen,
    Your suggestion is exactly correct.  I have to use DOC_CHECK badi for this.
    Reply from SAP on this below,
    The flag in the property will not generate an error message. This flag only renders the red asterisk on the screen. The actual error has to be generated on your code
    After you have done the customizing to get the field to be shown as mandatory, you have to write a code in your BADI (like DOC_CHECK) to check the value for this field and generate the error message if the field is empty
    Thanks for your help!!!!!!
    BR
    Siva

  • Invoice reference number to be displayed in PO history

    Hello All, We have a requirement to display the invoice reference number in the Po history. Can anyone please provide me with some tips if already worked on this, likewise how to find the Internet Service , HTML template. and whether Badi's are required for this or any FM
    Thanks in advance
    Rgds
    Saj

    Hi Saj,
    I think you need to add a customer field to the PO history screen so that you can fill the value of invoice reference number there and display it.
    For Adding the customer field to Po history you need to follow the below given OSS Note:
    Note 672960 - User-defined fields 2
    You have to add this cutom field in the following structures:
    INCL_EEW_PD_HISTORY_CSF
    If you have defined document-specific fields on header and/or item level, you also have to define them in structures INCL_EEW_PD_HEADER_CSF (for the fields of the header) and INCL_EEW_PD_ITEM_CSF IF THEY HAVE NOT BEEN DEFINED THERE YET. Consequently, these structures contain the combination of header or item fields of all document-specific fields.
    Once the field is available in the history screen you need to map the value of the field using the the
    BAdI: BBP_DOC_CHANGE_BADI.
    Method: BBP_PO_CHANGE.
    This must get you started.
    Thanks,
    Pradeep

  • Copying number to XBLNR field

    Dear friends,
    Is it possible to write the number which is  in PO field-VA01 screen to XBLNR field in FB02 screen..
    Thans in advance...

    Hi,
    Check in TA:VTFA
    There is field named Refernce number : Pass A there.
    FI reference number
    The reference number is a piece of additional information forwarded from SD and FI.
    If a field is not filled in the order, you can determine field contents here:
    1. A:Customer purchase order
    2. B:Sales order number
    3. C:Delivery number
    4. D:External delivery number
    5. E:Current invoice number
    If you do not make an entry and the field is not filled in the order, the billing number is adopted automatically.
    Example
    If want to link the delivery to invoices in accounting (which is necessary in the self-billing procedure), enter 'C' for the relevant invoices.
    Note
    When you are working with invoice lists, the system automatically assigns the invoice reference number to the invoice list so that all single invoices in accounting can be cleared together. You may also use the allocation number field in the above cases.
    Exception: Cancellation
    For cancellation, the table settings have priority. This means that when the setting is blank, the field is filled from the billing document
    entries.
    Please note that as of 3.0D, cancellation can no longer be controlled in copy control. This is carried out in the billing type table with the billing type of the document to be cancelled.
    Best Regards,
    Nisha

  • PO history tab and reference number for invoice

    PO history tab has invoice reference field on the line item when invoices are posted- which is currently blank. This number is basically the vendor invoice number used on the MIRO transaction. How can I get this number populated on the po history tab when rest of the invoice info is populated?
    Thanks
    Raj Patel

    Hello Raj,
    Check whether MIRO is carried out with reference to Goods Receipt or Purchase order.
    Also here is the information which can be helpful.
    Enter the number specified by the business partner at the time of MIRO. If the document was created in-house and you do not know the business partner document number, you can copy the document number into the reference number field by entering <b>" * "</b>.
    Hope this helps.
    Regards,
    Arif Mansuri
    Reward if answer is helpful

  • Previewing data in UD Datasource (S:RSSDK:400 field is empty)

    Hi,
    I followed the steps in creating a datasource for UD connect interface. I was successful in saving and activating the datasource; however, when previewing the data, i am given the prompt: "S:RSSDK:400 field is empty."
    I double checked the database wherein it was extracting data from. There was data present.
    Any ideas on how to solve my problem?
    Regards,
    Ramon

    Hi
    Is there any other UD connect, datasources running without problem?
    have a look at these notes: 874549  and 1056046.
    Hope this helps
    Derya

  • HOW to include a reference currency fields in a view ?

    Hello Experts,
    <b>I am having Currency fields error in generic extraction</b>
    I have table where I am trying to extract data to BW via generic extraction. When I tried
    to extract with the TABLE its giving me an error
    <b>Invalid extract structure template RPSCO of DataSource ZBW_REP3_TEST
    You tried to generate an extract structure with the template structure RPSCO. This operation failed, because the template structure quantityfields or currency fields, for example, field WLP00 refer to a differenttable</b>.
    Now I created a view with all the fields same as my table.
    But its still giving me the same error and taking all the fields as a primary keys. I have over 12 currency fields in the table. I am confused how to fix this issue and add a currency field to my view?
    hOW to include a reference currency fields in a view ?
    All inputs are much appreciated.
    Thanks and Regards,
    Harish

    Thank you for your responce,
    Can you please check my view and let me know where I am going wrong     
    View    Table   Field  Dataele  Data
    field                    type                                            0                                                                
    WLP01     RPSCO     WLP01     BP_WPL     CURR     15     Period value in ledger currency
    WLP02     RPSCO     WLP02     BP_WPL     CURR     15     Period value in ledger currency
    WLP03     RPSCO     WLP03     BP_WPL     CURR     15     Period value in ledger currency
    WLP04     RPSCO     WLP04     BP_WPL     CURR     15     Period value in ledger currency
    WLP05     RPSCO     WLP05     BP_WPL     CURR     15     Period value in ledger currency
    WLP06     RPSCO     WLP06     BP_WPL     CURR     15     Period value in ledger currency
    WLP07     RPSCO     WLP07     BP_WPL     CURR     15     Period value in ledger currency
    WLP08     RPSCO     WLP08     BP_WPL     CURR     15     Period value in ledger currency
    WLP09     RPSCO     WLP09     BP_WPL     CURR     15     Period value in ledger currency
    If I add a
    Table TCURC against any field what would be the view field and data element
    Do I need to tick MOD?
    Please suggest.
    Kapadia,
    If I do that its still taking all the fields are a primary keys and bringing 6 lakh records to where I originally have 49 records in a table
    Thanks and Regards,
    Harish

  • Need to determine if an Expression field is empty in CR 2011

    I have an expression field in a subreport. This field collects a list of computer models to which a given hard drive is assigned. I need the field to always have a border around it even if there is no data. But I have been told by someone on this forum that no border will be generated if the field is empty.
    That being the case, I need to find a way to show a blank, bordered field the same size as the subreport window in the event that the subreport has no data. I need to know if it needs to be done in the subreport itself or in the parent report.
    Can someone please help me out on this? I've run out of ideas.
    Thanks!

    Hi,
    Yes, that is true. The field borders are not drawn when there is no data for that field.
    Here's a workaround though. Create this formula and use this formula field instead of the original database field on the report
    if isnull({database_field}) or not({database_field} > 0) or not({database_field} = "") then
    space(1) else totext({database_field})
    You can then apply borders on this field and you'll see that the field draws the border when there is no value.
    If the field that is in the Subreport, then it needs to be done in the Subreport, otherwise in the Main Report.
    -Abhilash

  • How do I reference a field in form portlet?

    I created a simple form portlet in Oracle Portal using the wizard.
    I want to execute a custom pl/sql query using simple select statement. (e.g. select emp from scott where ...)
    I created a new Button item.
    In the PL/SQL Button Event Handler I put the select statement.
    Now I have 2 questions.
    Question 1. Do I have to use the Query or Custom button.
    Question 2. In either way I get PLS-00428: an INTO clause is expected in this SELECT statement.
    I guess the fundamental question here is how do I reference a field in the form?

    If I understand you correctly you want to click on the button and then display a value selected from the database, right?
    1. You have to use the Custom button - query is exclusive for the form query.
    2. You will have to select the value into an interim PL/SQL variable and then set the form field using the portal session attribute.
    The following principles apply:
    * To set a field you have to use code like
    p_session.set_value(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_RFS_ID',
    p_value => 30);
    p_session.save_session;
    where
    - p_session is available in most custom PL/SQL blocks - I'm not sure if its in the custom block for a button - this type of code is used mostly in the "cusom pl/sql before form is displayed" (last tab) - if its not available you might have to jump through some more hoops !:). It refers to a portal stored session that is used to store all the internal variables.
    - block_name is either DEFAULT for simple forms or MASTER or DETAIL for master/detail forms
    - p_attribute_name is the name of the field you want to set BUT (very important) prefixed with A_
    - p_value is the actual value - here you will use your pl/sql variable.
    so try something like:
    l_number number;
    select anumber into l_number from atable where ....;
    p_session.set_value(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_field1',
    p_value => l_number);
    p_session.save_session;

  • XBLNR  field in DME file (classic payment medium program)

    Hi ,
             My client wants XBLNR field in the DME file which is created from automatic programme F110,can u please advise whether it is possible if yes can u please tell the procedure to do the same i.e whether we should use any function module , programme name to be changed and any includes to be made in the programme.
    Regards,
    RAM

    Hi,
    Please use the below logic,
    DATA: lwa_item   TYPE dmee_paym_if_type,
            l_fpayp   TYPE fpayp,
            l_fpayh TYPE fpayh,
            l_fpayhx TYPE fpayhx,
            first_flag TYPE c,
            lv_lifnr   TYPE lifnr,
            lv_vblnr TYPE vblnr,
            invoice_id TYPE string,
            invoice TYPE string,
           invoice_len1 TYPE i,
            invoice_len TYPE i.
      TYPES:
      BEGIN OF lt_regup,
            xblnr TYPE xblnr1,
            belnr TYPE belnr_d,
      END OF lt_regup.
      DATA: lt_regup TYPE STANDARD TABLE OF regup,
            lv_regup TYPE regup.

Maybe you are looking for