Reference Doc (Field - LFBNR) against IV cancellation - EKBE table

Hi,
We want to refer to table - EKBE, for getting a link between the original IV (Material Doc) with the cancellation (Material) IV Doc.
At my earlier site, our cancellation (Material) IV Doc was getting updated as a "Reference Doc" against the Original (Material Doc) IV doc. which was a easy way to identify a link between Original IV (Material) Doc. & Cancelled (Material) IV doc for ABAP development logic. Was that becuase of any user exit or development to update the "Reference Doc." field in Table - EKBE ?
Right now at our client, GR Doc (Material Doc) is getting updated as a "Reference Doc (Field - EKBE-LFBNR)" against all the material doc. pertaining to a particular P.O. in table - EKBE which require to give a different logic to identify the relationship between these 2 documents for ABAP development.
No question of giving a different logic but that was a easy way to identify the relatioship.
If possible, please confirm to me as which doc, system is referring as a "Reference Doc."
Is there any setting we do for updating the particular document as a "Reference Doc." in EKBE Table.
There is a SAP note about leaving the field "Reference Doc." as  a blank field or updated with the Material doc.
But my point is that we want cancelled (Material Doc) IV as a "Reference Doc." against the original IV doc. to set a logic for ABAP development ?
Regards,
Shridhar

Hi,
No body is there who has handled in past such a requirement?
I want to substitute the Reference Doc. - (Field - LFBNR) of Table - EKBE with the cancelled IV doc (MIRO cancelled doc).
Purpose of this development is to identify the relation between Original IV (Material) Doc. with the Cancelled IV (Material) Doc.
This logic will help us in one of our ABAP development.
Regards,
Shridhar

