Application Development 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: 

Views Problem in MM01 BDC

Former Member
0 Kudos
527

I Am Making The Use Of These Three FM

T130M_SINGLE_READ

BILDSEQUENZ_IDENTIFY

SELECTION_VIEWS_FIND

CALL FUNCTION 'T130M_SINGLE_READ'

EXPORTING

TCODE = 'MM01'

IMPORTING

WT130M = T130

CALL FUNCTION 'BILDSEQUENZ_IDENTIFY'

EXPORTING

TCODE_REF = T130-TRREF

KZRFB = 'X'

IMPORTING

BILDSEQUENZ = SEQ

CALL FUNCTION 'SELECTION_VIEWS_FIND'

EXPORTING

BILDSEQUENZ = SEQ

PFLEGESTATUS = T130-PSTAT

TABLES

BILDTAB = BILDTAB

At The End I am Getting This BILDTAB Table Where i have the sequence of Views in a particular order . But how Can I get The Changing Seq of views For Different Material Type.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
125

for bdc on MM01

use bapi BAPI_MATERIAL_SAVEDATA.

but if you still want to use this method so select the maintenance status of your material and call the FM 'SELECTION_VIEWS_FIND' :

select single pstat from t134 into t134-pstat

where mtart = t_mat-mtart.

call function 'SELECTION_VIEWS_FIND'

exporting

bildsequenz = '01'

pflegestatus = t134-pstat

tables

bildtab = t_bildtab

exceptions

call_wrong = 1

empty_selection = 2

others = 3.

3 REPLIES 3

Former Member
0 Kudos
126

for bdc on MM01

use bapi BAPI_MATERIAL_SAVEDATA.

but if you still want to use this method so select the maintenance status of your material and call the FM 'SELECTION_VIEWS_FIND' :

select single pstat from t134 into t134-pstat

where mtart = t_mat-mtart.

call function 'SELECTION_VIEWS_FIND'

exporting

bildsequenz = '01'

pflegestatus = t134-pstat

tables

bildtab = t_bildtab

exceptions

call_wrong = 1

empty_selection = 2

others = 3.

0 Kudos
125

Thanks

Can You Please Tell Me What is This<b> bildsequenz</b>

And It Has Almost Solved My Problem.

Thanks Again.

0 Kudos
125

good question. To be honest i don't know. I put value 01 because this what i see when I debug transaction mm01.

But I really recommand you to use the bapi i gave to you. it will simply your life.