BAPI or FM needed to retrive data from SNP Planning Area

Hi All,
             There is a planning area created for SNP ,now I need to retrive key figure values present in this SNP Planning area.Does any know of BAPI or FM which can be used to retrive data from SNP Planning Area?
Thanks,
Venu

Hi Venu,
A)  Please try this BADI Implementation
    /SAPAPO/EXTRACT_EX             Sample implementation
    /SAPAPO/SDP_EXTRACT             Definition name
    /SAPAPO/IF_EX_SDP_EXTRACT   Interface name
    /SAPAPO/CL_IM_EXTRACT_EX     Class name
The Uses of this BADI are;
1) You can interrrupt the data extraction process from the planning area.
2) You can use the CHANGE_INPUT method to override the input parameters for the extractor (sent from the requesting system).
3) You can use the CHANGE_OUTPUT method to alter the extracted data, derive the values of certain InfoObjects  , for example.
4) You can use the CHANGE_SELECTION method to modify the selection table that is used for extracting data using a  BAdI method. This is particularly useful when extracting data from an SNP planning area because you cannot specify a location product in the standard selection.
B)  You can also try the below function modules
/SAPAPO/CL_IM_EXTRACT_EX - Load key figures of Demand Planning
/SAPAPO/CDI_TSDMID_KEYFS_LOAD - Load key figure data from TSDM
Regards
R. Senthil Mareeswaran.

