2007 Aug 02 3:11 PM
Hi all,
I have flat file data coming in that I'm suppose to create a BOM with. The issue is I have extended the STKO and STPO table with z_fields. Is there a BAPI that creates a BOM that allows me to reach the includes CI_STKO and CI_STPO or do I have to use an IDOC?
Hi all,
I have flat file data coming in that I'm suppose to create a BOM with. The issue is I have extended the STKO and STPO table with z_fields. Is there a BAPI that creates a BOM that allows me to reach the includes CI_STKO and CI_STPO or do I have to use an IDOC?
2007 Aug 02 3:22 PM
For the most part (there are a few exceptions) BAPI's do not allow for custom fields.
I am not sure if you are using LSMW or writing your own program to accomplish this but you can do a recording to populate those fields.
If you are using LSMW just do a recording of those two fields and after you have created your BOM use the recording to populate the custom fields.
If you are writing your own program, do a recording with TCODE SHDB. After that generate a function module from the recording. Then as you process the BAPI and save the record you can call the FM generated from your recording to populate your custom fields.
2007 Aug 02 3:23 PM
Hi,
OIn 4.6 you can use the Function module <b>CSAI_BOM_CREATE</b>
If you have later version then use BAPI_MATERIAL_BOM_GROUP_CREATE
Regards
Sudheer
2007 Aug 02 3:29 PM
Sudheer, I don't see where I can pass custom fields to this BAPI.
Christopher, although a nice idea, I think the only options for me are BAPI or Idoc.
Thanks for the helpful info though guys.
Message was edited by:
Akeem Lockett
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |