Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

a sample coding for 'MRM_DBTAB_RBKPV_READ'

Former Member
0 Likes
555

i need the sample coding for 'MRM_DBTAB_RBKPV_READ'. i need the coding through which i can reterieve the value.

Promise to award points.

Regards,

Anitha

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
487


report zrich_0003 .

type-pools: mrm.

data: xrbkpv type  mrm_rbkpv.

parameters: p_belnr type rbkp-belnr.
parameters: p_gjahr type rbkp-gjahr.


start-of-selection.




  call function 'MRM_DBTAB_RBKPV_READ'
    exporting
      i_belnr               = p_belnr
      i_gjahr               = p_gjahr
*   I_BUFFER_ON           = 'X'
   importing
      e_rbkpv               = xrbkpv
   exceptions
     entry_not_found       = 1
     others                = 2.


  write:/ xrbkpv-belnr, xrbkpv-gjahr, xrbkpv-blart,
          xrbkpv-bldat, xrbkpv-budat.

Starting to see a pattern?

Regards,

Rich Heilman

2 REPLIES 2
Read only

Former Member
0 Likes
487

Hi Anitha,

Try this code...

data: e_rbkpv TYPE mrm_rbkpv.

data: begin of it_bseg occurs 0,

belnr like bseg-belnr,

gjahr like bseg-gjahr,

end of it_bseg.

*Populate the internal table & pass them to the FM.

CALL FUNCTION 'MRM_DBTAB_RBKPV_READ'

EXPORTING

i_belnr = i_belnr

i_gjahr = i_gjahr

i_buffer_on = space

IMPORTING

e_rbkpv = e_rbkpv

EXCEPTIONS

error_message = 1.

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
488


report zrich_0003 .

type-pools: mrm.

data: xrbkpv type  mrm_rbkpv.

parameters: p_belnr type rbkp-belnr.
parameters: p_gjahr type rbkp-gjahr.


start-of-selection.




  call function 'MRM_DBTAB_RBKPV_READ'
    exporting
      i_belnr               = p_belnr
      i_gjahr               = p_gjahr
*   I_BUFFER_ON           = 'X'
   importing
      e_rbkpv               = xrbkpv
   exceptions
     entry_not_found       = 1
     others                = 2.


  write:/ xrbkpv-belnr, xrbkpv-gjahr, xrbkpv-blart,
          xrbkpv-bldat, xrbkpv-budat.

Starting to see a pattern?

Regards,

Rich Heilman