BBP_PD_PO_GETDETAIL returns empty item[], condition[] first time

Hi Expert,
I have implimented BADI BBP_DRIVER_DETERMINE and assign custom FM zB46B_DPO_TRANSFER to create PO in backend system.
When I create PO and order it first time... FM zB46B_DPO_TRANSFER is getting called where I want to read PO item condition using FM BBP_PD_PO_GETDETAIL and pass to fm which creates PO in backend.
FM BBP_PD_PO_GETDETAIL is returning blank table PRIDOC[] (pricing data).
I pass guid of the PO to the FM to get the details.
for the saved PO it return every details perfectly.
Do I need to read from buffer or what... how ???
Thanks,
Rajesh.

hi ,
  Try to read from buffer.
  The below code will work in change Badi so definitely it will work in your badi also.
     DATA: lo_pd_model TYPE REF TO /sapsrm/if_pdo_model_access.
      lo_pd_model = /sapsrm/cl_pdo_model_factory=>get_instance( ).
  lo_pd_model->get_detail(
    EXPORTING
      iv_guid          = is_header-guid
      iv_with_itemdata = abap_TRUE
    IMPORTING
      es_header        = li_header
      ET_PRIDOC        = LT_PRIDOC ).
if the above method is not working then get the buffer instance for /SAPSRM/CL_PDO_BO_PO_ADV.
data   lo_pdo_po              TYPE REF TO /sapsrm/if_pdo_bo_po_adv.
  CALL METHOD /sapsrm/cl_pdo_factory_po_adv=>get_buffered_instance
    EXPORTING
      iv_header_guid = ls_header-guid
    RECEIVING
      ro_instance    = lo_pdo_po.
  check the implementation class  /SAPSRM/CL_PDO_BO_PO_ADV which method is suitable to get the condition records.
   the below code is sample method how to call ....
TRY.
      CALL METHOD lo_pdo_po->/sapsrm/if_pdo_do_schedules~get_schedule_line
        EXPORTING
          iv_item_guid         = ls_item-guid
        IMPORTING
          et_sdln              = lt_sdln
          eo_meta_data_handler = lo_meta_data_handler
        CHANGING
          co_message_handler   = lo_message_handler.
    CATCH /sapsrm/cx_pdo_abort .
    CATCH /sapsrm/cx_pdo_no_authorizatio .
  ENDTRY.
regards,
Devi

