cancel
Showing results for 
Search instead for 
Did you mean: 

Selection ID explosion

Former Member
0 Kudos

Hi all,

there is a way (bapi?) to get the list of SKU that a selection ID filters?

Thanks.

Edited by: Cando00 on Jan 25, 2012 5:36 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Cando00

Here is a simple way - In /SAPAPO/MC62, display CVC's, restricted using the selection condition with the exact criteria as the selection ID.

RIshi Menon

Answers (2)

Answers (2)

Former Member
0 Kudos

We solved using this function: /SAPAPO/MSDP_SH_SEL_CONVERT

Thanks.

Former Member
0 Kudos

Thank you RIshi Menon,

but I need the list of SKU filtered by a selection ID in SNP, not in DP. I would like to use that information in a program, just because I would like to process a variable list of SKU, generated by a selection ID used in a heuristic job.

Thanks.

Edited by: Cando00 on Jan 26, 2012 9:02 AM

former_member187488
Active Contributor
0 Kudos

Hello,

Please try BAPI BAPI_PBSRVAPS_GETDETAIL2, to see whether it meets your requirement.

You may need the below parameters to be passed to the BAPI:

PLANNINGBOOK Your Planning Book

DATA_VIEW Your Data view

PLANNING_VERSION Your planning version

SELECTION_ID The selection profile's name

READ_OPTIONS

PERIOD_TYPE Please refer to BAPI's documentation in transaction /\'BAPI'

DATE_FROM Please refer to BAPI's documentation in transaction /\'BAPI'

DATE_TO Please refer to BAPI's documentation in transaction /\'BAPI'

GROUP_BY The aggregation level

(E.G. if you load 'internal location product, you add '9AMATNR' and '9ALOCNO' here.)

KEY_FIGURE_SELECTION Any key figure

Then you check the result in return table 'CHARACTERISTICS_COMBINATION'.

For the DATE_FROM, DATE_TO and KEY_FIGURE_SELECTION, if you only want the result of the selection characteristic, you can pass a very short period and only one key figure to improve the performance.

Best Regards,

Ada