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

Creating material views

Former Member
0 Likes
581

Hi,

I need a BAPI to create material views such as ADV , Storage , stocks plant, ..

can "BAPI_MATERIAL_SAVEDATA" be useful to that , would you help with recommendation!



Thank youu.

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
539

Yes, this BAPI will perform well for that

call function 'BAPI_MATERIAL_SAVEDATA'
        exporting
             headdata             = ls_headdata
             storagelocationdata  = ls_storagelocationdata
             storagelocationdatax = ls_storagelocationdatax
*       IMPORTING
*            RETURN               =
        tables
             returnmessages       = lt_return.

You could also use BAPI_MATERIAL_GET_DETAIL to get information from another structure as default values.


Regards;

Raymond

3 REPLIES 3
Read only

RaymondGiuseppi
Active Contributor
0 Likes
540

Yes, this BAPI will perform well for that

call function 'BAPI_MATERIAL_SAVEDATA'
        exporting
             headdata             = ls_headdata
             storagelocationdata  = ls_storagelocationdata
             storagelocationdatax = ls_storagelocationdatax
*       IMPORTING
*            RETURN               =
        tables
             returnmessages       = lt_return.

You could also use BAPI_MATERIAL_GET_DETAIL to get information from another structure as default values.


Regards;

Raymond

Read only

0 Likes
539

In the field headdata I can take BASIC_VIEW , SALES_VIEW ,.. If I want to create multipe views by one call of the BAPI??

Read only

0 Likes
539

Yes.