‎2005 Oct 27 12:25 PM
hello,
can anybody tell me what are the parameters to be sent for BAPI_MATERIAL_MAINTAINDATA_RT for chabgeing of material (to change launch date (date of cretaion ) )
cherrs
‎2005 Oct 31 7:47 AM
Hello Kumar,
which field do you whant to change ? Is it MARA-ERSDA ?
regards
Wolfrad
‎2005 Oct 31 9:56 AM
hai,
it is in the MM02 Transaction , in the sales organisation 1 View , to chang teh LAunch date that is MVKE-vmstd
cheers
‎2005 Oct 31 12:43 PM
Hello Kumar,
please try this:
REPORT z_temp_13.
DATA: zheaddata TYPE bapie1mathead.
DATA: wa_mvkert TYPE bapie1mvkert.
DATA: it_mvkert TYPE TABLE OF bapie1mvkert.
DATA: wa_mvkertx TYPE bapie1mvkertx.
DATA: it_mvkertx TYPE TABLE OF bapie1mvkertx.
DATA: zbapiret1 LIKE bapiret1.
PARAMETERS:
p_matnr LIKE mara-matnr,
p_vkorg LIKE mvke-vkorg,
p_vtweg LIKE mvke-vtweg,
p_vmsta LIKE mvke-vmsta,
p_vmstd LIKE mvke-vmstd.
START-OF-SELECTION.
zheaddata-material = p_matnr.
zheaddata-sales_view = 'X'.
*
wa_mvkert-material = p_matnr.
wa_mvkert-sales_org = p_vkorg.
wa_mvkert-distr_chan = p_vtweg.
wa_mvkert-sal_status = p_vmsta.
wa_mvkert-valid_from = p_vmstd.
APPEND wa_mvkert TO it_mvkert.
*
wa_mvkertx-material = p_matnr.
wa_mvkertx-sales_org = p_vkorg.
wa_mvkertx-distr_chan = p_vtweg.
wa_mvkertx-sal_status = 'X'.
wa_mvkertx-valid_from = 'X'.
APPEND wa_mvkertx TO it_mvkertx.
*
CALL FUNCTION 'BAPI_MATERIAL_MAINTAINDATA_RT'
EXPORTING
headdata = zheaddata
IMPORTING
return = zbapiret1
TABLES
salesdata = it_mvkert
salesdatax = it_mvkertx.
*
WRITE : /
zbapiret1-type
, zbapiret1-id
, zbapiret1-number
, zbapiret1-message
.
regards
Wolfrad