‎2008 Nov 24 12:03 PM
All my friends ,
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
EXPORTING
aumgb = 'X'
auskz = 'X'
capid = 'PP01'
datuv = sy-datum
ehndl = '1'
mehrs = 'X'
mmory = '1'
stlal = l_stlal
mtnrv = t_plaf-matnr
werks = t_plaf-plwrk
TABLES
stb = t_mat
matcat = t_catmat
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.
the sy-subrc eq 4 which means the missing_authorization occured . this code is written in the RFC function moudle . WHo can help me ~.
‎2008 Nov 24 12:07 PM
Hi Jack
Since you are using this FM in RFC my guess is that your RFC user id which invokes this call in SAP
does not have authorization for BOM explosion.
I don`t see ny other issue.
Regards
Neha
‎2008 Nov 24 12:19 PM
If you want to know which authorization object is missing you can retrieve the auth object through transaction su53.probably that object is missing in your user profile...
regards,
kashyap