Similar Messages

  • LFBNR reference doc field not displayed on screen in migo

    hi,
    how to activaet the LFBNR in the materail document.
    the same field shall appear in the MIGO screen at item level- under PO data tab(just below the Purchase order field).
    iam working 2 server, in one server the same field is available, but not in another server/cleint. i show in omjx transaction there this field is taken as input. So can anyone tell me the BADI or userexit or any way to make the field appear on screen

    Hi Joshi,
    Go to SPRO-> Material Management -> Purchasing -> Purchase Order -> Define Screen Layout for Purchase order -> ans select the Field selection screen NBF / ME21N (what ever you have assigned to document type in Define Document Types) and Mark the Manufacturer Part profile as Optional Or required.
    Hope this would solve your problem.
    Revert back if the problem still exist.
    Reg,
    Ashok
    Rewards Welcome

  • 2LIS_02_SCL - need Doc Currency Amount (WRBTR) from EKBE table

    Problem:  We are using the 2LIS_02_SCL to get our purchasing order data.  The problem is that instead of sending over the Doc Value Amounts found in the EKBE table, SAP is doing a calculation based on the the local currency.  They are then using the Exchange rate from the PO Header.  Our users are complaining, because they expect it to match up with what is in the purchase order history.
    I was planning to create a new amount field and and in my transfer rules write ABAP code to take the following fields from 2LIS_02_SCL:
    BW:CValLC(BWGEO), Local cur.(HWAER), Posting Date, Currency(WAERS)
    Use this Date to go back to TCURR to get the correct exchange rate that is used and do my calculation to doc currency (basically replicating the data as viewed in PO History).
    I ran into an issue however.  The Currency (WAERS) field is being filled with the value from EKKO.  I have a below example where in EKBE, the PO was invoiced in a currency other than the DOC Currency. 
    Data in R/3 from EKBE (History per PO)
    PO:                           1
    Amount in Local Currency(DMBTR):     250,01
    Local Currency (HSWAE):            USD
    Amount in Doc Currency(WRBTR):     250,01
    Doc Currency (WAERS):          USD
    Data in R/3 from EKKO (Purchase Order Header)
    PO:                         1
    WAERS:                    DKK
    In this scenario, I am unable to populate the correct value (as seen in purchase order history).
    I don’t see of a way that I can get around this.  Does anyone have any ideas?
    Thanks

    Hi Jiri,
    You can suggest the RRI from cube built on SCL report to cube built on EKBE based on PO.
    Also check if this can be solved by using a multi-cube on these 2 cubes.
    I have done a RRI when I was facing the same issue.
    Regards,
    Niraj

  • 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

  • 0DOC_CATEGR-Sales Document Category of Reference Doc. in Order Header

    Hi,
    I am extracting the standard datasource for Sales Order Header 2Lis_11_VAHDR to BW.I am getting error while loading data.I checked it in PSA there are around 30 records which were showing the error with the message
    "Record 985 :Contents M from field VGTYP_AK(mapped to 0DOC_CATEGR) cannot be converted in type DEC ->longtext RSAR 198" and
    "Error in an arithmetic operation in record 985     RSAR117".
    I am not getting this error while loading the Order Item Data.
    'M' is the Document Category of Reference Doc. in Order Header.For sales document type "RE".
    In R/3 the reference was taken on Inv.No instead of Order number and also there is a User Exit written on MV45AFZZ program to check the referred quantities and also zero quantiity lines in case of back split.
    As there is no customization done in BW and the only customization was in terms of an User Exit in R/3 please let me know what is the reason of this error.
    Thanks in advance.
    Venkat

    Hi Venkat,
    Assume the data mapping in transfer rule and update rule is correct
    Maybe you can check the info object definition of 0DOC_CATEGR in your system. Based on the error message you mentioned below, it looks like 'data type' of the object concerned is NUMC? In our system it is CHAR (standard BC)...
    Regards,
    Lilly

  • Document number and reference doc number

    Hi All,
    When i post a invoice through F-22 i get a document number.
    1: Is this doc. number also called invoice number
    2: What is reference document number (XBLNR field). From where does it get its value
    What's the use of this reference doc. number and how different it is from doc. number
    Thanks in advance,
    Prashanth

    hey,
    1. It is the invoice no.
    2. The reference document number is used as a search criterion when displaying or changing documents. In correspondence, the reference document number is sometimes printed in place of the document number.
    Ex; Vendor send the invoice and it has a no. on it. You can use that no as document no and/or reference no when posting in the system. So when you do a search it is easy to pull the invoice based in this no.
    Hope this helps.
    Assign points if helpful

  • 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

  • Reference doc VBAP-VGBEL in VA01

    Hi SAP experts.
    We need to include the "Reference doc"  VBAP-VGBEL field in transaction VA01 to be filled-in. How can we configure this?
    Thanks in advance.
    Eloy

    Dear Aloy
    Go to VTFL, select your delivery type and billing type and click on magnifying lens on top left.  There you can see two fields
    -  Assignment Number and
    -  Reference number
    Maintain the required value here.
    thanks
    G. Lakshmipathi

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

  • Question about Web Shop, Reference User field.

    Hello,
    In web shop, under General Settings tab, should there be User Management tab?
    I need to enter the B2CREFUSER which I created in Reference User field.
    Or is that field removed now?
    Thanks,
    Harsha

    Hi Harsha,
    The particular field is no more available in webshop, if u want ot provide ur reference user u have to assign the refernce user in CRM Customising in the following path -
    IMG-- CRM--- Ecommerce -internet user--Assign refernce user for internet user B2C
    Hope this helps.
    Regards
    Bala

  • Reference a field from master query in detail query

    Hi,
    Please tell me how do I reference a field say incident_no in my master query to a detail query.
    like
    detail.incident_no != master.incident_no
    I am joining both the queries using a link. But still I need to reference another field from the first query in my second query. I thought this was possible using formula columns or trigger's. Please help.

    Hey Vadim,
    That worked. How come.. You know I did it several times before and all it said was, that it was going to create a new parameter field called so and so.
    Good, so does it work just this time or always ? just kidding. Reports is so unpredictable, at least for me.
    Thanks Vadim,
    Joe.

  • How to reference a field statically in a program?

    Hi Everyone,
    Can any one explain me how to reference a field statically.
    As the error on Extended program check is as follows:
    Field FLAG is not referenced statically in the program   
    where as the particular field has been defined as below in the program :
    when 'SMTP_ADDR'.
              DATA: flag type i.
    I think is there a need to define the field globally.
    Thanks and Regards,
    Johny

    Hi,
    We can avoid this EPC check by deleting or putting a comment Or By passeing the EPC to it ie
    DATA:
    w_flag type i." #EPC
    we can also avoid the EPC error by this way.then this willnt be aa part of EPC check
    Thanks & Regards,
    Chandralekha.

  • 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

  • Qty field addtion based on item no. for ekbe table

    Hi experts,
                      below is my code..
    LOOP AT IT_EKKO.
      READ TABLE IT_LFA1 WITH KEY LIFNR = IT_EKKO-LIFNR.
       MOVE: IT_LFA1-NAME1 TO IT_DISPLAY-NAME1.
       MOVE: IT_EKKO-LIFNR TO IT_DISPLAY-LIFNR,
             IT_EKKO-AEDAT TO IT_DISPLAY-AEDAT,
             IT_EKKO-ERNAM TO IT_DISPLAY-ERNAM,
             IT_EKKO-EKGRP TO IT_DISPLAY-EKGRP.
    READ TABLE IT_EKPO WITH KEY EBELN = IT_EKKO-EBELN.
       MOVE: IT_EKPO-EBELN TO IT_DISPLAY-EBELN,
             IT_EKPO-MATNR TO IT_DISPLAY-MATNR,
             IT_EKPO-MENGE TO IT_DISPLAY-MENGE.
             LOOP AT IT_EKBE where ebeln eq it_ekko-ebeln.
                loop at it_ekbe." WHERE ebelp eq it_ekbe-ebelp.
             IT_DISPLAY-QTY = IT_DISPLAY-QTY + IT_EKBE-MENGE.
             AT END OF EBELP.
            APPEND IT_DISPLAY.
             CONTINUE.
             ENDAT.
             ENDLOOP.
             endloop.
             APPEND IT_DISPLAY.
             CLEAR IT_EKKO.
             ENDLOOP.
    my requirement is to display lifnr,ernam,ekgrp.....etc....
    but the condition is in ekbe table i hav to take purachse document no. from ekko table..based on this ebeln if suppose
    the item no. ebelp in ekbe has value say 10,10, den 20,20..for a single ebeln...then for same item no(10). the qty field should be added
    and for (20) item no. the qty field should be added.
    plz help...
    hw can i acheive this requirement.
    thanks n regards,
    Ashmita Singh.

    Hi Ashmita,
    Do the following changes in your program.
    Define it_lfa1 table as Hashed table with unique key on lifnr.
    Sort table it_ekpo before the loop start on ebeln and used binary search to read data from table.
    Define it_ekbe as sorted table with non-unique key on ebeln and EBELP use single loop.
    Write the following statement before main loop start. (ie it_ekko)
    delete ADJACENT DUPLICATES FROM it_ekbe COMPARING eblen EBELP.
    LOOP AT it_ekko.
    * Define it_lfa1 table as Hashed table with unique key
      READ TABLE it_lfa1 WITH KEY lifnr = it_ekko-lifnr.
      MOVE: it_lfa1-name1 TO it_display-name1.
      MOVE: it_ekko-lifnr TO it_display-lifnr,
      it_ekko-aedat TO it_display-aedat,
      it_ekko-ernam TO it_display-ernam,
      it_ekko-ekgrp TO it_display-ekgrp.
    * Sort table it_ekpo on ebeln and used binary search
      READ TABLE it_ekpo WITH KEY ebeln = it_ekko-ebeln.
      MOVE: it_ekpo-ebeln TO it_display-ebeln,
      it_ekpo-matnr TO it_display-matnr,
      it_ekpo-menge TO it_display-menge.
    * Define it_ekbe as sorted table with non unique key on ebeln and use single loop.
      LOOP AT it_ekbe WHERE ebeln EQ it_ekko-ebeln.
          it_display-qty = it_display-qty + it_ekbe-menge.
      ENDLOOP.
      APPEND it_display.
      CLEAR it_ekko.
    ENDLOOP.
    Kind Rgds
    Ravi Lanjewar

  • Maximum size to reference text fields in report painter

    I have created a library for report painter but reference text fields were not transfered because of their size exceed 24 character long. is there some SAP procedure to extend this size at the moment we are creating the library?  Thanks in advance for support me.

    Hi Francisco
    Firstable I created a structure evaluation using SAP TC MCS7 and took the own customized table that was set up for SPL porpuses. this table contains several fields including text fields and now we would like to take them for set up several report painter but I noticed that this kind of fields are not available when I created the library using GR21 also when I tried to create the set using GS01 appeared a error "this field is bigger than 24 characters" or something like that.
    SGTXT              Text Field                      50
    ZZBKTXT          Text Head Reference      25
    ZZKIDNO          Payment Reference        30
    Thanks in advance to take time for my research.
    Regards

Maybe you are looking for

  • Problem in IDOC processing

    Hi, I have a File to IDOC scenario from third party to ISU. PI interface is configured to pick up XML files. Problem is occuring to process single files above 4-5 mb and process multiple files . Though its showing processed properly in SXMB_MONI but

  • PDF's with stripes

    Good afternoon all, I am having a problem when printing a .pdf from Autodesk Inventor 2008. Actually, we have been having this problem for a while, it happened when we were using Inventor 11, as well. When you try to print a color drawing from Invent

  • Error Burning Data to DVD-R's

    I have been trying to burn data to a DVD-R with my MAC Dual2.S GHz PowerPC GS with OS X (version 10.3.9) and have been getting an error every time. I am using DVD-R Verbatime DVD's (16x) and have tried more than one DVD at more than one speed without

  • Data top up option does not appear in My Account

    I have reached my monthly data limit and want to take advantage of the free topup for this month but cannot find this option in My Account.

  • XI message synchronization problems

    We are having a problem with XI that is related to timing of transmissions from a Legacy Mainframe system to our R/3 system. This is the scenario: Update 1 is transmitted from the mainframe at 1:00pm and contains an update for item “Y”. The update fa