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

Article creation through BAPI_MATERIAL_MAINTAINDATA_RT

Former Member
0 Likes
1,057

Hi,

How can I create article throug bapi BAPI_MATERIAL_MAINTAINDATA_RT.

What all inputs are required?

Is it neccesarry to give material number, can't it generate automatically?

Reagrds,

Divya

5 REPLIES 5
Read only

Former Member
0 Likes
869

Hi,

Any take on this.....

its urgt

Read only

Former Member
0 Likes
869

Hi,

I am able to create material but the BAPI dont have provision to create Purcasing view of article/material...

So do we have any function module to create purcasing view of material?

Or any other BAPI to create article

Pls reply someoe

Regards,

Divya

Read only

0 Likes
869

Hi Divya,

Use following function module to generate new material number.

CALL FUNCTION 'NUMBER_GET_NEXT'

EXPORTING

NR_RANGE_NR = NUMKR = 01

OBJECT = NUMKR_OBJ ('MATERIALNR')

IMPORTING

NUMBER = MATNR <<<<<<<<<<<<<= New Material number

RETURNCODE = RCODE_NUMBER_GET.

Regards

Dhirendra

Read only

0 Likes
869

hi Divya,

You can mention the views in the bapi there is importing parameter

HEADDATA LIKE BAPIE1MATHEAD

in this u will find all views wat all views u want to use pass an X in that view..

revert for further issues..

Regards,

Gaurav

Read only

Former Member
0 Likes
869

Hi Divya,

In BAPI BAPI_MATERIAL_MAINTAINDATA_RT does not contain any field to select purchasing view.

For purchasin view:

After material creation you have to write BDC

or you have to use any FM or you can use IDOC INFREC to create purchase info record for that material

I used INFREC IDOC to create purchse view.

Regards,

Narendra Goyal