Hi Experts,
My requirement is to update the G/L a/c number according the material Group enterd in the PO.
While running MIRO, I need to give the G/L a/c to which the amount is going to be posted. This G/L has to be validated based on the Material group in the PO.
Based on Matgroup, G/L number should be picked up. if the user selects the diffrerent G/L, system should throw an error , that, this is not the G/L and so and so si the correct G/L.
I am trying to do it in INVOICE_UPDATE , BADI, but, when I tried, No Matgroup field in the interface parameters. If I could find the Matgroup there, I can determine the G/L.
Pls suggest me regarding.
Regards,
Sujatha.
Hi
In the method CHANGE_AT_SAVE
parameter TI_RSEG_NEW uses
<b>MRM</b> Type Group is used which consists of
TYPES: BEGIN OF mrm_idoc_data_ers,
s_rbkp LIKE rbkp,
t_rseg_x LIKE rseg OCCURS 0,
t_ekbe1 LIKE ekbe OCCURS 0,
t_ekko LIKE ekko OCCURS 0,
t_ekpo LIKE ekpo OCCURS 0,
t_bset LIKE bset OCCURS 0,
t_t001w LIKE t001w OCCURS 0,
t_mara LIKE mara OCCURS 0,
t_makt LIKE makt OCCURS 0,
t_marm LIKE marm OCCURS 0,
t_eina LIKE eina OCCURS 0,
t_essr LIKE essr OCCURS 0,
s_addr1_val LIKE addr1_val,
s_lfa1 LIKE lfa1,
it consists of
t_mara LIKE mara OCCURS 0,
t_makt LIKE makt OCCURS 0,
so from these tables you get MATKL (material group) use it along with GL account as the MRM type group consists hell lot of info.
Reward points if useful
Regards
Anji
Add a comment