‎2007 Jan 04 9:23 AM
Hi,
I need to use a BOM materials which has some components...
If i give the materials it should display F4 help for the COmponents as like VA01..
And based on the user input it should display material...
Eg:
KITDM100IGB is the BOM material...For this 14 components are there...
In that For 1F24 Rates It will display F4 as Rental, Lease, Service...
user can select any thing from this...Based on that it shoukld display the material...if the user is selecting Rental then it is displaying as 1F24R...
I have done till the F4 help...but i dono how to capture the material based on the user input...
This is same like VA01...
In CS03 it is shoing the materials like 1F24R , 1F24S, 1F24L in recursive type...
‎2007 Jan 04 9:26 AM
use this fm
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
EXPORTING
CAPID = 'PP01'
DATUV = SY-DATUM
MEHRS = 'X'
MTNRV = P_MATNR
WERKS = P_WERKS
TABLES
STB = I_BOM
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.
i am not enough clear about your query.
sorry for that
regards
shiba dutta