Similar Messages

  • SPList.GetItems Method not returning any items at first instance

    Hello,
    I am trying to get one specific item from a Info Path library based on the Name field from code behind of Info-Path form at Form Loading event. Now when I try to run the query for the first time, it does not return any item however if I wait for let's say
    5 seconds(this is not fixed), take my debugger back to that line to execute the query again, it returns the item this item.
    Code and everything else looks fine as the same thing when tried with console app always return items. I understand the console app run's as Administrator.
    Considering it may be inconsistent issue due to permissions, I also changed my permission as Site Collection Administrator no change in behavior. The App Pool account is also having full permissions on list.
    I have seen below blog but without any in-depth detail of explain this behavior.
    http://thingsthatshouldbeeasy.blogspot.com/2009/09/getitems-list-query-returns-no-items.html#.VSLfKvnF_To
    Any thoughts or suggestions to workaround this issue?
    Since I know what item needs to be fetched, I just don't want to get all items and then loop through my items to get one specific item.
    Thanks, Rakesh
    Please Mark As Answer if my post solves your problem or Vote As Helpful if a post has been helpful for you. ***Posting is provided "AS IS" with no warranties, and confers no rights.

    Hi,
    Will the issue persist if query other list for a specific item?
    I suggest you show the complete code in use for a further research, it would make others easier to find out the root cause for you.
    Thanks 
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • On CMC Home Authentication page returns empty

    On CMC Home > Authentication page returns empty and after some time returns the following error:
    The maximum amount of time for a script to execute was exceeded. You can change this limit by specifying a new value for the property Server.ScriptTimeout.
    line: 1373

    Thanks Sebastian. I did not find anything related to Server.ScriptTimeout.
    Just wanted to add that the 'Windows AD' tab is getting this error. Additionally, when I go to Home > All Users and select on any User, I get the following error:
      Retrieve Error
    There was an error while retrieving data from the server: Active Directory Authentication failed to get the Active Directory groups for the account with ID "....". Please make sure this account is valid and belongs to an accessible domain.

  • HT201320 hi there, this is my first time buying an apple item, idon't have a credit card, now can i still use this ipad or shall i return it back, thnx

    hi there, this is my first time buying an apple item, idon't have a credit card, now can i still use this ipad or shall i return it back, thnx

    Create Apple ID without credit card
    http://support.apple.com/kb/ht2534

  • I'm using a macbook pro, running snow leopard. Yesterday I got around to emptying my trash for the first time in quite awhile and was surprised by how much there seemed to be in there. Immediately after a question mark symbols appeared on all my hard disk

    I'm using a macbook pro, running snow leopard. Yesterday I got around to emptying my trash for the first time in quite awhile and was surprised by how much there seemed to be in there. Immediately after a question mark symbol appeared on all my hard disk folders. If I click on these question marks I get a message saying ' the item can't be found'.

    mpagan47 wrote: a question mark symbol appeared on all my hard disk folders.
    Not sure where these hard disk folders are located that you are referring to?  Finder, Finder tool bar, Finder side bar, Desktop, Dock? 
    More then likely they are  an alias that not longer point to the orginals,  thus the question mark.
    I would reboot.  Delete icons if an alias and just recreate by dragging from the source. Try right click (control) click to remove.

  • How to check an item of a selectManyListBox the first time it is rendered?

    Hello,
    I want to check automatically check an item corresponding to a specific value when the selectManyListBox is rendered on the page for the first time.
    To do this I think I will have to bind the component to some viewScopeBean and iterate over all the item values, and check it when the condition is true.
    How can I do this, is there any example?

    Can you think of adding a transient boolean attribute to your VO that will store the value of your checkboxes based on whatever condition you want? If yes this demo may be of some help.
    http://oracleadfhowto.blogspot.in/2012/02/many-to-many-association-using-multi.html

  • How do I accept the Terms and Conditions when trying to set up an Apple ID for the first time ( using my iphone)?

    I am trying to create an Apple ID by using the Itunes icon on my iphone 5s for the first time. It opens up a screen with the 54 pages of Terms and Conditions and it does not allow me to even accept the Terms and Conditions... no Accept option or place to click!
    The only option is to Send the terms and conditions via email... which also does not work...it keeps asking me to "try again"... Has someone else had this problem?

    Hello, Wyseup. 
    Thank you for visiting Apple Support Communities.
    Most likely this email address has been attempted to be setup as an Apple ID at some point.  You can reset your Apple ID password via the steps in the first article below.  If you do not have access to the email account, need assistance or are not receiving the password reset link, see the second article.
    Apple ID: If you forget your password
    http://support.apple.com/kb/ht5787
    Apple ID: Contacting Apple for help with Apple ID account security
    http://support.apple.com/kb/HT5699
    Cheers,
    Jason H.

  • Please help me. I've just lost my iphone so I related to my backup contacts on icloud to get my contacts back. But my contacts only show at the first time and then they dissappeared, my contacts was empty. How can I see my contacts?

    Please help me. I've just lost my iphone so I related to my backup contacts on icloud to get my contacts back. But my contacts only show at the first time and then they dissappeared, my contacts was empty. How can I see my contacts?

    If they aren't on icloud.com they are no longer in iCloud.  If you don't have another backup, I'm afraid they're gone.

  • Hi can anyone please help me! My I phone is in recovery mode i lost it and it was returned to me fully working. I ran an update and it shut down. I have loads of pics and vids of my little girls including my youngest counting to ten for the first time.

    Hi can anyone please help. My I Phone is in recovery mode. I have loads of pics and vids including my little girl counting to ten for the first time.
    Can I recover these files or have I lost them? I lost the phone last week and it was returned working but with an update to install I did this and it shut down.
    If anyone can please help I would be eternally in your debt I have loads of sentimental pctures in here but cant get to them.

    Sorry, but if it's in recovery mode, anything on the phone is already gone. If you had PhotoStream turned on, hopefully the photos will still be out there.
    You have no choice at this point but to restore from your last backup.

  • My iPad Mini was locked up today (for the first time) on a boot screen, with a Debugger Message: Panic. Should I bother trying to fix, or return to store?

    My iPad Mini locked up for the first time today. A boot screen, with among many other things, a Debugger Message: Panic. Is there a fix for this even though I can't seem to even get it to reboot past this error, or am I wasting my time and need to return it?

    if it is still within the return period, return it.  Why try and fix a new iPad.

  • First time going to a site where I do not have access and clicking the back button I'm returned to the root site instead of the site I started from

    Greetings,
    I have SharePoint 2013 enterprise using ADFS for authentication.  I have an issue where the first time going to a site where you do not have access and clicking the back button you're returned to the root site instead of the site you
    started from.
    ie:
    1) at site http://www.sharepoint.com/sites/finance/home.aspx
    2) browse to
    http://www.sharepoint.com/sites/finance/private/home.aspx
    3) receive a message: you do not have access to this site  ((oops went to the wrong location - I'll hit the back button))
    4) click the browser back button
    5) get returned to http://www.sharepoint.com/pages/home.aspx
    This only happens the first time browsing to a site that I do not have rights to, after this I can browse to the same site and hit the browser back  button and return to the correct site, or any other site that I do not have access to.
    Any ideas as to why this happens?  Ideas of where to start looking?
    Thanks

    Hi Robert,
    From your description, when you receive access denied message and hit back button in browser, it redirects you to the root site but not previous site. However, this just happens at the first time.
    You may try to use some tool or check log which can tell us how does it handle the request when you hit the button. And compare the issue time and non-issue time.
    I'd suggest you use Netmon tool:
    http://blogs.msdn.com/b/carloshm/archive/2012/11/08/sharepoint-2013-network-monitor-parsers.aspx
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • VPRS has condition value 0 in Returns Order item

    Hi Experts,
    Our customer created a returns order refer to F2 invoice, but in returns order its VPRS has condition value 0. It caused accouting document error in Credit for Returns. There was no cost related accouting posted.
    Our Credit for Returns is order-ralated.
    But when we update the pricing in returns order item, VPRS has the right value.
    Any advice will be appreciated.
    Thank you in advance.
    Richard

    In addition to the suggestions already given, you may also have a look at the following notes which may help you.
    1)  Note 27062 - VPRS: deliv-related billing document for returns
    2)  Note 615432 - No cost with non-valuated goods receipts
    3)  Note 672681 - VPRS calculation in RK document
    thanks
    G. Lakshmipathi

  • CAML Query returning all items with date condition

    HI,
    I have a problem doing a query with CAML over the elements of a calendar in SharePoint 2013
    I just want to retrieve all items, which have been modified on a particular date. But below query returns all items from the Calendar.
    Any suggestion how to get specific items from the calendar. The same issue exists for start date  and end date.
      var oWebsite = clientContext.get_web();
        this.collList = oWebsite.get_lists();
        var camlQuery1 = new SP.CamlQuery();
       camlQuery1.set_viewXml(
       '<query><Where>'+
          '<Eq>'+
             '<FieldRef Name=\'Modified\'  IncludeTimeValue=\'TRUE\'/>' +
             '<Value Type=\'DateTime\'>2014-02-24T12:00:00Z</Value>'+
          '</Eq>'+
       '</Where></query>');
        this.collListItem1 = oList.getItems(camlQuery1);
        clientContext.load(collListItem1);

    Firstly try to make this change in your query and see if that helps
    camlQuery1.set_viewXml(
    '<View><Query><Where>'+
    '<Eq>'+
    '<FieldRef Name=\'Modified\' IncludeTimeValue=\'TRUE\'/>' +
    '<Value Type=\'DateTime\'>2014-02-24T12:00:00Z</Value>'+
    '</Eq>'+
    '</Where></Query></View>');
    Geetanjali Arora | My blogs |

  • ...here goes...i plugged my iphone into my computer for the first time to charge it, and walked away....when i returned it showed i had to open an account, ... my phone was charged, but the problem is it deleted all my pics and my contacts.....  is there

    i plugged my iphone into my computer for the first time to charge it and was in a hurry and walked away, when i returned the add apple i tunes account information screen was up.....
    my problem is, all my pictures got deleted from my phone, all my contacts got deleted also......weird thing is it put pictures on my phone from another phone and also txt msg from another phone......  has this ever happened to anyone else? if so,....do you know how, or where the pictures got moved to? and if they were deleted, is there a way to pull deleted pictures form a phones memory??   thank you any body that can give me any assistance....i really need it...

    It can't do that by itself. You had to click through several prompts telling it to restore it from a backup of an old phone for that to happen.
    If the phone was not backed up to iCloud before this happened, or to another computer, then the data is gone. There is no way to recover it.

  • ADF_FACES-60098 when clicking navigation item in UIShell for the first time

    Hi all,
    I have created a page based on dynamic tabs, in the navigation pane when I click any item for the first time I get the error below, but the second click is working correctly, I am trying to lunch one of fragments on page load and because of this error it doesn't work,
    I am using jdeveloper 11.1.2.2, and my navigation launcher bean is in request scope and I have tested the default launcher in both request and backing scope.
    I also implemented beforePhase listener and loaded it as : <af:clientListener method="initialize" type="load" />.
    error stack in log:
    <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase INVOKE_APPLICATION 5
    java.lang.NullPointerException: UIComponent is null
    at org.apache.myfaces.trinidad.component.UIXComponent.addPartialTarget(UIXComponent.java:751)
    at org.apache.myfaces.trinidadinternal.context.RequestContextImpl.addPartialTarget(RequestContextImpl.java:539)
    at oracle.adfinternal.view.faces.context.AdfFacesContextImpl.addPartialTarget(AdfFacesContextImpl.java:661)
    at oracle.ui.pattern.dynamicShell.TabContext._refreshTabContent(TabContext.java:504)
    at oracle.ui.pattern.dynamicShell.TabContext.setSelectedTabIndex(TabContext.java:339)
    at oracle.ui.pattern.dynamicShell.TabContext.addTab(TabContext.java:210)
    at oracle.ui.pattern.dynamicShell.TabContext.setMainContent(TabContext.java:114)
    at oracle.ui.pattern.dynamicShell.TabContext.setMainContent(TabContext.java:88)
    at com.enlogix.view.backing.MainTabShellLauncherBean._launchActivity(MainTabShellLauncherBean.java:181)
    at com.enlogix.view.backing.MainTabShellLauncherBean.launchDefaultActivity(MainTabShellLauncherBean.java:62)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.el.parser.AstValue.invoke(Unknown Source)
    at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
    at oracle.adf.view.rich.event.ClientListenerSet.invokeCustomEventListeners(ClientListenerSet.java:174)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$DeliverClientEvent.invokeContextCallback(LifecycleImpl.java:1881)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1735)
    at org.apache.myfaces.trinidad.component.UIXDocument.invokeOnComponent(UIXDocument.java:106)
    at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:1321)
    at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:678)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeCustomEvents(LifecycleImpl.java:550)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:436)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:207)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.share.http.ServletADFFilter.doFilter(ServletADFFilter.java:65)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
    at com.enlogix.view.security.ENGLPBindingFilter.doFilter(ENGLPBindingFilter.java:381)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:125)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Does anybody have workaround about it?
    thank you in advance
    Alireza

    Not sure why you wanted to implement beforePhase listener, but did you try commenting out your custom code and check? All the refreshTabContent does is to refresh the components that comes along with the template. It works fine for me. So, as Timo said, check your custom code or try commenting the code and narrow down the issue.
    private void _refreshTabContent()
    AdfFacesContext.getCurrentInstance().addPartialTarget(getTabsNavigationPane());
    AdfFacesContext.getCurrentInstance().addPartialTarget(getContentArea());
    AdfFacesContext.getCurrentInstance().addPartialTarget(getToolbarArea());
    AdfFacesContext.getCurrentInstance().addPartialTarget(getInnerToolbarArea());
    }

