‎2006 Jul 19 10:41 PM
i am trying to create BOM using this BAPI . It throw me a warning only saying
W |BAPI1080 |029 |Error when checking the data of the objec<
Error when checking the data of the object type=BOM / Id=ARENA50WDG40OZ of group
as its just a warning i tried to commit the bapi. But the BOm was not created. Any ideas as to what could be happening.
below is the code of the object type BOM.
bom_vari-bom_group_identification = c_bom_group_id.
bom_vari-object_type = c_bom_bom.
bom_vari-object_id = bom_type_wa-matnr.
bom_vari-base_qty = bom_type_wa-bmeng.
bom_vari-base_unit = bom_type_wa-bmein.
bom_vari-function = c_bom_new.
append bom_vari.
thanks
‎2006 Jul 19 11:09 PM
Honestly, I would need more information as to what the error is and what object you are trying to create.
First look it seems that it is trying to convert an object type that isn't allowed. You might want to try and debug it step by step and make sure it is taking the variables that you are inputing.
‎2006 Jul 19 11:24 PM
This`ll help you too ...
<b>FYI</b>
Symptom
You want to transfer BOM groups to the R/3 via function module BAPI_MATERIAL_BOM_GROUP_CREATE.
How can I call the function module?
Reason and Prerequisites
Function module BAPI_MATERIAL_BOM_GROUP_CREATE is documented
First of all, read the function module documentation.
The function module can be called via the Data Transfer Workbench (Transaction SXDA).
If the function module is supposed to be called directly from an individual program and if problems occur in this case, you should copy the desired BOM data transfer about the ALE entry as described under 'Solution', as well as analyze the call of the function module from the ALE entry and then adjust the call of the function module in your program.
Solution
1. Set a breakpoint in the source code of function module BAPI_MATERIAL_BOM_GROUP_CREATE.
2. Create a BOM group manually with those objects (for example alternatives/variants, long texts, subitems, history, plant assignments) that you want to transfer.
3. Execute program MAT_BOMGROUP_CREATE_SAMPLE. Specify material, plant and use of the created BOM group as selection conditions, initialize the checkbox 'Test run without data backup' and press 'Execute (F8)'.
Note: Program MAT_BOMGROUP_CREATE_SAMPLE is included in the Data Transfer Workbench (SXDA).
4. Program MAT_BOMGROUP_CREATE_SAMPLE issues the number of the created IDoc in the status indicator line. Note down the IDoc number. If you should have ignored the status message with the IDoc number, you can subsequently search for the IDoc number with Transaction WE05. In Transaction WE05 restrict the IDoc search on the current day and basic type 'MATERIALBOM_CREATEBOMGROUP01' or logical message category 'MATERIALBOM_CREATEBOMGROUP'.
5. Function module BAPI_MATERIAL_BOM_GROUP_CREATE can only create but not change BOM groups. In order to be able to book in the created IDoc successfully, you must either physically delete the BOM group selected for the IDOC generation from the database (that is, to be deleted without change number) or you must subsequently change the created IDoc so that the IDOC creates a non-existing BOM group. You can achieve this by calling the IDoc number in Transaction WE19 and change the BOM usage (Field BOM_USAGE), for example in IDoc segments E1BP1080_BGR_C and E1BP1080_MBM_C .
6. Call the IDoc number via Transaction WE19. Choose 'Inbound Function Module'. Enter function module name 'IDOC_INPUT_MAT_BOMGROUP_CREATE' in the dialog box. Press 'Enter'. Now the transaction stops at the defined breakpoint in function module BAPI_MATERIAL_BOM_GROUP_CREATE.
7. Check, how BAPI_MATERIAL_BOM_GROUP_CREATE is called in the SAP Standard system. Adjust the call according to BAPI_MATERIAL_BOM_GROUP_CREATE from within your own program.
Hope thisll give you idea!!
<b>Pl... award the points.</b>
Good luck
Thanks
Saquib Khan
"Some are wise and some are otherwise"
PS.
<b>Put yourself on the SDN world map (http://sdn.idizaai.be/sdn_world/sdn_world.html) and earn 25 points.
Spread the wor(l)d!</b>
‎2006 Jul 20 12:04 AM
ok. now my question would be can i use the FM to create a BOM similar to CS01.