Issue in BAPI- BAPI_PBSRVAPS_GETDETAIL2 with custom default macro in SNP

Hi Experts,
System Details:
SCM 5.0
SP Pack: 13
SNP PA1- No Time series Key figures, only order series
SNP PA3: With time series KF, which also included dynamic safety stock time series KFs
We have created custom macro ZGSCM_SAFETY_STOCK copy
of /SAPAPO/SAFETY_CALC where we used BAPI- BAPI_PBSRVAPS_GETDETAIL2 to
get the dynamic safety stock values from PA3(Planning area3-Planning book3) to PA1(Planning area1-Planning book1). We are getting two issues while doing this as below:
1) Issue we are facing is that when it goes to PA3, it actually save
PA3 planning book for that user as a active planning book and return
back with PA3-planning book. So to avoid this, we call same BAPI again
where we are just calling PA1 planning book without any selection and It works fine and returns
the safety stock values correctly. But now when we load multiple items and
doing the drill down then we are getting an error message saying:
Error reading planning objects (No SNP master data table found)
Error reading data - Planning book cannot be processed further
Do we have any other way to set the active session for user after BAPI call with in the program?
2) Also it always call default macros when BAPI calls which we don't
want, Is there any way we can avoid calling default macros while calling BAPI-BAPI_PBSRVAPS_GETDETAIL2
Regards,
Hitesh

Hi,
The first issue which you faced is becasue of the BAPI which tries to access all the Key Figurs of the data view from which you need to copy data. These KF might be used in different Macros & those macro's might be running for different periodicities.
You can create separate data view the the same planning book & assign the KF to the newly created data view. Most probably, this will solve your problem & you wont get any error message.
Incase the error message pops up, you need to create diffent planning book or planning area (based on your previous PA) & then try. This will definately solve problem which u had faced.
Thanks!
Jay

