2005 Jul 25 10:32 AM
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.
2005 Jul 25 10:34 AM
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.
2005 Jul 25 10:34 AM
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.
2005 Jul 25 12:56 PM
Thanks
Can You Please Tell Me What is This<b> bildsequenz</b>
And It Has Almost Solved My Problem.
Thanks Again.
2005 Jul 25 1:08 PM
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.