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

bapi: BAPI_MATERIAL_MAINTAINDATA_RT

Former Member
0 Likes
1,827

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

3 REPLIES 3
Read only

Former Member
0 Likes
1,010

Hello Kumar,

which field do you whant to change ? Is it MARA-ERSDA ?

regards

Wolfrad

Read only

0 Likes
1,010

hai,

it is in the MM02 Transaction , in the sales organisation 1 View , to chang teh LAunch date that is MVKE-vmstd

cheers

Read only

0 Likes
1,010

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