Maybe you are looking for

  • Re-install Adobe Web Premium 5.5 -

    I had to remimage my machine and need to re-install 5.5 I have download the package from my adobe account and have and SN but the installer won't take the qualifying product SN from the previous version 5. It is correct, but not accepted.

  • Publish completed, but no new folio in viewer

    I've published a new folio to our branded viewer, but it still hasnt shown up in the viewer. Usually, I can count on the folio showing up within minutes after the 'completed' message. I know there were server issues yesterday, so maybe there are stil

  • Ck11n:how to calculate the Quantity?

    Dear all. I use the tcode ck11n to create material cost estimate with quality structure. And input the parameter like below: Material = 600000-000000-0012 plant = 1000 Costing Variant = PPC1 Costing Lot Size = 1 After press return,the sap show the It

  • Vo.executeQuery() not working

    Hi All, I am new to the world of OAF.I need to customize an OAF page(11i). I am trying to populate data from FND table using VO. My VO query: <SQLQuery><![CDATA[ select lookup_code as  skuid1,meaning as descr, null as count_1,null as serialno , tag a

  • Use of proportion units or product units was deactivated - CT04

    While creating characteristic for PR & PO release strategy, I am able to save it, But while retrieving i am getting the meesage that "CHARACTERISTICS" not saved and getting message "Use of proportion units or product units was deactivatedu201D while