cancel
Showing results for 
Search instead for 
Did you mean: 

get order data from live cache

loring_wu
Product and Topic Expert
Product and Topic Expert
0 Kudos
2,189


Hi, experts.

I need to get sales order and purchase order from live cash. And after some research I find the function module /SAPAPO/OM_PEGID_GET_ORDERS which could get orders by pegid, but I am confused by the parameters. What is the data returned from tables ET_ACTIVITIES(Table of Activities),ET_INPUTS(Table of Input Nodes),ET_OUTPUTS(Table of Output Nodes)?  What is input node? What is output node? What is the relationship between input node and output node?

Thanks in advance.

Loring

Accepted Solutions (1)

Accepted Solutions (1)

SatishWaghmare
Active Contributor
0 Kudos

Hello Loring

Please check Where Used List for /SAPAPO/OM_PEGID_GET_ORDERS in SE37. You will see the sample code within standard SAP program.

Also do read Function Module documentation for this FM, this has special mentioned that -

It is designed specially for use in APO and should not be used for

standard tasks, in particular selecting orders by pegging area.

Hope this will help.

Thank you

Satish Waghmare

loring_wu
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thanks, Satish.

Best Regards

Loring

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi, generally you can use transaction /sapapo/om16 to get all liveCache data for the orders. If you really need an FM to be used in your customizing program, please use SAP standard BAPI, like BAPI_SLSRVAPS_GETLIST2 for sales documents and BAPI_POSRVAPS_GETLIST3 for purchasing documents.

thamizhchelvan_gunasekara
Active Participant
0 Kudos

Hi,

Try to use function module /SAPAPO/OM_ORDER_GET_ALL to fetch the details of all orders from live cache.

BR

Thamizh