Getting an error " Atleast one entry could not be found in object buffer"

Hi All,
I m facing an peculiar problem while executing a custom Function Module.I have written a custom FM to create a service request and fetch the obj ID and return it back.When i tested the same in debugging mode everything is working fine. But when i execute it directly, It is giving me an error saying " Atleast one entry could not be found in object buffer" at the bottom of the screen and return parameters are not displayed.
Any pointers on this would be of great help.
Thanks,
Eureka

Hi Phani,
PFB the source code. Please look in to this at your convenient time..
FUNCTION ZSERVICE_TICKET_INC_EDIORDERS.
*"*"Local Interface:
*"  IMPORTING
*"     REFERENCE(ZPROCESS_TYPE) TYPE  CRMT_PROCESS_TYPE
*"  EXPORTING
*"     REFERENCE(ZOBJECT_ID) TYPE  CRMT_OBJECT_ID_DB
* PARAMETER QUANTITY TYPE CRMT_SCHEDLIN_QUAN.
* DATA DECLARATION FOR LOCAL VARIABLES
  DATA : lv_header_guid        TYPE                   GUID_32,
         lv_header_guid16      type                   guid_16,
         lv_item_guid          TYPE                   guid_32,
         lv_sched_guid         TYPE                   guid_32,
         lt_header_guid16      type                   CRMT_OBJECT_GUID_TAB,
         wa_header_guid16      like line of           lt_header_guid16.
  DATA:  itab_header           TYPE STANDARD TABLE OF bapibus20001_header_ins,
         itab_created_process  TYPE STANDARD TABLE OF bapibus20001_header_ins,
         itab_objects_to_save  TYPE STANDARD TABLE OF bapibus20001_guid_dis,
         itab_partner          TYPE STANDARD TABLE OF bapibus20001_partner_ins,
         itab_input_fields     TYPE STANDARD TABLE OF bapibus20001_input_fields,
         itab_return           TYPE STANDARD TABLE OF bapiret2,
         lt_orderadm_h         type                   CRMT_ORDERADM_H_WRKT.
* DATA DECLARATION WORKAREAS
DATA:   wa_header             TYPE                   bapibus20001_header_ins,
         wa_partner            TYPE                   bapibus20001_partner_ins,
*         wa_item               TYPE                   bapibus20001_item,
*         WA_SCHEDLIN_I         TYPE                   BAPIBUS20001_SCHEDLIN,
         ls_inputfields        TYPE                   bapibus20001_input_fields,
         wa_objects_to_save    LIKE                   LINE OF itab_objects_to_save.
*         wa_pricing            TYPE                   bapibus20001_pricing,
*         wa_sales              TYPE                   bapibus20001_sales,
*         wa_shipping           TYPE                   bapibus20001_shipping,
*         wa_product_i          TYPE                   bapibus20001_product.
*         wa_schedlin_i    LIKE LINE OF lt_schedlin_i,
*         wa_schedlines   LIKE LINE OF lt_schedlines,
DATA:   wa_created_process    LIKE LINE OF itab_created_process,
         itab_saved_objects    TYPE STANDARD TABLE OF bapibus20001_object_id,
         wa_saved_objects      LIKE LINE OF itab_saved_objects,
         gc_x TYPE c.
         gc_x = 'x'.
* CREATION OF HEADER GUID
  CALL FUNCTION 'GUID_CREATE'
    IMPORTING
      ev_guid_16 = lv_header_guid16
      ev_guid_32 = lv_header_guid.
  CLEAR : wa_header.
data: temp type  CRMT_OBJECT_GUID_TAB.
*temp = (CRMT_OBJECT_GUID_TAB)lv_header_guid16.
* Passing the respective values from the Header table to internal table.
  wa_header-guid          =  lv_header_guid.
*  zprocess_type           = 'ZSC'.
  wa_header-process_type  =  zprocess_type.
*  wa_header-description = 'MY S2D ORDER'.
  APPEND wa_header TO itab_header.
