Alternative to table EKBE...

Hello Experts,
I just want to know if a PO has a subsequent document(GR, IR, etc). Currently
I am looking in table EKBE but this is a very big table and my code is inside an
enhancement. So, is there a way to check if a PO has already has a PO history?
Thank you guys and take care!

>
Viraylab wrote:
> I do not know the line item so what I did now is to select it based on EBELN and EBELP between '00000' and '99999'. But I am afraid once this goes to production and you know how EKBE gets filled up very fast.
Forget about EBELP.  Use a SELECT SINGLE  using EBELN.  Since EBELN is the first field in the key index, this index will be used and the select will be very, very quick no matter how many records there are in EKBE since the query will just look at the index entries.  Read up about database indexes in the SAP help.

Similar Messages

  • Query in fetching invoice amount from table EKBE

    Hi all,
    In my custom report  the invoice amount is taken from the field  ekbe-dmbtr and is displayed wrongly.
    For a particular Purchase order the account  assignment table EKKN has only one entry and for the same Purchase order the Purchase order history table EKBE has two entries.
    For eg :
    Table EKKN
    Purchase order       Item               Seq Access number
    20900753               000001            01
    Table EKBE
    Purchase order       Item               Seq Access number   Material Doc Number        Amount(DMBTR)
    20900753               000001            01                              5105606685                      500
    20900753               000001            99                              5105606685                      500
    There is a loop at EKBE within the loop there is a IF condition which checks if
    IF EKBE-PO number EQ EKKN-PO number and
    EKBE-Item = EKKO-Item and
    EKBE-Seq Access Number = EKKN-Seq Access number.
    When the above condition is satisfied then the EKBE-DMBTR is added to the o/p field.
    ENdloop.
    In this case(several account exists for one mat doc,accounting dept use occasionally such cases) since EKKN does not hv seq access number 99 it does not take the second line into consideration so the amount displayed in the output has the value 500 instead of expected value 1000(sum of both the lines 01 and 99)
    Can you please offer suggestion on how to solve this issue.I want to know if i can ommit the Seq access number check in the IF condition.In that case i would get the expected result 1000,but will it affect some other functionality.Or is there any other way to solve this.

    Hi,
         We cannot say that Seq Access number is unimportant as it depends on the requirements of the client.....
    Seq Access  is a number defining the account assignment i. e which account should be posted in a transaction ( see documentation of the data element of seq Access ).
    We can omit checking of sequential number . Use read table EKKN instead of IF condition as we can check for multiple values of table EKKN.
    Thanks,
    Viquar Iqbal

  • Field name BPMNG and BAMNG in table EKBE

    Hi there
    I have a hard time understanding what does BPMNG and BAMNG in table EKBE. This are all related to quantity upon GR.
    Please help.
    Thank you
    Jesielle

    HI,
    Basically you can see the difference in these  two fields are used when you have defined a different Order unit in Purchasing view of materials and a separate Base unit of measure. Then there is a conversion ratio defined between these 2 units. SO under field BPMNG you will see the quantity with base unit of measure according to which you have made the payment, and under field BAMNG you will see what have actualy ordered and it will be equal to MENGE.
    Let us take the case where one EA is defined as 10 L, where EA is base unit of measure and L is order price unit, then suppose you have ordered 1 EA and your payment will be made on the basis of 10L (Order price unit is L and per 10) then you will get 10 under field BPMNG and 1 under BAMNG.
    Hope it clarifies.
    Regards
    PK

  • Alternative for Table Celvarient

    Dear All,
                    I am Using NWDS 04s Version. In this version Table Cell Varient option is not available. Please any one help me if any alternative is there.
    Thanks&Regards,
    Bhargava

    Hi Bhargava,
    The Table Cell Variant option is available in NW 2004s. What version of the NWDS are you using and what is the version of the SAP NW server.
    The hierarchy of UI Elements in a Table is:
    Table
    >Table Column
    >Header
    >Table Cell Variant (which is a TextView, dropdownbyindex, dropdownbykey etc)
    Right Click on the table column select the option "Insert Cell Variant"
    You will see a pop with the options of UI elements like TextView, Inputfield, DropdownByIndex, DropdownByKey etc.
    Select the option required.
    Regards,
    Kartikaye

  • Calling Batch input from Web Dynpro - any alternatives for table updates?

    Hi!
    I am asked to create a screen in Web Dynpro for the GJ30 transaction (JV Cutback mapping of WBS' elements). I created a remote enabled function module which call batch input for GJ30 . Testing the Function modules direclty goes fine, but not calling the function module from WD. then I get the same error message as when I once tried to call SAP GUI from Web Dynpro ( Call transaction /submit program).
    My next step is to try to create a batch input session (instead of call transaction) and run it using rsbdcsub, and then check the result of the run. But maybe this will fail of the same reason as well, and I suppose this will make the user waiting longer for the response .
    I read somewhere that Web Dynpro does not support batch Input. But what can you do when there are no standard BAPI's for the update you want to do in SAP ?  We are not supposed to do direct table updates.  
    Anyone who have struggled with the same issues and found a solution??
    regards, Tine

    Hi,
    as BDC is calling screens and in Webdynpro ABAP you cannot use SAP GUI sceeen, you are getting short dump.
    Refer CNTL_SYSTEM_ERROR in webservices from r/3 system
    Thanks,
    Chandra

  • CSS alternative for tables

    Hi,
    I used to do more web pages back in the late 1990s when layout was done in tables. I have tried to use just CSS, but there are some things that I am not confident of how to do in CSS and make it look consistent across browsers and resolutions.  Is there a good way to do the same thing in CSS?
    For example, at http://apilotproject.com/links.htm, I have used a 2 column table to position link buttons to the right of a spilt cell.  Is there a more efficient way to do this in CSS.  I don't want text to wrap around the link logos/buttons.  I assume I could assign a class to the buttons to have them position to the right, but not clear on how to keep them aligned with the text on the left.
    Thanks,
    Kirk 

    Try the following
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <style>
    body {
        width: 960px;
        margin: auto;
        background: #01003A;
    .panel { /* Box Sizing see http://css-tricks.com/box-sizing/ */
        -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
        -moz-box-sizing: border-box;    /* Firefox, other Gecko */
        box-sizing: border-box;         /* Opera/IE 8+ */
        overflow: hidden;
        color: #FFFFFF;
    .onefifth {
        width: 20%;
        float: left;
    .fourfifth {
        width: 80%;
        float: left;
    .panel h3 {
        color: #275C96;
    .panel img {
        width: 90%;
        display: block;
        margin: 15px auto;
    </style>
    </head>
    <body>
    <div class="panel fourfifth">
      <h3>PILOT MAGIC MUSIC</h3>
      <p>The new home for Pilot's official website. Here you can find everything you wanted to know about Pilot past, present, and future. This website will be up soon, keep checking back.</p>
    </div>
    <div class="panel onefifth"> <img src="http://apilotproject.com/images/linkpilotmagicmusic.jpg" alt=""/> </div>
    <div class="panel fourfifth">
      <h3>DAVID PATON</h3>
      <p>At David's official website you will find lots of great information about David and his career. There are exclusive pictures to see, MP3s to hear and you can even submit questions for David to answer about his career outside of Pilot. Check it out now!</p>
    </div>
    <div class="panel onefifth"> <img src="http://apilotproject.com/images/linkdp.jpg" alt=""/> </div>
    <div class="panel fourfifth">
      <h3>IAN BAIRNSON</h3>
      <p>At Ian's official website you will also find lots of great information about Ian Bairnson. Great pictures to see, an extensive discography with MP3 clips of his guitar work, and much, much more.</p>
    </div>
    <div class="panel onefifth"> <img src="http://apilotproject.com/images/linkib.jpg" alt=""/> </div>
    </body>
    </html>

  • Userfriendly alternative for table ROAUTH

    In we have about 100 export DataSource, only one is allowed to be accessed by other systems. We want to limit the access to the 99 export DataSource for other systems. If we use standard SAP in SPRO, table ROAUTH, we have to enter 99 entries.
    Is there a more userfriendly way of limiting access to export DataSources, and enter only the DataSource which can be accessed by other systems?

    I'm not quite sure if it works but it should. Prerequisites:
    Make sure that the user inside your BW (e.g. ALEREMOTE) is a different one from the other systems (e.g. BWREMOTE). You can maintain the users in SM59 in the source system.
    Implement the BAdI RSU5_SAPI_BADI. In both methods (DATA_TRANSFORM and HIER_TRANSFORM) you should implement the following coding:
    IF sy-uname <> 'ALEREMOTE'.  " Call from another system
      IF i_datasource <> '8EXPORT'. "datasource allowed to
                                    "export
        REFRESH C_T_DATA.           "Don't export any data
      ENDIF.
    ENDIF.
    Instead of hard coding the data source you could also do a select on the ROAUTH. If there are no entries for the data source delete the data, otherwise let ROAUTH do the check.
    Best regards
    Dirk

  • How can i set the alternating colors for a table rows

    Dear All,
    Please any one help me how can i set the Alternating colors for Table Rows.
    i created a theam there i set the background alternating color to brown and i set the table design properity to alternating. but it is not reflecting.

    Hi,
    The design property in Table properties should work for your requirement. Select "alternating" value for design.
    Please see the API below:
    design
    Determines the appearance of the table. The property design can take the following values and is represented by enumeration type WDTableDesign.
    alternating - The table rows are displayed alternately in a different color.
    standard - The table background has one color. The individual table rows are displayed with grid net lines.
    transparent - The table background is transparent. The individual table rows are displayed without grid net lines.
    Check whether you have changed the right property or not? Also table should contain more than one rows to test this scenario.
    Regards,
    Jaya.
    Edited by: VJR on Jun 17, 2009 6:43 PM

  • Generic DataSource by View on EKBE table.

    Hi All
    I am also trying to create View based on EKBE table . I am getting some errors even through  I have included at reference table ( EKBE,EKKO and T001)  with respective fields.
    View is Ok, only when I try to activate DataSource in  RSO2 , I am getting error like this
    Invalid extract structure template ZEKBE of DataSource ZPU_EKBE_FLEX1
    Message no. R8359
    Diagnosis
    You tried to generate an extract structure with the template structure ZEKBE. This operation failed, because the template structure quantity fields or currency fields, for example, field MENGE refer to a different table.
    Anybody had same issue ?
    Regards.
    E

    Hi Ram,
    Again Thanks for your reply.
    Like you said I have created everything from RSO2,  except View .
    I am not lucky yet. getting same error.
    Invalid extract structure template ZEKBE of DataSource ZEKBE
    Message no. R8359
    Diagnosis
    You tried to generate an extract structure with the template structure ZEKBE. This operation failed, because the template structure quantity fields or currency fields, for example, field MENGE refer to a different table.
    Kind regards.
    E

  • 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

  • EKBE Table

    Want to form a linkage between Migo and Miro.If the GR Based IV indicator is checked when doing a PO,the ref key field in Table EKBE gives us  the relation between MIGO and MIRO but in our case there are some blank fields for Ref Key in EKBE as GR Based IV Indicator was not set for some PO`s when they were made.
    So how can i form a concrete relation between MIGO and MIRO in this case where for some PO`s GR Based IV Indictor is not set and Ref Key Field in EKBE is Blank.
    Please help.Its very urgent for me.Need to do this ASAP.
    Thanks
    Aditya

    EKBE stored the information for MIGO and MIRO.
    If you want to see the difference for MIGO and MIRO, then you can well short this via PO number.
    Go to SE16N, enter the table EKBE,
    Then select the tab Exch.Rate Diff and press Total. Then Select the PO number tab and press Subtotals.
    Now you can get the exchange rate difference subtotal against the PO number.
    If your requirement is different, then please elaborate.
    Regards
    Dev

  • Inner Join of 3 tables is correct or not?

    Hi Guys ,
                 I have a requirement where i have to join 3 tables i  dont know whether the inner Join which i wrote for 3 tables is correct or not.I am not getting any Syntax error but whether the logci below which i wrote gets all the records or not.
    The Requirement is
    "c.     Select the BOL Number entered in the screen and query the table LIKP with the BOL number in the field LIKP-BOLNR.  Gather the list of ALL delivery documents (LIKP-VBELN) that is outputted.
    d.     Query the list of the delivery documents obtained into the table VBFA in the field VBFA- VBELV.  From the output that is displayed, select the Follow-On Document Field (VBFA-VBELN) for that item whose Subsequent Document Category (VBFA- VBTYP_N) is R and the Movement Type (VBFA- BWART) is 641.  Get the Follow-On document number for each of the above Delivery Document number.
    e.     Query the table EKBE with the Follow On document obtained above in the field Material Document (EKBE- BELNR).  Perform this activity for each of the follow on document obtained above.  Get the resultant Purchase Order (EKBE-EBELN) and Item Number (EKBE-EBELP) from the query.  After querying will all the Follow-On Documents, get the unique list of PO number and Item Number.
    The logic which i wrote is
                    Begin of t_PoolSTO_out,
                  BOLNR type LIKP-BOLNR,
                  EBELN type EKBE-EBELN,
                  EBELP type EKBE-EBELP,
                  VBELN type LIKP-VBELN,
                  VBELNV type VBFA-VBELN,
             End of t_PoolSTO_out.
          Data: i_PoolSTO type Standard table of t_PoolSTO_out.
      Select
            a~BOLNR
            c~EBELN
            c~EBELP
            a~VBELN
            b~VBELN
            from LIKP as a
            Inner Join VBFA as b on aVBELN = bVBELV
            Inner Join EKBE as c on bVBELN = cBELNR
            into Table i_PoolSTO
            Where a~BOLNR in S_LBLNE and
                  b~VBTYP_N = 'R' and
                  b~BWART = '641'.
              My doubt is whether the logic works or not i Mean does i getall the rrecords based on the requirement.?
                      If not please tell any alternative logic?
    Thanks,
    Gopi Anne.

    Hi Gopi,
    Your code is Good.
    But try to avoid Inner join with more number of Tables ...because this is a performance issue..
    try to use..
    select (primary key fields mainly,other fields) from LIKP into itab where bolnr in p_bolnr(paramater).
    next try to use for all entries option..
    select (primary key fields mainly,other fields) from VBFA for all entries in itab where (give the condition)....
    simillarly do for the other select ....ok this will try to reduce the performance issue....
    <b><REMOVED BY MODERATOR></b>
    Message was edited by:
            Alvaro Tejada Galindo

  • Which table field I can confirm if the PO has done invoice receipt

    Hi,
    From which table field, I can confirm the PO has done invoice receipt. and in case of that with reference a PO, I have done the IR, but it was reversed, which means PO has not done invoice receipt.
    For this case, I don't want to read table EKBE to retrieve the invoice number, the read table RBKP to judge if there is a reverse IR for it.
    If there any status table field which indicate if the PO has done invoice receipt.
    Many thanks,
    Aries

    Hi Raj,
    For invoice receipt and credit memo, EKBE-BEWTP is all set with 'Q', so if there is reversed invoice. Also you can retrieve data from EKBE. But actually the PO also needs a invoice receipt. So it can not meets the requirement.
    Regards,
    Aries

  • From which table I'll get vendor based on material

    Hi Experts,
    I have to develop a Report for the procurement extraction should consist of following data fields:
    Material (MARA)
    Material Description (MAKT)
    Vendor
    Vendor Name
    Product Hierarchy
    Qty
    Date Product received at warehouse
    What are tables required for this?

    Hi
    Please use the table EKBE,EKKO,LFA1 and MARA
    You can take fields
    Material - EKBE - MATNR
    Material Description (MAKT)
    Vendor- EKKO -LIFNR
    Vendor Name-LFA1-NAME1
    Product Hierarchy-MARA-PRDHA
    Qty-EKBE- MENGE
    Date Product received at warehouse -EKBE-BUDAT
    Hope this suits you
    Regards,
    Sasi

  • GR Table for incoming material and GI shipment

    Dear All,
    I'm trying to make report to show total GR for incoming material (101-102)  and shipment (601-602) per month, is there any shortcut table that already sum or show total amount for GR or GI material instead of MSEG?
    ex. I can get total GR to Production Order using AFPO table, it shows total GR Production per order, so i can get only 1 summary record instead of 31 records of daily confirmation to production order.
    Best Regards,

    HI ,
    i think u can check table EKBE and check for VGABE.
    Regards
    Prabhu

Maybe you are looking for

  • Photos on iMac twice?

    I copied photos from my pc onto my iMac and then imported them into iPhoto.  Are they on my Mac twice?

  • Photo color

    A friend took our wedding photos using a professional digital camera, when I look at the pics on my macbook pro in iphoto the colors are perfect. When I have taken them to a photo lab to print they are very purple in color and disappointing (as they

  • Windows error when exporting sequence to movie

    I have a project (Adobe Premiere CS3 - Matrox RT.X2 LE card - Windows XP SP3) with several sequences. I have exported to movie almost all the sequences without problems. But there´s one sequence that when I try to export, when rendering (compiling pr

  • Igswd.exe stopped.

    Dear Gurus, As screen shot maintained below, igswd.exe is stopped, but system is available. What could be the problem ? Here is sapstart.log = SAP-R/3-Startup Program Starting at 2014/07/22 16:20:45 Startup Profile: "\\HMF-SAP-CRM\sapmnt\HCP\SYS\prof

  • I GET A SECURITY WARNING RIGHT AWAY-UNENCRYPTED CONNECTION. WHAT DO I DO?

    WHEN I CLICK FIREFOX ON MY DESKTOP, I IMMEDIATELY GET A SECURITY WARNING (ALTHOUGH THIS PAGE IN ENCRYPTED, THE INFO YOU HAVE ENTERED IS TO BE SENT OVER AN UNENCRYPTED CONNECTION AND COULD EASILY BE READ BY A 3RD PARTY. ARE YOU SURE YOU WANT TO CONTIN