Skip to Content
author's profile photo Former Member
Former Member

Wrong data extraction from BAPI_PBSRVAPS_GETDETAIL2

Hi,

We are using the function module BAPI_PBSRVAPS_GETDETAIL2 to fetch the data from planning area. The values which are coming out of BAPI is very random.

1)We are using storing the data at daily, weekly, monthly, yearly & fiscal year variant(which is again a weekly bucket but not inline with SAP standard weekly bucket) levels.

2)This planning area has one planning book & the planning bucket is first 3 weeks are daily then it is daily.

3)Out of seven flags we have ticked only MACRO_EXECUTION_FLAG as planning book has macros

4)The number of records extracted from BAPI is at the max 7000 records

With any of the above points we are not finding any issues but still we are finding wrong data extraction from BAPI. Not sure in what to check & correct this. Can somebody throw light on resolving this issue?

Thanks & Regards

Yogeesha

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Jun 06, 2012 at 03:44 PM

    Hi Yogeesha,

    Probably, you can execute the BAPI without MACRO_EXECUTION_FLAG flag set. If macro execution is required, use the program /SAPAPO/TS_BATCH_RUN to execute the required macro before you attempt to read the planning book data.

    Thanks,
    Rajesh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 07, 2012 at 02:01 PM

    Hi Rajesh,

    Even with or without MACRO_EXECUTION_FLAG set the results are very random.So totally clueless on how to proceed

    Regards

    Yogeesha

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.