Urgent help for a function module or BAPI to get the standard price.

Hi,
I want to know whether there is any existing <b>funcion module or bapi</b> to get the standard price (STPRS) which is updated in the table MBEW during the execution of a costing run for standard cost through the transaction ck40n.
helpful answers will  be rewarded !!!

Hi,
You can use the BAPI BAPI_MATERIAL_GET_DETAIL
Thanks
Naren

Similar Messages

  • Function module or BAPI to get the sales order details.

    Hi,
    Can any one revert back with the FM or BAPI to get the sales order details.
    I tried using BS01_SALESORDER_GETDETAIL, in my driver program of smartform but when i execute the form using VA03 -> Sales Document -> Issue output to -> Print preview, I am getting the required output.
    if i see the print preview in the overview of the sales order (enter sales order and press enter), the above specified FM is not populating any data.
    Thanks,
    Prathap

    Hi Prathap,
    The above specified FM BAPISDORDER_GETDETAILEDLIST should work. As you need the item conditions,
    Fill the I_BAPI_VIEW with header = 'X', item = 'X' and sdcond = 'X'.
    Fill the SALES_DOCUMENTS-vbeln = sales order number.
    Regards,
    Shylaja

  • Function Module or BAPI to get inventory turnover in abap

    Hello,
    is there a possibility to get the information of inventory turnover of an material with help of a function module oder BAPI?
    Like the transaction MC44. But I need it in an ABAP-Report. A simple calculation is easy, but not an exact calculation of the inventory turnover (Umschlagshäufikeit).

    Hi,
    http://hoopsdoc.hillyard.com/images/inventory%20management/MC44.htm
    http://www.erpgenie.com/sap-technical/abap/bapi-step-by-step-example
    Hope these links may help you.
    Thanks.

  • Need name of a function module or BAPI to update the Tax Classification val

    Hi Guru's
    Need name of a function module or BAPI to update the Tax Classification value for Material master.
    Thanks in advance.

    Hi
    U can try to use BAPI_MATERIAL_SAVEREPLICA
    Max

  • Any function module or bapi to get sales order number and invoice number?

    hi all,
    with delivery order number provided, do we have any function module or bapi to get sales order number
    and invoice number?
    thanks.

    Hi,
    Check
    BAPI_SALESORDER_CREATEFROMDAT1
    BAPI_REMUREQSLISTA_CREATEMULT  Agency Business: BAPI Create Invoice Lists from Vendor Billing Documents
    BAPI_REMUREQSLISTB_CREATEMULT  Agency Business: BAPI Create Invoice Lists from Payment Documents
    BAPI_REMUREQSLISTC_CREATEMULT  Agency Business: BAPI Create Invoice Lists from Posting Lists
    BAPI_REMUREQSLIST_CHANGEMULT   Agency Business: Change Invoice List Documents BAPI
    BAPI_REMUREQSLIST_GETLIST      Agency Business: BAPI Determine Detailed Data for Invoice List Documents
    BAPI_REMUREQSLIST_RELEASE      Agency Business: BAPI Release Invoice List Documents to FI
    Edited by: Neenu Jose on Nov 26, 2008 8:53 AM

  • Function Module or BAPI to save the multiple infotypes?

    HI Experts,
    My requirement is to  get the user input(various infotype information) from webdynpro ABAP screen, and save it in the backend.
    Actually my front-end screen aquires the information from the user to run the new employee Hiring process,SO it has various screens like Personal Data,Address,PAY and Position,Assylum and Immigration and so on.....
    On success of this process all the above information are stored in respective infotype of the R/3 system.
    I know there is Function Module HR_Infotype_Operation but it doesn't work for me.....Is there any other Function Module or BAPI available.
    Thanks in Advance,
    Dharani

    Hi Dharani,
    I have answered your question in DATA TRANSFERS scetion of the forum.
    Anyways, link to the same
    [BAPI_HRMASTER_SAVE_REPL_MULT;
    Regards
    Abhii

  • Function Module or BAPI to update the cheque payments

    Hi Everyone,
    I would like to know whether we have any Function Module or BAPI which can update the cheque payment or its attributes into SAP.
    Thanks,
    KC
    Message was edited by:
            kittu chowdary

    Aniruddha,
    Does this BAPI update the Transactions FCH6, FCH9 ?
    Thanks,
    KC

  • A Function or BAPI to get Material Standard Price?

    Hi All,
    I need a Function or BAPI to get the Material Standard Price when the following Criteria is given;
    1. Material Code
    2. Plant
    3. Period
    4. Year
    5. Company Currency (Optional)
    I need only the Standard Price and Price Unit. Please give me a example with sample values.
    Thanks,
    Kishan

    Sri:
    I need only the Standard Price and Price Unit
    there is no specific FM for that.
    you need to write small select query in FM than use this custom FM into your program.
    Amit.

  • BAPI to change the standard price of the material

    Hello Friends ,
    I am struggling to find a BAPI to change material standard price. I found 2 BAPIs mentioned below. But was not able to make use of them.
    1) BAPI_MATVAL_PRICE_CHANGE
    2) BAPI_MATERIAL_SAVEDATA
    Can any of you help me in finding right BAPI?

    BAPI_MATVAL_PRICE_CHANGE
    PRICES_CHANGE & PRICES_POST
    BAPI_M_REVAL_CREATEPRICECHANGE
    BAPI_MATERIAL_SAVEDATA
    These are the fm's to save or change material price.

  • Examples for using function modules and BApis.

    My Dear FRNDS,
    I am very new to ABAP. And I have read the documentation for  function modules but i am not that clear to practice them.So I would be very happy if u people share a little bit of ur experience with me.
    Please provide me some examples of all the use cases in function modules and specially exception handling.
    Frnds, i am going to work with bapis so i feel practicing function module will give me a edge.
    and please tell me after calling a BAPI FM why we have to perform   'BAPI_TRANSACTION_COMMIT' and 'BAPI_TRANSACTION_ROLLBACK'.
    .Ur efforts  will be greatly rewarded.
    thx,
    reshali

    Hi,
    Please check this sample codes.
    DATA: BAPI_Z05DOGI_DELIVERY LIKE BAPIOBDLVHDRCON-DELIV_NUMB ,
    BAPI_Z05DOGI_HEADER_DATA LIKE BAPIOBDLVHDRCON OCCURS 0 WITH HEADER LINE ,
    BAPI_Z05DOGI_HEADER_CONTROL LIKE BAPIOBDLVHDRCTRLCON OCCURS 0 WITH HEADER LINE,
    BAPI_Z05DOGI_ITEM_DATA LIKE BAPIOBDLVITEMCON OCCURS 0 WITH HEADER LINE,
    BAPI_Z05DOGI_ITEM_CONTROL LIKE BAPIOBDLVITEMCTRLCON OCCURS 0 WITH HEADER LINE ,
    BAPI_Z05DOGI_RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE .
    CLEAR: BAPI_Z05DOGI_DELIVERY , BAPI_Z05DOGI_HEADER_DATA , BAPI_Z05DOGI_HEADER_CONTROL , BAPI_Z05DOGI_ITEM_DATA ,BAPI_Z05DOGI_ITEM_CONTROL , BAPI_Z05DOGI_RETURN .
    REFRESH: BAPI_Z05DOGI_HEADER_DATA , BAPI_Z05DOGI_HEADER_CONTROL , BAPI_Z05DOGI_ITEM_DATA , BAPI_Z05DOGI_ITEM_CONTROL , BAPI_Z05DOGI_RETURN .
    BAPI_Z05DOGI_DELIVERY = ZMM_WB1-ISSUE .
    BAPI_Z05DOGI_HEADER_DATA-DELIV_NUMB = ZMM_WB1-ISSUE.
    APPEND BAPI_Z05DOGI_HEADER_DATA.
    BAPI_Z05DOGI_HEADER_CONTROL-DELIV_NUMB = ZMM_WB1-ISSUE.
    BAPI_Z05DOGI_HEADER_CONTROL-POST_GI_FLG = 'X'.
    APPEND BAPI_Z05DOGI_HEADER_CONTROL.
    BAPI_Z05DOGI_ITEM_DATA-DELIV_NUMB = ZMM_WB1-ISSUE.
    BAPI_Z05DOGI_ITEM_DATA-DELIV_ITEM = 10.
    BAPI_Z05DOGI_ITEM_DATA-DLV_QTY = LFIMGGIA.
    BAPI_Z05DOGI_ITEM_DATA-SALES_UNIT = XTAB-MEINS.
    BAPI_Z05DOGI_ITEM_DATA-DLV_QTY_IMUNIT = LFIMGGIA.
    BAPI_Z05DOGI_ITEM_DATA-FACT_UNIT_NOM = UMVKZLIPS.
    BAPI_Z05DOGI_ITEM_DATA-FACT_UNIT_DENOM = UMVKNLIPS.
    APPEND BAPI_Z05DOGI_ITEM_DATA.
    BAPI_Z05DOGI_ITEM_CONTROL-DELIV_NUMB = ZMM_WB1-ISSUE.
    BAPI_Z05DOGI_ITEM_CONTROL-DELIV_ITEM = 10.
    BAPI_Z05DOGI_ITEM_CONTROL-CHG_DELQTY = 'X'.
    APPEND BAPI_Z05DOGI_ITEM_CONTROL.
    CALL FUNCTION 'BAPI_OUTB_DELIVERY_CONFIRM_DEC'
    EXPORTING
    DELIVERY = BAPI_Z05DOGI_DELIVERY
    HEADER_DATA = BAPI_Z05DOGI_HEADER_DATA
    HEADER_CONTROL = BAPI_Z05DOGI_HEADER_CONTROL
    TABLES
    ITEM_DATA = BAPI_Z05DOGI_ITEM_DATA
    ITEM_CONTROL = BAPI_Z05DOGI_ITEM_CONTROL
    RETURN = BAPI_Z05DOGI_RETURN.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    WAIT = 'X'
    IMPORTING
    RETURN = BAPI_Z05DOGI_RETURN.
    Go thru this link
    http://www.planetsap.com/LIST_ALL_BAPIs.htm
    BAPI_TRANSACTION_COMMIT
    Execute external Commit when using BAPIs
    This method executes a COMMIT WORK command. It is required for
    transactions developed externally to the R/3 System that change data in
    the R/3 System via BAPI calls.
    When you call BAPIs in your program that change data in the R/3 System,
    afterwards you must call this method to write the changes to the
    database.
    COMMIT WORK
    The statement COMMIT WORK completes the current SAP LUW and opens a new one, storing all change requests for the currenta SAP LUW in the process
    there are some FM that we use for creating trasaction . for example FM : that use for creating production order . if you execut the FM , the system will not create any data in the system so you need to excute the FM : BAPI_TRANSACTION_COMMIT to commit that creating the production order .
    in case of commit work, that is a syntax in abap program . if you use this syntax after you insert ,update or delete table in the sap ,system will do it immediately otherwise the system will do it after execution is complete.
    ROLLBACK WORK.
    for confirming or undoing database updates. COMMIT WORK always concludes a database LUW and starts a new one. ROLLBACK WORK always undoes all changes back to the start of the database LUW.
    Regards,
    Raj.

  • Function module or bapi to get condition value of condition types (vk11)

    Hi Experts,
       I have customer no(Sold to) , sales area and material as input.
      and i need to get discount value(defined using condition types using vk11) that i give to customer for a given material for give sales area.
      Pls help me with the standard FM or Bapi through which i can get my desired output.
      Thanks in Advance.

    Hi Ashwin,
      thanks for the reply but, this fuction module retuns me condition table based on the Acess sequence selected by me.
    where as what i require is that i should get condition record number or condition value, based on the access sequence configured (i.e i shouldn't provide the acess sequence).
    Thanks in advance

  • Urgent help for table function

    I Have a table tab1
    SQL> select * from tab1;
    A B C
    maqdoom 12 syed
    aamer 323 army
    king 343 khan
    keerthi 52 kaat
    I Have created an Object
    CREATE TYPE object_row_type AS OBJECT1 (
    name VARCHAR2(30),
    lname VARCHAR2(18))
    CREATE TYPE object_table_type1 AS TABLE OF object_row_type1;
    I write a function such a way that
    when we enter a trackinnumber it return the whole record with respective the query
    CREATE OR REPLACE FUNCTION test1 (trackingnumber IN NUMBER)
    RETURN object_table_type1
    IS
    --tracking_num   NUMBER (10);
    v_tab object_table_type1 := object_table_type1 ();
    BEGIN
    FOR cur IN (SELECT a AS NAME, c AS LNAME
    FROM TAB1
    WHERE b=trackingnumber)
    LOOP
    v_tab.EXTEND;
    v_tab(v_tab.LAST) :=object_row_type1(cur.name,cur.lname);
    end loop;
    RETURN v_tab;
    END;
    every thing runs fine
    But
    Can an one show me
    1. how to handle an exception ... when someone enters a wrong tracking number I should get some message displaying that 'its a wrong tracking number'.
    thank you

    SQL> CREATE TYPE object_row_type AS OBJECT(
      2  name VARCHAR2(30),
      3  lname VARCHAR2(18));
      4  /
    Type created.
    SQL> CREATE TYPE object_table_type AS TABLE OF object_row_type;
      2
      3  /
    Type created.
    SQL> select * from test;
    A                             B C
    maqdoom                      12 syed
    aamer                       323 army
    king                        343 khan
    keerthi                      52 kaat
    SQL> CREATE OR REPLACE FUNCTION f1 (trackingnumber IN NUMBER)
      2  RETURN object_table_type
      3  IS
      4   cnt number := 0;
      5   v_tab object_table_type := object_table_type ();
      6  BEGIN
      7   FOR cur IN (SELECT a AS NAME, c AS LNAME
      8                       FROM test
      9                       WHERE b=trackingnumber)
    10   LOOP
    11    cnt := 1;
    12    v_tab.EXTEND;
    13    v_tab(v_tab.LAST) :=object_row_type(cur.name,cur.lname);
    14  end loop;
    15  if cnt = 0 then
    16   dbms_output.put_line('No data!');
    17  end if;
    18  RETURN v_tab;
    19  END;
    20  /
    Function created.
    SQL> set serverout on
    SQL> declare
      2   a  object_table_type;
      3  begin
      4  a :=  f1(12);
      5  end;
      6  /
    PL/SQL procedure successfully completed.
    SQL> ed
    Wrote file afiedt.buf
      1  declare
      2   a  object_table_type;
      3  begin
      4  a :=  f1(1);
      5* end;
    SQL> /
    No data!
    PL/SQL procedure successfully completed.
    <br>
    <br>
    But you can use BULK COLLECT here..
    Try it yourself..                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • SOS, Urgent help for Count function

    Hi I need to count to different value on a same column
    SELECT DISTINCT A.job, COUNT(*),
    FROM STDNT_EMPLOYEE A, DATA B,
    WHERE A.EMPLID = B.EMPLID
    AND A.CAREER = B.CAREER
    AND A.YEAR = '2008'
    AND D.SEX = 'M'
    and D.SEX = 'F'// This is the line on question
         GROUP BY A.JOB
    output should be
    JOB     Male Female
    receptionist 10 20
    mechanic 4 0
    bookkeeper 3 6
    Any suggestions?
    Thank you

    missed out the group by function, incase
    SELECT DISTINCT A.job, sum(decode(d.sex,'M',1,0)) male,sum(decode(d.sex,'F',1,0)) female
    FROM STDNT_EMPLOYEE A, DATA B,
    WHERE A.EMPLID = B.EMPLID
    AND A.CAREER = B.CAREER
    AND A.YEAR = '2008'
    group by a.job,d.sex

  • Is there a function module or BAPI to change the field UVP03 in table VBUP

    When certain conditions are in place I need to change the value of VBUP-UVP03 (items reserve status 3) to a value of C).
    there must be a FM or bapi to do this - thanks.
    Scott

    We had to do this from a custom program that runs in a batch job.  It changes a field in VBAP using the BAPI_SALESORDER_CHANGE - that in turn will execute a user exit called userexit_set_status_vbup, that we added code to update the field vbup-uvp03.  it works.

  • Function module or table to get the RO(Replenishment order) number based on Order id?-SNC system

    Hi All,
    Please help me in finding the FM or table to find out the Order number when you have the Replenishment Order id
    Or order id when you have the order number at SNC area?
    I want the input parameters as Order id/ order number and Version.
    System SNC 5/7.0
    Best regards,
    Anil.

    Hello Anilkumar.
    Which module does your requirement related to?

