‎2006 Nov 09 9:15 AM
Function module is "CS_BOM_EXPL_MAT_V2" ,in this function module passing parameters are same in both SE37 and my program.its working fine in SE37 and not working in my program Plz cud any one help me regarding this.
This is for BOM explosion.
IN my program in out table its blank
where as in SE37 in table STB there four records.
‎2006 Nov 09 9:19 AM
Pls check whether DATE(parameter DATUV) is given properly or not..
It is very important
‎2006 Nov 09 9:19 AM
Pls check whether DATE(parameter DATUV) is given properly or not..
It is very important
‎2006 Nov 09 9:23 AM
Hi,
Take a look at the following code :
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
EXPORTING
AUSKZ = ' '
CAPID = 'PP01'
DATUV = SY-DATUM
EMENG = '1.000'
STLAN = '3'
MTNRV = MATNR
MEHRS = 'X'
MMORY = '1'
STPST = '0'
WERKS = WERKS
IMPORTING
TOPMAT = SELPOOL
DSTST = DSTST_FLG
TABLES
STB = STB
MATCAT = MATCAT
EXCEPTIONS
MATERIAL_NOT_FOUND = 4
NO_PLANT_DATA = 8
NO_BOM_FOUND = 12
NO_SUITABLE_BOM_FOUND = 16.Hope this helps,
Best regards,
Erwan
‎2006 Nov 09 9:26 AM
‎2006 Nov 09 9:35 AM
Hi Erwan,
I am passing this Parameters correct me
if i am wrong in this.
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
EXPORTING
AUMNG = 0
CAPID = 'PP01'
CUOBJ = 000000000000000
CUOVS = 0
DATUV = datum
EMENG = 0
MKTLS = 'X'
MEHRS = 'X'
MTNRV = OUT_MATNR
SANFR = 'X'
STLAL = '1'
STLAN = '1'
STPST = '0'
SVWVO = 'X'
WERKS = TBL_UPLOAD-WERKS
VRSVO = 'X'
TABLES
STB = T_STB1
EXCEPTIONS
ALT_NOT_FOUND = 1
CALL_INVALID = 2
MATERIAL_NOT_FOUND = 3
MISSING_AUTHORIZATION = 4
NO_BOM_FOUND = 5
NO_PLANT_DATA = 6
NO_SUITABLE_BOM_FOUND = 7
CONVERSION_ERROR = 8
OTHERS = 9
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Ragrds,
Simha