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

Similar Messages

  • Create Service entry sheet using BAPI in SAP

    Hi
    Experts,
    Scenario : SES will be created in third party system , once it created, txt file will be generated and placed in their server.We will be writing a program
    to pick that file and post SES in ECC using BAPI ( Idoc is not available to create SES i believe).
    I will be using BAPI_ENTRYSHEET_CREATE to create SES sheet but we dont have service masters and creating unplanned service entry sheet.
    I will be checking by passing the values manually in BAPI to create SES.
    I am passing PO no, line no and qty, value and other details to create SES.
    It is creating SES with only header data. it is not updating line item details.
    I am missing some parameters to be passed to create SES using BAPI I feel.
    I need your help to create SES using BAPI.
    What are the details to be passed to create SES in SAP using BAPI.
    Regards,
    Suresh.A

    Did you not search? Google has 3600 hits for BAPI_ENTRYSHEET_CREATE
    the second hit is a wiki from SCN with sample coding
    the third hit  has a link to a OSS note with a promising title 420334 - BAPI_ENTRYSHEET_CREATE: Model for creation

  • 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

  • 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

  • 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

  • Create service entry sheet

    Hi,
    I have a requirement to create service entry sheet.
    Data which has to be input is taken from a Z table.
    I am using the FM BAPI_ENTRYSHEET_CREATE, but I am unable to find mapping for some of the fields in the Z table in the FM. These are as given below:
    ZPROJ_DESC(Project  Description)
    ZHOURS(Hours)
    ZMAN_DAYS(Man days)
    ZCOST_TYPE(Cost Type)
    ZTS_STATUS(Time sheet status)
    ZUID_UPLOAD(User name in user master record)
    ZRES(Resource)
    Could you please help me by giving a possible mapping for these fields.
    Thanks in advance.
    Regards,
    Billam Venkat

    Did you not search? Google has 3600 hits for BAPI_ENTRYSHEET_CREATE
    the second hit is a wiki from SCN with sample coding
    the third hit  has a link to a OSS note with a promising title 420334 - BAPI_ENTRYSHEET_CREATE: Model for creation

  • *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.

  • Create service entry sheet button doesn't respond

    Hi,
    We are using service entry sheets through the portal. I am clicking on the row with the PO for which I'd like to create Service entry sheet and then I am trying to click on the button 'Create service entry sheet'. What is strange that after clicking on the button 'Create service entry sheet' it doesn't respond, nothing happens.
    What could be wrong, it is a standard WD application and I don't think we have problem with the application. Could it be authorization or some configuration ?
    Acctually I've traced the authorizations and looks like they are OK.
    Please advise !
    Helpfull answers of course will be rewarded
    Thanks,
    Stefan

    Mention what account assignment you are using in SES or in PO?
    If it is PM order then you have to enter PM order.
    If it is cost center then check GL A/c used in a/c assignment that GL must be having field status as order mandatory. Ask your accounts team to check this GL.
    Hope this helps.
    Njoy SAP....

  • 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

  • Service Entry sheet with BAPI

    Hello,
    I want to create service entry sheet with BAPI_ENTRYSHEET_CREATE. can anyone tell me step by step process like what data I need to maintain in which table?

    Hi,
    REPORT test_program.
    DATA: wa_header TYPE bapiessrc,
    i_return TYPE bapiret2 OCCURS 0 WITH HEADER LINE,
    ws_entrysheet_no TYPE bapiessr-sheet_no,
    i_service TYPE bapiesllc OCCURS 0 WITH HEADER LINE,
    i_service_acc TYPE bapiesklc OCCURS 0 WITH HEADER LINE,
    i_service_text TYPE bapieslltx OCCURS 0 WITH HEADER LINE,
    i_account TYPE bapiesknc OCCURS 0 WITH HEADER LINE,
    ws_pack_no TYPE packno.
    DATA: ws_po TYPE bapiekko-po_number,
    po_items TYPE bapiekpo OCCURS 0 WITH HEADER LINE,
    po_services TYPE bapiesll OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF wa_po_header OCCURS 1.
    INCLUDE STRUCTURE bapiekkol.
    DATA: END OF wa_po_header.
    DATA: BEGIN OF bapi_return_po OCCURS 1.
    INCLUDE STRUCTURE bapireturn.
    DATA: END OF bapi_return_po.
    DATA: serial_no LIKE bapiesknc-serial_no,
    line_no LIKE bapiesllc-line_no.
    DATA: bapi_esll LIKE bapiesllc OCCURS 1 WITH HEADER LINE.
    ws_po = '4300000051'.
    CALL FUNCTION 'BAPI_PO_GETDETAIL'
    EXPORTING
    purchaseorder = ws_po
    items = 'X'
    services = 'X'
    IMPORTING
    po_header = wa_po_header
    TABLES
    po_items = po_items
    po_item_services = po_services
    return = bapi_return_po.
    wa_header-po_number = po_items-po_number.
    wa_header-po_item = po_items-po_item.
    wa_header-short_text = 'Sample'.
    wa_header-pckg_no = 1.
    serial_no = 0.
    line_no = 1.
    bapi_esll-pckg_no = 1.
    bapi_esll-line_no = line_no.
    bapi_esll-outl_level = '0'.
    bapi_esll-outl_ind = 'X'.
    bapi_esll-subpckg_no = 2.
    APPEND bapi_esll.
    LOOP AT po_services WHERE NOT short_text IS INITIAL.
    line_no = line_no + 1.
    CLEAR bapi_esll.
    * MOVE-CORRESPONDING po_services TO bapi_esll.
    * bapi_esll-gr_price = '456'.
    bapi_esll-pckg_no = 2.
    bapi_esll-line_no = line_no.
    bapi_esll-service = po_services-service.
    bapi_esll-quantity = po_services-quantity.
    bapi_esll-gr_price = po_services-gr_price.
    bapi_esll-price_unit = po_services-price_unit.
    APPEND bapi_esll.
    ENDLOOP.
    CALL FUNCTION 'BAPI_ENTRYSHEET_CREATE'
    EXPORTING
    entrysheetheader = wa_header
    * testrun = 'X'
    IMPORTING
    entrysheet = ws_entrysheet_no
    TABLES
    * ENTRYSHEETACCOUNTASSIGNMENT =
    entrysheetservices = bapi_esll
    * entrysheetsrvaccassvalues = i_service_acc
    return = i_return
    * entrysheetservicestexts = i_service_text
    * ENTRYSHEETHEADERTEXT =
    break gbpra8.
    LOOP AT i_return.
    ENDLOOP.
    DATA: ws_wait TYPE bapita-wait.
    ws_wait = '3'.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    wait = ws_wait.
    Thanks,
    Krishna...

  • 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....

  • 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.

  • Project type restriction of user to create service entry sheet

    Dear Guru,
    My client want to restrict service entry sheet with his own project type. Can i restrict user id for my project type to create service entry sheet.
    Thanxs in advance.

    Dear Sir,
    If you know any user exit or badi pls. tell me.
    Thanx.

