ABAP MM: In ME21N which internal table holds Actual Price (Including Taxes)

Using tcode  ME21N, while creating new PO, which internal table holds Actual price (Including Taxes) of whole PO (not by item) , assuming PO is not saved.
In the program, I want to capture the total cost of whole PO including taxes as soon as user enter the items. So that I can make some processing according to the total amount of PO.
Thanks,

Check the internal table lt_mepoaccounts field netpr.

Similar Messages

  • Error "Error in ABAP statement when processing an internal table. table."

    Hello,
    I am facing the error when tried for GR from SRM portal for my shopping cart and for others created shopping cart. The error is
    "Error in ABAP statement when processing an internal table. table."
    I have the central receipient role. Couold any body assist me?
    Thanks,
    Pijush

    Hi Harish,
    Execute the query in RSRT and check whether you have any short dump is in ST22. This would give a clear idea at what might have gone wrong.
    Another thing is to check whether the code for the variable is fine in the user exit.
    Hope this helps.
    Bye
    Dinesh

  • Regarding 'FREE' ABAP Keyword in the local internal table

    Hi Experts,
    //sorry for my english ;(
    Our ABAP Development leader forced us to use  FREE ABAP Keyword on Local internal table like below situation.
    and I really don't get it.
    -below-
    FORM GET_DATA.
      DATA: LT_ITAB TYPE TABLE OF SFLIGHT.
      SELECT * FROM ZTABLE INTO TABLE LT_TABLE
            FOR ALL ENTRIES IN LT_ITAB
        WHERE KKEY = LT_ITAB-CARRID.
    "// WHY DO I HAVE TO USE THIS CODE
        FREE LT_ITAB.
    ENDFORM.
    I know that GC(garbage collector) will release memory area of LT_ITAB.
    but why do i have to release directly FREE LT_ITAB memory area?
    cause to take in short time memory advantage of before GC calling?
    thanks.

    Guys, why don't you read ABAP help?
    From ABAP help about FREE:
    For internal tables, FREE has the same effect as the REFRESH statement, though the entire memory area occupied by the table rows is released, and the initial memory area remains unoccupied
    About REFRESH:
    This statement sets an internal table itab to its initial value, meaning that it deletes all rows of the internal table. The memory space required for the table is freed up to the initial memory size INITIAL SIZE. For itab, you must specify an internal table.
    To delete all rows and free the entire memory space occupied by rows, you can use the statement FREE.
    About INITAIL SIZE:
    After the optional addition INITIAL SIZE, you can specify a number of rows n as a numeric literal or numeric constant to adjust the size of the first block in the memory that is reserved by the system for an internal table of the table type. Without this addition, if the number 0 is entered, or the value of n exceeds a maximum value, the system automatically allocates an appropriate memory area.
    To summarize:
    Using free allows you to immediately free the initial space reserved by the kernel for an internal table.
    I am lazy to look for it, but I don't think it ever exceeds few Kb.
    regards,
      Yuri

  • Which internal table is storing MSEG-ZEILE field in bapi BAPI_GOODSMVT_CREA

    Dear Sap Gurus,
    I am facing one problem . i am using standard bapi for migo transaction i.e. BAPI_GOODSMVT_CREATE . it is working fine. Now i want to modify this bapi for some of our own developed fileds that is stored in another table say  ZMSEG . i have found all fields in bapi of table mseg and put those fileds in our developed table  zmseg  but  i  am unable to find one  field  MSEG- ZEILE . Plz guide me from which internal table this filed  MSEG-ZEILE  is coming . The appropriate answers will be highly appreciated.
    Thanks & Regards,
    Amit Ranjan

    Hi
    U can't find out the field ZEILE in BAPI field, just as somebody said you before, that field will be automatically calculated before saving the document.
    So u can calculate it by yourself for your table ZMSEG
    Anyway it doesn't make sense to change the BAPI in order to store the data in own z-table, there is an exit to do it:
    EXIT_SAPLMBMB_001
    Why don't you use it?
    Max

  • Which SD Table holds the Technical Object Information?

    I am writing a report in SQ01 and can't find an SD table holding the technical objects information from the Sales contracts or orders. Can anyone suggest a table or which tables to joins I need. .
    Thanks
    Jen

    .... also:
    inner join with sales ordem item:
    VBPM-VBELN = VBAP-VBELN
    VBPM-POSNR = VBAP-POSNR
    Available fields:
    Technical reference object type
    Technical reference object
    Serial number

  • How to print a graph in which internal table has more than 32 entries?

    hiii experts
    i am trying to make a line graph using 'gfw_pres_show' function module.
    but in report internal table has more than 32 entries
    so how can i print a graph having more than 32 entries?

    Hi ricky_lv,
    According to your description, there is main report and subreport in it, when the subreport spans across multiple pages, you want to show column headers on each page. If that is the case, we can set column headers visible while scrolling in main report.
    For detail information, please refer to the following steps:
    In design mode, click the small drop down arrow next to Column Groups and select Advanced Mode.
    Go to your Row Groups pane, click on the first static member.
    In properties grid, set FixData to True.
    Set RepeatOnNextPage to True.
    Here is a relevant thread you can reference:
    https://social.technet.microsoft.com/Forums/en-US/e1f67cec-8fa3-4c5d-86ba-28b57fc4a211/keep-header-rows-visible-while-scrolling?forum=sqlreportingservi
    The following screenshots are for your reference:
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    If you have any feedback on our support, please click
    here.
    Wendy Fu
    TechNet Community Support

  • ABAP to XML with several internal tables

    hi,
    i have to make a XML file with this structure :
    <Order>
      <OrderHeader>
          <i>...[fields of header]...</i>
      </OrderHeader>
      <OrderItem>
          <i>...[fields of item 10]...</i>
      </OrderItem>
      <OrderItem>
          <i>...[fields of item n]...</i>
      </OrderItem>
    </Order> 
    and that for several orders...
    I don't know anything about XML, XLST and since 1 day just start to read doc, tutorial.. and i can't say i'm understanding everythings..
    so, in a first step, i have tried to export several Order headers :
    I have done a XSLT (thanks to another topic/replies in the forum) and call it with CALL TRANSFORMATION and it works good...
    now,and here i need a little help, i would like to know :
    1-is it possible to work with 2 internal tables and in this case, how to make XLST looping all item for each header?
    2-or should i use only one internal table with deep structure?
    Regards,
    Christophe
    The XSLT
    <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sapxsl="http://www.sap.com/sapxsl" version="1.0">
      <xsl:strip-space elements="*"/>
      <xsl:template match="/">
        <Order>
          <xsl:for-each select="//item">
            <OrderHeader>
              <OrderNo>
                <xsl:value-of select="AUFNR"/>
              </NoOT>
            </OrderHeader>
          </xsl:for-each>
        </Order>
      </xsl:template>
    </xsl:transform>

    Hi,
    Here is the sample code.
    * Databases
    TABLES:
      makt,                                "Mat description
      marc,                                "Material / plant
      t001w,                               "plant name
      bhdgd.                               "Batch heading
    * Internal tables
    DATA:
      BEGIN OF gt_marc OCCURS 0,
        werks LIKE marc-werks,
        matnr LIKE marc-matnr,
      END OF gt_marc,
    * Table to be downloaded as xml. Each line stores start and end tags
    * and the value
      BEGIN OF gt_xml OCCURS 0,
        line(120),
      END OF gt_xml,
      g_maktx(120).
    * User-input
    SELECT-OPTIONS:
      s_werks FOR marc-werks,
      s_matnr FOR marc-matnr.
    START-OF-SELECTION.
    * Extract all required data
      PERFORM main_processing.
    END-OF-SELECTION.
      SORT gt_marc BY werks matnr.
      LOOP AT gt_marc.
        AT FIRST.                          "First tag must be root
          CLEAR gt_xml.
          gt_xml-line = '<LOCATIONS>'.
          APPEND gt_xml.
          CLEAR gt_xml.
        ENDAT.
        AT NEW werks.                      "At new plant
          PERFORM read_plant.
          FORMAT COLOR 4 ON.
          SKIP 1.
          WRITE :/ gt_marc-werks, t001w-name1.
          FORMAT COLOR 4 OFF.
          CLEAR gt_xml.
          gt_xml-line = ' <PLANT>'.
          APPEND gt_xml.
          CLEAR gt_xml.
          CONCATENATE ' <NUMBER>' gt_marc-werks '</NUMBER>'
          INTO gt_xml-line.
          APPEND gt_xml.
          CLEAR gt_xml.
          CONCATENATE ' <NAME>' t001w-name1 '</NAME>' INTO gt_xml-line.
          APPEND gt_xml.
          CLEAR gt_xml.
          gt_xml-line = ' </PLANT>'.
          APPEND gt_xml.
          CLEAR gt_xml.
        ENDAT.
        PERFORM read_description.
        CLEAR gt_xml.
        gt_xml-line = ' <MATERIAL>'.
        APPEND gt_xml.
        CLEAR gt_xml.
        CONCATENATE ' <NAME>' g_maktx '</NAME>'
        INTO gt_xml-line.
        APPEND gt_xml.
        CLEAR gt_xml.
        CONCATENATE ' <NUMBER>' gt_marc-matnr '</NUMBER>'
        INTO gt_xml-line.
        APPEND gt_xml.
        CLEAR gt_xml.
        gt_xml-line = ' </MATERIAL>'.
        APPEND gt_xml.
        CLEAR gt_xml.
    * display data
        FORMAT COLOR 2 ON.
        WRITE :/ gt_marc-matnr, makt-maktx.
        FORMAT COLOR 2 OFF.
      ENDLOOP.
    * The last tag must be the root closing tag --*
      gt_xml-line = '</LOCATIONS>'.
      APPEND gt_xml.
      CLEAR gt_xml.
      CALL FUNCTION 'DOWNLOAD'
           EXPORTING
                filename = 'C:PLANT1.XML'
                filetype = 'ASC'
           TABLES
                data_tab = gt_xml.
    TOP-OF-PAGE.
      MOVE sy-title TO bhdgd-line1.
      MOVE sy-repid TO bhdgd-repid.
      MOVE sy-uname TO bhdgd-uname.
      MOVE sy-datum TO bhdgd-datum.
      MOVE '0' TO bhdgd-inifl.
      MOVE '132' TO bhdgd-lines.
      FORMAT INTENSIFIED ON COLOR COL_HEADING.
      PERFORM batch-heading(rsbtchh0).     "report header
    *  Form READ_PLANT
    FORM read_plant.
    * Get plant name
      CLEAR t001w.
      SELECT SINGLE name1
        INTO t001w-name1
        FROM t001w
       WHERE werks EQ gt_marc-werks.
    ENDFORM.                               " READ_PLANT
    *  Form MAIN_PROCESSING
    FORM main_processing.
    * Material and plant basic data
      SELECT werks matnr
        INTO TABLE gt_marc
        FROM marc
       WHERE werks IN s_werks
         AND matnr IN s_matnr.
    ENDFORM.                               " MAIN_PROCESSING
    *  Form READ_DESCRIPTION
    FORM read_description.
    * Material name
      CLEAR g_maktx.
      SELECT SINGLE maktx
        INTO g_maktx
        FROM makt
       WHERE matnr EQ gt_marc-matnr
         AND spras EQ 'E'.
    * Replace special character
      DO.
        REPLACE '&' WITH '*ù%;' INTO g_maktx.
        IF NOT sy-subrc IS INITIAL. EXIT.ENDIF.
      ENDDO.
      DO.
        REPLACE '*ù%;' WITH '&amp;' INTO g_maktx.
        IF NOT sy-subrc IS INITIAL. EXIT.ENDIF.
      ENDDO.
      DO.
        REPLACE '/' WITH '&#47;' INTO g_maktx.
        IF NOT sy-subrc IS INITIAL. EXIT.ENDIF.
      ENDDO.
    ENDFORM.                               " READ_DESCRIPTION
    Hope this helps.If so,kindly reward points.

  • Which SQL table holds opening balance?

    Dear all,
    I want to use crystal report to draw financial information directly from SQL database.
    However, I don't know which SQL table stores the open/ending balance of account item
    of a given period.
    Any one can help?
    Norman.

    Dear Gordon,
    So how is the calculation? Below is my guess. Please comment.
    For example, opening balance of account 1234 is $100DB.
    If I want to find opening balance of account 1234 as at period 2.
    Summing up all journal entries in period 1 to find the total debit/credit.(for example : $150DB)
    And add up the two ($100DB + $150DB) to get $250DB.
    This is the opening balance of account 1234 as at period 2.
    For opening balance as at period 3, sum up all journal entries in period 1 and 2.
    Add the result to opening balance.
    Please comment.
    I wonder if SDK DI has any COM object to get the result directly.
    Thanks.
    Norman.

  • ABAP runtime error in TSV_ILLEGAL_REFERENCE "Internal Table Destroyed"

    Hi Experts,
    I am getting an error in Transaction CV01N.
    In Function Group CTMS, there is a statement REFRESH CONTROL  tab_con FROM SCREEN nnnn.
    In data decleration tab_con is decalred as :
    Controls: tab_con TYPE TABLEVIEW  screen nnnn.
    I am getting short dump in Dev system. However there is no short dump in Q system.
    Thanks,
    Naidu

    More information, e.g. more details from the actual dump would be needed.
    This may be related to a classification-related enhancement that is only there in DEV but not in QA... but it's hard to say what's going on without knowing more specifics about the exact error or location.

  • Internal table for basic price in PO

    hi
    in which table i wil get Basic Price for the perticular PO ?
    i checked in EKKO bt all the PO Basic price are not stored...
    Regards
    Smitha

    You will get in table KONV field KWERT.
    You have to pass EKKO-KNUMV(KNUMV from EKKO)  in KONV-KNUMV in KONV table and the condition type in KSCHL for eg. PR00 etc. and u will get the value in KWERT field of KONV.
    Edited by: vijetasap on Jun 9, 2009 1:02 PM

  • ABAP  MM: Tcode ME21N u2013 How to check PO Actual Cost (Including Taxes)

    In ME21N, I am implementing an enhancement using a new CUSTOMER DATA tab. I want to check the total Gross amount of PO when I am in the CUSTOMER DATA TAB. PO is not saved yet. I can see the gross value in CONDITIONS tab.
    How I can find the total gross amount. In which structure it is stored.
    Please help.

    Hi,
    Not sure to understand very well what you're requirement.
    Have you tried enhancement: MEREQ001
    User Exit: EXIT_SAPMM06E_006
    Regards,
    Gilberto Li

  • Tcode ME21N u2013 How to check PO Actual Cost (Including Taxes)

    In ME21N, I am implementing an enhancement using a new  CUSTOMER DATA tab. I want to check the total Gross amount of PO when I am in the CUSTOMER DATA TAB. PO is not saved yet. I can see the gross value in CONDITIONS tab.
    How I can find the total gross amount. In which structure it is stored.
    Please help.

    you can see at the header level condition tab of the PO.

  • ABAP transformation to XML for sap chart engine with internal table

    Hello.
    I am new to the SAP chart engine, XML and transformations so please be patient with me from an ABAP-program I am trying to call a Z-transformation and attach an internal table with two columns. In the ST program I want to loop through the table and for each row insert the two values from the table in the XML.
    In an ABAP-program I have an internal table containing datacoordinates for a scattered chart.
    The table looks like this:
    DATA: BEGIN OF coordinate,
                x_value TYPE f,
                y_value TYPE f,
               END OF coordinate,
               polygon_data LIKE STANDARD TABLE OF coordinate with header line.
    As a prototype I just add a few coordinates like this:
    polygon_data-x_value = '700'.
        polygon_data-y_value = '8'.
        APPEND polygon_data.
        polygon_data-x_value = '1400'.
        polygon_data-y_value = '3'.
        APPEND polygon_data.
        polygon_data-x_value = '1400'.
        polygon_data-y_value = '10'.
        APPEND polygon_data.
        polygon_data-x_value = '700'.
        polygon_data-y_value = '10'.
        APPEND polygon_data.
        polygon_data-x_value = '700'.
        polygon_data-y_value = '3'.
        APPEND polygon_data.
    I have created a Z-transformation and I call it like this (I also have a separate transformation for all the customizing generated with SAP chart designer but that one works fine):
    DATA: data_xml TYPE xstring.
    CALL TRANSFORMATION ztest_ce_tables2xml
          SOURCE polygon_data = polygon_data
          RESULT XML data_xml.
    Since I am trying to create a scattered chart I need to insert an X and Y value for each coordinate.In the manual SAP Chart engine - XML format description it looks like this:
    <ChartData>
    <Series>
    <Point>
    <Value type="x">1</Value>
    <Value type="y">1</Value>
    </Point>
    <Point>
    <Value type="x">2</Value>
    <Value type="y">2</Value>
    </Point>
    My ST-program that I cannot get to work looks like below. How can I loop through my internal table and get the X and thy Y value for each row in my internal table?
    BR Tommy (Sweden)
    <?sap.transform simple?>
    <tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
    <tt:root name="POLYGON_DATA"/>
    <tt:template>
    <ChartData>
    <Series>
    <tt:loop ref=".POLYGON_DATA">
       <Point>
         <Value type="x"><tt:copy ref=".POLYGON_DATA.X_VALUE"/></Value>
         <Value type="y"><tt:copy ref=".POLYGON_DATA.Y_VALUE"/></Value>
       </Point>
       </tt:loop>
    </Series>
    </ChartData>
    </tt:template>
    </tt:transform>

    Hello again.
    I found the solution and would like to share it with the forum, maybe it could help someone.
    My first error was in the call transformation statement:
    CALL TRANSFORMATION ztest_ce_tables2xml
          SOURCE polygon_data = polygon_data [] <----
    Do not forget these
          RESULT XML data_xml.
    I also had an error in the ST program, it should look like this:
    <?sap.transform simple?>
    <tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
    <tt:root name="POLYGON_DATA"/>
    <tt:template>
    <ChartData>
    <Series>
    <tt:loop ref=".POLYGON_DATA">
       <Point>
         <Value type="x"><tt:value ref="$ref.X_VALUE"/></Value>
         <Value type="y"><tt:value ref="$ref.Y_VALUE"/></Value>
       </Point>
       </tt:loop>
    </Series>
    </ChartData>
    </tt:template>
    </tt:transform>

  • Maximum Number of records -Internal Table

    Hi Members,
    How many records can an Internal table Hold?
    I want extract about 2,000,000 records in a report.
    Regards
    Prasad

    It is dependent on these profile parameters. Your system administrator will set these during installation and may be changed as needed.
    "o  ztta/roll_area            (1.000.000 - 15.000.000)               
           Classic roll area per user and internal mode                 
           usual amount of roll area per user and internal mode         
    o  ztta/roll_extension       (10.000.000 - 500.000.000)             
           Amount of memory per user in extended memory (EM)            
    o  abap/heap_area_total      (100.000.000 - 1.500.000.000)          
           Amount of memory (malloc) for all users of an application    
           server. If several background processes are running on       
           one server, temporary bottlenecks may occur.                 
           Of course, the amount of memory (in bytes) must also be      
           available on the machine (main memory or file system swap).  
           Caution:                                                     
           The operating system must be set up so that there is also    
           enough memory for each process. Usually, the maximum address 
           space is too small.                                          
           Ask your hardware manufacturer or your competence center     
           about this.                                                  
           In this case, consult your hardware vendor                   
    abap/heap_area_dia:        (10.000.000 - 1.000.000.000)             
           Restriction of memory allocated to the heap with malloc      
           for each dialog process.                                     
    Parameters for background processes:                                
    abap/heap_area_nondia:        (10.000.000 - 1.000.000.000)          
           Restriction of memory allocated to the heap with malloc      
           for each background process.                                 
    Other memory-relevant parameters are:                               
    em/initial_size_MB:         (35-1200)                               
           Extended memory area from which all users of an              
           application server can satisfy their memory requirement.     
    Regards,
    Srinivas

  • How to find list of internal tables while debugging

    Hi Experts,
      I am debugging a block of an ABAP program( User Exit ). Is there any facility to see what are the internal tables, work areas are available for that particular block? Can I see it new debugger? Because I don't know from which internal table I can take a particular value, which I need to populate in an user exit.
    Thanks and regards,
    Venkat.

    hi,
    you can find the exact  answer here :
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/840ad679-0601-0010-cd8e-9989fd650822#q-6
    under heading List of internal tables while debugging
    regards
    rahul

