How to get item's cost price?

I want to get Item's cost price. I get a business boject 'item',g_oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems),There are two key to decide one cost price,one is 'itemcode',another is 'whscode',How to get one record by using 'GetByKey' method? Thanks.

Hi Lu,
You can get the price in the warehouse as following if you don't want to use a recordset:
        Dim oItem As SAPbobsCOM.Items
        Dim dPrice As Double
        Dim i As Integer
        oItem = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems)
        oItem.GetByKey("MyItem")
        For i = 0 To oItem.WhsInfo.Count - 1
            oItem.WhsInfo.SetCurrentLine(i)
            If oItem.WhsInfo.WarehouseCode = "TheWarehouseIWant" Then
                dPrice = oItem.WhsInfo.StandardAveragePrice
            End If
        Next
Hope it helps,
Adele

Similar Messages

  • How to get items from a list that has more items than the List View Threshold?

    I'm using SharePoints object model and I'm trying to get all or a subset of the items from a SharePoint 2010 list which has many more items than the list view threshold (20,000+) using the SPList.GetItems() method. However no matter what I do the SPQueryThrottledException
    always seems to be thrown and I get no items back.
    I'm sorting based on the ID field, so it is indexed. I've tried setting the RowLimit property on the SPQuery object(had no effect). I tried specifying the RowLimit in the SPQuerys ViewXml property, but that still throws a throttle exception. I tried using the
    ContentIterator as defined here:http://msdn.microsoft.com/en-us/library/microsoft.office.server.utilities.contentiterator.aspx,
    but that still throws the query throttle exception. I tried specifying the RowLimit parameter in the ProcessListItems functions, as suggested by the first comment here:http://tomvangaever.be/blogv2/2011/05/contentiterator-very-large-lists/,
    but it still throws the query throttle exception. I tried using GetDataTable instead, still throws query throttle exception. I can't run this as admin, I can't raise the threshold limit, I can't raise the threshold limit temporarily, I can't override the lists
    throttling(i.e. list.EnableThrottling = false;), and I can't override the SPQuery(query.QueryThrottleMode = SPQueryThrottleOption.Override;). Does anyone know how to get items back in this situation or has anyone succesfully beaten the query throttle exception?
    Thanks.
    My Query:
    <OrderBy>
        <FieldRef Name='ID' Ascending='TRUE' />
    </OrderBy>
    <Where>
        <Geq><FieldRef Name='ID' /><Value Type='Counter'>0</Value></Geq>
    </Where>
    My ViewXml:
    <View>
        <Query>
            <OrderBy><FieldRef Name='ID' Ascending='TRUE' /></OrderBy>
            <Where>
                <Geq><FieldRef Name='ID' /><Value Type='Counter'>0</Value></Geq>
            </Where>
        </Query>
        <RowLimit>2000</RowLimit>
    </View>
    Thanks again.

    I was using code below to work with 700000+ items in the list.
    SPWeb oWebsite = SPContext.Current.Web;
    SPList oList = oWebsite.Lists["MyList"];
    SPQuery oQuery = new SPQuery();
    oQuery.RowLimit = 2000;
    int intIndex = 1;
    do
    SPListItemCollection collListItems = oList.GetItems(oQuery);
    foreach (SPListItem oListItem in collListItems)
    //do something oListItem["Title"].ToString()
    oQuery.ListItemCollectionPosition = collListItems.ListItemCollectionPosition;
    intIndex++;
    } while (oQuery.ListItemCollectionPosition != null);
    Oleg
    Hi Oleg, thanks for replying.
    The problem with the code you have is that your SPQuery object's QueryThrottleMode is set to default. If you run that code as a local admin no throttle limits will be applied, but if you're not admin you will still have the normal throttle limits. In my
    situation it won't be run as a local admin so the code you provided won't work. You can simulate my dilemma by setting the QuerryThrottleMode  property to SPQueryThrottleOption.Strict, and I'm sure you'll start to get SPQueryThrottledException's
    as well on that list of 700000+ items.
    Thanks anyway though

  • How to find list and cost price in MM module

    Hi
    Can any one help me in how to find List and cost price in MM module for pricing.
    thank you.
    David

    hi Saquib Khan
    Many thanks Saquib Khan for ur reply. Actually iam trying to create a report which displays material number, material description, plant, product hierarchy, cost and list price, based on the selection criteria of a range of materials, plant and also product hierarchy.
    If u want to share any information.It would be much better for me.Like iam learning SAP.
    thanks.

  • How to Get the Job, Cost center, Position description using select query

    Hi all,
    How to get the  Job, Cost center, Position description through select query without using the Function module?
    thanks,
    Prasad

    use adhoq query and take the report chose both text and value

  • How about get item count of table in formGroup.vm

    JHeadstart Team:
    I want change maxColumns=" 1" or" 2" by item count of table .but I do not know how about get item count of table .
    #if (${JHS.current.group.columns} > 10)
    #set ($majin = 2)
    #else
    #set ($majin = 1)
    #end
    <af:panelForm rows="1" maxColumns="$majin" width="${JHS.current.group.formWidth}" id="${JHS.current.group.shortName}FormItems">
    majin
    #FORM_ITEMS()
    </af:panelForm>

    You can do this using the following syntax:
    #if (${JHS.current.itemContainer.items.size()}>10)
    maxColumns="2"
    #else
    maxColumns="1"
    #end
    Steven Davelaar,
    Jheadstart Team

  • How to get item field values for old versions?

    I need to be able to query old field values from previous versions of items in a SharePoint list. I can't execute code on the server (it needs to work with SharePoint Online/O365 for a start).
    So far the ONLY API I've that lets me do this is the lists.asmx GetVersionCollection SOAP call.
    This lets me specify a single field name and returns an XML structure with the values for the various versions, along with the modification time and who made the change - but NO reliable way of actually identifying *which* version (i.e. an ID or label). That
    is, if I know I need to fetch the Title value from version 512 ("1.0") of item 1 in list "Documents", I don't see how to reliably parse the results to determine which entry is version 512. While they may be returned in order, in many cases
    the entries are actually missing when there was no field value present (or perhaps when the field hadn't been created yet). I've tried comparing the Modified date to the Created date of the corresponding FileVersion item (which I can get via CSOM or REST),
    and while it works some of the time, it's not reliable. I've also looked at the output from the lists.asmx GetVersion API but I don't see how that's useful either, as the Created property for all versions always seems to be just the date the file was originally
    created.
    It does seem odd to me that there's not a neat way of doing this - if I need to return information for several fields but just for a single version, I have to make a whole lot of requests that return far more info than I need, and then I need to figure out
    how to parse the returned text in the case of, say, multiple-value taxonomy fields etc.
    Anyone tried doing anything similar here?
    Thanks
    Dylan

    try these links:
    https://support.office.microsoft.com/en-us/article/Track-and-view-version-information-for-SharePoint-list-items-2d69d936-fb0b-4c84-830e-11708e6ec317?CorrelationId=f87cf6ea-8cbf-446a-a4a0-e2c3a86b3425&ui=en-US&rs=en-US&ad=US
    https://social.technet.microsoft.com/Forums/en-US/e48ff216-7ed1-4b20-9f21-d496b1583eea/how-to-get-item-field-values-for-old-versions?forum=sharepointdevelopment
    http://sharepoint.stackexchange.com/questions/20019/get-meta-data-from-a-previous-version-of-a-document-through-webservice-in-moss-2
    http://sharepoint.stackexchange.com/questions/121594/getting-information-from-previous-versions-of-a-sp-list-using-csom
    Please mark answer as correct if it is correct else vote for it if you find it useful Happy SharePointing

  • How to get latest condition cost at GR for a material

    Hi SDN's,
    At the time of GR creation in MIGO, I need to get the latest additive price for the material instead of Purchase Order creation date additive price.
    Example: PO creation on 01June2008
    PO number : 01234
    Addtive cost(condition record) : 2$
    GR is creating on today (23 July2008)
    PO number : 01234
    Addtive cost(condition record) : 3$
    So system should consider latest additive cost 3$(GR creating date) now it is taking the PO creation date additive cost 2$.
    How to achieve this???
    Thanks in advance..
    Regards,
    Rahul

    in that case u have to get the document amt of that accouting Document of PO invoice.
    how --->
    get the IR number from EKBE
    CALL FUNCTION 'FI_DOCUMENT_RECORD'
        EXPORTING
          I_AWTYP            =  'RMRP'
          I_AWREF            =  W_AWREF1----->IR of Po
          I_AWORG            =  W_GJAHR1----->year
        I_AWSYS            = ' '
        I_AWTYP_INCL       = ' '
        I_AWTYP_EXCL       = ' '
        I_BUKRS            = ' '
        TABLES
          T_DOCUMENTS        = T_DOC.--->here u get the accouting document number.
    Regards
    Prabhu

  • How to get Item-Code wise stock quantity and value for a previous date

    Dear Sir,
    As per the government legal requirement , we are required to furnish a list for items having stock as on a date ( date is not the current date but it is some past date)  and  in the list we need to provide material wise stock quantity and value .
    We can generate a list  for the current date , but do not know how to get it for a previous date .
    We request you to kindly guide us about such a list .
    With Thanks and Regards
    Sonia Agarwal

    hi,
    might be this reports will be help full for your requirement.
    MMBE
    MB53
    MB52
    MB5M
    MB5B
    MB5T
    MBLB
    MBBS
    MB54
    ME56
    Thanking you

  • How to get item text in smart form

    Hi ABAP Gurus,
                 i want to know how to get the item text in smart forms procedure i know but the logic where to define the variable ect.
    code to get item text in purchase order.

    Hi
    Smartform itself have a functionality to get
    Item Text
    create a text
    change the Text Type to include type
    der in u pass the required entery in the same way how u pass to read text entry
        Text Name         &ZXEKKO-EBELN&
        Text Object       EKKO
        Text ID           F03
        Language          EN
    with Regards
    Rohan Shetty

  • How to get item from dictionary

    I created dictionary and create two variables in SharePoint Designer 2013 workflow:
    Name: Accept; Type: string; Value:  application/json;odata=verbose;
    Name: Content-Type ; Type: string; Value: application/json;odata=verbose;
    Output variable: JSonRequestHeader.
    I called HTTP web service:
    https://xxxxxx/_api/web/Lists/getbytitle('WorkflowTaskList')/items?$select=ID
    then Get d/results from Variable:JSonResponse(Output to Variable: allItemsData)
    then Count Items in Variable: allItemsData(Output to Variable: allItemsIDData)
    These Actions worked well.
    How I can get item’s ID number from dictionary?
    Get d/results[%Variable: index%] or Get d/results([%Variable: index%]) where
    index = 0,1,2….. did not extract ID numbers from dictionary
    I would be grateful for any help.
    bnossov

    Andy,
    Get d/results/[your index variable]/id or Get d/results/[your index variable]/ID
    does not work.
    The web service
    https://xxxxxx/_api/web/Lists/getbytitle('WorkflowTaskList')/items?$select=ID
    gives me:
     <?xml version="1.0" encoding="utf-8"
    ?>
    <feed xml:base=https://xxxxxxxx/_api/ xmlns="http://www.w3.org/2005/Atom"
    xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"
    xmlns:georss="http://www.georss.org/georss" xmlns:gml="http://www.opengis.net/gml">
      <id>07ac172a-107a-4058-bdc5-8dead90a39ec</id>
      <title
    />
      <updated>2014-04-16T20:51:04Z</updated>
    <entry m:etag=""2"">
      <id>de27ea13-0f4c-4e94-97de-2ccb535ad8f4</id>
      <category
    term="SP.Data.WorkflowTaskListListItem" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
      <link
    rel="edit" href="Web/Lists(guid'd840c4a5-5692-430b-8e7a-a435f8b6e8c0')/Items(62)" />
      <title
    />
      <updated>2014-04-16T20:51:04Z</updated>
    <author>
      <name
    />
      </author>
    <content type="application/xml">
    <m:properties>
      <d:Id m:type="Edm.Int32">62</d:Id>
      <d:ID m:type="Edm.Int32">62</d:ID>
      </m:properties>
      </content>
      </entry>
    <entry m:etag=""3"">
      <id>3864b871-36eb-4594-b8c4-2bae909ea1ff</id>
      <category
    term="SP.Data.WorkflowTaskListListItem" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
      <link
    rel="edit" href="Web/Lists(guid'd840c4a5-5692-430b-8e7a-a435f8b6e8c0')/Items(63)" />
      <title
    />
      <updated>2014-04-16T20:51:04Z</updated>
    <author>
      <name
    />
      </author>
    <content type="application/xml">
    <m:properties>
      <d:Id m:type="Edm.Int32">63</d:Id>
      <d:ID m:type="Edm.Int32">63</d:ID>
      </m:properties>
      </content>
      </entry>
    <entry m:etag=""3"">
      <id>b78c4a1a-5be4-40b1-98e6-98f702602056</id>
      <category
    term="SP.Data.WorkflowTaskListListItem" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
      <link
    rel="edit" href="Web/Lists(guid'd840c4a5-5692-430b-8e7a-a435f8b6e8c0')/Items(64)" />
      <title
    />
      <updated>2014-04-16T20:51:04Z</updated>
    <author>
      <name
    />
      </author>
    <content type="application/xml">
    <m:properties>
      <d:Id m:type="Edm.Int32">64</d:Id>
      <d:ID m:type="Edm.Int32">64</d:ID>
      </m:properties>
      </content>
      </entry>
     </feed>
    I need to get d:ID value.
    Thanks in advance for your help.
    bnossov

  • What an item's cost price will be if I build and sell it today?

    Hi experts
    I want to know what an itemu2019s cost price will be if I build and sell it today, with current raw material prices based on the FIFO layers with multiple BOMu2019s.
    your response will be highly appreciated
    thanks
    Travelyn Swartz

    Hi Travelyn,
    If your raw material prices are based on the FIFO, the finished good will automatically be built by the first in cost for all its raw materials.
    Thanks,
    Gordon

  • How to get item stock from bin location with serial numbers?

    Dear experts
    I want to write query for getting item stock from bin location with serial numbers..
    Thank you
    Santosh Dhere.

    Hi Santosh,
    Try this:
    SELECT T0.[ItemCode], T5.[DistNumber], T5.[MnfSerial], T5.[LotNumber], T3.[OnHandQty]
      , T1.[BinCode], T1.[WhsCode]
    FROM  [dbo].[OIBQ] T0
      INNER  JOIN [dbo].[OBIN] T1  ON  T0.[BinAbs] = T1.[AbsEntry]  AND  T0.[OnHandQty] <> 0
      LEFT OUTER JOIN [dbo].[OBBQ] T2  ON  T0.[BinAbs] = T2.[BinAbs]  AND  T0.[ItemCode] = T2.[ItemCode]  AND  T2.[OnHandQty] <> 0
      LEFT OUTER  JOIN [dbo].[OSBQ] T3  ON  T0.[BinAbs] = T3.[BinAbs]  AND  T0.[ItemCode] = T3.[ItemCode]  AND  T3.[OnHandQty] <> 0
      LEFT OUTER  JOIN [dbo].[OBTN] T4  ON  T2.[SnBMDAbs] = T4.[AbsEntry]  AND  T2.[ItemCode] = T4.[ItemCode]
      LEFT OUTER  JOIN [dbo].[OSRN] T5  ON  T3.[SnBMDAbs] = T5.[AbsEntry]  AND  T3.[ItemCode] = T5.[ItemCode]
    WHERE T1.[AbsEntry] >= (0)  AND  (T3.[AbsEntry] IS NOT NULL)
    UNION ALL
    SELECT T0.[ItemCode], T5.[DistNumber], T5.[MnfSerial], T5.[LotNumber], T0.[OnHandQty]
      , T1.[BinCode], T1.[WhsCode]
    FROM  [dbo].[OIBQ] T0
      INNER  JOIN [dbo].[OBIN] T1  ON  T0.[BinAbs] = T1.[AbsEntry]  AND  T0.[OnHandQty] <> 0
      LEFT OUTER  JOIN [dbo].[OBBQ] T2  ON  T0.[BinAbs] = T2.[BinAbs]  AND  T0.[ItemCode] = T2.[ItemCode]  AND  T2.[OnHandQty] <> 0
      LEFT OUTER  JOIN [dbo].[OSBQ] T3  ON  T0.[BinAbs] = T3.[BinAbs]  AND  T0.[ItemCode] = T3.[ItemCode]  AND  T3.[OnHandQty] <> 0
      LEFT OUTER  JOIN [dbo].[OBTN] T4  ON  T2.[SnBMDAbs] = T4.[AbsEntry]  AND  T2.[ItemCode] = T4.[ItemCode]
      LEFT OUTER  JOIN [dbo].[OSRN] T5  ON  T3.[SnBMDAbs] = T5.[AbsEntry]  AND  T3.[ItemCode] = T5.[ItemCode]
    WHERE T1.[AbsEntry] >= (0)  AND  (T2.[AbsEntry] IS NULL   AND  T3.[AbsEntry] IS NULL)
    UNION ALL
    SELECT T0.[ItemCode], T0.[SRNDistNumber], T0.[SRNMnfSerial], T0.[SRNLotNumber], T0.[IBQOnhandQty] - T0.[OnHandQty]
      , T0.[BinCode], T0.[WhsCode]
    FROM  (
      SELECT T0.[BinAbs], T0.[ItemCode], MAX(T0.[OnHandQty]) AS 'IBQOnhandQty', SUM(T2.[OnHandQty]) AS 'OnHandQty', N'' AS 'BTNDistNumber', N'' AS 'BTNMnfSerial'
      , N'' AS 'BTNLotNumber', N'' AS 'SRNDistNumber', N'' AS 'SRNMnfSerial', N'' AS 'SRNLotNumber', MIN(T5.[AbsEntry]) AS 'AbsEntry', MIN(T1.[BinCode]) AS 'BinCode'
      , 10000044 AS 'SnbType', MIN(T5.[AbsEntry]) AS 'BTNAbsEntry', MIN(T5.[AbsEntry]) AS 'SRNAbsEntry', MIN(T1.[WhsCode]) AS 'WhsCode', MIN(T1.[SL1Code]) AS 'SL1Code'
      , MIN(T1.[SL2Code]) AS 'SL2Code', MIN(T1.[SL3Code]) AS 'SL3Code', MIN(T1.[SL4Code]) AS 'SL4Code', MIN(T1.[SL1Abs]) AS 'SL1Abs'
      , MIN(T1.[SL2Abs]) AS 'SL2Abs', MIN(T1.[SL3Abs]) AS 'SL3Abs', MIN(T1.[SL4Abs]) AS 'SL4Abs'
      FROM  [dbo].[OIBQ] T0
      INNER  JOIN [dbo].[OBIN] T1  ON  T0.[BinAbs] = T1.[AbsEntry]  AND  T0.[OnHandQty] <> 0
      LEFT OUTER  JOIN [dbo].[OBBQ] T2  ON  T0.[BinAbs] = T2.[BinAbs]  AND  T0.[ItemCode] = T2.[ItemCode]  AND  T2.[OnHandQty] <> 0
      LEFT OUTER  JOIN [dbo].[OSBQ] T3  ON  T0.[BinAbs] = T3.[BinAbs]  AND  T0.[ItemCode] = T3.[ItemCode]  AND  T3.[OnHandQty] <> 0
      LEFT OUTER  JOIN [dbo].[OBTN] T4  ON  T2.[SnBMDAbs] = T4.[AbsEntry]  AND  T2.[ItemCode] = T4.[ItemCode]
      LEFT OUTER  JOIN [dbo].[OSRN] T5  ON  T3.[SnBMDAbs] = T5.[AbsEntry]  AND  T3.[ItemCode] = T5.[ItemCode]
      WHERE T1.[AbsEntry] >= (0 )  AND  (T2.[AbsEntry] IS NOT NULL)
      GROUP BY T0.[BinAbs], T0.[ItemCode]
      UNION ALL
      SELECT T0.[BinAbs], T0.[ItemCode], MAX(T0.[OnHandQty]) AS 'IBQOnhandQty', SUM(T3.[OnHandQty]) AS 'OnHandQty', N'' AS 'BTNDistNumber', N'' AS 'BTNMnfSerial'
      , N'' AS 'BTNLotNumber', N'' AS 'SRNDistNumber', N'' AS 'SRNMnfSerial', N'' AS 'SRNLotNumber', MIN(T4.[AbsEntry]) AS 'AbsEntry', MIN(T1.[BinCode]) AS 'BinCode'
      , 10000045 AS 'SnbType', MIN(T4.[AbsEntry]) AS 'BTNAbsEntry', MIN(T4.[AbsEntry]) AS 'SRNAbsEntry', MIN(T1.[WhsCode]) AS 'WhsCode', MIN(T1.[SL1Code]) AS 'SL1Code'
      , MIN(T1.[SL2Code]) AS 'SL2Code', MIN(T1.[SL3Code]) AS 'SL3Code', MIN(T1.[SL4Code]) AS 'SL4Code', MIN(T1.[SL1Abs]) AS 'SL1Abs'
      , MIN(T1.[SL2Abs]) AS 'SL2Abs', MIN(T1.[SL3Abs]) AS 'SL3Abs', MIN(T1.[SL4Abs]) AS 'SL4Abs'
      FROM  [dbo].[OIBQ] T0
      INNER  JOIN [dbo].[OBIN] T1  ON  T0.[BinAbs] = T1.[AbsEntry]  AND  T0.[OnHandQty] <> 0
      LEFT OUTER  JOIN [dbo].[OBBQ] T2  ON  T0.[BinAbs] = T2.[BinAbs]  AND  T0.[ItemCode] = T2.[ItemCode]  AND  T2.[OnHandQty] <> 0
      LEFT OUTER  JOIN [dbo].[OSBQ] T3  ON  T0.[BinAbs] = T3.[BinAbs]  AND  T0.[ItemCode] = T3.[ItemCode]  AND  T3.[OnHandQty] <> 0
      LEFT OUTER  JOIN [dbo].[OBTN] T4  ON  T2.[SnBMDAbs] = T4.[AbsEntry]  AND  T2.[ItemCode] = T4.[ItemCode]
      LEFT OUTER  JOIN [dbo].[OSRN] T5  ON  T3.[SnBMDAbs] = T5.[AbsEntry]  AND  T3.[ItemCode] = T5.[ItemCode]
      WHERE T1.[AbsEntry] >= (0 )  AND  (T3.[AbsEntry] IS NOT NULL)
      GROUP BY T0.[BinAbs], T0.[ItemCode]
      ) T0
    WHERE T0.[IBQOnhandQty] > T0.[OnHandQty]
    Regards,
    JC.

  • How to get Item Price Based on Valuation Method

    Hello All,
    I want to get the price of an item based on its Valuation method (FIFO,Moving Average) for calculation .
    Is their any Objects for getting the Item Price Based on Valuation Method or any other way around for getting the
    price.
    Thanks & Regards,
    Amit

    Hello,
    You Can receive the Moving Average price of an Item :
    MovingAveragePrice property returns the Moving average price
    AvgStdPrice property returns the standard price
    sample:
    Dim oItem As SAPbobsCOM.Items = oCompany.GetBusinessObject(BoObjectTypes.oItems)
            oItem.GetByKey("ITEMCODE")
            oItem.MovingAveragePrice
            oItem.AvgStdPrice
    Best of my known in 2007 there is no interface for FiFo prices.
    You can use OINM table to query the FiFo prices
    Regards,
    J

  • How to get item price ?

    Dear Experts
    i have already tried GetItemPrice DI API method , in AR invoice when i choose a particular item it gives item price as 1000  but for  the same card code and item code GetItemPrice method returns 550 . I am using SAP B1 8.81 PL09 .
    Thanks in advance
    Regards
    Arun

    Dear Gordon
    thanks for your quick response , the item is for selling.
    Regards
    Arun

  • How to get the loaded cost for the Parked Purchase Order Invoices.

    Hi,
    Could any one of you please help me out to find out how the loaded cost is calculated for Parked Purchase Order Invoices which have not been posted. The problem is that if the invoice is posted the ekbe-wrbtr field contains the total amt for any particular line item, i.e. the (material cost + unplanned costs + taxes ).
    But for the documents which are not posted ekbe-wrbtr does not have all the key data fields as that of a posted document. Is there any way out to find the total cost for the line item which is not posted.
    Please try to help me..
    Thanks & Regards,
    Sanjay.

    in that case u have to get the document amt of that accouting Document of PO invoice.
    how --->
    get the IR number from EKBE
    CALL FUNCTION 'FI_DOCUMENT_RECORD'
        EXPORTING
          I_AWTYP            =  'RMRP'
          I_AWREF            =  W_AWREF1----->IR of Po
          I_AWORG            =  W_GJAHR1----->year
        I_AWSYS            = ' '
        I_AWTYP_INCL       = ' '
        I_AWTYP_EXCL       = ' '
        I_BUKRS            = ' '
        TABLES
          T_DOCUMENTS        = T_DOC.--->here u get the accouting document number.
    Regards
    Prabhu

Maybe you are looking for

  • Copy-Paste/Duplicate files in finder doesn't work

    Hello Everyone! I am trying to duplicate a file in Finder, but it seems I cannot do it. I can do cmd+C/cmd+V or duplicat through cmd+D but two things can happen: - The copied file is shown in grey and I cannot open it - The copied file is shown for a

  • I cannot disable the full keyboard  navigation

    Hello I have quite a problem. As it says above, I cannot disable the full keyboard navigation option, whenever I try to, it re-activates itself in the preferences, even if I just change tabs and return within the preferences. Furthermore, the keys se

  • Iphoto 5 failure

    I left iphoto 5 printing photos and returned after they were complete. My computer was at sleep. It would not reopen, so I used the start button to shut down and restart. Now when I try to open my iphoto, it states that the photos are recorded in an

  • Date Being Returned Is 1-Jan-4000

    Hi. I am using Oracle 10gR2 on a Solaris server. I've set up Oracle's Change Data Capture (CDC) and am noticing thta the date column in my chnage table is set to 1-Jan-4000 when, in fact, the actual data from my source table is 5-Mar-2007. Can someon

  • Internal microphone not working

    Suddenly, no one can hear me when I use skype. i can hear them, but they can't hear me. I have tried it both with the external blue mic that I have (usb connection) for video (I can see the video) or with no connection and just the powerbook's system