BAPI for Equipment Stock Info Maintenance

Hello,
Transaction for maintenance of the Equipment master data (IE02) contains tab named "SerData" where it is possible to specify serial number and Stock information. I need to assign Sales Order No./ Position to the Equipment during it's creation. But the interface of the FM BAPI_EQUI_CREATE or BAPI_EQUI_CHANGE does not contain these parameters.
Is there a way I can do this using BAPI?
Points will be rewarded for help, of course.
Thank you in advance
Best regards,
Maksim

Santosh,
We generate a large number of work orders using the OrderMaintain method of BAPI_ALM_ORDER_MAINTAIN.  We have exposed it to a .NET front end through a web service and this seems to work well for us.  As Pete said, your requirements are rather brief but if you look at this function module it might help you.
Note: This and other related BAPIs were first available in 4.7 and I think are standard beyond that but can't say for sure.
Bob Stanza

Similar Messages

  • How to Use PM BAPI for equipment Master upload : BAPI_EQUIPMENT_SAVEREPLICA

    Hi ,
      How to use PM BAPI for equipment Master upload : BAPI_EQUIPMENT_SAVEREPLICA.
      May i know what are the input parameters & fields mandatory
      for each Table structures ct_data , ct_datax , it_descript , it_longtext.
      Can any one explain me Step by Step Process.
      B'cos i tried with below code. Equipment is not getting created.
      wa_itab-equipment_ext = '000000000100000001'.
      wa_itab-descript      = 'Test 2 -> Lube Oil Pump'.
      wa_itab-text_language = 'EN'.
      wa_itab-sdescript     = 'Short Description'.
      APPEND wa_itab TO it_itab.
      CLEAR  wa_itab.
      LOOP AT it_itab INTO wa_itab.
        ct_data-ta_guid       = '000000000000000001'.
        ct_data-equipment_ext = wa_itab-equipment_ext.
        ct_data-descript      = wa_itab-descript     .
        ct_data-valid_date    = sy-datum.
        ct_data-equicatgry    = 'M'.
        APPEND ct_data.
        CLEAR  ct_data.
        ct_datax-ta_guid       = '000000000000000001'.
        ct_datax-equipment_ext = 'X'.
        ct_datax-equipment     = 'X'.
        APPEND ct_datax.
        CLEAR  ct_datax.
        it_descript-ta_guid       = '000000000000000001'.
        it_descript-text_language = wa_itab-text_language.
        it_descript-descript      = wa_itab-sdescript    .
        APPEND it_descript.
        CLEAR  it_descript.
        it_longtext-ta_guid        = '000000000000000001'.
        it_longtext-text_language  = wa_itab-text_language.
        it_longtext-text_id        = 'LTXT'.
        it_longtext-text_line      = 'SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS'.
        APPEND it_longtext.
        CLEAR  it_longtext.
        it_longtext-ta_guid        = '000000000000000001'.
        it_longtext-text_language  = wa_itab-text_language.
        it_longtext-text_id        = 'INTV'.
        it_longtext-text_line      = 'aaaaaaaaaaaaaaa'.
        APPEND it_longtext.
        CLEAR  it_longtext.
        it_longtext-ta_guid        = '000000000000000001'.
        it_longtext-text_language  = wa_itab-text_language.
        it_longtext-text_id        = 'INTV'.
        it_longtext-text_line      = 'bbbbbbbbbbbb'.
        APPEND it_longtext.
        CLEAR  it_longtext.
        it_longtext-ta_guid        = '000000000000000001'.
        it_longtext-text_language  = wa_itab-text_language.
        it_longtext-text_id        = 'INTV'.
        it_longtext-text_line      = 'cccccccccccccccc'.
        APPEND it_longtext.
        CLEAR  it_longtext.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
      call BAPI-function in this system
        CALL FUNCTION 'BAPI_EQUIPMENT_SAVEREPLICA'
          TABLES
            ct_data     = ct_data
            ct_datax    = ct_datax
            it_descript = it_descript
            it_longtext = it_longtext
            return      = return
          EXCEPTIONS
            OTHERS      = 1.
        IF sy-subrc = 0.
          CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
          WRITE : 'Successful'.
        ENDIF.
        IF NOT return IS INITIAL.
          LOOP AT return.
            IF return-type = 'A' OR return-type = 'E'.
              WRITE : 'Error'.
            ENDIF.
          ENDLOOP.
        ENDIF.
        REFRESH  return.
      ENDLOOP.
    Regards
    SUrendar

    Hi ,
      How to use PM BAPI for equipment Master upload : BAPI_EQUIPMENT_SAVEREPLICA.
      May i know what are the input parameters & fields mandatory
      for each Table structures ct_data , ct_datax , it_descript , it_longtext.
      Can any one explain me Step by Step Process.
      B'cos i tried with below code. Equipment is not getting created.
      wa_itab-equipment_ext = '000000000100000001'.
      wa_itab-descript      = 'Test 2 -> Lube Oil Pump'.
      wa_itab-text_language = 'EN'.
      wa_itab-sdescript     = 'Short Description'.
      APPEND wa_itab TO it_itab.
      CLEAR  wa_itab.
      LOOP AT it_itab INTO wa_itab.
        ct_data-ta_guid       = '000000000000000001'.
        ct_data-equipment_ext = wa_itab-equipment_ext.
        ct_data-descript      = wa_itab-descript     .
        ct_data-valid_date    = sy-datum.
        ct_data-equicatgry    = 'M'.
        APPEND ct_data.
        CLEAR  ct_data.
        ct_datax-ta_guid       = '000000000000000001'.
        ct_datax-equipment_ext = 'X'.
        ct_datax-equipment     = 'X'.
        APPEND ct_datax.
        CLEAR  ct_datax.
        it_descript-ta_guid       = '000000000000000001'.
        it_descript-text_language = wa_itab-text_language.
        it_descript-descript      = wa_itab-sdescript    .
        APPEND it_descript.
        CLEAR  it_descript.
        it_longtext-ta_guid        = '000000000000000001'.
        it_longtext-text_language  = wa_itab-text_language.
        it_longtext-text_id        = 'LTXT'.
        it_longtext-text_line      = 'SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS'.
        APPEND it_longtext.
        CLEAR  it_longtext.
        it_longtext-ta_guid        = '000000000000000001'.
        it_longtext-text_language  = wa_itab-text_language.
        it_longtext-text_id        = 'INTV'.
        it_longtext-text_line      = 'aaaaaaaaaaaaaaa'.
        APPEND it_longtext.
        CLEAR  it_longtext.
        it_longtext-ta_guid        = '000000000000000001'.
        it_longtext-text_language  = wa_itab-text_language.
        it_longtext-text_id        = 'INTV'.
        it_longtext-text_line      = 'bbbbbbbbbbbb'.
        APPEND it_longtext.
        CLEAR  it_longtext.
        it_longtext-ta_guid        = '000000000000000001'.
        it_longtext-text_language  = wa_itab-text_language.
        it_longtext-text_id        = 'INTV'.
        it_longtext-text_line      = 'cccccccccccccccc'.
        APPEND it_longtext.
        CLEAR  it_longtext.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
      call BAPI-function in this system
        CALL FUNCTION 'BAPI_EQUIPMENT_SAVEREPLICA'
          TABLES
            ct_data     = ct_data
            ct_datax    = ct_datax
            it_descript = it_descript
            it_longtext = it_longtext
            return      = return
          EXCEPTIONS
            OTHERS      = 1.
        IF sy-subrc = 0.
          CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
          WRITE : 'Successful'.
        ENDIF.
        IF NOT return IS INITIAL.
          LOOP AT return.
            IF return-type = 'A' OR return-type = 'E'.
              WRITE : 'Error'.
            ENDIF.
          ENDLOOP.
        ENDIF.
        REFRESH  return.
      ENDLOOP.
    Regards
    SUrendar

  • Bapi for Equipment change

    HI
       I would like to know , is there  any  BAPI for Equipment change(T.code-IE02) to update all the feilds of equipment & automatically creates an asset number as normal tranaction code performes.
      As of now i am useing BAPI_EQUI_Change, please let me know any other than this BAPI
    Thanks&Regards
    lakshmi

    Hi,
       Check the FM <b>I_CHANGE_STATUS.</b>
    See the documentaion below
    FU I_CHANGE_STATUS
    Short Text
    Change a status for an object
    Description
    This function module is called to update the user status for a specified object (notification, notification task, order, or operation).
    Regards

  • Bapi for Equipment BOM

    Is there any standard BAPI to create Equipment BOM? Tcode - IB01

    Hello,
    I use that bapi for create BOM but not equipement BOM.
    I find on forum, response wiche can help you :
    Equipment BOM Upload BAPI
    RFC / BAPI for Equipment BOM - IB01
    http://wiki.sdn.sap.com/wiki/display/ABAP/ECCstandardBatchInputprograms
    Thierry

  • BAPI for equipment classification

    Hi,
      Does anybody know the BAPI for equipment classification and also the required fields of the BAPI.
    With Regards,
    Nelson

    Hi,
    Check this Bapi <b>BAPI_EQUIPMENT_SAVEREPLICA</b>, Sure it will help u...
    Regards,
    Sridhar

  • BAPI for Attendances/Absences/Overtime maintenance

    Hi Gurus out there Is there a BAPI, RFC or Standard program used for Attendances/Absences/Overtime maintenance?

    Hi,
    Try this 'BAPI_TIMEAVAILSCHEDULE_BUILD '.
    CALL FUNCTION 'BAPI_TIMEAVAILSCHEDULE_BUILD' "Generate List of Employee Availability
      EXPORTING
        startdate =                 " bapi7002_3-startdate  Start Date
        enddate =                   " bapi7002_3-enddate  End Date
      TABLES
        persno =                    " bapi7002_2    Personnel Numbers Table
        timeavailschedule =         " bapi7002_1    Availability Table
        return =                    " bapiret2      Error Messages
        .  "  BAPI_TIMEAVAILSCHEDULE_BUILD
    This method determines employees' availability on the basis of their personal work schedule and any time data that represents a deviation in the schedule.
    An employee's personal work schedule is determined from the long-term work schedule in the Planned Working Time infotype (2003), and from the short- and medium-term changes to the planned working time in the Substitutions infotype (2003). This results in a valid daily work schedule for each day that contains detail specifications on planned working times, break times, and overtime. An employee's availability can depend on these planned times, or on deviations in the daily work schedules from the Absences (2001), Attendances (2002), Overtime (2005), and Availability (2004) infotypes.
    A list of specific times provides information on an employee's availability. Each entry indicates the valid availability information from one point in time (date and time) to the next point in time.
    The first entry for a personnel number is always for 00:00 on the start date of the selection period, and the last entry for 24:00 on the end date.
    For more info [click here|http://www.se80.co.uk/sapfms/b/bapi/bapi_timeavailschedule_build.htm].
    May it helps you.
    Regards.
    DS.

  • BAPI for writing MM Info-records to database

    Hi,
    I am searching for a bapi to write purchasing info-records into the database. What I already found is BAPI_INFORECORD_GETLIST, but this only reports a list of records. But I need to enter data into the tables EINA, EINA A017 etc. Can anybody help me, i do not want to write a batch-input and would prefer to use a BAPI.  SAP-Version used is 4.6C - pretty antic I know but that is what we have here.
    Greetings uli

    SAP has given a standard way of uploading Purchase Info Records through LSMW.
    You can upload data Direct Input through LSMW by using Object 0060.
    You need to map your local files w.r.t structure of source files for LSMW.
    Regards
    Vinayak

  • LSMW BAPI for Initial Stock (561)

    Hi all,
    I've done LSMW for initial stock (movement type 561) using BAPI method:
    Business object = BUS2017
    Method = CREATEFROMDATA
    Message Type = MBGMCR
    Basic Type = MBGMCR03
    LSMW works well but the result shows material document with only one item.
    How can I generate material document from LSMW BAPI with many items within?
    Thanks in advance.
    Peerasit

    Try Another option as below
    Make bdc for MB1C stock upload using movement type 561 by recording through transaction SHDB.
    Regards,
    Sandesh Sawant

  • BAPIs for Equipment list, Equipment classification details

    Hi,
    Can somebody give me the details of BAPs for getting
    1.    Equipment list for a given function location.
    2.    Equipment classification details for the given equipment number.
    Thanks & Regards
    Lakshminarayanan J

    Hi,
    what do you mean with details? Do you need the fields? You can do a double click on the data type of the details filled for browsing deeper into the structure of the details. Or you can use TCODE SE11 and check the type in the data dictionary.
    Best Regards,
    Marcel

  • Creating Z report for material stock (plant maintenance module)

    hello,
    we are implemented Plant maintenance module (SAP PM)  in our organization.
    our requirement is to create a stock report which will incldue
    followings:-
    1)material number
    2)plant number
    3) storage location
    4) material type
    5)valuation type
    6)Opening Stock 
    7) OpValue 
    8)Received Stock  
    9)   ReceiptValue      
    10)   Issue Stock          
    11)  IssueValue        
    12)  Closing Stock      
    13)  Closing Value
    we want above details in ALV grid format.
    to gert all the details for perticular material, we calcute closing stock and closing value in following manner:-
    opening stock + received  stock - issue stock = closing stock
    opening value + recipt value - issue value = closing value
    we are unable to find table name for  accessing  opening stock,  received  stock , issue stock  & opening value ,recipt value , issue value from system. please suggest table name information for getting above details  for creating Z report

    Dear friend,
    Before to make a decision to bulid a custom report make sure you have checked out the following standard transactions:
    MB5T Stock in Transit
    MMBE Stock Overview
    MD04 Stock/Reqs list
    MB53 Plant Stock Availability
    MB52 Warehouse Stock
    MB5M Expiration Date list
    MB5B Stock for Posting Date
    MB5T Stock in Transit
    MBBS Valuated Special Stock
    MBLB Stock with Subcontractor
    The possible tables are:
    MARA, MARD, MARC, VBEP, VBAK(VBAP), EKKO(EKPO), EKBE, EBAN, EBEW, MSEG, MKPF,...
    Good luck!

  • BAPI for displaying stock

    hi,
    Is there a bapi/FM which gives us the stock of a material on a particular date.
    Satish

    Hi Satish,
    Sorry, it will give the requirement... you can try the following ...
    For Materials (MARD-MATNR) selected above, Plant (MARD-WERKS) = Input Plant and Storage Location (MARD-LGORT) NOT EQUAL TO “RT01”, determine all the un-restricted quantities (MARD-LABST) and Stock in Inspection (MARD-INSME). Sum up all the quantities. Let the sum be equal to “ST”.
    For Posting date (MKPF-BUDAT) = current date, determine all the Material documents (MKPF-MBLNR).
    For Documents (MSEG-MBLNR) determined above, Materials (MSEG-MATNR) selected above, Storage Location (MSEG- LGORT) NOT EQUAL “RT01”, Movement type (MSEG-BWART) NOT EQUAL to “321”, Debit / Credit indicator (MSEG-SHKZG) = “H” pick up all the quantities (MSEG-MENGE). Sum up all the quantities. Let the sum be equal to “H”.
    Similarly, For Documents (MSEG-MBLNR) determined above, Materials (MSEG-MATNR) selected above, Storage Location (MSEG- LGORT) NOT EQUAL “RT01” Movement type (MSEG-BWART) NOT EQUAL to “321”, Debit / Credit indicator (MSEG-SHKZG) = “S” pick up all the quantities (MSEG-MENGE). Sum up all the quantities. Let the sum be equal to “S”.
    Then On date Stock (Un-restricted + QI) = “ST” + “H” – “S”
    Thanks and Regards,
    Bharat Kumar Reddy.V

  • FM or BAPI for creating purchase info records and purchase conditions

    Hi all,
    i need create purchase info records and purchase conditions from txt-file,
    What FM or BAPI i can used for this?
    Thanks and Regards,
    Andrei

    You can use trasaction SXDA_TOOLS.....
    object type BUS3003
    program type BINP
    program/method RM06IBI0
    but the fields must be sequentially written in the txt, with every space inclusive....

  • Function module/BAPI for closing stock

    Hi,
    is there is any function module or BAPI  available for calculating closing stock & openign stock of
    material that should be match with MB5B transaction.
    Thanks & Regards,
    Anagha Deshmukh

    Hi Anagha,
    Did you get any solution for this ?
    If you do please let me know becaues I am also having the same rquirement.
    Thanks,
    kalikonda.

  • FM/BAPI for Equipment BOM

    Hi All,
    Please let me know if there is any BAPI/ FM available for creating Equipment BOM (IB01 trancastion).
    Thanks in advance
    regards,
    Booma

    Check sample code in:
    http://scn.sap.com/thread/562325
    Regards,
    Sergio.

  • BAPI for Equipment Tasklist

    Hi,
    Can any one help me with Equipment Tasklist BAPI??
    Regards,
    PMAddi

    Hi,
    There are no suitable BAPI's for creating PM/CS task lists.
    (BAPI_ROUTING_CREATE is only suitable to create PP type routings).
    -Paul

Maybe you are looking for