cancel
Showing results for 
Search instead for 
Did you mean: 

Additional fields in shuffler.

Former Member
0 Kudos

Hi,

We added additional fields in the SNP planning book shuffler using the BADI - /SAPAPO/SDP_SELECTOR.

And when i tried to fetch the keyfigure/CVC values from this planning book using the BAPI - BAPI_PBSRVAPS_GETDETAIL2 i could not retrive the newly added fields from the shuffler.

Would be great help if anyone could share some thoughts on how to retrive the newly added fields from shuffler.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Any other ideas on how to filter on fields in the shuffler from this BAPI.

former_member216565
Participant
0 Kudos

Hi Ramso,

Sorry for the late reply. I suggest the following ways to solve your problem.

The Bapi will return that error message,if your SELECTION TABLE parameters are incorrect or if your GROUP_BY is not related to atleast one SELECTION_TABLE parameters.

1) First, try to create a selection Id for characteristic AT101 in planning book(interactive planning) and try to pass that selection id to bapi,(no need for selection table & group_by in this case) and check.

2)  Is your technical name of the characteristic AT101 correct? i doubt, its not correct. Typically, characteristic technical name starts with either '0'/'9'(Standard) or 'Z'/'Y'(custom).

Please check once in the respective MPOS or Design view of your planning book.

let me know if the error still persists.

Thanks,

Santosh KB.

Former Member
0 Kudos

santosh,

AT101 is not the characteristic name, we just added that in the shuffler. (its not there in the CVC list)

right now the this field shows in the shuffler as 'APO-SNP Attribute 1' .

Is there anyway we can display technical names in the shuffler instead of their description?

former_member216565
Participant
0 Kudos

Hi Ramso,

I suppose,the Badi /SAPAPO/SDP_SELECTOR is basically used to manipulate the User Input - for Object Selection of the planning book. It does not effect the KEYFIGURE values anyway.

The Bapi BAPI_PBSRVAPS_GETDETAIL2 is used to bring keyfigure values from a planning book. It will not bring any values from the shuffler.

To bring the newly added values in the shuffler, check what logic is written in the badi /SAPAPO/SDP_SELECTOR and adopt the same, where ever you want.

Thanks,

Santosh KB.

Former Member
0 Kudos

Okay, let me revise my question.

The BAPI_PBSRVAPS_GETDETAILS2 can be filtered on characteristic combination values(for eg: 9MATNR = '12345678910'). Here 9AMATNR is a standard characteristic. so we can pass this to the BAPI without any problem. But how do we use the newly added fields in the shuffler as an input parameters to the BAPI ?

For example, we added AT101 (attribute1) to the shuffler and i would like to filter on this value when i run the BAPI - BAPI_PBSRVAPS_GETDETAILS2

former_member216565
Participant
0 Kudos

Hi Ramso,

If thats your query, then i would suggest you to check the tables parameter 'SELECTION'of the bapi 'BAPI_PBSRVAPS_GETDETAIL2'. It does work. Make sure, you fill the internal table with right values.

Fill the field CHARACTERISTIC_NAME in that structure with 'AT101'( or whatever techincal name in capitals) and other fields, CHAR_VAL_SIGN,CHAR_VAL_OPTION,CHAR_VAL_LOW,

CHAR_VAL_HIGH with respective values.

Lastly, most importantly, pass the GROUP_BY parameter to let the system know about what level the data should be read for your selection combination. In your case, i suppose you should pass '9AMATNR' and '9ALOCNO'.

I hope you maintained some data in that particular planning book before running this BAPI.

let me know if you still stuck.

Thanks,

Santosh KB.

Former Member
0 Kudos

Thank you santosh baratam,

when i filled the SELECTION TABLE with following , i get the 'An error occurred in data selection' error returned into 'return' table.

CHARACTERISTIC_NAME - AT101

CHAR_VAL_SIGN - I

CHAR_VAL_OPTION - CP

CHAR_VAL_LOW - *

former_member216565
Participant
0 Kudos

Hi Ramso,

Did you pass 'GROUP_BY' with correct parameters as well? Its must.

Thanks,

Santosh KB.

Former Member
0 Kudos

Yes, I did. I passed 9AMATNR into it