2007 Feb 28 5:24 PM
hello,....
problem: using BOM in VA01...for free goods material.....
I am working on user exit for BOM...I need to write a code in FV45SFCO_CONFIGURATION_SET_STM under this we have call customer funcion '003'
if we click on this we will enter in include ZXVVAU12.....In this including I need to write the code(user exit) by using XSTB table and the values in that table I have to populate in XVBAP.......for the BOM Explosion........when we use VA01......
so please tell me how can i write the code in that exit ...by getting the data from XSTB to XVBAP........by using the field STLAL (It is Alternative BOM in BOM Screen)...for example if I select '05' (stlal) BOM type.....the values in XSTB populate in XVBAP...
anyone help me on this........
Otherwise give me any other sample code for the userexit BOM so that I will learn...a lot from that....
Thanks in advance,
Madhu
2007 Feb 28 5:34 PM
Hi Madhu,
You can try something like this to read XSTB in user exits EXIT_SAPFV45S_003.
DATA: XT_XSTB LIKE STANDARD TABLE OF SDSTPOX WITH HEADER LINE.
FIELD-SYMBOLS: <XSTB> TYPE TABLE.
DATA: FIELD_NAME(30) VALUE '(SAPFV45S)XSTB[]'.
ASSIGN (FIELD_NAME) TO <XSTB>.
XT_XSTB[] = <XSTB>.
READ TABLE XT_XSTB WITH KEY STLAL = '05'.
IF SY-SUBRC = 0.
.... <--- your logic to move to VBAP
ENDIF.
Regards,
Ferry Lianto
2007 Feb 28 7:54 PM
Hello,
The logic should be like this........
when ever the combination of materials....matnr1 and matnr2,....should not exceed quantity 6.....the combination must be like 6-0, 5-1, 4-2, 3-3, 2-4. material matnr1 minimum qty is 2.....so anyone give me the logic....sample code..
madhu..