cancel
Showing results for 
Search instead for 
Did you mean: 

PPDS - CDP

Former Member
0 Kudos

Hi,

We need to develop a report which has to pull the data from /sapapo/rrp3 transaction. we are using function module /SAPAPO/RRP_PT_IOLIST_READ and we are getting "com Error". We are using APO 4.1

Did any one know how to correct the error or any other method to generate a report from above mentioned transaction. Also we want details about the characteristics requirement and valuation.

Thanks and Regards,

Subbu

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member583456
Active Participant
0 Kudos

Hi Subbu,

try this:


report test.

data:
  lt_sel   type /sapapo/mat_nr_rtab,
  ls_sel   type /sapapo/mat_nr_rstr,
  lt_pegid type /sapapo/pegid_tab,
  lt_matid type /sapapo/matid_tab,
  lt_io    type /sapapo/rrp_io_tab.

ls_sel-sign   = 'I'.
ls_sel-option = 'CP'.
ls_sel-low    = 'T*'. "put your material numbers here.
append ls_sel to lt_sel.

call function '/SAPAPO/RRP_SIMSESSION_SET'
  exporting
    iv_simsession = ''
    iv_simid      = '000'.

call function '/SAPAPO/DM_MATID_GET'
  exporting
    i_matnr_rtab = lt_sel
  importing
    e_matid_tab  = lt_matid.

call function '/SAPAPO/DM_MAT_GET_PEGIDS'
  exporting
    i_matid_tab = lt_matid
  importing
    e_pegid_tab = lt_pegid.

call function '/SAPAPO/RRP_PT_IOLIST_READ'
  exporting
    iv_simid      = '000'
    it_pegarea    = lt_pegid
  importing
    et_iopt       = lt_io.

Best regards

Thomas

Former Member
0 Kudos

Hi Thomas,

Thanks for your help the code you have send is working.

I need to get the orders created for material and plants. Also i need to get the values for characteristics requirements and valuations while available in the orders.

Thanks and Regards,

Subbu

former_member583456
Active Participant
0 Kudos

Hi,

then use /sapapo/dm_matlocs_get instead of /sapapo/dm_matid_get and pass matids and locids to the /sapapo/dm_mat_get_pegid. The characteristics can be read via /sappao/om_order_get_data.

Best regards

Thomas

Former Member
0 Kudos

Hi thomas,

For Function module /sapapo/om_order_get_data what are the mandatory details needs to be passed to get the characteristics value.

Also can you please help me in creating orders in APO with Characteristics values and Requirements using BAPI.

Thanks and Regards,

Subbu

former_member583456
Active Participant
0 Kudos

Hi,

1. Pass the planning version ='000' (via the structure gen_params), pass the simsession ='' and pass the order-ids.

2. Sorry, I'm not a BAPI expert.

Best regards

Thomas