Maybe you are looking for

  • Minimum specs for a graphics card.

    I just changed over my PE9 to an i7 2600 on a Gigabyte motherboard Z86 UD 3R with 8g ram . 64bit Windows7 The improvement is trully amazing compared with my old Core duo I am using my 2 year old Radeon HD4350. It plays full HD AVCHD in full screen fl

  • Transfer library to external drive

    My hard drive on my imac desktop is full.  How do I transfer my itune and iphoto libraries to an external drive?

  • Opt drag QT movie to background

    Hi gang So, last night I was trying something I never attempted before: using a QT movie as a background in a theme while maintaining the drop zones as described in this Ken Stone article: "There are two ways to change out the background art. Draggin

  • ExecuteBaseLogic::Invalid object name 'tblStatus'  when submitting data

    Hi experts, I've encounter the following error while submitting data via input schedule: ExecuteBaseLogic::Invalid object name 'tblStatus' in: select distince d.CATEGORY,d.ENTITY,d.TIMEID from #RESULT_334020 d where signeddata<>0 and exists [select *

  • Can't read registry entry AppPath... - My solution

    Good news! For me, there was a simple solution when I got this error message. (Some background: We just upgraded Office to 2007 and RoboHelp 8 from RoboHelp 5.) Today when I tried to open RoboHelp for Word (version 8) for the first time, I received t