Maybe you are looking for

  • SYS.SYSNTJ6LP..... table names in Oracle 10g R2 database

    Can anyone inform me as to what / where the following tables came from - and also why a developer would us == in a table name? SYS.SYSNTJ6LPx94kVxXgRAAAAAAAAA== SYS.SYSNTJ6LPx94mVxXgRAAAAAAAAA== SYS.SYSNTJ6LPx94oVxXgRAAAAAAAAA== Thank you in advance,

  • Mail Notification Options

    I am trying to find some different mail notification options for Mac Mail and can't seem to come across anything (good). I run my business email through Mac Mail and would like to know when I get email from those accounts. The prefs only give you the

  • Upgraded to Lion and now I get random Kernel Panics

    I also did a look around the forums already - found that if it might be caused by the new Airport .kext (airdrop) So i deleted it and installed the old ones. It seemed to have helped, I managed to go over 24 hrs without a KP. Then it happened twice t

  • Problems with OwnerGroupTool in Finder.app

    Hi- Hope you can clarify something for me... I am having problems with crashing out of FileMaker Pro 7.0.3. I ran Repair Disk Permissions on the startup disk in DU and got this message: "ACL found but not expected on "System/Library/User Template/Eng

  • Power Button doesn't work and cannot Log Out.

    Hi, Strange thing: my power button does not work and I cannot even log out or restart or shut it down from the menu! Everytime I need to restart, I have to either force it or hold the button for five minutes, but nothing else works! Your help is much