cancel
Showing results for 
Search instead for 
Did you mean: 

a sample coding for the function module 'MRM_DBTAB_RBCO_READ'

Former Member
0 Kudos

I need a sample coding for this function module, form which i should be able to reterieve the values and use the write statement for displaying the values

Accepted Solutions (1)

Accepted Solutions (1)

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

More sample code.



report zrich_0003 .

type-pools: mrm.

data: irbco type  mrm_tab_rbco.
data: xrbco like line of irbco.

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


start-of-selection.


  call function 'MRM_DBTAB_RBCO_READ'
    exporting
        i_belnr               = p_belnr
        i_gjahr               = p_gjahr
*   I_BUFFER_ON           = X
   importing
     te_rbco               = irbco
 exceptions
   entry_not_found       = 1
   others                = 2.
  .

  loop at irbco into xrbco.
    write:/ xrbco-belnr, xrbco-gjahr,
            xrbco-buzei.

  endloop.

Regards,

Rich Heilman

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Please make sure award points for helpful answer snd mark this post as solved when solved completely. Thanks.

Regards,

Rich HEilman

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Anitha,

Please Use Treansaction SE37 and enter your function module and search where used.

You can find the code in the programs where this function module has been used.

Function :MRM_DBTAB_RBCO_READ used in program: LMRT3U02

CALL FUNCTION 'MRM_DBTAB_RBCO_READ'

EXPORTING

i_belnr = i_belnr

i_gjahr = i_gjahr

I_BUFFER_ON = i_buffer_on

IMPORTING

TE_RBCO = it_rbco

EXCEPTIONS

entry_not_found = 1.

Lanka

Former Member
0 Kudos

Hi Anitha,

Try this..

parameters: p_belnr like bseg-belnr,

p_gjahr like bseg-gjahr.

data: it_rbco type mrm_tab_rbco.

CALL FUNCTION 'MRM_DBTAB_RBCO_READ'

EXPORTING

i_belnr = p_belnr

i_gjahr = p_gjahr

  • I_BUFFER_ON = i_buffer_on

IMPORTING

TE_RBCO = it_rbco

EXCEPTIONS

entry_not_found = 1.

Write statement here for it_rbco.