Similar Messages

  • How to extract data from SNP Planning Area

    Hi All,
    I am trying to extract data from SNP Planning Area. i had created the data source as it is given in help document but when i try to test the data source for the data through extractor checker it gives a message "0 data records selected".
    So please help me out if some body have some document in the regard pl forward it to my mail id [email protected]
    Thanks in Advance.
    Best Regards.
    rahul

    Hi Ganesh,
    In SNP you do not have to go to RSA6 u can create datasource in S&DP Administration>change planning area>Extras-->Data Extraction Tools.
    from there u can do all the settings and can as well test.so there is no use of either RSA6 or RSA3.
    bets regards,
    rahul

  • How to copy data from one planning area to other planning area

    Hi ,
    I need to copy data from one planning area to other planning area, the MPOS for two planning areas are differant and  here my scenario is one planning area having extra key figures.
    First i need to release forecast data to CIP planning area and then,  i load the data from infocube  to MPS planning area and copy the data from CIP planning area. here both MPS and CIP planning areas having different MPOS .
    Please help me in this. Please give me the stepls i need to follow.
    Thanks in advance.
    Regards,
    Chandu

    Hi,
    You can use the transaction /sapapo/tscopy.
    In this you can configure your source plng area and destination plng area. You also have an option to map your KF. There is no problem if the MPOS are different as long as you are able to map the characteristics between the 2 MPOS.
    Alternatively, you can create an Infocube which shares common ground between the 2 planning areas and extract data from CIP plng area into the infocube and then copy teh data from infocube to MPS plng area using the the transaction /sapapo/tscube.
    Hope this helps.
    Thanks
    Mani Suresh

  • Problem in getting data in SNP Planning Area Data Source

    Hi All,
    Problem Statement: To fetch data from SNP Planning Area for reporting in SAP BW.
    Approach: Followed the standard SAP Help Document. Link:http://help.sap.com/saphelp_scm40/helpdata/en/e0/9088392b385f6be10000000a11402f/content.htm
    First Step: To create a DataSource on the Planning Area (Z9ASNP02) and Aggregate(9AMALO).
    For that
    Go to SAP Easy Access>Click on /SAPAPO/MSDP_ADMIN/ you are on S&DP Administration>Select the planning Area Z9ASNP02 double click on it
    You are on Change Planning Area Screen>Go to Extras left click>DP/SNP Data Extraction Tool-->Click on Generate Data Source, Provide the
    Data Source Name & Select the Aggregate 9AMALO and click on continue. Data Source is generated.
    But now when i go for Test Data Source-->Extractor Checker Screen and then providing the version 000 and then when i click on extraction Button
    It gives a Message "0 data records selected".
    Thanks in Advance,
    rahul

    Hi Somnath,
    Please correct me if my understanding is wrong; you are saying that, we cannot extract data from order series keyfigures. In that case how many key figures you maintain for time series, performance miight come down for planning area if you maintain huge no of keyfigures.
    Is there any way to extract data from Order series Planning area?
    Thanks & Regards,
    Jagadeesh.

  • What's the RFC name for BPS to transfer data from one Plan-Area to another?

    I created a role for BPS planner.This include all authorization except the RFC authorization for transfering data from one plan-area to another.However, even I set the '*' to the RFC name. Am I missing something? Any suggestion is appreciated.
    Best regard,
    Gerald He

    Hi Vlad,
      Thanks for your reply. It's helpful.
      Finally, I found that this error message will be pop-up when the authorization is not right. For example, if you don't have right authorization to access the corrsponding InfoCube which the BPS is based on. Now, I find the root cause and fixed this issue.
    Best regard,
    Gerald

  • Read data from SNP planning book

    Hi Frnds,
    We are faced with a situation in which we need to read certain key figures such as PIR's, Goods Issue from SNP Planning book.
    We tried using BAPI "BAPI_PBSRVAPS_GETDETAIL" to retreive data. But it seems that we are giving wrong input data to the BAPI. Could you please let us know what to be fed into the BAPI in simple terms? If there is any example code for the same , would be very much appreciable.
    Orelse if there is some other way to retreive this data kindly suggest us accordingly...
    Many thanks in advance.
    Regards,
    Karthick

    Hi Karthick,
    The parameters for calling BAPI_PBSRVAPS_GETDETAIL really depends on your Planning Area and Planning Book configurations. The planning book configuration will limit what Characteristics and Key Figures will you be able to read using BAPI_PBSRVAPS_GETDETAIL. Let me give you an example.
    Assumptions: The planning book is configured as follows:
    Name = ZPB1
    Data view  = DV1
    The DV1 data view contains the characteristics 9AMATNR and ZCNTRY and Key Figures ZKF1 and ZKF2.
    Assuming also that we have the following data currently in livecache:
    9AMATNR-ZCNTRY-ZKF1-ZKF2
    000001234-PH       - 143  - 567
    000007891-PH       - 245  - 782
    000007891-US       - 124  - 890
    Let's further assume that you want the data aggregated to country level (e.g. char ZCNTRY), you have 1 planning version 'ZPAV1' and you only want the data for Country=PH, then here are the parameters that you need to pass to  BAPI_PBSRVAPS_GETDETAIL:
    PLANNINGBOOK = 'ZPB1'
    DATA_VIEW = 'DV1'
    SELECTION =  9AVERSION I EQ ZPAV1, ZCNTRY  I EQ 'PH'
    GROUP_BY = 'ZCNTRY'
    KEY_FIGURE_SELECTION  = ZKF1, ZKF2
    Hope this helps. Please post again if you have any questions. I can give you sample code if you can post your email address.
    Message was edited by:
            Emmanuel Nepomuceno (added planning version to selection)

  • Transferring data from one planning area to other within the same system

    Hi,
          We have two planning areas setup and the corresponding planning books in the same system. Now I have to save the results of first book and transfer the results in the other. They have common key figures. Is the data saved to the key figure after saving show up immediately in the second one or do I need to load?
    Thanks.

    Visu,
    If I understand your requirement correctly, you should be able to use transaction /SAPAPO/TSCOPY (Copy/Version Mgmt) to send the data from the one planning area to the other.  Please let me know if I misunderstood the requirement.
    Sean

  • How to connect Openoffice Base with java and retrive data from it?

    I need to retrive data from Openoffice-Base in windows through java. Is there any driver which helps to retrive data from Openoffice-Base.

    [http://tinyurl.com/nfvbbg]

  • Taking long time to load from the planning area to the cube since cvc big?

    Hi all,
    We have a huge number of cvc for various countries, while we are planning to load the data from the planning area to the cube using those cvc it consuming 40 hours.
    I happneed to check the cvc are more than 15,000 that is one reason. But i still need to improve the time taken to load the data from the planning area to the cube using the process chain.
    I happened to split the process chain to load data respectively to the sales organisation but still the same!!
    Can anyone help me nor recommend the sap process to improve the data loading from planning to cube in apo demand planning?
    Thanks
    Pooja

    Hi Pooja,
    15K is not huge at all. We have worked with 50k and still managed do the extract into cube in about an hours time.
    Pls help me understand a few things, so that we can help you better.
    1) Number of KF?
    2) Number of Periods?
    3) Key Figure Storage types - Is there any KF stored in Infocube rather than Time Series, this can be found in the Key Figure details in the Planning Area.
    4) Pls explain your data flow like PA--> Datasource --> Communication Structure --> UPdate rules --> Cube???
    5) Are you using Parallel extraction in your Datasource? This can be checked in Data Extraction tools from your Planning Area Screen.
    Few general tips.
    1) Parallelize your datasource.
    2) Load into PSA and Infocube parallely.
    3) Do not include KF stored in Infocube for your backup, use only KF stored in LC.
    Thanks
    Mani

  • Reading data form multi planning area

    Hi Guys,
    I bulit planning function type Exit on the multi planning area. I need to get the data from two planning areas(Underlying infocubes)
    but my exit functions is not reading data from second Infocube(Planning area),  my requirment is i need to get the one Keyfigure value from the second infocube .
    My formula is
      If fistcube-charactric(Marketing spend) = secondcube -charcsterstic ( marketing spend)
         firstcube -keyfigure(CRM cost)  = Firstcube-Keyfigure(CRMCIRC) * Secondcube -keyfigure(marketing spend rate).
    the value for marekting spend rate is not getting populated , but i can see the keyfigure markeig spend in the structure.
    Is there any other way i can get marketing spend keyfigure from the second infocube.
    This part is not getting populated.
    *Handling rate
       ElSEIF <xdata>-s_chas-ZMKTSPED = '0000486250'.
       tmp_z_mksrate = <xdata>-s_kyfs-z_mksrate.
    <xdata>-s_kyfs-zcrmcost = tmp_zcrm_circ * tmp_z_mksrate.
    i tried to debug but i couldn't find out anything.
    if anybody has experinced please share your ideas.
    How to get value from second infocbue.
    Here i am adding my code.
    Data: lr_xdata type ref to cl_sem_planarea_attributes.
    FIELD-SYMBOLS:
       <xdata>   TYPE  /1sem/_ys_data_100ZCNA0001,
       <t_xdata> type  Hashed table.
    Data: tmp_zcrm_circ type /BIC/OIZCRM_CIRC,
          tmp_zcrmfacev type /BIC/OIZCRMFACEV,
          tmp_z_mksrate1 type /BIC/OIZ_MKSRATE,
          tmp_ZMKTSPED  type /BIC/OIZMKTSPED.
    **Get an instance of the planning area
    call method cl_sem_planarea_attributes=>get_instance
    EXPORTING
    i_area = i_area
    RECEIVING
    er_instance = lr_xdata.
    **create a table like xth_data
    Data :lt_xdata type ref to data.
    create data lt_xdata type (lr_xdata->typename_th_data).
    assign lt_xdata->* to <t_xdata>.
    clear: <t_xdata>.
    SORT Xth_data.
    Loop at Xth_data assigning <xdata>.
    *Net Estimated Circulation
    IF <xdata>-s_chas-ZMKTSPED = ''.
        tmp_zcrm_circ = <xdata>-s_kyfs-zcrm_circ * ( <xdata>-s_kyfs-zcrmredr ) / 100.
        tmp_zcrmfacev = <xdata>-s_kyfs-zcrmfacev.
    Endif.
    *Redemption
        If  <xdata>-s_chas-ZMKTSPED = '0000486213'.
            <xdata>-s_kyfs-zcrmcost = tmp_zcrm_circ * tmp_zcrmfacev.
    *Postage rate
        ElSEIF <xdata>-s_chas-ZMKTSPED = '0000486201'.
               <xdata>-s_kyfs-zcrmcost = tmp_zcrm_circ * <xdata>-s_kyfs-z_mksrate.
    *Processing rate
       ElSEIF <xdata>-s_chas-ZMKTSPED = '0000486230'.
               <xdata>-s_kyfs-zcrmcost = tmp_zcrm_circ * tmp_zcrmfacev.
    *Handling rate
       ElSEIF <xdata>-s_chas-ZMKTSPED = '0000486250'.
       tmp_z_mksrate = <xdata>-s_kyfs-z_mksrate.
    <xdata>-s_kyfs-zcrmcost = tmp_zcrm_circ * tmp_z_mksrate.
    ENDIF.
    collect <xdata> into <t_xdata>.
    ENDLOOP.
    Refresh Xth_data.
    INSERT LINES OF <t_xdata>  INTO TABLE xth_data.
    Endfunction.
    Thanks in advance.
    Best regards
    SG

    Hello SG,
    first you can simplify your code by just defining <t_xdata> TYPE /1sem/_yth_data_100ZCNA0001. (No need for the dynamic type assignment).
    The data of your second InfoCube needs to be a subset of the selection in your planning package. Check that the second area is also selected for example. Use the criteria in LISTCUBE (on the corresponding MultiProvider) to check that the selection works. Execute the planning function with trace. This shows you what data was selected.
    Regards,
    Marc
    SAP CSA - Technology

  • HOW to retrive data from SAP Tabel

    Hi Friends,
       1)Can you please explain how to retrive data from SAP table(example AFRU).
       2) we had requriment based on the qunatity , Product name and date we need to display KPI's .KPI is based no products manfactured per day with some conditions
    Regards
    Srikanth

    Hi Udayan,
        I want to retrive SAP Table data from xMII.can you please explain elabarately how to call "RFC_READ_TABLE" from xMII.
    please do the needful
    Thanks
    Srikanth

  • Retrive data from HR tables

    Hi Experts,
    How to retrive data from HR tables for custom screen & store in custom table? I need Employee number, employee name, department, their location & mail id. When employee number is given, all other details must be fetched. Can you give a solution for this problem?
    Thanks,
    Kavitha

    Hi Kavitha,
    in HR you could get data from different tables based on infotypes. lets say if any data need to get from infotype 0001 (Org assignment), add "PA" before the infotype number so it would be PA0001.
    you could get the Employee no, name, department, location(i guess personal area or personal subarea) from PA0001 table and email id from PA105 infotype.
    Regards
    Raju

  • Need to convert  Date from calendar to String in the format dd-mom-yyyy

    Need to convert Date from calendar to String in the format dd-mom-yyyy+..
    This is absolutely necessary... any help plz..
    Rgds
    Arwinder

    Look up the SimpleDateFormat class: http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html
    Arwinder wrote:
    This is absolutely necessary... any help plz..For you maybe, not others. Please refrain from trying to urge others to answer your queries. They'll do it at their own pace ( if at all ).
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

  • I need to copy data from a table in one database (db1) to another table in

    Hi
    I need to copy data from a table in one database (db1) to another table in another database (db2).
    I am not sure if the table exists in db2,,,if it doesnot it needs to be created as well data also needs to be inserted...
    How am I supposed to this using sql statements..?
    I shall be happy if it is explained SQL also...
    Thanking in advance

    How many rows does the table contains? There are manyway you can achieve this.
    1. export and import.
    2. create a dblink between two databases and use create table as select, if structure doesnot exists in other database, if structure exists, use, insert into table select command.
    example:
    create a dblink in db2 database for db1 database.
    create table table1 as select * from table1@db1 -- when there is no structure present
    -- you need to add constraints manually, if any exists.
    insert into table1 select * from table1@db1 -- when there is structure present.
    If the table contains large volume of data, I would suggest you to use export and import.
    Jaffar

  • I need to pass data from an Access database to Teststand by using the built in Data step types(open data

    base /open SQL Statement etc) the first time i defined the system everything was fine but when i changed the Database (using M.S.Access) the " open SQL Statement" it would show the tables but not thier columns ,I"m using win98 sec edition / Teststand 1.0.1i need to pass data from an Access database to Teststand by using the built in Data step types(open database /open SQL Statement etc) the first time i defined the system everything was fine but when i changed the Database (using M.S.Access) the " open SQL Statement" it would show the tables but not thier columns ,I"m using win98 sec edition / Teststand 1.0.1
    When I tried the same thing on another cmputer the same thing
    happend
    appreiciate u"r help

    base /open SQL Statement etc) the first time i defined the system everything was fine but when i changed the Database (using M.S.Access) the " open SQL Statement" it would show the tables but not thier columns ,I"m using win98 sec edition / Teststand 1.0.1Hello Kitty -
    Certainly it is unusual that you can still see the tables available in your MS Access database but cannot see the columns? I am assuming you are configuring an Open Statement step and are trying to use the ring-control to select columns from your table?
    Can you tell me more about the changes you made to your file when you 'changed' it with MS Access? What version of Access are you using? What happens if you try and manually type in an 'Open Statement Dialog's SQL string such as...
    "SELECT UUT_RESULT.TEST_SOCKET_INDEX, UUT_RESULT.UUT_STATUS, UUT_RESULT.START_DATE_TIME FROM UUT_RESULT"
    Is it able to find the columns even if it can't display them? I am worried that maybe you are using a version of MS Access that is too new for the version of TestSt
    and you are running. Has anything else changed aside from the file you are editing?
    Regards,
    -Elaine R.
    National Instruments
    http://www.ni.com/ask

Maybe you are looking for

  • A World image instead of apple

    Today when I turned on my MacBook i saw a diferent image, was a world blinking twice then the apple appears as usual. What does it mean?

  • New iphone 4, too much music

    I recently upgraded iphones, and previously I was able to sync my whole itunes library, now when I try to sync it with my iphone 4, I am short 20 GB of memory

  • Export file

    Hello, I want to export the result from a select in an excel file ( .csv or .tab) How can do this ? (sorry my language)

  • How to store images and video clips in Oracle

    All, Can anyone guide me how to store the images and video clips in oracle through pl/sql and also the way to retirve it. Edited by: sikander on Sep 7, 2010 3:27 AM

  • Flexible Tabbed Panels with CSS Selector

    Just thought I'd share a tip about making Tabbed Panels more flexible with the CSS Selector. In working on the menu page for a new restaurant, I needed Tabbed Panels with the same custom scroll bar I used on the rest of the site. I'd chosen the fleXc