cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_PBSRVAPS_GETDETAIL2

Former Member
0 Kudos

Hi

Please, Can any one give me the code to use BAPI_PBSRVAPS_GETDETAIL2 to down load data from planning area.

Regards

Stephen

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi :

You can find code at this link ..

[;

Former Member
0 Kudos

Hi Virendra

The link which you have send seems wont work for my requirement.

Actually i have to down load data from DP planning area to Excel sheet. I know we can use this BAPI_PBSRVAPS_GETDETAIL2( I saw in one of the thread that Somnath has suggested this BAPI).

Nuw just i need code if any bod has on this to use this BAPI.

regards

Stephen

0 Kudos

BAPI_PBSRVAPS_GETDETAIL2: Used to read key figure values from one data view for a planning book. The parameters key figure, key figure value and characteristic combination serve as return parameters.

The key figure details are contained in Key figure. These entries use the field CharComId to refer to the characteristics combinations in parameter Characteristics Combination for which they are valid. The key figure values for the individual periods of time are contained in parameter Key Figure Value.

By default, no macros are executed for DP planning books. If, however, to execute macros for the planning book or the data view, the field Macro Execution Flag must be set in parameter read options. In the case of SNP planning books on the other hand, macros are always executed.

CALL FUNCTION 'BAPI_PBSRVAPS_GETDETAIL2'
EXPORTING

planningbook     = planningbook Name
data_view        = data view name
planning_version = planning version
read_options     = gs_read_options
period_type      = ’A’
date_from        = date_from
date_to          = date_to
TABLES

selection        = gt_selection
group_by         = gt_group_by
key_figure       = gt_key_figure
key_figure_value = gt_key_figure_value
    return   = gt_return1.

There is a new book on Programming in SAP APO. You might want to check that out.

http://www.flipkart.com/programming-sap-apo-1st/p/itmdgt9hbdh6auzu?pid=9781259028441&ref=bc49ea80-1a...