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

Extending materials

Former Member
0 Likes
530

Hello I'm developing an ABAP program in order to extend a list of materials from one center (werks) to another (werks). I'm using the BAPI_MATERIAL_GET_ALL to retrieve the material information and after that I'm using the BAPI_MATERIAL_SAVEDATA after making some adjustments to the material information received from the BAPI_MATERIAL_GET_ALL.

How can I know from the information retrieved from the BAPI_MATERIAL_GET_ALL which views to mark when using the BAPI_MATERIAL_SAVEDATA? For example:

e_headdata-basic_view = 'X'.

e_headdata-sales_view = 'X'.

e_headdata-purchase_view = 'X'.

e_headdata-mrp_view = 'X'.

e_headdata-forecast_view = 'X'.

e_headdata-work_sched_view = 'X'.

e_headdata-prt_view = 'X'.

e_headdata-storage_view = 'X'.

e_headdata-quality_view = 'X'.

e_headdata-account_view = 'X'.

e_headdata-cost_view = 'X'.

e_headdata-inp_fld_check = 'X'.

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
460

In function BAPI_MATERIAL_GET_ALL check the parameter CLIENTDATA . you will be having field MAT_STATUS which will determine it. Each alphabet in that field represents a view. execute function module SELECTION_VIEWS_FIND passing bildsequenz = 21 and pflegestatus = MAT_STATUS, it will give the views.

2 REPLIES 2
Read only

Former Member
0 Likes
460

Hi,

Have you come out of this issue.. if so means can u share the logic,, even i too struggling this point of view.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
461

In function BAPI_MATERIAL_GET_ALL check the parameter CLIENTDATA . you will be having field MAT_STATUS which will determine it. Each alphabet in that field represents a view. execute function module SELECTION_VIEWS_FIND passing bildsequenz = 21 and pflegestatus = MAT_STATUS, it will give the views.