*Appending the values to the ITAB_HEADER.
*      ls_inputfields-ref_guid =  LV_HEADER_GUID.
*      ls_inputfields-REF_KIND = 'A'.
*      ls_inputfields-objectname = 'ORDERADM_H'.
**     ls_inputfields-logical_key = ' '.
*      ls_inputfields-fieldname = 'PROCESS_TYPE'.
*      APPEND ls_inputfields TO ITAB_INPUT_FIELDS.
*      CLEAR ls_inputfields.
* HEADER PARTNER DETAILS
  wa_partner-ref_guid = lv_header_guid.
  wa_partner-ref_kind = 'A'.
  wa_partner-ref_partner_handle = '0001'.
  wa_partner-partner_fct = '00000001'.
  wa_partner-partner_no =  '1000007'.
  wa_partner-no_type = 'BP'.
  wa_partner-display_type  =  'BP'.
  APPEND wa_partner TO itab_partner.
* APPENDING THE ITAB_PARTNER TO INPUT_FIELDS
  ls_inputfields-ref_guid =  lv_header_guid.
  ls_inputfields-ref_kind = 'A'.
  ls_inputfields-objectname = 'PARTNER'.
  ls_inputfields-logical_key = '0001'.
  ls_inputfields-fieldname = 'REF_PARTNER_HANDLE'.
  APPEND ls_inputfields TO itab_input_fields.
  CLEAR ls_inputfields.
****PARTNER_FCT*********************************
  ls_inputfields-ref_guid =  lv_header_guid.
  ls_inputfields-ref_kind = 'A'.
  ls_inputfields-objectname = 'PARTNER'.
  ls_inputfields-logical_key = '0001'.
  ls_inputfields-fieldname = 'PARTNER_FCT'.
  APPEND ls_inputfields TO itab_input_fields.
  CLEAR ls_inputfields.
****PARTNER_NO**********************************
  ls_inputfields-ref_guid =  lv_header_guid.
  ls_inputfields-ref_kind = 'A'.
  ls_inputfields-objectname = 'PARTNER'.
  ls_inputfields-logical_key = '0001'.
  ls_inputfields-fieldname = 'PARTNER_NO'.
  APPEND ls_inputfields TO itab_input_fields.
  CLEAR ls_inputfields.
****NO_TYPE*************************************
  ls_inputfields-ref_guid =  lv_header_guid.
  ls_inputfields-ref_kind = 'A'.
  ls_inputfields-objectname = 'PARTNER'.
  ls_inputfields-logical_key = '0001'.
  ls_inputfields-fieldname = 'NO_TYPE'.
  APPEND ls_inputfields TO itab_input_fields.
  CLEAR ls_inputfields.
****DISPLAY_TYPE********************************
  ls_inputfields-ref_guid =  lv_header_guid.
  ls_inputfields-ref_kind = 'A'.
  ls_inputfields-objectname = 'PARTNER'.
  ls_inputfields-logical_key = '0001'.
  ls_inputfields-fieldname = 'DISPLAY_TYPE'.
  APPEND ls_inputfields TO itab_input_fields.
  CLEAR ls_inputfields.
*****KIND_OF_ENTRY*******************************
*      ls_inputfields-ref_guid =  LV_HEADER_GUID.
*      ls_inputfields-REF_KIND = 'A'.
*      ls_inputfields-objectname = 'PARTNER'.
*      ls_inputfields-logical_key = '0001'.
*      ls_inputfields-fieldname = 'KIND_OF_ENTRY'.
*      APPEND ls_inputfields TO ITAB_INPUT_FIELDS.
*      CLEAR ls_inputfields.
*Calling a standard BAPI to create SALES OREDER using the filled internal tables.
  CALL FUNCTION 'BAPI_BUSPROCESSND_CREATEMULTI'
    TABLES
          header          = itab_header
*          item            = itab_item
          return          = itab_return
          partner         = itab_partner
          input_fields    = itab_input_fields
          created_process = itab_created_process.