Maybe you are looking for

  • LaserJet Pro MFP M276nw software installer not detecting printer via USB or wi-fi - Windows 7

    I am trying to install a LaserJet Pro MFP M276nw on Windows 7 Home Premium x64, and I know the printer functions fine, as I have installed it on both Windows Vista Basic x32 and Windows 7 Professional x64 all on the same desktop. The operating system

  • Please help with a macbook/iphone 5 problem

    i have upgraded my phone to an iphone 5 and went to sync it and it says i need a new version of itunes and so i went to do that and it needs OS X 10.8 and so i go to update my macbook and that says i have no updates available but my macbook is only 1

  • DMS Storage in SAP Database with Kpro.

    Hello SAP Gurus, we are using the ECC 6.0 client and still have not configured any content servers for storing the originals, but i could make use of Kpro Tick in Document type and attach n no of file to DIR, also i have tried using KPRO tick and als

  • MS "Color Dialogue Box" popping up instead of "Adobe Color Picker" inside PSE 10.

    For purposes of this question, I'm providing definitions of the terms herein used. --Toolbox: The 2 columns of Tools on the left side of the Editor screen. --Foreground Color & Background Color: The color filled squares at the bottom of the Toolbox.

  • Why does my 4s weather show "Barlow"

    I noticed after the update that in weather there appears Barlow. I don't know where Barlow is and I can't seem to delete it. For a while, when I typed in my address in maps, it didn't show me as being at my house but in the church lot next door to my