Skip to Content
avatar image
Former Member

PPDS - CDP

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Oct 16, 2008 at 01:08 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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