Variant configurator BAPI
I need to find a BAPI for the variant configurator for a sales order. To further explain, if you go to VA03 and view a sales order. Then highlight a line item and click on the "Item Details: Configuration" icon (last one on the right under the line items). I need to, somehow, relate a the line item to these characteristics (variant configurator).
Regards,
Davis
VC_I_GET_CONFIGURATION
Similar Messages
-
Variant Configurator / BAPI Create
Were building a web interface to our R/3 Variant Configurator. Our product is complex and requires us to create Inquiries with nested configurable materials. Were having a couple of issues and Im hoping someone might be able to point us in the right direction. A couple of questions
1) As mentioned we have nested configurable materials. We satisfy the first level characteristics by passing cfg_ref_in with the POSEX of the first level item (00010). Based on these characteristic/values further configurable materials maybe exploded on the order and we wont know their position. We also have characteristics for those nested materials however we dont know their POSEX in the document so it doesnt appear were able to pass their characteristics during the create process. In the case of nested configurable materials where youre uncertain of their POSEX is it a two pass operation? Meaning configure the first material (00010) , let it explode, then save, then update the document and pass the nested material characteristics?
Please tell me Im missing something and there is an easier way.
2) Were using SD_SALESDOCUMENT_CREATE we also see BAPI_INQUIRY_CREATEFROMDATA2. What is the difference? BAPI_INQUIRY_CREATEFROMDATA2 appears to call SD_SALESDOCUMENT_CREATE.
Thanks in advance.
/GregVC_I_GET_CONFIGURATION
-
Save variant configuration data with BAPI or FM
Hi experts,
I created a PP production order by using a configured material.
I can see internal object number in table AFPO-CUOBJ.
I'd like to change and save a value of characteristics by using ABAP.
Could you tell me it if there is a BAPI or FM to save values of characteristics in variant configuraion?
BR,you can chnage the variant configuration data using below bapi with strcture order_cfgs_value =
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument
order_header_in =
order_header_inx =
TABLES
return = return_lt
order_item_in =
order_item_inx =
partners =
partnerchanges =
partneraddresses =
order_cfgs_ref =
order_cfgs_inst =
order_cfgs_part_of =
order_cfgs_value = -
BAPI/FM in ECC to create a sales order with variant configurable material
Hi all,
I need to create a function module that creates a sales order in ECC with a variant configurable material.
can some one tell me if there is a in built function module or BAPI that i can make use of to create a sales order with variant configurable material in ECC.
Regards,
Jessica SamThanks MxG,
I dont know how to use this BAPI. .Can you suggest me a sample code.
My reqmnt is, i have
Sold to party, ship to party, bill to party , VC config material and all char values that should be populated while creating a sales order.
please help me with what values should i populate in i/p paramters and and how to use this BAPI with some sample code if posible.
Regards,
Jessica. -
How to Create Sales Order using BAPI with Variant configurations
Hi All,
I need to create a sales order using BAPI BAPI_SALESORDER_CREATEFROMDAT2 with Varaint confiugartions. I will get Header ITEM and variant configuration items in the flat file. Kindly help me in this regard.
One more thing, is there any way to findout all the Varaint classifications for a particular Material?
I have done the below coding. Sales order is getting created but variant configurations are not populating.
*...Configuration: Reference Data
DATA: gt_order_cfgs_ref TYPE TABLE OF bapicucfg,
wa_order_cfgs_ref TYPE bapicucfg.
*...Configuration: Instances
DATA: gt_order_cfgs_inst TYPE TABLE OF bapicuins,
wa_order_cfgs_inst TYPE bapicuins.
*...Configuration: Part-of Specifications
DATA: gt_order_cfgs_part_of TYPE TABLE OF bapicuprt,
wa_order_cfgs_part_of TYPE bapicuprt .
*...Configuration: Characteristic Values
DATA: gt_order_cfgs_value TYPE TABLE OF bapicuval,
wa_order_cfgs_value TYPE bapicuval.
*...Configuration: BLOB Internal Data (SCE)
DATA: gt_order_cfgs_blob TYPE TABLE OF bapicublb ,
wa_order_cfgs_blob TYPE bapicublb.
*...Configuration: Variant Condition Key
DATA: gt_order_cfgs_vk TYPE TABLE OF bapicuvk,
wa_order_cfgs_vk TYPE bapicuvk.
*...Configuration: Reference Item / Instance
DATA: gt_order_cfgs_refinst TYPE TABLE OF bapicuref,
wa_order_cfgs_refinst TYPE bapicuref.
*...Configuration: Reference Data
wa_order_cfgs_ref-posex = '10'.
wa_order_cfgs_ref-config_id = '1'.
wa_order_cfgs_ref-root_id = '1'.
wa_order_cfgs_ref-SCE = '1'.
wa_order_cfgs_ref-CBASE_ID_TYPE = 'G'.
wa_order_cfgs_ref-CONSISTENT = 'T'.
wa_order_cfgs_ref-COMPLETE = 'T'.
APPEND wa_order_cfgs_ref TO gt_order_cfgs_ref.
*..2nd item
wa_order_cfgs_ref-posex = '20'.
wa_order_cfgs_ref-config_id = '2'.
wa_order_cfgs_ref-root_id = '1'.
wa_order_cfgs_ref-SCE = '1'.
wa_order_cfgs_ref-CBASE_ID_TYPE = 'G'.
wa_order_cfgs_ref-CONSISTENT = 'T'.
wa_order_cfgs_ref-COMPLETE = 'T'.
APPEND wa_order_cfgs_ref TO gt_order_cfgs_ref.
*...Configuration: Instances
wa_order_cfgs_inst-config_id = '1'.
wa_order_cfgs_inst-inst_id = '1'.
wa_order_cfgs_inst-obj_type = 'MARA'.
wa_order_cfgs_inst-class_type = '300'.
wa_order_cfgs_inst-obj_key = '2021B'.
wa_order_cfgs_inst-quantity = 1.
wa_order_cfgs_inst-PERSIST_ID_TYPE = 'G'.
wa_order_cfgs_inst-CONSISTENT = 'T'.
wa_order_cfgs_inst-COMPLETE = 'T'.
APPEND wa_order_cfgs_inst TO gt_order_cfgs_inst.
*..2nd item
wa_order_cfgs_inst-config_id = '2'.
wa_order_cfgs_inst-inst_id = '1'.
wa_order_cfgs_inst-obj_type = 'MARA'.
wa_order_cfgs_inst-class_type = '300'.
wa_order_cfgs_inst-obj_key = '2021B'.
wa_order_cfgs_inst-quantity = 1.
wa_order_cfgs_inst-PERSIST_ID_TYPE = 'G'.
wa_order_cfgs_inst-CONSISTENT = 'T'.
wa_order_cfgs_inst-COMPLETE = 'T'.
APPEND wa_order_cfgs_inst TO gt_order_cfgs_inst.
*...Configuration: Characteristic Values
wa_order_cfgs_value-config_id = '1'.
wa_order_cfgs_value-inst_id = '1'.
wa_order_cfgs_value-charc = 'BASIC_MACHINE'.
wa_order_cfgs_value-value = 'L28'.
wa_order_cfgs_value-VALCODE = '1'.
APPEND wa_order_cfgs_value TO gt_order_cfgs_value.
wa_order_cfgs_value-config_id = '1'.
wa_order_cfgs_value-inst_id = '1'.
wa_order_cfgs_value-charc = 'BUCKET'.
wa_order_cfgs_value-value = 'PL1001'.
wa_order_cfgs_value-VALCODE = '1'.
APPEND wa_order_cfgs_value TO gt_order_cfgs_value.
*..2nd item
wa_order_cfgs_value-config_id = '2'.
wa_order_cfgs_value-inst_id = '1'.
wa_order_cfgs_value-charc = 'BUCKET_FOC'.
wa_order_cfgs_value-value = '023OP0049'.
wa_order_cfgs_value-VALCODE = '1'.
APPEND wa_order_cfgs_value TO gt_order_cfgs_value.
wa_order_cfgs_value-config_id = '2'.
wa_order_cfgs_value-inst_id = '1'.
wa_order_cfgs_value-charc = 'BUCKET_HOE'.
wa_order_cfgs_value-value = '028MS0004'.
wa_order_cfgs_value-VALCODE = '1'.
APPEND wa_order_cfgs_value TO gt_order_cfgs_value.
wa_order_cfgs_value-config_id = '2'.
wa_order_cfgs_value-inst_id = '1'.
wa_order_cfgs_value-charc = 'TYRE_PRESSURE_GAUGE'.
wa_order_cfgs_value-value = '81004402'.
APPEND wa_order_cfgs_value TO gt_order_cfgs_value.
*...Configuration: Reference Item / Instance
wa_order_cfgs_refinst-posex = '10'.
wa_order_cfgs_refinst-config_id = '1'.
wa_order_cfgs_refinst-inst_id = '1'.
APPEND wa_order_cfgs_refinst TO gt_order_cfgs_refinst.
*..2nd item
wa_order_cfgs_refinst-posex = '20'.
wa_order_cfgs_refinst-config_id = '2'.
wa_order_cfgs_refinst-inst_id = '1'.
APPEND wa_order_cfgs_refinst TO gt_order_cfgs_refinst.
Regards,
RajeshHi all,
Please help me in solving the issue.
Rajesh -
BAPI or Function maodule for Variant configuration
Hi,
Is there any BAPI or Function module which can give Variant configuration for a sales order?
Thanks,
Madhuhi
plz refer to the following code
Check the following Code & also Check the following Standard Programs
L2032U12
LCRMAU01
LCRMAU11
LZOC1U01
MWWMJF32
RBUS2032
Structures for order header
DATA: l_order_header_in LIKE bapisdhd1,
l_order_header_inx LIKE bapisdhd1x,
Tables for order items
li_order_items_in TYPE STANDARD TABLE OF bapisditm,
li_order_items_inx TYPE STANDARD TABLE OF bapisditmx,
Order partners
li_order_partners TYPE STANDARD TABLE OF bapiparnr,
*Schedule lines
li_ORDER_SCHEDULES_IN TYPE STANDARD TABLE OF BAPISCHDL,
li_ORDER_SCHEDULES_INX TYPE STANDARD TABLE OF BAPISCHDLX,
*-condition type
li_ORDER_CONDITIONS_IN TYPE STANDARD TABLE OF BAPICOND,
li_ORDER_CONDITIONS_INX TYPE STANDARD TABLE OF BAPICONDX,
Return table from bapi call
li_return TYPE STANDARD TABLE OF bapiret2,
Sales document number
l_vbeln LIKE bapivbeln-vbeln,
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
EXPORTING
order_header_in = l_order_header_in
order_header_inx = l_order_header_inx
testrun = 'X'
IMPORTING
salesdocument = l_vbeln
TABLES
return = li_return
order_items_in = li_order_items_in
order_items_inx = li_order_items_inx
order_partners = li_order_partners
ORDER_SCHEDULES_IN = li_ORDER_SCHEDULES_IN
ORDER_SCHEDULES_INX = li_ORDER_SCHEDULES_INX
ORDER_CONDITIONS_IN = li_ORDER_CONDITIONS_IN
ORDER_CONDITIONS_INX = li_ORDER_CONDITIONS_INX.
Thanks & Regards
ravish
<b>* plz rewrd points if helpful</b> -
BAPI to create variant configuration T-Code CU41
Hi,
I am looking for standard BAPI to create variant configuration T-Code CU41.
Please let me know if anybody come across the same.
Thanks,
Bala RajaHey,
There are no full proof BAPIs delivered by SAP to create work orders.
You might want to explore BAPI_ALM_ORDER_MAINTAIN but this BAPI has several limitations. Read the documentation of the BAPI for more information.
The best option is to record IW36 and create the suborder using CALL TRANSACTION.
-Kiran -
BAPI for Creating Sales Order For Variant Configuration Materials
Dear Gurus,
Before posting this thread, we have referred many SDN threads, OSS notes and other sites for any sort of help..but no success..All threads and other referrals are not much of help as they are kind of incomplete( Perhaps, we are unable to understand them..no offense).
Few checked threads on this subjects are:
http://scn.sap.com/thread/34590
http://scn.sap.com/thread/851070
http://scn.sap.com/community/abap/blog/2014/04/23/update-vc-variant-configuration-data-using-standard-bapi-in-sales-order
http://scn.sap.com/community/abap/blog/2014/07/15/creating-orders-with-variant-configured-items-using-bapisalesordercreatefromdat2
http://scn.sap.com/community/abap/blog/2014/04/23/update-vc-variant-configuration-data-using-standard-bapi-in-sales-order
http://scn.sap.com/thread/120144
OSS: 549563
Well, we're using the BAPI (BAPI_SALESORDER_CREATEFROMDAT2) which creates the sales order successfully but without the characteristic values in line items.
We're passing data to the following parameters - ORDER_CFGS_REF, ORDER_CFGS_INST, ORDER_CFGS_VALUE to create the variant config but not able to see it getting created.
Pls find attached BAPI coding document for your reference.
If you could throw any light on this issue will be of great help for us.
Thank You in Advance!!!
Reg,
Jagan-SD.Jagan nath
Try below.
you would need miimum of 3 segments to pass variant config data using this bapi
ORDER_CFGS_REF for each configurable item
POSEX = ITEM #
CONFIG_id , root_id - Start with 1 and increment it for each configurable line item
ORDER_CFGS_INST
CONFIG_ID - from above
INST_ID - Start with 1 and increment it for each configurable line item
OBJ_TYPE = "MARA'
CLASS_TYPE = '300'
OBJ_KEY = material #
ORDER_CFGS_VALUE
CONFIG_ID for the item, INST_ID for the item
charc for characteristic value
VALUE for characteristic value
Reference thread
How to Fill Configuration Data in BAPI BAPI_SALESORDER_CREATEFROMDAT2
Hope it will solve your issue.
Thanks
Ritesh -
Bapi for creation of quotation for variant configuration
Hi all,
I have done a BAPI to create a quotation with variant configuration.
I am not getting the right field in the structure of the bapi item to upload the required quantity of the variant material.
The value for the quantity is getting as 0.
Can you please help to upload the quantity in the variant item.
any ideas?
Thanks and Regards,
Kiran.i am not clear what youn are looking for.
Say material X is KMAT,
Material Y you have created as a variant of X by entering the conf material X in MRP3 view and setting the char values
Material Z you have created as a variant of X by entering the conf material X in MRP3 view and setting the char values different than Y
Now Y and Z are material variants of X, now tell me exactly what you are looking for? -
Variant configuration using Bapi
hi folks,
i have an issure regarding variant configuration using bapi 'BAPI BAPI_SALESORDER_CREATEFROMDAT2 '.
Can this BAPI be extended/modified to accept characteristic
values - based on characteristic values, it should perform variant matching
- in case variant matching is successful, the BAPI should replace the
KMAT material with the exact matched variant material.
- in case the variant matching is unsuccessful, then retain the KMAT
material in the sales order line item.
i have done one sample program where i am executing this bapi by passing all the mandatory values ,....its taking everything except the charactersitics of the material. can any one say me what are the mandatary fieds we need to pass for variant configuration using this bapi..or is there any other bapi which satisfies my problem.
thnx in advance,
santosh.Hi,
Just debug your SAP BC service in which you are calling the RFC and check if proper values are getting mappend to your input variables of RFC.
If that is correct than there wont be much chances of problem in BC.
\[removed by moderator\]
Regards,
Siddhesh S.Tawate
Edited by: Jan Stallkamp on Jul 1, 2008 4:32 PM -
Accessing a variant configurated transaction thro BAPI?
Hi,
The transaction Create Quotation (VA21)has been subjected to variant configuration.
In case i try to execute the same process with the help of BAPI_QUOTATION_CREATEFROMDATA, to what extent is it possible to replicate this variant configuration. This BAPI does contain Tables like ORDER_CFGS_REF, ORDER_CFGS_INST, ORDER_CFGS_PART_OF, ORDER_CFGS_VALUE. But documentation abt these tables isnt available.
Any experience with similar situations?
Best Regards
MeesumHi Meesum,
This problem comes up quite a bit. Have a look at the following two threads:
Re: Configure Materials using BAPI
BAPI_CONTRACT_CREATEFROMDATA - Item Configuration
Hope that helps.
Cheers,
Brad -
BAPI for variant configuration
Hi all,
I need a BAPI which loads Variant configuration information in sales order. I beleive BAPI_SALESORDER_CREATEFROMDAT2 can be used for this purpose, but I need help in finding the required structures and the fields that need to be used for this purpose. Can any one provide me the information ASAP?
Regards,
Asha.Please use FM BAPISDORDER_GETDETAILEDLIST to understand what structures need to be filled for VC.
Example code:
ls_view-header = 'X'.
ls_view-item = 'X'.
ls_view-sdschedule = 'X'.
ls_view-configure = 'X'.
ls_view-text = 'X'.
call function 'BAPISDORDER_GETDETAILEDLIST'
exporting
i_bapi_view = ls_view
tables
sales_documents = lt_docin
order_headers_out = lt_hdrout
order_items_out = lt_itmout
order_schedules_out = lt_schout
order_partners_out = lt_prtout
order_textheaders_out = lt_hdtxt
order_textlines_out = lt_txtli
order_cfgs_cucfgs_out = lt_cucfgout
order_cfgs_cuvals_out = lt_cuvalout
extensionout = lt_parex. -
Creation of sales order with Variant configuration info
Hi friends,
I am creating sales order along with Variant configuration data. We have 3 level BOM structure.
I am using BAPI_SALESORDER_CREATEFROMDAT2 and filling in ORDER_CFGS_REF, ORDER_CFGS_INST, ORDER_CFGS_PART_OF ORDER_CFGS_VALUE, ORDER_CFGS_REFINST
tables exactly the same way BAPISDORDER_GETDETAILEDLIST FM returns.
Sales order is being created with no variant configuration information.(Not in the header level atleast)
Can any one help me on this.
Thanks
SeshagiriUpdating Variant Configuration data for SO item became little tricky for us in an ongoing implementation. After spending some hours investigating the correct combination of data to pass, we were able to post the document correctly. As no detailed documentation is available online for this scenario, I hope this post will help community for similar requirements. J
For updating Variant configuration (VC) data for Sales order item, we need to populate below tables of standard FM or BAPI (e.g. SD_SALESDOCUMENT_CREATE).
Normally the standard FM or BAPI does not return any error messages in case configuration data is not updated successfully.
· SALES_SCHEDULES_IN: The required date field should be populated with appropriate value (REQ_DATE).
· SALES_ITEMS_IN: Field PO_ITM_NO should be populated with appropriate value.
· SALES_CFGS_REF Table:
1. This table should have 1 record per item.
2. Combination of CONFIG_ID and ROOT_ID should be unique across line items.
POSEX
000010
CONFIG_ID
000001
ROOT_ID
00000001
SCE
1
COMPLETE
T
CONSISTENT
T
CBASE_ID_TYPE
G
· SALES_CFGS_INST:
1. This table should have 1 record per item.
2. Combination of CONFIG_ID and INST_ID should be unique across line items.
CONFIG_ID
000001
INST_ID
00000001
OBJ_TYPE
MARA
CLASS_TYPE
300
OBJ_KEY
MATNR value
QUANTITY
Quantity value
QUANTITY_UNIT
Quantity Unit
COMPLETE
T
CONSISTENT
T
OBJECT_GUID
MATNR value
PERSIST_ID_TYPE
G
· SALES_CFGS_VALUE:
1. Combination of CONFIG_ID and INST_ID should be unique across line items.
2. We can have multiple characteristics for a material. In that case appropriate records should be inserted in this table. Note that CONFIG_ID and INST_ID should be same for all the rows you insert in this table for multiple characteristics for a material.
3. The characteristic value should be in SAP internal format.
CONFIG_ID
000001
INST_ID
00000001
CHARC
Material characteristics
VALUE
Material characteristics value
· SALES_CFGS_VK:
1. Combination of CONFIG_ID and INST_ID should be unique across line items.
2. We can have multiple characteristics for a material. In that case appropriate records should be inserted in this table. Note that CONFIG_ID and INST_ID should be same for all the rows you insert in this table for multiple characteristics for a material.
CONFIG_ID
000001
INST_ID
00000001
VKEY
Material characteristics -
Create a production order with variant configurator data
Hello,
Can anyone tell me the way to create a production order with variant configurator data. Is there a BAPI ? an IDOC ?
Is there several steps ?
I have to create an interface which creates automatically PP orders. The data input is a file.
Thanks for your helpHi,
There are fews BAPI's available for creation of Production Order. They are:
BAPI_PRODORD_CREATE
This bapi will suit to your requirement, as input will be provided from file.
Others are
BAPI_PRODORD_CREATE_FROM_PLORD " this converts planned order to production order
BAPI_PRODORD_CREATE_FROM_REF " this creats production order considering other production order as reference.
Hope your query is answered.
Regards,
Brajvir -
Variant configuration rules verification
Hello All,
We are using variant configuration in our company and have loaded BOMs with rules. So next step is to verify if the rules are correct or not. Now one option is to use CU50 to simulate the config but that can be done one by one material and if you have several charachtericts to assign value to then it becomes very painful to get teh list of components and compare them with the correct list.
So I would like to know if this can be automated using LSMW , BAPI etc. Thanks
AtulHi,
You cannot use LSMW or CATT for this purpose. You only have to test each of the dependencies and know the results.
You can use CATT may be to create test cases automatically. Or you can use some other testing tools to test the rules correctly.
Maybe you are looking for
-
Problem with Print button in the BI reports integrated in portal
Hi, We have some BI reports integrated into portal.and we have a Print button,which is a standard SAP functionality,doesnot work.When we click that print button it takes forever to load the page and print it. Please help me in resolving this issue an
-
K1 wakes up from Standby randomly & Camera Force Close
I just bought my K1 last week from Best Buy Canada, and I updated to the latest firmware (Kernel 2.6.36.3, Build K1_A301_02_02_110930_CA). Sometimes, when I put it on Standby via the Power button or Widget, it wakes up again after 10 seconds and show
-
Check Lot/ Register not update through F110
Dear SAP Guru, My client has two bank HDFC and HSBC. I haven given ranking order in FBZP HDFC 1 and HSBC 2. When i am doing testing system is check lot and register updated in HDFC. When i run the progam through HSBC the system is making the payment
-
I do not recognize these shares!
I'm concerned about the shares I see in Finder. There is one called "military" and one called "panther". Panther is a server running locally, which I did mount one time via SMB. I do not know what military is, however. On my friend's network, another
-
Creative good quality? I don't think
Hi! My Zen V is dead again, it starts the re-building library and never finish it, the status bar of rebuilding library is blocked before the end. Impossible to do a reboot, format or cleanup cause when I press the button reset the player switch off