cancel
Showing results for 
Search instead for 
Did you mean: 

FM or BAPI to read order series key figure(SNP plan orders) from Live Cache

Former Member
0 Kudos

Hi All,

I am testing FM '/SAPAPO/MSNP_GET_DRPIO_READ' with following values :

IV_VERSION 000

IV_MATID EDS21OTN7JBX00002CGQK

IV_LOCID HINMF}KF8P}X00002CGQG

IV_TRPID

IV_TSTFR 20,070,806,000,000

IV_TSTTO 20,070,724,235,959

IV_LOCID_FILL X

IT_CAT FA

IC_DATABASE LC

I am expecting to get SNP order details in table "IT_ORDER_IO" but apparently this FM is giving a dump saying "The current ABAP program "/SAPAPO/SAPLOO_TS_DM_SNP" had to be terminated because one of the statements could not be executed." at statement

"000930

000940 * Eventuell LC-Commit

> lccommit gs_c_lc_type-orders.

000960

000970".

Can somebody help me out with this or any other BAPI/FM to retrieve SNP orders from Live Cache.

Win full points by answering this.

Thanks - Chandan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

i usually use the FM /SAPAPO/RRP_LC_PEGID_GET_IO to get order info from the livecache...if you need help with this FM let me know i can maybe give you a sample code!

Thanks!

Former Member
0 Kudos

This FM is used to get PEGID which means to check whether the product is being planned at a particular location or not.. Did you get an SNP planned order using this FM... if yes then please help me out with the code..

Former Member
0 Kudos

This FM doesnt give you the PEGID...u can get pegid from /SAPAPO/DM_MATERIAL_GET_PEGID for a given prod & location.

And then use this Pegid (store it in an internal table) in the FM /SAPAPO/RRP_LC_PEGID_GET_IO along with other parameters to fetch order info for all categories....

data: gt_pegarea_lc TYPE /sapapo/om_pegid_tab,

gv_mintime TYPE /sapapo/startti," VALUE '19700101000020',

gv_end_time TYPE /sapapo/endti,

l_safe TYPE /sapapo/boolean,

ls_exclude_fields TYPE /sapapo/om_exclude_fields2,

gt_io TYPE /sapapo/om_io_pp_tab,

gt_conti_io TYPE /sapapo/om_io_conti_data_tab.

CALL FUNCTION '/SAPAPO/RRP_LC_PEGID_GET_IO'

EXPORTING

it_pegarea = gt_pegarea_lc

iv_start_time = gv_mintime

iv_end_time = gv_end_time

iv_use_safety_times = l_safe

is_exclude_fields = ls_exclude_fields

IMPORTING

et_ionodes = gt_io

et_conti_io = gt_conti_io.

delete whatever categories u dont need from the int table gt_io to get the desired order info.

Thanks!

Answers (2)

Answers (2)

ruchi_das2
Active Participant
0 Kudos

Hi

I got the PEGID using the FM /SAPAPO/DM_MATERIAL_GET_PEGID by entering a product and a location.

I enter that PEGID in the FM /SAPAPO/RRP_LC_PEGID_GET_IO without changing other parameters as they were default or optional. When is executed this, i get an error ' COM - error unknown ' and the program is terminated.

Can you advice me on copying order series KF from product M - location A to product M - location B within the same version.

Regards

Ruchi

Former Member
0 Kudos

i usually use the FM /SAPAPO/RRP_LC_PEGID_GET_IO to get order info from the livecache...if you need help with this FM let me know i can maybe give you a sample code!

Thanks!