*         APPOINTMENT     = ITAB_APPOINTMENT
*         TEXT            = ITAB_TEXT
*          scheduleline    = lt_schedlin_i
*         pricing         = itab_pricing
*          sales           = itab_sales
*          shipping        = itab_shipping
*          product         = itab_product_i.
  READ TABLE itab_created_process INTO wa_created_process WITH KEY guid = lv_header_guid BINARY SEARCH.
  wa_objects_to_save-guid = wa_created_process-guid.
* Appending the Guid of the SALES ORDER to be saved to the internal table
  APPEND wa_objects_to_save TO itab_objects_to_save.
*   Calling standard BAPI to save the process.
  CALL FUNCTION 'BAPI_BUSPROCESSND_SAVE'
    EXPORTING
      update_task_local = space
      save_frame_log    = gc_x
    TABLES
      objects_to_save   = itab_objects_to_save
      saved_objects     = itab_saved_objects
      return            = itab_return.
* Calling the Standard BAPI to Commit the transcation.
  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
wa_header_guid16 = lv_header_guid16.
append wa_header_guid16 to lt_header_guid16.
* Calling CRM_ORDER_READ to get the object id and add line item to the order
CALL FUNCTION 'CRM_ORDER_READ'
    EXPORTING
     IT_HEADER_GUID                    =  lt_header_guid16
    IMPORTING
      ET_ORDERADM_H                     = lt_orderadm_h
  IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
data: object_id type CRMT_OBJECT_ID_DB,
      wa_orderadm_h like line of lt_orderadm_h.
read table lt_orderadm_h into wa_orderadm_h WITH KEY guid = lv_header_guid.
object_id = wa_orderadm_h-object_id.
Zobject_id = wa_orderadm_h-object_id.
WRITE: / 'Object ID: ',object_id.
ENDFUNCTION.

