Selection of Alternative BOM
How to To Select Second alternative From three alternative without using production version, Lot size, and Explosion date
Hi,
You can select the alternate BOMS automatically by valid from date (BOM by date)...Transaction code OPPP.
Regards
Tajuddin
Similar Messages
-
Alternative bom and routing selection in planned order
hi
how i can config the system so that while creating planned order
system has to select the alteranative SEQUENCE and alternative routing ?
at opl8 we do this for production orders what about the planned oreders
in scheduling parameters of planned orders we can give only selection ID
WHAT about alternative SEQUENCE .
IN the same way how the system selects the alternative BOM with date in planned order
iam not creating production versions
plz suggest
sasikanthHi,
If you r using Prod Version then system pick ups the BOM attached in first valid production version.
So, normally put more frequently used BOM in your first Prod Version.
You have more options to use:
- lot size (defined in BOM header)
- production version (several option you have: lot size, manually assign a PV to a planned order)
- you can use explosion date (OPPP, Logistcs > Production > MRP > Master Data > BOM by date)
MRP 4 (in material master) > 'BOM explosion/dependent requirement' tab > you can set selection method according to your wish.
Details:
http://help.sap.com/saphelp_46c/helpdata/en/f4/7d2b1144af11d182b40000e829fbfe/frameset.htm
Regards,
Sankaran -
CO01 CREATE SHOP ORDER MANUALLY SELECTING ALTERNATIVE BOM
Hi, I can see how to set-up alternative bom selection when using mrp to create shop orders automatically but when we are manually creating a shop order and there are two alternative boms how do I select the second alternative at the time of creation, our set-up defaults to alternative 1 and gives no choice to select the other. Each alternative has different components of course and allocated to different operations.
Hope you can advise me, thank you.
Craig WoodHi Craig Wood,
u can select desire alternative bom while creating Production order manually by creating two production versions for your header material. Do the following settings..
1.create two production versions and assign your alternative BOM - Mrp view of MM01.
2. define BOM selection Ind = 2 in (By production version) In Mrp view.
3.then define selection of production version = 1 (Manual selection)for your order type and plant - in OPL8
4. Now create pro ord , give your qty and date`s then sytem will show one pop-up window here u can select the production version .
regards
pradeep. -
How to select the Alt BOM in the Sub-Contract PO
Dear All,
please tell me how to select the alternative BOM in the sub -contracting purchase order.
for the above said requirement i have cretaed production versions and the BOMselction method also i have selcted in the material master data as "2" means BOM by produ ction version.
so how can i select the alt BOm in theSub-contracting PO.
Thanx in advanvce
regards
SrinivasHi,
SAP help says you have to write the production version in the subcontracting info record:
http://help.sap.com/saphelp_46c/helpdata/en/b2/fa1ed4d51d11d1a69e0000e83235d4/frameset.htm
http://help.sap.com/saphelp_46c/helpdata/en/35/b0e96787a62488e10000009b38f9b7/frameset.htm
(I've checked a subcon-info record but sorrowfully I havent found a field for this...if you can find please let me know)
BR
Csaba -
Alternative BOM in Subcontarcting PO
Greetings....
How to select the alternative BOM in Subcontarcting Purchase Order,...Dear,
You need to create new production version in the material master, need to assign the BOM for Alternate BOM in the production version. You assign this production version in the info record for subcontract.
Then it will work for you.
Please refer this link for details,
[Alternative BOM in Subcontarcting PO|BOM Selection in Production order and Purchase order]
Regards,
R.Brahmankar -
Alternative BOM selection in Subcontracting purchase requisition
Hi,
We have three alternative BOM for one semi-finished material.
We created production three production versions for respective BOM, and maintained the prod version in to subcontracting info record.
But without creating any production versions,
Can we select the BOM alternative at the time of creating subcontracting purchase requisition in ME51N,Why do you want to select BOM at the time of PO creation ?
If BOM components differ based on quantity of finished product, then these FG quantity range can be specified in from-lot-size and to-lot-size fields of production version - and SAP will pick the appropriate PV based on PO quantity.
If BOM components to be provided to sub-contract vendor differ based on vendor, then specify that in the info record. -
How can I select alternative BOM when creating subcontract purchase order?
In our business, a finish good material always has different production versions at the same time. Each of production versions has its own alternative BOM. When I create a planned order, I can select wanted BOM through specifying production version.
But, when I creating subcontract purchase order, there is no field for me to specify the production version or which alternative BOM I prefer. In this case, I need to create a planned order at first. And then, convert the planned order to purchase. Only through this way, I can create a subcontract purchase order with my wanted BOM.
So, I wonder if there is any way to select alternative BOM directly when creating subcontract purchase order.
Thanks a lot!
Regards
RobbieDear Mr. MM
can you give me additional information about your solution?
BUT I would not expect the sytem to offer you during the Purchasing cycle the different Production Versions as it is not meant to be. I remember having the same requirement some time ago and we solved it the way I described above, additionally we created a Pop up window with a user exit during the PO creation which offered the different production versions and if the one linked with the quota arrangement, the standard PV, is used in the PO.
We also have the same problem, we activated businessfunction SCM_GEN_02 so that it is possible to have several production versions for one supplier, but unfortunatly it is not possible to change the production version in the purchase order. (business function does not seem to be very integrated)
So i would be very interested in your solution because acually it seems that i have to modify the sap standard.
Thank you and best regards
Lisa -
hello,
i want solution for alternative bom selection.
for eg.
i have material say X00100 which has two alternative components
A00100
B00100
now, i have to mapped the scinario that .the product pick the material A00100
first & if there is no stock then it will pick the material B00100
please give the solution
marks are sure
regards,
mangeshHi,
Try using this concept.
In BOM alternative items are assigned to alternative item group on the general
data.
In the production order in the general data tab page.
We can define the alternative items based on priority , strategy and usage probability.
Priority:
This defines the priority of the item within the alternative item group.
This determines the priority of planned withdrawls of items.
EX Two items are assigned to alternative item group
item A Priority 1
item B Priority 2
The system reads the item A first.
Strategy:
use the strategy to determine how the planned withdrawl is controlled
within the alternative item group.
The strategy should be same for all alternative items within a alternative
item group.
If the value 2( 100% check) is defined for the strategy the first material in
the defined priority sequence for which sufficient quantities are available
are reserved.
If value 1 is used( manual maintainence/ usage probability) depending upon the
availability you can manually with draw components.
Usage Probability:
MRP Plans these alternative material components according to probability
of use.Material requirements for BOM Components are planned according
to usage probability.
The planned withdrawls for the production order are based on the
reservation lists.These lists are based on the priority and strategy.
Regards,
nandha -
Reg: Creation of BOM along with Alternative BOM
Hi Experts,
I have written the below code for creating BOM along with Alternative BOM, I'm getting the following error.
W BAPI1080 028
Error/warning when checking the structure of the BOM group with ID=
A BAPI1080 002
Basic data for (BOM) group available twice
A BAPI 001
No instance of object type BOMGroup has been created. External reference:
W BAPI1080 028
Error/warning when checking the structure of the BOM group with ID=
A BAPI1080 002
Basic data for (BOM) group available twice
A BAPI 001
No instance of object type BOMGroup has been created. External reference:
Please find the piece of code below.
SORT it_bom01 BY matnr idnrk posnr ASCENDING.
LOOP AT it_bom01 INTO wa_bom01.
AT NEW matnr.
CLEAR:
it_bomgroup[],
wa_bomgroup,
it_variants[],
wa_variants,
it_items[],
wa_items,
it_matrel[],
wa_matrel,
it_itemas[],
wa_itemas,
it_return.
ENDAT.
* Material BoM Group Header Data
wa_bomgroup-bom_group_identification = 'IDENTIFICATION'.
wa_bomgroup-object_type = 'BGR'.
wa_bomgroup-object_id = 'ID'.
wa_bomgroup-bom_usage = wa_bom01-stlan.
wa_bomgroup-ltxt_lang = sy-langu.
wa_bomgroup-technical_type = ' '.
* wa_bomgroup-bom_text = .
wa_bomgroup-created_in_plant = wa_bom01-werks.
APPEND wa_bomgroup TO it_bomgroup.
* Header Details of the different variants
wa_variants-bom_group_identification = 'IDENTIFICATION'.
wa_variants-object_type = 'BOM'.
wa_variants-object_id = 'ID'.
wa_variants-alternative_bom = wa_bom01-stlal.
wa_variants-bom_status = wa_bom01-stlst.
wa_variants-base_qty = wa_bom01-bmeng.
wa_variants-valid_from_date = wa_bom01-datuv.
wa_variants-alt_text = wa_bom01-alt_text.
wa_variants-function = 'NEW'.
APPEND wa_variants TO it_variants.
* Details of the items of the variants
wa_items-bom_group_identification = 'IDENTIFICATION'.
wa_items-object_type = 'ITM'.
wa_items-object_id = 'ID'.
wa_items-item_no = wa_bom01-posnr.
wa_items-item_cat = wa_bom01-postp.
wa_items-component = wa_bom01-idnrk.
wa_items-comp_qty = wa_bom01-menge.
wa_items-valid_from_date = wa_bom01-datuv.
APPEND wa_items TO it_items.
* Details of the materials of the different variants
CLEAR it_matrel.
wa_matrel-bom_group_identification = 'IDENTIFICATION'.
wa_matrel-material = wa_bom01-matnr.
wa_matrel-plant = wa_bom01-werks.
wa_matrel-bom_usage = wa_bom01-stlan.
wa_matrel-alternative_bom = wa_bom01-stlal.
APPEND wa_matrel TO it_matrel.
* Linking items to the corresponding variants
CLEAR it_itemas.
wa_itemas-bom_group_identification = 'IDENTIFICATION'.
wa_itemas-sub_object_type = 'ITM'.
wa_itemas-sub_object_id = 'ID'.
wa_itemas-super_object_type = 'BOM'.
wa_itemas-super_object_id = wa_bom01-matnr.
wa_itemas-valid_from_date = wa_bom01-datuv.
wa_itemas-function = 'NEW'.
APPEND wa_itemas TO it_itemas.
AT END OF matnr.
CALL FUNCTION 'BAPI_MATERIAL_BOM_GROUP_CREATE'
EXPORTING
all_error = 'X'
TABLES
bomgroup = it_bomgroup
variants = it_variants
items = it_items
materialrelations = it_matrel
itemassignments = it_itemas
return = it_return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
LOOP AT it_return.
WRITE:/ it_return-type, it_return-id, it_return-number,
it_return-message.
ENDLOOP.
ENDAT.
ENDLOOP.
Thanks and Regards,
Abdur RafiqueHi Sree,
I used your code, I removed the levels because, i have only one level 'the lineitems'. Please find the modified code below. I'm not able to create the BOM, it throws an error as "BOM is recursive". I checked the header and item contents before passing to FM, it is correct.
Please help me with the solution.
REPORT zbom_sdn.
TYPE-POOLS: truxs.
DATA: bom_header LIKE cad_bicsk,
bom_item TYPE TABLE OF cad_bom_item WITH HEADER LINE,
bom_sub_item TYPE TABLE OF cssubitem WITH HEADER LINE,
dms_class_data TYPE TABLE OF cls_charac WITH HEADER LINE,
sap_field_data TYPE TABLE OF rfcdmsdata WITH HEADER LINE,
e_return LIKE cad_return-value,
e_message LIKE message-msgtx,
e_message_len LIKE cad_return-message_len.
DATA v_item TYPE i.
TYPES : BEGIN OF ty_data,
matnr TYPE cad_bicsk-matnr," Material
werks TYPE csap_mbom-werks," Plant
stlan TYPE csap_mbom-stlan," BOM Usage
datuv TYPE csap_mbom-datuv," Valid From
* posnr TYPE stpo_api03-item_no," Item Number
idnrk TYPE stpo_api03-component," BOM Component
postp TYPE stpo_api03-item_categ," Item category
menge TYPE cad_bom_item-menge," Quantity
bmeng TYPE stko_api01-base_quan," Base Qty
stlst TYPE stko_api01-bom_status," BOM Status
stlal TYPE csap_mbom-stlal," Alternative BOM
alt_text TYPE stko_api01-alt_text," Alternative BOM text
END OF ty_data.
DATA : it_data TYPE TABLE OF ty_data ,
wa_data TYPE ty_data.
DATA: wa_raw TYPE truxs_t_text_data.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-001.
PARAMETER : p_file TYPE rlgrap-filename OBLIGATORY.
SELECTION-SCREEN END OF BLOCK b2.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
EXPORTING
program_name = syst-repid
dynpro_number = syst-dynnr
CHANGING
file_name = p_file.
START-OF-SELECTION.
CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
EXPORTING
* I_FIELD_SEPERATOR =
i_line_header = 'X'
i_tab_raw_data = wa_raw " Work Table
i_filename = p_file
TABLES
i_tab_converted_data = it_data[] " Actual Table
EXCEPTIONS
conversion_failed = 1
OTHERS = 2 .
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CLEAR: bom_header, bom_item, bom_sub_item.
REFRESH: bom_item, bom_sub_item.
DATA : v_lineitem TYPE sposn VALUE '0000',
v_slineitem TYPE sposn VALUE '0'.
LOOP AT it_data INTO wa_data.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = wa_data-matnr
IMPORTING
output = wa_data-matnr.
* fill BOM header
CLEAR bom_header.
bom_header-matnr = wa_data-matnr. "'000000000200000016'.
bom_header-stlal = wa_data-stlal. " Alternative Bom
bom_header-werks = wa_data-werks. "'1000'.
bom_header-stlan = wa_data-stlan. "'3'.
bom_header-bmeng = wa_data-bmeng.
bom_header-cadkz = 'X'.
bom_header-stktx = wa_data-alt_text.
* bom_header-ztext = wa_data-text.
bom_header-datuv = wa_data-datuv."'01.10.2010'.
* fill item
v_lineitem = v_lineitem + 10.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = v_lineitem
IMPORTING
output = v_lineitem.
* bom_item-upskz = 'X'. " If We hav the Sub items Enable it.
bom_item-idnrk = wa_data-matnr. "'000000000200000017'.
bom_item-posnr = v_lineitem.
bom_item-postp = wa_data-postp."'L'.
bom_item-menge = wa_data-menge. "'1'.
* bom_item-fmeng = wa_data-fqty.
APPEND bom_item.
CLEAR: bom_item.
AT END OF matnr.
CALL FUNCTION 'CAD_CREATE_BOM_WITH_SUB_ITEMS'
EXPORTING
i_bom_header = bom_header
i_auto_posnr = ''
IMPORTING
e_return = e_return
e_message = e_message
e_message_len = e_message_len
e_bom_header = bom_header
TABLES
bom_item = bom_item
bom_sub_item = bom_sub_item
dms_class_data = dms_class_data
sap_field_data = sap_field_data
EXCEPTIONS
OTHERS = 1.
REFRESH bom_item.
WRITE : e_message.
ENDAT.
CLEAR wa_data.
ENDLOOP.
Thanks and Regards,
Abdur Rafique -
To display flatfile rec's under 1 Alternative BOM using BDc recording.
Hi,
I m trying to display flat file entire(i.e.. 4 rec's i m using) records vertically under one (Alternative BOM) for CS01-BOM using BDC recording method.
Now i m tried with the following code,i m getting as one (Alternative BOM) for one ff record,by replacing one by one.
But i want as vertically under one (Alternative BOM).
Can anyone help me to overcome this.
report ZBOM
no standard page heading line-size 255.
*include bdcrecx1.
DATA: BEGIN OF bdc OCCURS 0,
matnr(18),
werks(4),
stlan(1),
END OF BDC.
DATA: BEGIN OF BDC1 OCCURS 0,
idnrk(18),
MENGE(18),
MEINS(3),
postp(1),
posnr(4),
END OF bdc1.
DATA: BEGIN OF BDCDATA OCCURS 0,
matnr(18),
werks(4),
stlan(1),
idnrk(18),
MENGE(18),
MEINS(3),
postp(1),
posnr(4),
END OF BDCDATA.
data ibdcdata type standard table of bdcdata WITH header line.
*start-of-selection.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = 'C:\Documents and Settings\dilipkumar.b\Desktop\soft.txt'
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = ','
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
VIRUS_SCAN_PROFILE =
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH =
HEADER =
TABLES
DATA_TAB = BDCDATA
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF SY-SUBRC 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*perform open_group.
loop at bdcdata.
perform bdc_dynpro using 'SAPLCSDI' '0100'.
perform bdc_field using 'BDC_CURSOR'
'RC29N-STLAN'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RC29N-MATNR'
'SOFTDRINKS'.
perform bdc_field using 'RC29N-WERKS'
'WIND'.
perform bdc_field using 'RC29N-STLAN'
'1'.
perform bdc_field using 'RC29N-DATUV'
'16.09.2008'.
perform bdc_dynpro using 'SAPLCSDI' '0110'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RC29K-BMENG'
'1'.
perform bdc_field using 'RC29K-STLST'
'1'.
perform bdc_field using 'BDC_CURSOR'
'RC29K-EXSTL'.
perform bdc_dynpro using 'SAPLCSDI' '0111'.
perform bdc_field using 'BDC_CURSOR'
'RC29K-LABOR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPLCSDI' '0140'.
perform bdc_field using 'BDC_CURSOR'
'RC29P-POSTP(01)'.
perform bdc_field using 'BDC_OKCODE'
'=FCBU'.
perform bdc_field using 'RC29P-IDNRK(001)'
BDCDATA-IDNRK.
perform bdc_field using 'RC29P-MENGE(001)'
BDCDATA-MENGE.
perform bdc_field using 'RC29P-MEINS(001)'
BDCDATA-MEINS.
perform bdc_field using 'RC29P-POSTP(001)'
BDCDATA-POSTP.
perform bdc_dynpro using 'SAPLCSDI' '0130'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BDC_CURSOR'
'RC29P-POSNR'.
perform bdc_field using 'RC29P-POSNR'
BDCDATA-POSNR. "'0010'.
perform bdc_field using 'RC29P-IDNRK'
BDCDATA-IDNRK. "'15'.
perform bdc_field using 'RC29P-MENGE'
BDCDATA-MENGE. "'1'.
perform bdc_field using 'RC29P-MEINS'
BDCDATA-MEINS. "'ml'.
perform bdc_dynpro using 'SAPLCSDI' '0131'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'BDC_CURSOR'
'RC29P-POTX1'.
perform bdc_field using 'RC29P-SANKA'
'X'.
*perform bdc_transaction using 'CS01'.
*perform close_group.
CALL TRANSACTION 'CS01' USING IBDCDATA MODE 'A' UPDATE 'S'.
REFRESH IBDCDATA.
clear ibdcdata.
endloop.
Start new screen *
FORM BDC_DYNPRO USING PROGRAM DYNPRO.
CLEAR iBDCDATA.
iBDCDATA-PROGRAM = PROGRAM.
iBDCDATA-DYNPRO = DYNPRO.
iBDCDATA-DYNBEGIN = 'X'.
APPEND ibDCDATA .
ENDFORM.
Insert field *
FORM BDC_FIELD USING FNAM FVAL.
IF FVAL NODATA.
CLEAR iBDCDATA.
iBDCDATA-FNAM = FNAM.
iBDCDATA-FVAL = FVAL.
APPEND iBDCDATA .
ENDIF.
ENDFORM.Hi Dilip,
Please change your code.
I request you to please go through BDC tutorials before even starting to write the program.
There are many online tutorials which can help you with.
Also, search in SDN.. there you will get more than thousand results.. with the search term BDC.
Take this suggestion seriously before nayone reports the moderators that u have been posting this thread daily without taking into consideration the previous replies.
Regards,
Vishwa. -
Subcontract PO item withdrawal issue when alternative BOM item used
Hi,
As title mentioned, when we issue alternative material for a subcontract PO in BOM, but it still shows the quantity from primary item.
(For example, we have a product, let's say it as Product-A, it's combined by material-B1 and Material-C1
And the BOM for Product-A for item material-B1 has an alternative item, material-B2
Now the issue is when we issue material-B2 instead B1, but the PO usage/withdrawal listed in B1)
Because we are making a list for China custom for material usage, the issue listed above makes our list not available for custom department.
Please let us know how we could make the withdrawal in PO shows B2.
thanks,
StevenDear Steven,
As explained by our forum friend maintain this data.
1.Create 2 different BOM for the same header material with the respective BOM components.
2.Create production version for the header material using T COde MM02--->MRP4 view and click on prod.version,enter the same
as 0001,text as prod version 1,default valid from date will be the current date and the valid to date will be 31.12.9999.
3.Enter the lot size for which this prod version is valid and then in the alternative BOM select the BOM and save the data.
4.Prdo.version can also be maintained through C223.
5.Assign this prod version in the sub-contracting purchase info record in ME11,under prod version under purch org data(not sure
check this alone).
6.Likewise assign the prod version that is linked to the BOM to be picked for each sub-contracting vendor.
Check the results after MRP and revert.
Regards
S Mangalraj -
MRP run including Alternative BOM & Routing in sequence.
Dear Experts,
My client has maintained alternative BOM & Routing for there In house production materials.He wants to execute MRP run which can include all BOM's & Routing in sequence. Like, first MRP run should check material requirements as per first alternative followed with second & third alternatives.
Regards,
Rajesh.Dear Rajesh,
ur req is not possible in that way. coz MRP run select only one PV or BOM and routing at a time and if stock is not available then it will genrate the req.
You can try with this rather craeating an alteranative BOM create alternative group of material so when u run the MRP system will check the stock of first matrial and if short fall is there it will go for next.
Regards
Sachin -
Choose alternative BOM in batch input
Hi!
I'm starting using BOM alternative and I'm facing a problem. I have a batch input where I need to choose an alternative BOM, but the popup for choosing the alternative doesn't show up when in batch input mode.
Does anybody have a clue?
Regards.
Fabio ScaravelliTAJUDDIN,
I think this thread is SD, because the transaction is VA01 (I forgot to mention it, sorry). The BOM usage is 5 (Sales and distribution).
I need to choose an alternative BOM among two ones. But when VA01 is ran in batch input mode, the popup for choosing the alternative doesn't show up and the first alternative is selected by default.
Regards.
Fabio Scaravelli -
i have one finish product '' A '' ( say ), In one case to create '' A '' I require one raw materials as AA and one packing material as BB . Secondly to create "A" i sometimes require AA (Row material ) & CC ( Packing material ) . This dipends on my customer's requirement.
To takeover this problem I had created a production version as 001 & 002 in MRP 4 screen of material "A" & two alternative BOM as 1 & 2 ..But now while creating sales order by VA01 how I will come to know regarding BOM selection which will indicate my customers packing requirement.Hi abhijeet
In production version and Alternate BOM. You have to *differentiate between PV 1 & PV 2 by header quantity ( say 0 - 500 for first 501 - 100000 )* or by Validity date. Then only the system will pick automatically the required BOM.
Otherwise you have to manually select the BOM. By doing setting in OPL8 order type dependent parameter ( PV selection Manual ).
Note
This will work only for manual creation of prod order in CO 01.
Hope this is clear
Regards
J . Saravan -
Error in creating Alternative BOM using IDOC_INPUT_BOMMAT
Hi all,
I am trying to create an Alternative BOM using IDoc BOMMAT03.I have checked this IDoc will use FM IDOC_INPUT_BOMMAT inside.
In this function module, it is using FM CSAP_MAT_BOM_CREATE and CSAP_MAT_BOM_MAINTAIN to create and change.
This FM is allowing to create an Alterative BOM = '01' but it is not creating for Alt BOM = '02'.
Can anyone provide inputs on this .
Regards
SathibabuHai Guy,
use below code for Alternate BOM with sub item .
Part 1.
DATA: bom_header LIKE cad_bicsk,
bom_item type table of cad_bom_item WITH HEADER LINE,
bom_sub_item type table of cssubitem WITH HEADER LINE,
dms_class_data type table of cls_charac WITH HEADER LINE,
sap_field_data type table of rfcdmsdata WITH HEADER LINE,
e_return LIKE cad_return-value,
e_message LIKE message-msgtx,
e_message_len LIKE cad_return-message_len.
DATA v_ITEM TYPE I.
TYPES : BEGIN OF ty_data,
level TYPE i,
matnr TYPE cad_bicsk-matnr,
werks TYPE werks_d,
usage TYPE stlan,
qty TYPE cad_bom_item-menge,
fqty type fmeng, " Quantity is Fixed
sub_upmng type upmng,
text type cad_bicsk-ztext,
END OF ty_data.
DATA : it_data TYPE TABLE OF ty_data ,
wa_data TYPE ty_data.
**---selection screen
PARAMETERS:p_file TYPE ibipparms-path OBLIGATORY.
**---f4 help for the file from PC
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
PERFORM get_f4help.
*--start-of-selection .
START-OF-SELECTION.
PERFORM upload_file_itab.
CLEAR: bom_header, bom_item, bom_sub_item.
REFRESH: bom_item, bom_sub_item.
data : v_lineitem type SPOSN value '0000',
v_slineitem type SPOSN value '0'.
LOOP AT it_data INTO wa_data.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = wa_data-matnr
IMPORTING
output = wa_data-matnr.
IF wa_data-level = 0.
* fill BOM header
clear bom_header.
bom_header-matnr = wa_data-matnr. "'000000000200000016'.
* bom_header-stlal = '1'. " Alternative Bom
bom_header-werks = wa_data-werks. "'1000'.
bom_header-stlan = wa_data-usage."'3'.
bom_header-bmeng = wa_data-qty.
bom_header-cadkz = 'X'.
bom_header-stktx = wa_data-text.
* bom_header-ztext = wa_data-text.
bom_header-datuv = '01.10.2010'.
ELSEIF wa_data-level = 1.
* fill item
v_lineitem = v_lineitem + 10.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = v_lineitem
IMPORTING
output = v_lineitem.
* bom_item-upskz = 'X'. " If We hav the Sub items Enable it.
bom_item-idnrk = wa_data-matnr. "'000000000200000017'.
bom_item-posnr = v_lineitem.
bom_item-postp = 'L'.
bom_item-menge = wa_data-qty. "'1'.
bom_item-fmeng = wa_data-fqty.
APPEND bom_item.
CLEAR: bom_item.
*** fill sub item
CLEAR V_ITEM .
v_slineitem = v_slineitem + 1.
ELSEIF wa_data-level = 2.
* V_ITEM = V_ITEM + 1.
* bom_sub_item-posid = v_slineitem.
* bom_sub_item-ebort = 'test'.
* bom_sub_item-upmng = wa_data-sub_upmng.
* bom_sub_item-uposz = V_ITEM.
* bom_sub_item-uptxt = 'test'.
* append bom_sub_item.
* clear bom_sub_item.
ENDIF.
if wa_data-level = 0.
else.
at END OF LEVEL.
* Call function
CALL FUNCTION 'CAD_CREATE_BOM_WITH_SUB_ITEMS'
EXPORTING
i_bom_header = bom_header
i_auto_posnr = ''
IMPORTING
e_return = e_return
e_message = e_message
e_message_len = e_message_len
e_bom_header = bom_header
TABLES
bom_item = bom_item
bom_sub_item = bom_sub_item
dms_class_data = dms_class_data
sap_field_data = sap_field_data
EXCEPTIONS
OTHERS = 1.
refresh bom_item.
write : e_message.
ENDAT.
ENDIF.
CLEAR wa_data.
endloop.
Maybe you are looking for
-
Media player on website no longer working after upgrade to 23.1
Site is www.Jelli.com. Problem seems to be a icecast player. Everything was fully functional prior to upgrade. after upgrade gets error listed below. TypeError: jelli.page.player.ICECAST_PLAYER is null http://radio.jelli.com/16913499eb7a905ac699dc717
-
Making Payments with Payment Cards
Can anyone provide insight into the SAP configuration and transactions that are needed to make payments using payment cards. Most documentation I can find relates to receiving payment from customers. We are investigating options available to make v
-
HR: Info about Table T77ZZ
Hi , Can anyone give me some idea about table T77ZZ ? Like why it is used,when it is updated etc. Thanks very much. Regards, Sandip. Ph: +44 121 683 2561.
-
How to find mac address with 10.7.2 on macbook air
my dorm doesnt have wifi we r required to sumit our mac address in order to connect to use internet with internet cable i have an air with 10.7.2 and bought a ethernet adapter still can find my mac address.........plz help me
-
hi, im living here in UAE.., when i go to philippines for vacation someone stole my x-peria z2 is it possible to lock my x-peria and nobody can use it again.? please help me.. i use it only for 3 weeks.. Solved! Go to Solution.