cancel
Showing results for 
Search instead for 
Did you mean: 

Wrong data extraction from BAPI_PBSRVAPS_GETDETAIL2

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

rajkj
Active Contributor
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Rajesh,

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

Regards

Yogeesha