cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to get all the OrderID for a material -location combination in APO?

0 Likes
2,625

Hello experts,
I want to extract all the orders which are available for a Product- location combination in a particular session (SIMSESSION)

Is there are any FM or series of FM which required to be executed to get the order GUIDs.

Please help.. As it is urgent

Regards

Akshay

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member117
Participant
0 Likes

HI Akshay,

any success? If there was, let us know the recipe,

thx, br,

Gergely

former_member117
Participant
0 Likes

Hm, bit of obscure area, maybe these Functions:

/SAPAPO/EFPL_PEG_GET_ORD

/SAPAPO/OM_PEGID_GET_ORDERS

/SAPAPO/RRP_LC_PEGID_GET_ORDER

Br,

Gergely

0 Likes

Hi Geri,
Thankyou for your continuous help.
I can now able to get the PEGID's for a particular Location-Product combination. Is there any way through which I can get the Orderid's from these pegid's ?

Regards

Akshay

former_member117
Participant
0 Likes

Hi Akshay,

some hints for first look for SOs: /SAPAPO/ORDADM_I table (order items) (/SAPAPO/ORDADM_H - headers) includes SO guid (/sapapo/posmapn), LOCID, MATID.

/SAPAPO/OM16 is the browser for LiveCache.

/SAPAPO/OM_ORDER_GET_DATA is the function in general to return the order IDs.

A blog by an expert: https://archive.sap.com/documents/docs/DOC-54254

Tell us what you know already, tell more on the scenario, maybe there are some application specific info is needed to find the right spots.

Thanks,
Br,
Geri

0 Likes

Hi Gergely,
I have saved data in a particular simulation version (SIMSESSION) and I have got its session ID as well from the table (/SAPAPO/SIMSESS). Now I want to extract all the order ID which are present in that particular SIMSESSION through FM's.

To extract the all the order data from live version I have used the FM- "/SAPAPO/OM_ORDKEY_SELECT_SIMID"

Regards

Akshay

former_member117
Participant
0 Likes

Hi Akshay,

OK, have you tried defining the simsession into /SAPAPO/OM_ORDER_GET_DATA with no order definition?

Br,

Geri

0 Likes

Hi Gergely,
You correctly mentioned that I want to pass the order ID for a particular simsession in the FM /SAPAPO/OM_ORDER_GET_DATA to get it details.
For this purpose I am trying to get the order ID's from material-location combination.
Till now I have tried to use the below two FM to get the order ID's but coudn't successed.

/SAPAPO/DM_MATLOC_GET_PEGIDS

/SAPAPO/OM_PEGID_GET_IO

Can you please help in this

Regards

Akshay

former_member117
Participant
0 Likes

/SAPAPO/PEGKEY table contains PEGID MATID anc LOCID.

I think if you open /sapapo/rrp3 t-code the functions you mentioned are used. Maybe try tracing /sapapo/RRP4 t-code

Br

Geri