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

FM MBEW_EXTEND

Former Member
0 Likes
2,029

Hi,

Can anybody tell me how to use this FM and what it exactly does?

Thanks.

Tyken

Hi,

Can anybody tell me how to use this FM and what it exactly does?

Thanks.

Tyken

3 REPLIES 3
Read only

Former Member
0 Likes
1,243

FM mixes (or enriches) the table MBEW_TAB with previous periodic info.

FM mixes also internal buffer TMBEW and IMBEW with previos periodic info, if corresponding segments exist.

Table MBEW_EXT_TAB is created similiar to MBEW_TAB and contains previos periodic info for fields, which don't have a corresponding field of previous periodic info in structure MBEW.

Read only

0 Likes
1,243

Hi Chandrasekhar,

how do I use this fm?

Thanks.

Tyken

Read only

Former Member
0 Likes
1,243
 A calculation of previous period data for table MARD could have the     
 following form.                                                                                
select * from mard into table mard_tab where werks = '0001'.                                                                                
call function 'MARD_EXTEND'                                           
     exporting                                                           
       xvper = 'X'                                                       
     tables                                                              
       mard_tab = mard_tab.                                                                                
After this, table MARD_TAB is filled with the previous period           
 information.There is no buffer restriction and the buffer is not        
 deleted.                                                                

so , in the code (i.e,)<b>werks = '0001'.</b> give your plant number instead of the 0001 ... the as the function module <b>'MARD_EXTEND'</b> gives you the output

<b>mard_tab</b>

<b>NOTE : In order to calculate the values of the previous period using function</b>

Girish