Similar Messages

  • Open / initialise ME21n with customized default Document Overview

    Hi all,
    I created a customer field in the Purchase Requisitions. Now I would like to create a program to start ME21n with the Document Overview on and a customized SAP Query from the infoset '/SAPQUERY/MEBANF' to implement in enhancement 'MEQUERY1'. In this Query I would like to find the Purchase Requisitions with a value which corresponds with the value of the customer field.
    My obstacles are the following:
    1) How can I pass a value through to the customized SAP Query
    2) How can I customize the default setting of the Document Overview
    Please don't post a list of other (i think irrelevant) User-exits. I'm aware of the fact that I shouldn't BDC ME21n.
    Thank you in advance.
    Regards,
    Sander

    Hi Ram,
    Can you please share your thoughts on the document overview functionality in the purchase order screen, becuase I have a requirement to see the MPN number in that Doc overview for the selected Purchase requisitions. I have changed the layout and added the field MPN number but somehow this field is showing completely blank.
    Regards
    Shane

  • Dashboar with Custom Component Export to PPT

    Hello All
    any known issues exporting Xcelsius dashboard with custom component to PPT or PDF?
    i have a dashboard with a tree custom component , it works really fine and good into the review
    but when i exported to PDF or PPT it doesnt work at all
    when i go back and remove the custom component and i export, it works fine in PPT
    any clue?
    thanks
    Amr

    well, now its working fine
    dunn know whats the reason
    but i wanted to know if there is any limitation
    just removed the component and added it back
    thanks

  • I was having an issue opening a spreadsheet with the file extension .xlsm. This appears as an attachment from a client which means macros were utilized when creating the spreadsheet. The problem lies in. The iPads ability to open the attachment. I downloa

    I was having an issue opening a spreadsheet with the file extension .xlsm. This appears as an attachment from a client which means macros were utilized when creating the spreadsheet. The problem lies in. The iPads ability to open the attachment. I downloaded the numbers app thinking this would be a default software to open any and all spreadsheets.
    Please Help!
    Ipad 2- iOS5

    You may need a version without macros on it. Unfortunately, pretty much all apps are skinned down versions of their original program, often with less functionality. For example in a word document I can italicize,bold and underline, but I only have a handful of fonts to play with and I don't think I can insert tables or images.
    It is very possible that the app simply cannot run macros, which means that document may never work on an iPad.

  • BAPI For Create Goods Issue for Sales order with picked quantity

    Hi friends,
            Is there any BAPI available to create Goods issue For sales order with picked quantity...............?
    we hv used BAPI_OUTB_DELIVERY_CREATE_SLS
    with sales order .......its creating delivery order but not doing goods issue with piked quantity........

    pls,reply its argent

  • Inconsistent results in default macros with Product exclusion/ Inclusion.

    Hi All,
    I have a default macro - Macro I,  that is required to be executed for a set of products, so have given a generic condition as
    ACT_PRODUCT( 9AMATNR) CP 12XX*, ( reqd to run for all the products of 12 XX series.) totally we have around 10 such products.
    We have another default macro Macro II, , that should not run for all the products except this 12 XX* so gave a conditon as
    ACT_PRODUCT( 9AMATNR) NP 12XX*,
    Now when we load a selection profile, with all the 12XX* products only, results of Macro II overwrite the Macor I. Though I have a sequence in default event as MacroII and then Macro I.  But when we select any one product only, the Macro I logic works and not the Macro II. 
    Query is why the Macro II logic overwrites the results of Macro I, though we have exclusion and Inclusion defined respectively. 
    I had tried using ACT_IOBJNM_VALUE, no difference in results. 
    Thanks
    Aswath

    Hi,
    In the first logic, you are copying the data from the source to the destination.
    In the second logic, in the when statements, your category is pointing to source only. I dont see the destination categories taken into account. Thats the reason. you need to consider the destination categories also while manipulating the data.
    One more thing is that you can take out the GO statement before the commit statement.
    Hope this helps.

  • LMS 3.2 : issue with custom portal : high CPU

    Hi,
    Customer has a big issue with LMS.
    When he connects to the standard portal, it works fine.
    pdshow seems ok.
    But when he wants to work with custom portal (portal.jpg), it makes a long time to display information and when he wants select something it hangs.
    CPU is very high. He must stoped/restart LMS to have a normal CPU.
    I asked him to :
    - restart LMS, he made at 14h30
    - CPU was ok and he worked with standard portal withou problems but when he tried to put debug for portal CPU increase at 15h30:
    Common Services -> server -> Admin ->  CS Log Configurations: debug on CiscoWorks Portal, CiscoWorks portlets and CS Home
    Process which takes a lot of CPU is tomcat, you will find pdshow.txt, stdout.log and stderr.log.
    He tries to go to the custom portal but it hangs, you will find logs from debug : CSHomePage.log and CSPortal.log
    he sent me AAD.log because there was " high severity alert".
    Many thanks for your help,
    Elisabeth

    The most obvious problem is that DfmBroker is down.  Check to make sure tcp/9002 is not in user, then try a server reboot.  See if the AAD problems go away (and perhaps the CPU problem will as well).  If not, post the NMSROOT/objects/local/logs/broker.log.

  • Issues with Custom Chart

    Hi,
    I am facing some issues with custom charts.
    1. X Axis value is getting cut off. Given date as x axis parameter and last 2 digits of date is getting cut off. (format like 19-Apr-2011T00:00:00). And this value cut of happening only for custom chart.
    2. On right click of the custom chart, when i am selecting Preview, it opens a new pop up window with and error as Error: "Application error occurred during the request processing.". No preview is being generated.
    3. In Server Scaling, i checked Use global auto scaling, and many times it is showing improper y axis or mutiple y axis values with the same value or it is displaying improper global range
    kindly help
    Regards
    Muzammil

    Muzammil,
    Without seeing your data and your chart configuration, it is difficult to understand exactly the issues you are encountering.  I have the same JRE and the same version and build of MII as you.  I have no difficulty with the scaling or with Global Range, but problems displaying the date in my tests.
    I would suggest the you enter a ticket into the SAP Support System, and enclose a  copy of your data (run the query, use Browser with Content Type = text/xml) and export a copy of you display template.
    Lastly, what type of query are you using - sql, tag?
    Kind Regards,
    Diana Hoppe

  • Issues with Custom Settings

    Is anyone else having issues with custom settings on 10.8.2?
    I am trying to configure basic office 2011 settings based on the keys located at http://afp548.com/mediawiki/index.php/Office_2011_Settings using a device group.
    However, when I log into an authenticated user's machine and load pref setter I can see that the customizations are not found on the newly managed machine.  I know the push updates are working, but for custom settings I seem to be getting nothing.
    My questions:
    - Am I just flat our doing it wrong? (meaing, should the plist files be copied over)
    - Are there common issues to look out for?
    - Can anyone share basic custom settings they have that work?
    Thanks!

    Thats a bad idea. Office dos not react well to having it's prefences copied from one machine.
    Check out: http://www.officeformachelp.com/office/administration/mcx/
    It's a good guide for MS Office prefs.

  • Will default macros work  with Time series keyfigures???

    Hi,
    I wanted to update time series keyfigures using Default macros. For example, i wanted to populate safety stock in a time series keyfigure while i'm running the heuristics in background.
    Whole idea of doing it is to do reporting i.e. we couldnot extract safety stock because its an auxialiary key figure.
    If someone has done this on a better way, can you please share with me?
    And also i wanted to know whether default macros work with time series key figures.
    Any help is rewarded with pionts.
    Thanks & Regards,
    Jagadeesh.

    Hi,
    I think i'm not clear on what i have posted so let make it very clear abt my scenario.
    We wanted to do reporting on SNP planning area, where we take report on
    Safety stock, Stock on hand which are auxialiry key figures currently.
    As we cannot extract data on auxialiry key figures, we wanted to track
    those information on Time series key figures.For that, we have modified
    the macros and copied the auxialiry key figures into time series key
    figures. All the macros are Default macros, all the prerquisites are been set and all other macros which are supposed to run before this macro, also been set.
    We are not running the bcakground jobs for this macros ( exclusively), instead we are running the heuristics in background and we assume that all the default macros will get executed once the heuristics is done i.e values in auxialiry key figures are been copied to time series key figures.
    Now we found out that Times series key figures are not getting updated
    using Default macros.
    Nowi think i make you all clear. Somehow my questions are still not answered.
    1. Without running background jobs seperately for macros, will time series key figures get updated?
    Thanks & Regards,
    Jagadeesh.

  • [svn:fx-trunk] 9703: Addressing NativeDragManager issue where we would inadvertently replace the users drag drag feedback with our default .

    Revision: 9703
    Author:   [email protected]
    Date:     2009-08-27 12:51:06 -0700 (Thu, 27 Aug 2009)
    Log Message:
    Addressing NativeDragManager issue where we would inadvertently replace the users drag drag feedback with our default.
    QE notes: None
    Doc notes:  None     
    Bugs: SDK-20458
    Reviewer: Jason
    Tests run: Checkin
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-20458
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as

  • Issue with custom toolbar button in alv and leave screen

    Hi,
    in one subscreen (say screen 100)i have an alv with custom ADD  toolbar button..so in the user_command event handler ,i call a antoher screen(dialogue)..like if i click on ADD button ,it should display dialogue screen(say 200) and after entering input in dialogue screen i click on CONINUE to retrun to screen 100..problem is for the first time i click on ADD button its working fine ,succesffyuly returned to screen 100...but for the second time i click on add button , i have to click on twice the CONTINUE button to retrun to screen 100..when debuggin i found the user_command event routin is executin twice ..any solution..
    Thanks,
    srini

    Apparently handler is set for every new ALV instance. This you get by executing CREATE OBJECT alv... every time PBO is raised. Ensure you are executing this statement only once duirng program lifetime. Then the system will match event handler only with one ALV instance (executing it once).
    if r_alv is not bound.
       CREATE OBJECT r_alv ...
       SET HANDLER ...
    endif.
    Regards
    Marcin

  • Verify custom plugin signature with Adobe Default Security

    Hi,
    I have a few questions using Adobe Default Security when verifying a signature.
    I've created my own signing plugin which works well. When I verify my signature it states that it is a valid signature, that the document has not been altered and that the certificate is valid. When I remove my plugin and verify the signature with the Adobe Default Security it states that the signature is invalid and that the document has been altered or corrupted. When I use the DocSign sample plugin to verify my signature it states the the signature is unknown and that the integrety has not yet been verified.
    My question are:
    Why Adobe Default Security telling me the signature is invalid instead of unknown, like the DocSign example?
    What can I do so that signature becomes unknown and not invalid when verified with Adobe Default Security?
    Why is Adobe Default Security telling me the document has been altered or corrupted, when it has not been changed?
    Regards,
    Magda

    As this can't be debugged without a copy of your plugin, files, etc. - you will need to open up a formal support ticket for this with our Developer Support.

  • Default Macros not disaagregating in SCM 7.0

    Hi,
    We have recently upgraded from SCM 5.0 to SCM 7.0.
    We are facing a peculiar problem with Macros, when we load data in a SNP Planning Book, the data gets loaded successfully but when I am trying to disaggregate through Header Infromatinn Settings (Details ALL), then the Key Figure is not getting disaggregated.
    When I change the Macros from a Default Macros to a Directly executable Macros and manually running it, the disaggregation is happening.
    This was not happening in SCM 5.0, can someone please guide me what I missing here.
    The Planning Book is an SNP planning book, and KF is a custom made Order Series KF.
    Regards
    Abhishek Sahi

    Hi,
    This is happening because of the DRILL_UP and DRILL_DOWN macros in the DEFAULT and LEVEL Change Events.
    In SNP this macros no need to assign in the macros.
    We faced the same issue after upgrade to SCM 7.0 and after removing these working fine.
    Thanks, Saravanan V

  • Discoverer Viewer/Plus does not work with Custom EUL owned by APPS user

    I am facing a unique issue with one of my customers. They have a custom EUL named XX_EUL_US and this does not allow connecting through discoverer viewer or discoverer plus.
    I have worked with custom EULS before at other customers and this was never the case. I am being told that this issue is happening as the EUL owner is APPS instead of some other user. Is this the case? Can discoverer viewer not be used with EULs owned by apps user?
    Please not that the Default EUL in ICX profiles is set to this EUL and no other EUL profiles are set.
    Appreciate any thoughts on this.

    Hi,
    I am not sure what you mean when you say you have a "custom EUL named XX_EUL_US". The EUL table should be created in a schema named XX_EUL_US. This will then be the EUL owner. You will then need to connect to Discoverer Administrator as the EUL owner and grant privileges to Apps users and/or responsibilities.
    The user should then be able to connect to Discoverer Plus/View using their apps username, responsibility and password.
    To be able to connect directly from an apps menu you need to have the ICX parameters set correctly. The ICX: Discoverer Default End User Layer Schema Prefix should be set to XX_EUL (without the _US). The ICX: Discoverer End User Layer Language Override should be set to US or not set at all.
    Rod West

Maybe you are looking for