cancel
Showing results for 
Search instead for 
Did you mean: 

Fetching order data from liveCache

former_member566355
Participant
0 Kudos

Hi,

I am trying FM PAPO/OM_PEG_CAT_GET_ORDERS to get order data from liveCache

I am giving the following inputs

1. PEGID which I am getting from /SAPAPO/DM_MATERIAL_GET_PEGID for a given product location.

2. ATP category in IT_CATEGORY = BM and CC

3. V_SIMSESSION = 000

4. IV_IONODE_PEG_SEL = 0

But I am getting LC_COM_ERROR and no output.

What parameters am I missing ?

Regards,

Yogesh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Yogesh,

I think you are passing wrong parameter v_simsession = 000. The version 000 need to be added in the structure IS_GEN_PARAMS-SIMVERSION.

As the simsession is mandatory parameter, you need to either get it using the FM /sapapo/rrp_simsession_get, if you are calling this function, where simsession is already generated. If the simsession is not already generated, then you have to create a new simsession using the FM  /sapapo/rrp_simsession_create and then then pass this simsession to FM.
All other parameter looks ok.

IF you dont want to create or get the simsession then, in my opinion you can use the FM /sapapo/rrp_pegid_compile_io.

Hope this will help you.

Thanks!

SC

former_member566355
Participant
0 Kudos

Hi SC,

I generated SIMSESSION using  /sapapo/rrp_simsession_create and run it again.

But I am not getting any data in the output.

The screens are given below ...

Request your inputs on the same.

Yogesh

Former Member
0 Kudos

Hello Yogesh,

Please click on the check box upcase / Lowercase before execution and then add the values in FM. It should then work.

Thanks & Regards,

SC

former_member566355
Participant
0 Kudos

Thanks SC ...its working now.

Yogesh

Answers (1)

Answers (1)

former_member216565
Participant
0 Kudos

Hi YR,

To retreive data from livecahce, SAP recommends to use BAPI's rather than using OM(Object Manager)/DM(Data Manager) function modules directly.

As i can see, in your case, you are trying to retreive BM(Sales Order) and CC(Stock order) categories, I would suggest you to use the following available bapis,

1) BAPI_SLSRVAPS_GETLIST2 (Create or Change Sales Orders )

2) BAPI_STSRVAPS_SAVEMULTI2 (Create or Change Stocks)

Do let me know, if you face any problem in using these bapis.

Thanks,

Santosh KB.