FM: BAPI_MATERIAL_BOM_GROUP_CREATE inquiries?
My inquiries as bleow:
1. This function is create BOM group or can be create BOM?
2. If my requirement include BOM 'Create', BOM 'Change' and BOM 'Delete', this function can be to do these three requirement?
3. We use 'AFS' and this function support the AFS(Apparel & Footwear Solution ) or not ?
4. If i want to througth PDM to get BOM data, and to create, change and delete BOM, have any solution to let me reference?
Thanks a lot!!
EPORT ZTEST_CHIN message-id 01.
This code will create a material BoM for the material
MAINMATERIAL with the components COMPON1 and COMPON2.
Data Declaration
DATA:
it_bomgroup LIKE bapi1080_bgr_c OCCURS 0 WITH HEADER LINE,
it_variants LIKE bapi1080_bom_c OCCURS 0 WITH HEADER LINE,
it_items LIKE bapi1080_itm_c OCCURS 0 WITH HEADER LINE,
it_matrel LIKE bapi1080_mbm_c OCCURS 0 WITH HEADER LINE,
it_itemas LIKE bapi1080_rel_itm_bom_c OCCURS 0 WITH HEADER LINE,
it_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE,
it_subitems LIKE bapi1080_sui_c OCCURS 0 WITH HEADER LINE,
it_subitemas LIKE BAPI1080_REL_SUI_ITM_C OCCURS 0 WITH HEADER LINE.
Fill the data
Material BoM Group Header Data
CLEAR it_bomgroup.
it_bomgroup-bom_group_identification = 'BAPI_SMP_COL1'.
it_bomgroup-object_type = 'BGR'.
it_bomgroup-object_id = 'SIMPLE1'.
it_bomgroup-bom_usage = '1'. " YOU COULD CHANGE THE BOM USAGE TO YOUR
it_bomgroup-ltxt_lang = sy-langu.
it_bomgroup-technical_type = ' '.
it_bomgroup-bom_text = 'Simple BoM - FM'.
APPEND it_bomgroup.
Header Details of the different variants
CLEAR it_variants.
it_variants-bom_group_identification = 'BAPI_SMP_COL1'.
it_variants-object_type = 'BOM'.
it_variants-object_id = 'SIMPLE1'.
it_variants-alternative_bom = '01'.
it_variants-bom_status = '01'.
it_variants-base_qty = '1.000'.
it_variants-valid_from_date = sy-datum.
it_variants-function = 'NEW'.
APPEND it_variants.
Details of the materials of the different variants
CLEAR it_matrel.
it_matrel-bom_group_identification = 'BAPI_SMP_COL1'.
it_matrel-material = 'BAPIBOMFG1'.
it_matrel-bom_usage = '1'.
it_matrel-alternative_bom = '01'.
APPEND it_matrel.
Linking subitems to the corresponding variants
CLEAR it_subitemas.
it_subitemas-bom_group_identification = 'BAPI_SMP_COL1'.
it_subitemas-sub_object_type = 'SUI'.
it_subitemas-sub_object_id = 'SIM1'.
it_subitemas-super_object_type = 'ITM'.
it_subitemas-super_object_id = 'SIMPLE1'.
APPEND it_subitemas.
Linking items to the corresponding variants
CLEAR it_itemas.
it_itemas-bom_group_identification = 'BAPI_SMP_COL1'.
it_itemas-sub_object_type = 'ITM'.
it_itemas-sub_object_id = 'SIMPLE1'.
it_itemas-super_object_type = 'BOM'.
it_itemas-super_object_id = 'SIMPLE1'.
it_itemas-valid_from_date = sy-datum.
it_itemas-function = 'NEW'.
APPEND it_itemas.
Details of the items of the variants
CLEAR it_items.
it_items-bom_group_identification = 'BAPI_SMP_COL1'.
it_items-object_type = 'ITM'.
it_items-object_id = 'SIMPLE1'.
it_items-item_no = '0010'.
it_items-item_cat = 'L'.
it_items-component = 'BAPIBOMRW1'.
it_items-comp_qty = '2'.
it_items-valid_from_date = sy-datum.
APPEND it_items.
CLEAR it_subitems.
it_subitems-bom_group_identification = 'BAPI_SMP_COL1'.
it_subitems-object_type = 'SUI'.
it_subitems-object_id = 'SIM1'.
it_subitems-subitem_no = '0001'.
it_subitems-INSTALLATION_POINT = 'ab1'.
it_subitems-subitem_qty = '1'.
APPEND it_subitems.
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
subitems = it_subitems
subitemassignments = it_subitemas
return = it_return.
CLEAR it_subitems.
it_subitems-bom_group_identification = 'BAPI_SMP_COL1'.
it_subitems-object_type = 'SUI'.
it_subitems-object_id = 'SIM1'.
it_subitems-subitem_no = '0002'.
it_subitems-INSTALLATION_POINT = 'ab2'.
it_subitems-subitem_qty = '1'.
APPEND it_subitems.
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
subitems = it_subitems
subitemassignments = it_subitemas
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.
Similar Messages
-
Report for inquiries for all customers and material
how can i see a report of all inquiries of all customer and materials is there any predefine report in sap
we do have va15 but it does not list depending on the custmer or material, how can we do it for all customer
thanksStandard SAP SD Reports:=
Statistic Group:
Purpose To capture data for Standard Reports, we require to activate Statistic Group as under:
--> Item category (Configuration)
--> Sales document type (Configuration)
--> Customer (Maintain in Master data)
--> Material (Maintain in Master data)
When you generate statistics in the logistics information system, the system uses the combination of specified statistics groups to determine the appropriate update sequence. The update sequence in turn determines for exactly which fields the statistics are generated.
Configuration:
IMG --> Logistics Information System (LIS) --> Logistics Data Warehouse --> Updating --> Updating Control --> Settings: Sales --> Statistics Groups -->
1. Maintain Statistics Groups for Customers
2. Maintain Statistics Groups for Material
3. Maintain Statistics Groups for Sales Documents
4. Assign Statistics Groups for Each Sales Document Type
5. Assign Statistics Groups for each Sales Document Item Type .....
All Standard Reports which are available are as under:
SAP Easy Access: Information Systems -> Logistics -> Sales and distribution ->
1. Customer -> Incoming orders / Returns / Sales / Credit memos / Sales activities / Customer master / Conditions / Credit Master Sheet
2. Material -> Incoming orders / Returns / Sales / Credit memos / Material master / ...
3. Sales organization -> Sales organization / Sales office / Sales employee
4. Shipping point -> Deliveries / Returns
5. SD documents -> Orders / Deliveries / Billing documents ...
& so on.
Some of the Standard reports in SD are:
Sales summary - VC/2
Display Customer Hierarchy - VDH2
Display Condition record report - V/I6
Pricing Report - V/LD
Create Net Price List - V_NL
List customer material info - VD59
List of sales order - VA05
List of Billing documents - VF05
Inquiries list - VA15
Quotation List - VA25
Incomplete Sales orders - V.02
Backorders - V.15
Outbound Delivery Monitor - VL06o
Incomplete delivery - V_UC
Customer Returns-Analysis - MC+A
Customer Analysis- Sales - MC+E
Customer Analysis- Cr. Memo - MC+I
Deliveries-Due list - VL04
Billing due list - VF04
Incomplete Billing documents - MCV9
Customer Analysis-Basic List - MCTA
Material Analysis(SIS) - MCTC
Sales org analysis - MCTE
Sales org analysis-Invoiced sales - MC+2
Material Analysis-Incoming orders - MC(E
General- List of Outbound deliveries - VL06f
Material Returns-Analysis - MC+M
Material Analysis- Invoiced Sales - MC+Q
Variant configuration Analysis - MC(B
Sales org analysis-Incoming orders - MC(I
Sales org analysis-Returns - MC+Y
Sales office Analysis- Invoiced Sales - MC-E
Sales office Analysis- Returns - MC-A
Shipping point Analysis - MC(U
Shipping point Analysis-Returns - MC-O
Blocked orders - V.14
Order Within time period - SD01
Duplicate Sales orders in period - SDD1
Display Delivery Changes - VL22
Regards,
Rajesh Banka
Reward points if helpful. -
BOM Cretion error with BAPI : BAPI_MATERIAL_BOM_GROUP_CREATE
Dear All,
Desc:
Here i am trying to create a BOM with differnet componants :
i am getting the below error while creating the BOM in varient alternative..
W BAPI1080 028
Error/warning when checking the structure of the BOM group with ID=BOMGROUP1
A BAPI1080 010
Variant/alternative 01 can only occur once with the function NEW
A BAPI1080 010
Variant/alternative 01 can only occur once with the function NEW
A BAPI1080 010
Variant/alternative 01 can only occur once with the function NEW
Please find the below code:
Code:
To get SC details
Get Plant details
SELECT * FROM y27d_dc_marc
INTO TABLE l_t_y27d_dc_marc
WHERE instnr = '552'. "instnr
IF sy-subrc = 0.
SORT l_t_y27d_dc_marc BY werks.
ENDIF.
IF l_t_y27d_dc_marc IS NOT INITIAL.
Get all Regions
SELECT * FROM y27d_dc_dt_plant
INTO TABLE l_t_y27d_dc_dt_plant
FOR ALL ENTRIES IN l_t_y27d_dc_marc
WHERE werks = l_t_y27d_dc_marc-werks.
ENDIF.
Read the SC Details
READ TABLE l_t_y27d_dc_dt_plant
INTO l_r_y27d_dc_dt_plant
WITH KEY werks_typ = g_c_sc. "SC
IF sy-subrc = 0.
Populate SC details
g_f_sc_plant = l_r_y27d_dc_dt_plant-werks.
ENDIF.
Material BoM Group Header Data
l_r_bomgroup-bom_group_identification = 'BOMGROUP1'.
l_r_bomgroup-object_type = 'BGR'.
l_r_bomgroup-object_id = 'BOMGROUP1'.
l_r_bomgroup-bom_usage = '1'. " YOU COULD CHANGE THE BOM USAGE TO YOUR needs
Plant assignment for the corresponding group
l_r_bomgroup-created_in_plant = g_f_sc_plant. "'0470'.
l_r_bomgroup-ltxt_lang = sy-langu.
l_r_bomgroup-technical_type = 'M'. " bomgroup-technical_type = wstzu-stlty.
l_r_bomgroup-bom_text = 'Test for BOM YSPR'.
APPEND l_r_bomgroup TO l_t_bomgroup.
CLEAR l_r_bomgroup.
DATA : l_f_var_alter TYPE stalt,
l_f_var_alter_cnt TYPE stalt.
Get BOM Item details
SELECT * FROM y27d_dc_bom
INTO TABLE l_t_bom_item
WHERE instnr = '552'.
IF sy-subrc = 0.
DESCRIBE TABLE l_t_bom_item LINES l_f_var_alter.
Populate item data
LOOP AT l_t_bom_item INTO l_r_bom_item.
Varient alternative for all the corresponding componants
l_f_var_alter = sy-tabix.
Details of the items of the variants
l_r_itemdata-bom_group_identification = 'BOMGROUP1'.
l_r_itemdata-object_type = 'ITM'.
l_r_itemdata-object_id = l_r_bom_item-bcomponant. "'MDTRAW2011'
l_r_itemdata-item_no = l_r_bom_item-bitemno."'0010'.
l_r_itemdata-item_cat = l_r_bom_item-bitemcat. "'L'.
l_r_itemdata-component = l_r_bom_item-bcomponant. "'MDTRAW2011'.
l_r_itemdata-comp_qty = l_r_bom_item-bquan."'2'.
l_r_itemdata-valid_from_date = sy-datum.
APPEND l_r_itemdata TO l_t_itemdata.
CLEAR l_r_itemdata.
Item componant assignment to a variant/alternative
l_r_variants-bom_group_identification = 'BOMGROUP1'.
l_r_variants-object_type = 'BOM'.
l_r_variants-object_id = l_r_bom_item-bcomponant. "'MDTRAW2011'. "'BOM1'.
l_r_variants-alternative_bom = '01'.
l_r_variants-bom_status = '01'.
l_r_variants-base_qty = '100'.
l_r_variants-valid_from_date = sy-datum.
l_r_variants-function = 'NEW'.
APPEND l_r_variants TO l_t_variants.
CLEAR l_r_variants.
Item componant assignment to linked items
Linking items to the corresponding variants
l_r_itemlink_to_var-bom_group_identification = 'BOMGROUP1'.
l_r_itemlink_to_var-sub_object_type = 'ITM'.
l_r_itemlink_to_var-sub_object_id = l_r_bom_item-bcomponant. "'MDTRAW2011'. "componant linked with varient
l_r_itemlink_to_var-super_object_type = 'BOM'.
l_r_itemlink_to_var-super_object_id = l_r_bom_item-bcomponant. "'MDTRAW2011'. "componant linked with varient
l_r_itemlink_to_var-valid_from_date = sy-datum.
l_r_itemlink_to_var-function = 'NEW'.
APPEND l_r_itemlink_to_var TO l_t_itemlink_to_var.
CLEAR l_r_itemlink_to_var.
ENDLOOP.
ENDIF.
Get the Header details
SELECT SINGLE * FROM y27d_dc_mara
INTO l_r_bom_head_mara
WHERE instnr = '552'. "instnr
IF sy-subrc = 0.
Populate header data
l_r_bom_head-bom_group_identification = 'BOMGROUP1'.
l_r_bom_head-material = l_r_bom_head_mara-matnr. "'MDT01022011'.
l_r_bom_head-plant = g_f_sc_plant. "'0470'.
l_r_bom_head-bom_usage = '1'. "'5'.
l_r_bom_head-alternative_bom = '01'.
APPEND l_r_bom_head TO l_t_bom_head.
CLEAR l_r_bom_head.
ENDIF.
Create BOM
CALL FUNCTION 'BAPI_MATERIAL_BOM_GROUP_CREATE'
EXPORTING
all_error = 'X'
TABLES
bomgroup = l_t_bomgroup "BOM group
variants = l_t_variants "Varients
items = l_t_itemdata "Item details
materialrelations = l_t_bom_head "Header details
itemassignments = l_t_itemlink_to_var "Item lineked to Varient
return = l_t_return.
LOOP AT l_t_return INTO l_r_return WHERE type CA 'AEX'.
l_f_error = 'X'.
ENDLOOP.
IF l_f_error = space.
Processing successful --> Commit work on PDM system
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ELSE.
Error in processing --> Rollback work on PDM system
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
ENDIF.
LOOP AT l_t_return INTO l_r_return.
WRITE:/ l_r_return-type, l_r_return-id, l_r_return-number,
l_r_return-message.
ENDLOOP.
could you please help me to come out of this problem.Hi,
Did you try creating manually through CS01 with the same data? There could be a customization setting to restrict like this.
Thanks,
Vinod. -
I would like to inquire about the schedule that is synchronized to iCal in CalDav protocol from our system. Schedule that is synchronized could be edited from the iPad or iPhone terminal, but I can no longer edit from iOS5.1. We did not fix anything program itself, but the data format to be synchronized is the same. Can you tell me some tips?
I would like to inquire about the schedule that is synchronized to iCal in CalDav protocol from our system. Schedule that is synchronized could be edited from the iPad or iPhone terminal, but I can no longer edit from iOS5.1. We did not fix anything program itself, but the data format to be synchronized is the same. Can you tell me some tips?
-
I would like to inquire about how I could have my iPad 2 repaired or replaced. I bought it With a credit card via apple store website last June 19 of this year. At first, I already noticed a little white spot in the middle of the screen visible when the display on screen is dark. I thought this was okay. Now, My problem with it is that, it now has green discolorations at the center whenever the screen display is black or dark I.e. When a website's color is black or dark or whenever I go to the search interface.
I am from the Philippines.
Please attend to this inquiry as promptly as possible. I'm sorry I have to send it here since I cannot see any email or inquiry page on the apple website. I also cannot reach the toll free number on my mobile phone.
Thank you very much.
<Serial Number Edited by Host>You can find out how to get service for your iPad on this web page:
http://support.apple.com/kb/index?page=servicefaq&geo=Philippines&product=ipad
Regards. -
I would like to inquire how to use air 2.7 sdk in flash cs5.5.
I would like to inquire how to use air 2.7 sdk in flash cs5.5.
I have searched some solutions online and tried to copy air2.7 content in air2.6 folder(replaced the old one). I then did some efficiency tests but I don't see any improvements at all. Did I miss anything?
Besides that, There's a display ratio problem if I publish the ipa in landscape mode. I can't interact with the program either. But it is not a problem if the ipa is published in portrait mode.http://forums.adobe.com/thread/864964?tstart=0
-
I would like to inquire about my purchse for docs to go last 2013, in my ipad 2, using my old credit card Citybank , I cancelled the card because of fraud transactions, How can I be able to transfer the docs to go to my new ipad 4 ? the messageis there is a billingproblem.
Please advise.First of all, I suggest to remove the banned credit card from your account. If the banned credit card is still on the account, iTunes Store would sent a preauthorization request to the financial instute which would be declined as the credit card isn't active. To remove the credit card, please follow and choose "none":
http://support.apple.com/kb/HT1918?viewlocale=en_US
If "none" is not an option, the latest order is unpaid - maybe due to the fraud transactions. In this case you have to contact iTunes Store Support to clarify the order. If it is fraud, they can forgive the order. If the order wasn't fraud, then you have to pay first (just choose a active payment method or redeem a gift card).
iTunes Store Support contacts:
http://apple.com/support
Hope this was helpful. -
Purchase Order - Inquire / View Document
Which path / folder that is stored ".PDF" documents that are generated in Oracle R12 - Purchase Order.
When I run the following steps in Purchase Order: Inquire> Document View.
A document in PDF format is displayed. I need to know which way the Oracle writes this file to the server.
I need to delete it from the base.
I customizei this document (PO_STANDARD_XSLFO).
To my customization to take effect. I need to delete the document that has been exhibited for my cutomização take effect.
Otherwise I would have versioning the document, but can not do it.If you have XML publisher on your instance, then the pdf document generated by PO Summary->Inquire-View Document is generated by XML publisher. The PO pdf is generated based on the formating instructions provided in an xml (stored as xsl and the tags used are xsl and fo). Check the templates in XML Publisher administrator responsibility. This can be one way of modifying the report, but you might have to do some reading for modifying the xml.
Regards,
Nitin Darji -
Logo on a Standard Purchase Order Stylesheet Inquire -- View Document
Hi
I did add "LOGO" to Standard Purchase Order Stylesheet and customized required fields.but, something weird thing is happening.
After changing the Setup to "Customized_Template" which is the new custom template in Document Types->Document type layout , I created new Purchase Order and when i opened document from Inquire -->View Document I see the PDF with the changes as implemented in custom template but i don't see the Log , the strange case is that when i copy this PO Tools-->Copy Document i will get a new PO here when i open the Inquire -->View Document i get the LOGO on the PDF document.
Not sure why LOGO is not appearing for new purchase orders created, could you let me know how i can troubleshoot this?
thanks
praveen1. You don't create a new data definition. You create a new template and assign the seeded data definition to it. (XML Publisher Administrator).
2. On our version of the EBS there is a parameter on the PO Output for Communication concurrent request which lets you specify the template to use. However for the normal day to day use you need to do the setup in Purchasing:
Setup / Organizations / Purchasing Options / Control TAB / set 'PO Output Format' = 'PDF'
setup / purchasing / document types / select "Standard Purchase Order" / Set the Document Type Layout to your new template.
For the white paper on this see metalink doc id 387670.1 - Incidentally, when checking this I note that appendix C tells you how to change the logo in the XSL-FO template so that may give you a shortcut to your new PO Template. I haven't tried it though!
Cheers,
Dave -
Inquire button is greyed out in SRM 7.0 Approval screen
Hi Friends,
Any one faced an issue that the functionality 'inquire button' is greyed out in the SRM 7.0 approval screen. I have given Approval with Completion in the level type in SPRO. still i am not able to see the 'inquire button' in the approval screen. Any input on this issue..
John.Fixed my self
-
Error in the integration of inquira with adf
Hi,
we have added inquira url/page using iframe in adf page. now if user logs in to the adf portal and after accessing inquira page, when again if user tries accessing adf pages it shows empty alert window, sometimes it even shows alert message saying *"PREVENT THIS PAGE FROM CREATING ADDITIONAL DIALOGS".*
Issue is after accessing inquira we are not able to access/navigate through any of webcenter/adf pages.
can anyone help me out in resolving this issue.?
also, >this issue is caused after we log in to webcenter portal/adf page
>we have checked there is no issue related to inquira log in
Thank Youwhich api you are using in the inquira page .IMWS API or tag library .
-
How to display # of form inquires on website
We have a form on a BC site in which users fill out to place a vote. We would like to display the number of "votes" real-time which is basically the number of form inquiries. Can someone point me in the right direction on how I would achive this?
Hi,
note that this can be done with the combination of autosubmit (on the selectOne component) and PPR
Frank -
Inquiries vs. Customer Contacts
I pulled a Inquiry report for the past 3 months and there were 104 inquiries. Our customers submit inquiries by filling out one form. I pulled a Customer report for the past 3 months which provides the Contact information for these inquiries and there were 253 contacts. Shouldn't the number of inquiries and contacts match? Other than the Inquiry form, I don't know how we would've obtained these Customer Contacts.
Hi,
Please provide your site URL so we can take a look. -
EBS12. PO Form. Inquire-- view Document
in Purchase Order Form if i click on Inquire-->View Document. A PO report will be displayed in PDF format. i want to edit this report. how can i get the name and location of this report.
i know its not the answer. But your question has nothing to do with forms as a development tool and its possibilities. And thats what this forum is related to.
btw: did you open the forms and have alook what code is executed then you choose the menu-item?
Edited by: aweiden on 25.10.2008 10:46 -
Hi,
How to find out list of sales inquiries?
PrashantHi Prashant
Check the following standard reports :
VA15 Inquiries List
V.03 Incomplete Inquiries
Regards
Srinath
Maybe you are looking for
-
Page navigation problem in adf application.
Hi All, I developed one application in ADF that is working fine in integrated WLS. But While deployed in standalone WLS the page is not navigating. in my application i created two pages like in First page search with table.second page details of part
-
IPhone Photo Album - How To...
Hi guys, In iPhoto I can see the name of the pictures and search them by name. But in the iPhone photo album I cannot see the name of the pictures. Any way to see them? I need to see pictures by name as I'm creating different picture folders for plan
-
Need Recovery Disks for Elitebook 2530P
I can't find a link on the support page. Does anyone know if the disks are still available to order? Thanks
-
After upgrading to Leopard, a small percentage of my iTunes songs simply will not play. If I select them and try to play them, nothing at all happens. The artwork window is either blank or says that i have no artwork, and the song will not play. Leop
-
Make the use of LDAP Server optional
Hi, we are running an SAP EP 6 SP20 on Windows 2003 Enterprise Server. Our UME Configuration is defined as using an LDAP Server AND the Portal Database. Our portal is mostly used as an information basis used by anonymous access (Guest), some users ar