on 03-18-2015 3:30 AM
Hi,
I have a requirement to read all the BOM variants of Engineering BOM through a Function Module and pass this information to Third Party Application.
Is there any such Function module/BAPI?
Need your expert advice.
Thanks and Regards,
OmPrakash
Hi OmPrakash,
if you mean the PSM and variants then you can use the followings:
you can use the function module PVSHI_PNCMP_READ and the method PRELID_READ in class CL_PPEXIENG_CNTL to read the hierarchy. (same)
For PSM nodes:
you can use the GET_HIERARCHY_ABOVE of assistance class /PLMU/CL_PPE_CMP_TREE_ASSIST.
Or you can use the function module PVSHI_PNCMP_READ. You can use the node ID in table componentnodedata. The componentrelation table will display the relationships.
Hope this helps!
Best regards
Tamas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
If you want to use 'CS_BOM_EXPL_MAT_V2' funtion to get the BOM components, you need to give the importing parameter mtnrv( material number).
the components are stored in TABLES : stb.
I am doing this way.
but werks, date , and capid are optional .
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
EXPORTING
mtnrv = i_matnr
werks = i_werks
datuv = i_date
capid = l_capid
IMPORTING
topmat = ms_cstmat
TABLES
stb = lt_stpox
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.
Please give it a try.
BR,
Ovidiu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You may go through these FMs and try SAP bom explosion fms (Function Modules)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.