BAPI for creating service entry

Hi all,
Please let me know if there is a BAPI for creatuing service entry. Please provicde sample code.
Thanks,
Rajan

Hi,
Try this BAPI " BAPI_SERVICE_CREATE ".
Regards
Milan

Similar Messages

  • BAPI for approving service entry sheets

    Hi All,
    I want to approve a service entry sheet
    I am using the BAPi - BAPI_ENTRYSHEET_CREATE, I am able to create a service entry sheet but unable to approve it.
    Please let me know if there is a BAPi- for approving a service entry sheet.
    Regards
    Shiva

    Hi,
    Try this BAPI " BAPI_SERVICE_CREATE ".
    Regards
    Milan

  • BAPI  for Creating Service Purchase Order

    Hi All,
      I am not able to create service po using bapi, after passing the parameters
      ls_polimits-LIMIT     = '30'.
      ls_polimits-EXP_VALUE = '20'.
      APPEND : ls_polimits TO gt_polimits.
        ls_poserv-quantity = '10'.
        ls_poserv-base_uom = 'AU'.
        ls_poserv-short_text = 'AAAAAAAA'..
        ls_poserv-price_unit = '1'.
        ls_poserv-GR_PRICE = '25'.
        ls_poserv-TAX_CODE = 'V0'.
        ls_poserv-MATL_GROUP = '6AD'.
        APPEND : ls_poserv TO gt_poserv,
               ls_poservx TO gt_poservtxt.
    message getting is
    500000280 00010 Purchase order still contains faulty items
    500000280 00010 No instance of object type PurchaseOrder has been created. External reference:
    500000280 00010 Please maintain services or limits
    please help me
    Appropriate points will be rewarded.
    Arun

    Dear Seshu,
    This is not the problem with data, coz, i am able to create the PO (Service) Manually.
    please let me know what all tabeles, i need to pass for this BAPI_PO_CREATE1
    presently I am passing
    CALL FUNCTION 'BAPI_PO_CREATE1'
           EXPORTING
                poheader          = g_pohdr
                poheaderx         = g_pohdrx
               testrun           = 'X'
           IMPORTING
                exppurchaseorder  = l_ponum
           TABLES
                return            = lt_return
                poitem            = gt_poitem
                poitemx           = gt_poitemx
                poaccount         = gt_poacct
                poaccountx        = gt_poacctx
                POSERVICES        = gt_poserv
                POSRVACCESSVALUES = gt_poservacc
    Regards
    Arun

  • Creating Service entry sheet using bapi  BAPI_ENTRYSHEET_CREATE

    Hello Guys,
    I  am trying to create a service entry sheet for single line item only using bapi  BAPI_ENTRYSHEET_CREATE.
    its is creating Service entry document but not populating the line item  for me (here only one line item for me).
    If you guys have sample code (how the poupulate the internal tables)  could you please send it across?.
    Thanks in Advance..
    Steevan

    Hi,
    Creating Service entry sheet using bapi  BAPI_ENTRYSHEET_CREATE
    For creating service entry sheet follow below link and it helps to you.
    http://wiki.sdn.sap.com/wiki/display/ABAP/CreatingServiceEntrySheetusing+BAPI
    Regards,
    Sekhar

  • Creating Service Entry Sheet without using Service Master/Service lines

    We are invoking the BAPI_EntrySheet_Create to create the service entry sheet. We are currently facing this issue...
    1) For assigned PO's, we are getting the PO item and Account assignment information from BAPI_PO_GetDetail. We are using these values to populate the parameters/tables to invoke BAPI_EntrySheet_Create. For population the Entrysheetservices table, we are not using information from Service Master/Service lines but use the information we get from an external system to populate the Service lines(ESLL). We do not provide a Package No/Service information when invoking the BAPI but populate the service lines with short text, quantity, Gross price etc without service information like package no, outline indicator etc. The BAPI creates a service enty sheet successfully(this is without the SES Acceptance indicator not being set) but when we lookup the SES# from ML81n transaction the ESLL details lines are not displayed.
    When displaying the SES using transaction ML81N, the header information is displayed correctly but the lines are not displayed. The Header information is correctly populated in ESSR table and detail is also populated in ESLL table. I think the cross reference information is correctly set in ESLH table to pull up the detail when ML81N as it is missing the package/sub pack information.
    Your expert advise in resolving this issue is very much appreciate. Please advise.

    Hi,
    Creating Service entry sheet using bapi  BAPI_ENTRYSHEET_CREATE
    For creating service entry sheet follow below link and it helps to you.
    http://wiki.sdn.sap.com/wiki/display/ABAP/CreatingServiceEntrySheetusing+BAPI
    Regards,
    Sekhar

  • Is a BAPIBadi available for uploading data to create Service Entry Sheet?

    Dear MM Gurus,
    Users are currently entering Service PO and creating Service Entry sheet for the Subcontractor consultants  (using Transaction code - ML81N) by referring to the Service PO.
    Due to the high amount of data, the users do not want to create Service Entry sheet using ML81N.
    Rather, they have the flat files containing approved timesheet data of the consultants every month and want to upload the flat files. Is there any BAPI or BADI available for uploading such data monthly, to create a Service Entry sheet automatically? Is this feasible?
    Do other companies follow this procedure? Any ideas/suggestions are welcome.
    thanks
    M

    Hello ,,,
    BAPI_ENTRYSHEET_CREATE
    Take the help of ABAPER and write a upload progrme for creation of Service entry sheet.
    Mahesh Naik

  • Error: while creating Service Entry Sheet - for HELD PO

    Hi experts,
    While PO XXXXXXXXXX is in the status of Hold. System allowed me to create & delete a service entry sheet(SES) on particular date.
    Another day i tried to create SES for the same PO. System is not allowing me to create SES and it gives me error as  'Purchase order XXXXXXXXXX incomplete (parked)'.
    While debugging I found that ekko-memory field set to 'X'. At this point I am getting error.
    My question is why the system is allowed me to create SES for a PO which is in HELD status?.
    Please help me.
    Thanks In advance,
    Vinod

    Thanks for the reply.
    We are aware that system will not allow to create Service entry sheet for held po. But it is allowed me to create on a particular date. Another day i tried to create/delete a SES for the same PO or new PO(held status)  system is not allowing me to delete/create SES.
    Please help me what might be the reason which allowed me on a particulare date.
    Thanks in Advance,
    Vinod....

  • User ID restriction for Project/WBS to create service entry sheet

    Dear All,
    My client requirement is that the user id should be restrict for particular project or WBS to create service entry sheet(ML81N). Can we do it in this manner?
    Further i want to give you my organization structure as given below.
    1. Project :-   20
    2. Plant    :-  Single
    3. Bus. Area:- 2
    4. Co area :- Single.
    Thanx,
    Vishal Kr. Sharma

    Standard restriction is possible for this T code based on document type,purchasing group,purchasing org and plant.
    Others being ruled out I think solution is to restirct using purchasing group which is smaller entity.
    Regards
    Sreenivas

  • User-Exit / Badi  for ML81n (create service entry sheet)

    Dear experts,
    I am looking for a User-Exit / Badi  for ML81n (create service entry sheet),  which will enable me to compare its date with the referenced PO's item's delivery-date,   befor saving ,  and send an error message (with no update) if the check is not OK.
    Remark :  I have tried MB_DOCUMENT_BADI   but with no success because you can't send an error message from it.
    Thank you
    Yaacov

    hi check below thread
    User-Exit for Service Entry Sheet via ML81N?
    regards
    vijay

  • Error while creating service entry sheet

    Hi Experts,
    I am trying to create service entry sheets using bapi 'BAPI_ENTRYSHEET_CREATE'  for a purchase order with multiple line items. The bapi creates SES for the first line item but gives error 'User xxxxxx already processing purchase order nnnnnnnnnn' for the rest of all. Tried using 'COMMIT AND WAIT' after bapi call but it's not working.
    Kindly help me out with the solution.
    Regards,
    B.Siddhesh

    Hi Siddhesh,
    Please use below code before calling the 'BAPI_ENTRYSHEET_CREATE' to unlock the PO.
    Hope this is helpful.
    **Delete the Lock objects EKKO Header PO.
         CALL FUNCTION 'ENQUEUE_READ'
           EXPORTING
             GNAME  = 'EKKO'
             GARG   = ''
             GUNAME = SY-UNAME
           TABLES
             ENQ    = ENQ
           EXCEPTIONS
             OTHERS = 0.
         IF NOT ENQ IS INITIAL.
           DESCRIBE TABLE ENQ LINES SY-TFILL.
           CHECK SY-TFILL > 0.
           CALL FUNCTION 'ENQUE_DELETE'
             EXPORTING
               SUPPRESS_SYSLOG_ENTRY = 'X'
             IMPORTING
               SUBRC                 = RC
             TABLES
               ENQ                   = ENQ.
         ENDIF.
    **Delete the Lock objects EKPO Header PO.
         CALL FUNCTION 'ENQUEUE_READ'
           EXPORTING
             GNAME  = 'EKPO'
             GARG   = ''
             GUNAME = SY-UNAME
           TABLES
             ENQ    = ENQ
           EXCEPTIONS
             OTHERS = 0.
         IF NOT ENQ IS INITIAL.
           DESCRIBE TABLE ENQ LINES SY-TFILL.
           CHECK SY-TFILL > 0.
           CALL FUNCTION 'ENQUE_DELETE'
             EXPORTING
               SUPPRESS_SYSLOG_ENTRY = 'X'
             IMPORTING
               SUBRC                 = RC
             TABLES
               ENQ                   = ENQ.
         ENDIF.
    Reward if helpful.
    Regards,
    Shakeel Ahmed

  • BAPI for Creating a PM order(iw34) with reference to a Notification

    Hi All,
    Could anyone help to find the BAPI for creating a PM order with reference to a notification Number.
    I will explain my requirement :
    I want to create a notification from an external Application where i got the BAPI BAPI_ALM_NOTIF_CREATE and keeping this created notification number as Referece or for this notification number  i need a create a PM order.Usually this process in done transaction IW34 in R/3.
    But with the BAPI BAPI_ALM_ORDER_MAINTAIN i can create a PM order but this BAPI doesn't have a input parameter "Notification number ".So i can't use this BAPI.
    Could any suggest for a BAPI where i can create a PM order with reference to a Notification Number.
    Regards,
    Sid

    Hi,
    I have tried with the FM CO_IH_ORDER_GENER_2 but when i executes it gives a error message
    "<i>Service/maintenance order type PM02 not completely maintained in plant
    Message no. IW216
    Diagnosis
    For the selected order type and plant, no check control is maintained in Plant Maintenance/Service in 'Availability Check for Materials, PRTs and Capacities'.
    Procedure
    A check control must be maintained for this combination of order type and plant</i>"".
    And even have a doubt what to enter in this input parameter "GEWRK_OBJTYP"  .
    Kindly help me to solve this issue.
    Regards,
    Sid

  • *Unable to create Service Entry Sheet.*

    Hi,
    Iu2019m trying to create service entry sheet for a service PO but all the item level fields in ML81N screen are appearing in display mode (non-editable) also I cannot see the u201CService Selectionu201D button. So Iu2019m unable to insert/select the service detail and cannot create the entry sheet. If I use the menu path Edit->Service Selection, still cannot adopt services and system gets busy for a substantial period and eventually timed out.
    Please helpu2026
    Iu2019m using ECC 6.0
    Thanks, Pratap

    Service PO: Intangible good that is the subject of business activity and that can be performed internally or procured externally (outsourced).
    -     Services are regarded as being consumed at the time of their performance. They cannot be stored or transported.
    -     Examples of services include construction work, janitorial/cleaning services, and legal services.
    Steps involved in Service PO:
    1.     Define Organizational Status for Service Categories, in IMG - MM - External Services Management.
    2.     Define Service Category, Enter Service Category, Org. Service Category, External Number Assignment
    Without Validation, Acct. Category Reference & Service Category Description.
    3.     Define Number Ranges for Service Category.
    4.   Create Service Master Record (AC03), SAP Menu u2013 Logistics u2013 MM u2013 Service Master, Enter Service Category,
          Base unit of measure, Mat/srv.grp (007 u2013 Service), Division, Valuation class u2013 3200 & Service type.  
    5.     Create Service PO with Acct. Assignment u2013 Cost Center (K), Item Category u2013 D, Material Short Text, Mat. Group, Plant, Entry for Services in Item Level i.e. Service No., Quantity & Gross Price u2013 Save.
    6.     Maintain Service Entry Sheet u2013 ML81N in SAP Menu u2013 Logistics u2013 MM choose PO in ML81N edit and save.
    7.     Then do MIRO from PO reference u2013 Service Entry sheet.
    8.     Collective Release of Service Entry Sheet u2013 ML85
    Organizational Status for Service Category: The organization status indicates the areas in which service master records are used.
    Service Category: The service category is the most important criterion for structuring service master records. It provides a default value for the valuation classes. Service master records can be assigned to number ranges on the basis of the service category.

  • Problem in Creating Service Entry Sheet

    Hi,
    We have a Service PO. When we are creating Service Entry Sheet for it, showing error msg -
    "Goods receipt for purch. order" is not allowed (ORD 10000722)
    What should be issue...

    Hi,
    I am very sure that PO is created with the account assignment -F (Internal Order) , So provided IO number in PO under account assigment tab is already locked by your accounts/commercial team.
    Please check if the Interal Order is blocked ,you need to activate IO again from KO02 or either change your IO accordingly.
    Hope this will resolve your issue.
    Thanks & Regards,
    Sandesh Sawant

  • Create Service entry sheet based on % work completion

    Dear Experts
    Is it possible to enter the percentage for planned services, while creating service entry sheet.??
    For example:
    My client requirement is like that, while creation service PO, there a planned service like 1 lot - 10,000RS.
    while creatiog service entry sheet, they need to keyin like 34.567%, so it possible to keyin as 34.567% while creating service entry sheet. if so please advice me the steps..is there any confiq to be done?
    Please advice me..
    Regards
    Saravanan

    Really appreciate your response!
    They want percentage enter with min 3 decimal points like 34.567%, its one of most important requirements, bez the 3rd digits of percentage,...will shows big fluction in VALUE. say around like millions.
    Thats what they want to be implemented.
    While creating service entry sheet, instead of Quantity field, is it possible to bring the Percentage field in SES?
    There is one control data in condition table, where we can assign percentage, but i dont know the confiq...i dont know is this the correct place or not...even after change to percentage..whether it will allows 3 digit decimal or not..that one more question?
    Regards
    Saravanan

  • Create service entry sheet against service PR

    HI expert
    Can we create service entry sheet against service PR?
    If yes, can you show me the step in system?Thanks!
    Regards
    Mark

    No you can not create Service entry sheet against service PR. The purpose of creating pr is just requestion for  purchase of services or material. This is required for internal purpose even in pr ur not maintaining Vendor details, conditions. If you see standard business process with ref. to pr we creating po than service entry sheet. So in standard business process every documents have own purpose / value.

Maybe you are looking for