Similar Messages

  • ERROR:Atleast one entry could not be found in object buffer

    Hi All,
    need help urgernlty.
    When i try to change the binding for any task for an BO.
    get the below error
    "Atleast one entry could not be found in object buffer"
    please help me the issue as it is holding my development which is very critical.
    Thanks
    Tarmeem

    HI,
    I have checked all the methods and attributes
    they are implemented and relased.
    But still get that error
    Please guide me how to get rid of this issue
    Regards.
    Tarmeem

  • Error in Workflow: At least one entry could not be found in object buffer

    Hi All,
    I am getting an error " At least one entry could not be found in object buffer" every time i try to open the BO in the binding section. I have cleared the buffer, have deleted the binding and BO and added again multiple times. But still the error is coming. Can anyone suggest a solution for this.

    What system are you on?  ECC? CRM?
    Are you sure that the object instance exists?

  • Error log 'At least one entry could not be found in object buffer' in SLG1

    Hi Experts,
    We are getting error log 'At least one entry could not be found in object buffer' in SLG1 transaction.
    Unable to trace the source of error. Could you please help us identifying the same.
    Regards,
    Santosh Kacham

    Hello,
    the reason could be the use of order_save badi, mostly there is a wrong + faulty implementation which causes this error. Please check first if any own coding part is involved, when creating documents / tickets.
    Thanks + regarsd
    Rene

  • At least one entry could not be found in object buffer

    Hi All,
    I am frequently getting the message <b>'At least one entry could not be found in object buffer'</b> when I am saving a service process through CRMD_ORDER.
    Does anybody have faced the similar situation, if so pls help me on this.
    (Note: For your information while saving the Service requwst, it automatically triggers some actions)
    The above said error message is getting populated through the function module CRM_ORDER_H_READ_OB.
    Any inputs on this will be highly appreciated.

    Hi Madireddy,
    I assume you get error CRM_ORDER_MISC106. A possible reason might be
    that the transaction type requests a main partner of partner function
    type 0001.   Maybe the Partner Determination procedure specified
    for the transaction type in your system does not contain any
    partner function belonging to the type 0001.The problem can be solved by adding a partner function of type 0001 (Sold-to) in the partner determination procedure.
    Hopefully this helps. Please reward points!
    Regards, Gerhard

  • " At least one entry could not be found in object buffer" Error

    Hi there,
    When I launch my PCUI application, I'm getting the above error. Is there a way that I can clear the buffer? This is strange, I keep refreshing but it doesn't seem to enter my application?!
    Thanks in advance for any help.
    Cheers

    I just found a way to manage the sessions: -
    <b>6.2.1.2 State Manager and List Manager</b>
    The PCUI Framework features a component called the State Manager which lets applications store the state of their user interface between sessions. The State Manager provides an enhanced sense of continuity as the user switches from one application to another and then comes back to the previous application. It stores such attributes as the visual state of user interface elements, the list of objects displayed in the search result list, and so on. All list-related operations are accomplished by a component called the List Manager, which is also part of the PCUI Framework. Both the State
    Manager and the List Manager are completely transparent to applications and require no additional coding in the model access classes. They are called directly by the BSP controllers. The State Manager and the List Manager operate based on specific customizing settings that can be accessed through the CRMV_BSP_SESMGTC maintenance view. This maintenance view is based on the CRMC_BSP_SESMGTC customizing table CRMC_BSP_SESMGTC

  • In Quicktime Pro I try to create a mov file and I get an error "-43 a file could not be found".  Any ideas?

    In Quicktime Pro I try to create a mov file and I get an error "-43 a file could not be found".  Any ideas?

    I have a similar problem which i did not have before...and it exists only in some powerpoint files which i want to print as a pdf file...and i get the same message as above.
    the log says the bellow details...what's the problem and how can i resolve it? thanks.
    %%[ ProductName: Distiller ]%%
    %%[Page: 1]%%
    %%[Page: 2]%%
    Cambria not found, using Courier.
    %%[ Error: invalidfont; OffendingCommand: show ]%%
    Stack:
      %%[ Flushing: rest of job (to end-of-file) will be ignored ]%%

  • Error message - Original file could not be found

    When I open itunes, and try to click on a song, there is an "!" and I get the error message "original file could not be found. Would you like to locate it?"
    It does this for every song. I have to trace it down to "My Music\itunes\itunes\itunes music" and under that I have hundreds of files by artist.
    How can I listen to the songs so I don't have to click on each one to make them play?
    I hope you can help me.

    First, a correction from my previous post: At the beginning I meant to write The iPod wasn't designed to sync playlist-related information back to iTunes.
    And as for the polydorus link, let's try this .
    Sorry about that.
    Does that make sense? Do I need both folders?
    No, in the end you'll only need one but I'm still not sure which one.
    *I think the difference is there are no folders like in wndows, but the itunes library leads me directly to my library on the itunes website
    I don't understand what you mean by the itunes library leads me directly to my library on the itunes website.
    It sounds like there is only one iTunes database - iTunes Library.itl - file and that it's in your iTunes1 folder. Whether or not that is the case, what I'd like you to do is follow the instructions in this article in the Apple Knowledge Base for opening an alternate iTune Library file. Select the Choose Library option and use the navigtion window that appears to make your way to an .itl file.
    Select the .itl and iTunes will open with a Library that may - or may not - be different than what you last saw: somewhat different contents or exclamation marks may be present again.
    If it's not a library you're happy with, close iTunes, wait ten seconds or so and then repeat the procedure looking for another .itl file - each one contains references for a different iTunes library.
    When you find a library you're happy with, i.e. all the contents are listed and no exclamation marks, make a note of the location of that .itl. It's the one you're going to want to work with.
    Using that database file, you can go back to iTunes, right-click various songs > Get Info > Summary tab and look to the bottom of that window to find out where that Library is being directed for those files. Make a note of that location.
    When we know those two things, we should be able to proceed from there with deleting things.
    In the future, when I buy new songs from apple, where will they automatically get stored?
    In the location that's been selected in iTunes Edit menu > Preferences > Advanced tab for the iTunes Music folder.
    What will happen when I sync my ipod on the computer?
    That brings us back to the beginning of this post, by default the synch goes from iTunes to your iPod. So you shouldn't synch your iPod unless there's a satisfactory Library being displayed in iTunes.

  • Error: The specified procedure could not be found

    Apparently the password expired on my Windows 7 BETA installation. Upon restart the system notifies me and asks for a new password. After confirming the password I get the error:
    "The specified procedure could not be found"
    I cannot log in at this point. The old password won't let me in and I can't change it. The administrator account I found is disabled by default.
    Is there any way to log in?

    Okay, here is your dilemma.
    You cannot login to your only account and the local administrator account is in its default disabled mode.
    There is a solution, albeit totally unsupported.  Go to http://www.sysresccd.org/Main_Page and download the latest SystemRescueCd.  Burn a CD from the ISO.  When you boot with the SystemRescue CD, you will type ntpass and hit <enter>.  From there, make sure you read the screens.  You will have make selections depending on how you loaded Windows 7 (clean vs. upgrade vs. dual boot, etc).  Using this disk, you CAN enable the local administrator’s account and login in.
    I just did the procedure using Windows 7, build 7000 with SystemRescueCd 1.1.6.
    Good luck.

  • Deskjet 2542 all in one error: 'the specified module could not be found' when installing to USB

    Installation proceeds OK until the USB cable is connected, when the error message is displayed and installation ceases.
    I have successfully istalled and run the printer on another XP PC of a similar age - ie old.
    I have upgraded the XP OS to SP3 with numerous updates;
    Checked that the USB ports read Data sticks OK;
    run a/v and malware programs, including Microsoft Safety Scanner;
    checked that USB drivers are up to date;
    uninstalled driver software and re-installed with software downloaded from HP;
    carried out the procedures detailed in HP Support Forum 4022116
    Error message the same.  
    This is for my elderly neighbour - help please!
    This question was solved.
    View Solution.

    Hi @bodger50,
    Welcome to the HP Forums! 
    I understand that your HP Deskjet 2542 gives you the error: 'the specified module could not be found' when installing to USB, on Windows XP.
    I would recommend going through the steps in this post, Re: Install Error "The system cannot find the file specified" (hpzprl40.exe). When you get to the printer install wizard section, just use the full feature software and drivers found at this website, HP Deskjet 2540 All-in-One Printer series Full Feature Software and Drivers. As the printer install wizard is only for Windows 7 and up.
    Hope this is helpful, and thank you for posting!
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • I get an error message saying itunes could not sync mail accounts. because the mail accounts are in use by the iPhone.  It asks that i close the mail accounts settings on the iPhone and sync again.  Is it requesting that i delete my email accounts?

    i get an error message saying itunes could not sync mail accounts. because the mail accounts are in use by the iPhone.  It asks that i close the mail accounts settings on the iPhone and sync again.  Is it requesting that i delete my email accounts?

    just as i've posted the same issue here   hope that someone could give us a hand. I have just swtched from nokia to iPhone for my company cell and i have more than 1000 contacts... it would be murder to create those contacts one by one )))))

  • After downloading software for 123Cheese Photobook (Australia), when I try to open the program, i get: "Initialization error... Could not create the application support directory 'Macintosh HD:Library:Application Support:123 Cheese:'. Please help.

    After downloading software for 123Cheese Photobook (Australia), when I try to open the program, i get: "Initialization error... Could not create the application support directory 'Macintosh HD:Library:Application Support:123 Cheese:'. Please help. The MacBook Pro is one day old.
    Thanks

    Hi, Im am also having this same problem,same message, trying to make a photobook with a non-refundable voucher. my Macbook pro is like 2 months old and im up to date with all of my updates.
    What ended up happening with this problem for you because, Ive emailed cheese123 3 times and they haven't replied???
    Can you help me? Thanx

  • Im trying to setup my phone and I Keep getting this error.  "Your iPhone could not be activated because the activation server cannot be reached. Try Connecting your iPhone to iTunes to activate it, or try again later.

    Im trying to setup my phone and I Keep getting this error.
    "Your  iPhone could not be activated because the activation server cannot be  reached. Try Connecting your iPhone to iTunes to activate it, or try  again later.

    Are you running one of the beta versions of iOS 7?
    Has the iPhone been jailbroken or modified to work with other
    than the original wireless provider?

  • I am installing Windows 7 on my macbook pro OSX Mountain Lion and I get an error message:" Your disk could not be partitioned." What does this mean?

    I am installing Windows 7 and I get an error message: "Your disk could not be partitioned. An error ocurred while partitioning the disk". I was using a Windows & Home Premium OEM Software that I purchased from Microsoft. I was given to Windows 100GB to use for Quickbooks pro, Payroll and Publisher. I have the Macbook Pro model No: MD102LL/A. Does anyone knows what happenned or can advice me in what to do? Please help!!!

    amarilysfl wrote:
    "Your disk could not be partitioned. An error occurred while partitioning the disk".
    https://www.apple.com/support/bootcamp/
    If you were using Apple's BootCamp and received this message, quit it and open Disk Uility in your Applicaitons/Utilities folder.
    Select the Macintosh HD partition on the left and select Erase and Erase Free Space > Zero option and let it complete (important) this will check the spare space for bad sectors that can cause issues formatting partitions.
    Once it's completed, try creating a partiton again in BootCamp.
    If that doesn't work, then hold command option r keys down while connected to a fast internet connection, Internet Recovery should load (spinning globe) and then in that Disk Utility, select your entire internal drive and click > First Aid > Repair Disk and Permissions.
    reboot and attempt Bootcamp again.
    If you still get a error, it might be that you have OS X data on the bottom area where BootCamp partition needs to go. This would occur if you had the drive or computer for a long time or wrote a large amount of files to the drive and nearly filling it up and then reduced some, but it left traces in the area BootCamp needs to go.
    To fix this
    BootCamp: "This disc can not be partitioned/impossible to move files."
    How to safely defrag a Mac's hard drive

  • I get this error upon launching PS5: "could not open a scratch file because the file is locked .."

    I get this error upon launching PS5: "could not open a scratch file because the file is locked or ou do not have the necessary access privileges. Use the 'properties' command in the Windows Explorer to unlock the file". The applicaiton will not launch.
    Supporting information - I recently changed the scratch disk from C drive to D drive (the back up/restore drive). The application wont launch so I cant change it back to the C drive.
    Questions:
    - How to I fix this .. from windows explorer how do I find "the file" that the error message refers to?
    - Other ways to fix this?
    Thanks Steve

    Hi there! Because the forum you originally posted in is for beginners trying to learn the basics of Photoshop, I moved your question to the Photoshop General Discussion forum, where you'll get more specialized help.
    To help others help you, please read through this article and provide any additional relevant details.

Maybe you are looking for

  • What are the steps  involved in writing a program?

    hi experts ,    I am writing reports? i want to know that what are the steps required to write a program? and also Explain different techniques to analysize a program? please send example programs with analysis? I definately award a good number of po

  • Creating a Web Dynpro?

    I am new to Web Dynpro. I am trying to create a simple Web dynpro following an SAP tutorial. The directions are as follows: step 1)In this step you first create a new component. To do this, call the Object Navigator and choose Web-Dynpro-Comp./Intf i

  • Issue in Purchase Requisition Release Strategy

    Hi guru, I've got an issue in the release strategy; I have a PR with 3 lines. After Relase I've deleted the last line and system doesn't allow me to release it by ME55 transaction; I'm able to do it only by ME54N. Thank you for your help. M.

  • Any Report that updates the GR document number of R/3 to SRM

    Hi  Experts Can any one tell me is there any reoprt that updated the GR numbers of R/3 to SRM Because I have done the confirmations in SRM ( 4.0) it created a confirmation number but  the shoppingc art history is not updated with the GR document numb

  • Update error when installing application from Ovi

    my phone is nokia e72 i instaling app for ovi but sho update errer Moderator's notes: The post was edited. A more appropriate subject is provided.