Bapi to update condition types
Hi All ,
I want to change an existing Delivery(transaction Code: VL02N), by adding a Header Condition Type. I dont want to use any BDC. Can any one recommend any BAPI which handles the Condition Type of a Delivery.
Regards
Venkat
thank you for your answar . but i am using an aditabule alv screen to update these values . these are the values i want to update .here bdc is not working .
Delivery no
LR number
LR Date
Shipping Type
Total Wight
UOM
Net wight
Forwarding Agent
Unloading Point
Condition type
Rate
UOM
these are the fields i have to update through bapi .
Similar Messages
-
PO BAPI Problem in condition types
Hi,
I am facing a strange problem in creation of PO through "BAPI_PO_CREATE1".
In the Item condition internal table, I am passing the condition types.
The PO is getting created successfully.
Eg. I pass conditions and their values as follows:
PB00 : 1000
ZB00 : 1000
FRB1 : 1000
The PO is created successfully and we can check the prices updated properly.
Now,
When I create a second PO with the same values, the prices are taken from the last PO and the prices from
my code(which are passed through BAPI) are added to the last value.
If I run the program with the same values as above, the PO is created with the values 2000.
Third time it is 3000 and so.
The value from the last PO is coming into the new PO.
Please advise me if anything missing.
My code is below::
================
*& Report ZTEST_PO
REPORT ZTEST_PO.
data : HEADER like BAPIMEPOHEADER .
data : HEADERX like BAPIMEPOHEADERX .
data : POITEM like BAPIMEPOITEM occurs 0 with header line.
data : POITEMX like BAPIMEPOITEMX occurs 0 with header line.
data : POSCHEDULE like BAPIMEPOSCHEDULE occurs 0 with header line.
data : POSCHEDULEX like BAPIMEPOSCHEDULX occurs 0 with header line.
DATA : RET LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.
DATA : ret1 like bapiret2.
Data PO like BAPIMEPOHEADER-PO_NUMBER.
data : pocond like BAPIMEPOCOND occurs 0 with header line.
data : pocondx like BAPIMEPOCONDX occurs 0 with header line.
*pocond-CONDITION_NO = '00000'.
pocond-itm_number = '000010'.
pocond-COND_ST_NO = '001' .
*pocond-COND_COUNT = '1'.
pocond-COND_TYPE = 'PB00'.
pocond-COND_value = '500'.
pocond-CURRENCY = 'EUR'.
pocond-CURRENCY_ISO = 'EUR'.
pocond-CHANGE_ID = 'I'.
APPEND POCOND.
**pocond-CONDITION_NO = '00000'.
*pocond-itm_number = '000010'.
*pocond-COND_ST_NO = '10' .
*pocond-COND_COUNT = '2'.
*pocond-COND_TYPE = 'PBXX'.
*pocond-COND_value = '555'.
*pocond-CURRENCY = 'EUR'.
*pocond-CURRENCY_ISO = 'EUR'.
*pocond-CHANGE_ID = 'U'.
*APPEND POCOND.
**pocond-CONDITION_NO = '00000'.
*pocond-itm_number = '000010'.
*pocond-COND_ST_NO = '20' .
*pocond-COND_COUNT = 0.
*pocond-COND_TYPE = 'ZB00'.
*pocond-COND_value = '666'.
*pocond-CURRENCY = 'EUR'.
*pocond-CHANGE_ID = 'U'.
*APPEND POCOND.
**pocond-CONDITION_NO = '00000'.
*pocond-itm_number = '000010'.
*pocond-COND_ST_NO = '30' .
*pocond-COND_COUNT = 0.
*pocond-COND_TYPE = 'FRB1'.
*pocond-COND_value = '777'.
*pocond-CURRENCY = 'EUR'.
*pocond-CHANGE_ID = 'U'.
*APPEND POCOND.
*pocondx-CONDITION_NO = '00000'.
POCONDX-ITM_NUMBER = '000010'.
POCONDX-COND_ST_NO = '000'.
*POCONDX-CONDITION_NOX = 'X'.
*POCONDX-COND_ST_NOX = 'X'.
POCONDX-ITM_NUMBERX = 'X'.
*POCONDX-COND_COUNT = 'X'.
POCONDX-COND_TYPE = 'X'.
POCONDX-COND_value = 'X'.
pocondX-CURRENCY = 'X'.
*pocondX-CURRENCY_ISO = 'X'.
pocondX-CHANGE_ID = 'X'.
APPEND POCONDX.
HEADER-COMP_CODE = 'TF01'.
HEADER-DOC_TYPE = 'DMPO'.
HEADER-VENDOR = '0000000317'.
HEADER-LANGU = 'EN'.
HEADER-PURCH_ORG = '1001'.
HEADER-PUR_GROUP = '110'.
HEADER-CURRENCY = 'EUR'.
HEADER-DOC_DATE = '22.10.2007'.
HEADER-REF_1 = '999999999999'.
HEADERX-VENDOR = 'X'.
HEADERX-PURCH_ORG = 'X'.
HEADERX-PUR_GROUP = 'X'.
HEADERX-REF_1 = 'X'.
POITEM-PO_ITEM = '00010'.
POITEM-MATERIAL = '00042199730L'.
POITEM-PLANT = '1000'.
POITEM-STGE_LOC = '1030'.
POITEM-MATL_GROUP = '01'.
POITEM-QUANTITY = '10'.
POITEM-PRICE_UNIT = 500.
poitem-calctype = 'C'.
append POITEM.
POITEMX-PO_ITEM = '00010'.
POITEMX-MATERIAL = 'X'.
POITEMX-PLANT = 'X'.
POITEMX-QUANTITY = 'X'.
POITEMX-PRICE_UNIT = 'X'.
append POITEMX.
POSCHEDULE-PO_ITEM = '00010'.
POSCHEDULE-DELIVERY_DATE = '30.10.2007'.
append POSCHEDULE.
POSCHEDULEX-PO_ITEM = '00010'.
POSCHEDULEX-PO_ITEMX = 'X'.
POSCHEDULEX-DELIVERY_DATE = 'X'.
append POSCHEDULEX.
CALL FUNCTION 'BAPI_PO_CREATE1'
EXPORTING
poheader = HEADER
POHEADERX = HEADERX
POADDRVENDOR =
TESTRUN =
MEMORY_UNCOMPLETE =
MEMORY_COMPLETE =
POEXPIMPHEADER =
POEXPIMPHEADERX =
VERSIONS =
NO_MESSAGING =
NO_MESSAGE_REQ =
NO_AUTHORITY =
NO_PRICE_FROM_PO =
IMPORTING
EXPPURCHASEORDER = PO
EXPHEADER =
EXPPOEXPIMPHEADER =
TABLES
RETURN = RET
POITEM = POITEM
POITEMX = POITEMX
POADDRDELIVERY =
POSCHEDULE = POSCHEDULE
POSCHEDULEX = POSCHEDULEX
POACCOUNT =
POACCOUNTPROFITSEGMENT =
POACCOUNTX =
POCONDHEADER = POCOND
POCONDHEADERX = POCONDX
POCOND = POCOND
POCONDX = POCONDX
POLIMITS =
POCONTRACTLIMITS =
POSERVICES =
POSRVACCESSVALUES =
POSERVICESTEXT =
EXTENSIONIN =
EXTENSIONOUT =
POEXPIMPITEM =
POEXPIMPITEMX =
POTEXTHEADER =
POTEXTITEM =
ALLVERSIONS =
POPARTNER =
POCOMPONENTS =
POCOMPONENTSX =
POSHIPPING =
POSHIPPINGX =
POSHIPPINGEXP =
NFMETALLITMS =
if RET-type NE 'E'.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN = ret1.
write : ' PO Created : ', PO .
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'
IMPORTING
RETURN = ret1.
ENDIF.
================Any input??
-
Updating Condition Type from Pricing Type customer reserve 'Z'
Hi ,
I've created a sales order using BAPI. Now I want to update the condition type using pricing type 'Z' customer reserve . I'm using BAPI_SALESORDER_CHANGE.
I'm passing the values as:
condition-itm_number = '000000'.
condition-CONDTYPE = 'Z'.
condition-cond_count = '01'.
condition-currency = w_temp_itab_so-currency.
condition-CALCTYPCON = 'Z'.
APPEND condition.
conditionx-itm_number = '000000'.
conditionx-cond_count = '01'.
conditionx-updateflag = 'I'
APPEND conditionx.
But its not getting updated.
Thanks and regards,
Jyoti ShankarOne option is
you have to execute SE16, input table KONV where you maintain the tax condition type and execute.
System will populate all SD documents that are having that tax condition type. There you have to copy the field "Doc. condition" and paste it in VBAK table in SE16 so that you will get all sale orders.
The other option is
you need to identify what access sequence is maintained for that tax condition type which you can see in V/06. Next go to V/07, select this access sequence and execute. There check what tables are maintained. For example, in your case, it could be table 110. So you have to develop a query by table joining A110 and VBAK in SQVI where you can take sale orders based on sales organisation.
thanks
G. Lakshmipathi -
Update condition types on changing CK40N / CK24 / ck74n / ck75n
Hi Gurus,
Requirement:
1. Whenever there is adding/updating additive costs (ck74n and ck75n), we need to populate the corresponding condition types on the INFO records (say: ZABC for freight cost).
2. Whenever a cost is released (CK40N and CK24), we need to populate the overhead condition type on the INFO record.
Do you have any idea about user exits/enhancement spots/bapi available for this.
Thanks,
AnuroopHi
You have BAPIs in Std cost estimate like BAPI_COSTESTIMATE_GETDETAIL , BAPI_COSTESTIMATE_ITEMIZATION to get the required info of CK40n, then you might need to push the required info into Condition records by writing BDC's or BAPI's.
Till ECC 6.0 there is no BAPI's for Additive cost, you might have to use the Function Module of CK76n to pass the info to corresponding Info Types.
Regards,
Suraj -
Updating Condition Type based on pricing type in Sales order
Hi ,
I've created a sales order using BAPI. Now I want to update the condition type using pricing type 'Z' customer reserve . I'm using BAPI_SALESORDER_CHANGE.
I'm passing the values as:
condition-itm_number = '000000'.
condition-CONDTYPE = 'Z'.
condition-cond_count = '01'.
condition-currency = w_temp_itab_so-currency.
condition-CALCTYPCON = 'Z'.
APPEND condition.
conditionx-itm_number = '000000'.
conditionx-cond_count = '01'.
conditionx-updateflag = 'I'
APPEND conditionx.
But its not getting updated.
Thanks and regards,
Jyoti ShankarHi G's
Iam trying to get my fields hidden based on the conditon type i give, and not in a position make that hidden so, how can be that done,,
The actual instance is:
I am having different plants for the company and two plants have different taxation procedure and rest differemt and if i select plant with different taxation procedure the condition type should be supresses only for the particular plant...
All your Support is Appreciated -
BADI - ME_PROCESS_PO_CUST - To update Condition Types at time of creation
Hi All
I'm relatively new to Implementing BADIs. I'm using the BADI ME_PROCESS_PO_CUST.
I have to update certain condition types with values determined from a custom table maintained for related Vendors.
I have created a 'Z' implementation for ME_PROCESS_PO_CUST and activated the implementation. But when I try to create a PO, the code doesn't seem to be execute!
Following is the code bundle -
METHOD if_ex_me_process_po_cust~process_header .
DATA : l_items TYPE purchase_order_items.
DATA : l_single TYPE purchase_order_item.
DATA : l_item_cond TYPE mmpur_tkomv.
CALL METHOD im_header->get_items
RECEIVING
re_items = l_items.
LOOP AT l_items INTO l_single.
CALL METHOD l_single-item->get_conditions
IMPORTING
ex_conditions = l_item_cond.
ENDLOOP.
ENDMETHOD. "IF_EX_ME_PROCESS_PO_CUST~PROCESS_HEADER
Could you please give me your inputs on this?
Regards
Kripal
[email protected]Kripal,
The method PROCESS_HEADER gets trigerred only when you make an entry in any of the header fields and then press ENTER or do some action.
For a simple case of analysis put a break-point at
CALL METHOD im_header->get_items
RECEIVING
re_items = l_items.
in your code.
Now if you execute ME21N you will see that the code will not get triggered.But make an entry for one of the fields say fpr purchasing organisation.Now if you press ENTER or click on any other tab your code will get triggered.
Hope this helps.
<i>Reward helpful answers</i>
Cheers
Nishanth -
Hi ,
How to updae only one item condition ZYV0 value in sales order. If I can see we have several options from pricing type to update condition types but here My requirement is to update only one condition amount .If I can see other pticing types they will update all condition types .
-Exclusive option is checked for all the tables maintained in access sequence,
Below options were not worked for me.
-In condition type ----> Condition category has been updated with "D"(Tax) pricing type-"G" to update in sales order
- This option worked for me but condition category "F"(frieght) and pricing type -H but in conditions tab when I update two condition amounts are activated for one condition type like below.
ZYV0--30 % (old condition record value updated in sales order)
ZYV0- 50% (updated condition record)
RegardsHi Rita,
Tried with condition category "u" and updated with pricing type "U" . It works as same I used old logic.
with condition categories "D" and "F" it will update old and new condition record values in sales order.
ZYV0--30 % (old condition record value updated in sales order)
ZYV0- 50% (updated condition record)
I have updated here existing condition record value from 30 % to 50 % validity periods are not changed.
Regards -
Updation of condition type in conditions tab while creation of sales order
Hi folks
I have added one field called price key in Sales B screen of VA01 in item level.
When user will input price key here and then put enter. Then the Price should be updated in Conditions tab i.e the condition type will be updated in conditions tab.
I need to maintain this price key in VK11. So As per the Price key i need to update condition types in conditions tab.
here i am using a user exit SAPMV45A. i can get condition type for the specified price key from A905 table.Then how to update this condition type in conditions tab through user exit.
Plz suggest.
Thanks
pmrDear friend,
if the sales order is saved and you want to change the pricing click on update which will be on the lower level of your condition tab in va02.
and if you are trying to create a new sales order and if the value is greyed our - check whether in pricing procedure - control data - you would have maintained statistics against that condtion tab.
check this out and get back
regard,
Sudhir -
Condition type and amount in VI01 transaction
Hi All,
I want to update condition type and amount in VI01 transaction.
process : transaction VI01 --> enter shipment number -->enter
then double click on item inside that>it will open new screen for that item> here you can see CONDITION tab...i have to update condition type and amount over there.
Please suggest me what i suppose to do..as i have tried all user exit but in vain...even badi alsoHi,
have u tried these user-exits
Exit Name Description
V54B0001 Shipment costing: Configure pricing
V54B0003 Shipment Costs Calculation: Determine Rate Type and Currency
V54B0004 Shipment Cost Calculation: Determine Status
V54C0001 Shipment costing: Description(s) shipement cost item(s)
V54C0002 Shipment costing: Create shipment cost sub-items
V54C0003 Shipment Costs Processing: Determine Invoicing Party
V54C0004 Shipment Costs Processing: Determine Loc. for Tax Invoice
V54D0001 Shipment Costing: Determining the Tax Countries
V54KSFRC Determining the factors for apportionment of shipment costs
V54P0001 Extended Function Codes for Shipment Cost Information
V54U0001 Shipment cost processing: Check whether changes made
V54U0002 Check shipment costs for completion
V54U0003 Specification of shipment cost number
V54U0004 Formatting for update of new objects (shipment costs)
V54U0005 Updating new objects in shipment cost processing
V54U0006 Shipment Purchase Order - Header Data Supply
V54U0007 Shipment Purchase Order - Item Data Supply
Reward points if useful..
Regards
Nilesh -
Need to add new condition type using BAPI_SALESORDER_CHANGE
Hi all,
I am using BAPI_SALESORDER_CHANGE to add new condition type for an order item.
I am able to add it, but problem here is, that i want that condition type to be manually changable. Here, in BAPI, after execution, condition type field becomes disable.
My code is as follows:
MOVE 'B' TO wa_logic-pricing.
MOVE 'X' TO wa_logic-cond_handl.
wa_cond-itm_number = wa_vbap-posnr.
* wa_cond-cond_st_no = it_konv1-stunr.
* wa_cond-cond_count = it_konv1-zaehk.
wa_cond-cond_type = it_discount-kschl.
wa_cond-CONDORIGIN = 'C'.
APPEND wa_cond TO i_cond.
CLEAR: wa_cond.
wa_condx-itm_number = wa_vbap-posnr.
* wa_condx-cond_st_no = it_konv1-stunr.
* wa_condx-cond_count = it_konv1-zaehk.
wa_condx-cond_type = it_discount-kschl.
wa_condx-updateflag = 'I'.
wa_condx-COND_VALUE = 'X'.
APPEND wa_condx TO i_condx.
CLEAR: wa_condx.
FORM f_update_order .
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = salesdocument
order_header_in = wa_headerdata
order_header_inx = wa_headerdatax
logic_switch = wa_logic
TABLES
return = it_return
order_item_in = i_itemdata
order_item_inx = i_itemdatax
conditions_in = i_cond
conditions_inx = i_condx.
IF NOT it_return[] IS INITIAL.
PERFORM f_commit_or_rollback.
ENDIF.
ENDFORM.
Please let me know, if it could be achievable.
Best regards,
Meena
Moderator Message: Corrected the code tags. You need to use flower brackets.
Edited by: kishan P on Aug 25, 2010 6:04 PMHi,
This is the demo code i am writing:
Even Change manual entry field in BAPI did not helped me.
[code]REPORT ZTESTM1.
data: l_knumv type knumv.
DATA: it_return TYPE STANDARD TABLE OF bapiret2, "Internal table for t_txt_ret
wa_return type bapiret2.
data: begin of it_konv occurs 0.
include structure konv.
data: end of it_konv.
data: logic_switch type standard table of BAPISDLS,
wa_logic type BAPISDLS.
data:itemdata type STANDARD TABLE OF BAPISDITM,
wa_item type BAPISDITM.
data : salesorder type BAPIVBELN-VBELN.
data:itemdatax type STANDARD TABLE OF BAPISDITMx,
wa_itemx type BAPISDITMx.
data: wa_header type BAPISDH1,
wa_headerx type BAPISDH1X.
data: i_cond type STANDARD TABLE OF BAPICOND,
wa_cond type BAPICOND.
data: i_condx type STANDARD TABLE OF BAPICONDX,
wa_condx type BAPICONDX.
move '0060008601' to salesorder.
move '000010' TO wa_item-itm_number.
append wa_item to itemdata.
move ' ' to wa_header-BILL_BLOCK.
move 'U' to wa_headerx-UPDATEFLAG.
move 'X' to wa_headerx-BILL_BLOCK.
MOVE: 'U' to wa_itemx-UPDATEFLAG,
'000010' TO wa_itemx-itm_number.
append wa_itemx to itemdatax.
move 'B' to wa_logic-PRICING.
move 'X' to wa_logic-COND_HANDL.
select single knumv from vbak into l_knumv where vbeln = '0060008601' .
select * from konv into table it_konv where knumv = l_knumv and kposn = '000010'.
wa_cond-ITM_NUMBER = it_konv-kposn.
wa_cond-cond_type = 'Z550'.
wa_cond-CONDCHAMAN = 'X'.
append wa_cond to i_cond.
clear: wa_cond.
wa_condx-ITM_NUMBER = it_konv-kposn.
wa_condx-COND_TYPE = 'Z550'.
wa_condx-UPDATEFLAG = 'L'.
append wa_condx to i_condx.
clear: wa_condx.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = salesorder
ORDER_HEADER_IN = wa_header
order_header_inx = wa_headerx
LOGIC_SWITCH = wa_logic
tables
return = it_return
ORDER_ITEM_IN = itemdata
ORDER_ITEM_INX = itemdatax
CONDITIONS_IN = i_cond
CONDITIONS_INX = i_condx
EXTENSIONIN =
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.[code]
Thank you.
Meena -
Updating Vendor of Freight Condition Type in STO
Hi,
I am facing a problem in updating KOMP-LIFNR in my program. I have below scenario
I have created a Z program which gets all materials from mchb and creates a STO order thru a BAPI_PO_CREATE1. Anyway STO is getting created but i am facing a program to update a freight condition type. I need to LIFNR(Vendor) in freight condition type.
Pls help is how to update is there any bapi to update.
Regards,
SreekanthHi
We dont have any fields in the BAPI_PO_CREATE1 to directly input the Freight vendor , But by maintaining the freight vendor in the purchase infor record will update the Conditons in the PO at the time of creation of the PO.
You can also acheuive this by using the user exit enhancement SAPL2012
Exit : EXIT_SAPL2012_001.Customer Exit for Creating a Purchase Order in Enjoy Using BAPI_PO_CREATÊ1
You can chek out using SMOD.Please take the help of ABPERs to develop the code as per the requirement.
Award points if useful
Thanks & Regards
Kishore. -
How to update the z-condition type in pricing procedure in a quote
Hi Gurus,
I need your help to solve my issue.
I have created a RFC which will trigger any time there is a CRM Quote/ CRM Order create or change occurs. IN response of the RFC i will get the rate and rate type for the line items .
When the service returns with rate value the SAP system will insert this value by inserting z-condition type in to the pricing structure. The normal pricing function module will then carry the process forward.
Todo this ,Can i code the RFC call in Order_save badi ,but where can i get the pricing sturcure data to update the returned rate values in the pricing.
and also one more thing ,In ecc I am using the CUCB_GET_CONFIGURATION to get product configurations. for the same which FM can i use in CRM.
Please reply me ASAP.hei,
you can use field KOMP-KZWI1 - KZWI6 to store your condition type. then it can be used for analysis in SIS.
if you want to put more than one condition type to field KOMP-KZWI1, go to V/08 (pricing Procedure), put "1" in condition subtotal.
Best Regard,
Hendry -
How to update pricing condition type in a cancelled invoice?
I have one invoice(let say invoice number 01) which did not posted any accounting documents because one condition type in pricing procedure didn't had any record at the time of creation of invoice. so i cancelled the previous invoice and maintained the condition record of the condition type and again invoiced(let say invoice number 02) the delivery which posted the correct accounting documents.
Now the problem is that when i am going to the invoice number 01 in change mode and trying to update the pricing procedure by going to item level then the system is now allowing to update the pricing procedure as the UPDATE TAB is grayed out and i cant click on it. (is it because for invoice nummber 01 follow on cncllation invoice has been created? or any other reason and is ther a solution for this?)
action required: i want to update the invoice number 01.Dear Manpreet500,
If the invoice not having the accounting document no need to cancell that invoice.
In your case you might have done like this without cancell the invoice 01.
-->Create condition record for the condition type which was missed while creating invoice.
-->After creation of condition record you just go to VF02 transaction enter invoice 01 then go to condition tab here you can find the Update tab click on the Update tab now system will take you to the Pricing selection screen here you select B- Carry out new pricing now system will consider the condition record for the missed condition type.
Now you can release the 01 invoice manually by clicking on green Flag.
You can not update the 01 invoice may be due to the subsequent document cancelled invoice.
I hope this will help you,
Regards,
Murali. -
Condition type value updation using characteristic value in sales order
Hi Experts,
We are implementing SAP for one of our Spain client. In that one of the Legal requirements is, whenever they are selling the finished products to domestic customers who contain OIL as one of the component then, some additional cost needs to be calculated and collected from customer and which needs to be paid back to Spain Government every month on Region basis.
If OIL is not a component to produce the finished product then, not required to charge the customer additionally.
The OIL content used to produce every finished product will vary based on product characteristic value. Meaning, for some finished product the OIL used will be 2.2 KG and for some products it will be 3.5, 4.3 KG and etc.
Since various combinations of products are available for the client, during sales order creation we are planning to update some special characteristic which the data flow from u201CVariant Tableu201D. In the variant table we are going to maintain the OIL Quantity required making finished product.
But we are not sure how to activate a new condition type with the value fetched in the special characteristic. This new condition type needs to be activated based on this characteristic value and multiplied with total order quantity and price to charge from customer.
Example, the special characteristic fetched the value of 2.2 KG based on variant table. Total Order quantity is 10 PC and charge is 0.06 EURO per KG. in this case, (2.2 x 10 ) x 0.06 EURO = 1.32 EURO
I need the expert opinion how to activate the new condition type based on characteristic value and achieve the above requirement.
Thanks in advance.
Warm Regards,
VELHello,
I have replicated the whole requirememt in IDES and getting the price calculation as needed but the only issue with the Conversion factor for the condition type. Either you need to maintian the conv factor in material master or need to enter manually for the condition type in SO. Some how you have to maintain the conversion factor to calculate the price for the condition type in different unit.
For easy of understanding Lets make the whole requirement in 2 parts
Part - 1
Oil qty calculation. For convenience sake I have taken oil qty also in TO
1) Created a num char OIL_QTY1 with length 9 and decimal places 5 and UOM as TO
2) Created Variant table to infer the OIL qty in TO per piece of finished prod ( This oil qty data may be depends on various factors). For certain Finished products the oil qty may be 0 or blank
3) Created a REF char SO_QTY to pull the SO qty to configuration and add this char in class 300(Table:VBAP,Field :KWMENG)
4) Created another char SO_OIL_QTY (Num with length 9 and decimal places 5 and UOM as TO)
5) Created a PROCEDURE say PROC_SO_OIL_QTY with code
*$self.SO_OIL_QTY = $self.OIL_QTY1 * $self.SO_QTY*
6) Create another PROCEDURE as mentioned earlier with modified code
$SELF.A_VARCOND = 'TEST_001' if OIL_QTY1 specified,
$SET_PRICING_FACTOR ($SELF,A_VARCOND,'TEST_001', SO_OIL_QTY)
Note: Maintain proper seq of the procedures in profile. The Qty cal proc should be before the price related procedures.
PART-2
1) For the condition type maintained 60 EUR per TO (0.06 EUR per KG)
Now if you create SO for the Finished product of 10 PC
the Char values will be
OIL_QTY1 = 0.00022 TO (inferred from Variant table th proc)
SO_QTY = 10
SO_OIL_QTY = 0.0022 TO
Get into conditions tab
Here Condition type ZSIG will be displayed as error with Amount 60 EUR per TO and condition value will be blank. Just enter value 1 in the col NumC and CCon fields.
Now the Condition value will appear as 1.32 EUR.
Hope this gives some more clarity
Regards
Brahmaji D -
Doubt on condition type updation in PO
> I give the conditions in PO at item level in condition Tab.
Example
Pb00 - gross price- 1000
RA01 u2013discount on gross- 10% 100-
Sub total 900
FRB1 u2013frieght 200
Total 1100
After I done G.R, purchase history will updated as single line for rs 1100. In that purchase history, I need to update freight( FRB1) and discount (RA01) condition types also with seperat lines. Is it possible?Hi,
Once you do GR following entry will get posted
Stock A/c - 1100 INR
GR/IR Clearing - 900 INR
Freight Clearing - 200 INR
So in PO History you will get line items for GR/IR Clearing value as "GR" as well as Freight Clearing value as "DCGR" both. But not for Discount.
Maybe you are looking for
-
How to resolve this Error ORA-04030: out of process memory when trying to a
Hi I am connecting as a sysdba and trying to execute a query on the V$Logmnr_contents but getting the following Error ORA-04030: out of process memory when trying to allocate 408 bytes (T-LCR structs,krvuinl_InitNewLcr) Can anyone guide me how to res
-
How do you copy itunes files, playlists to MP3 player?
-
TS1398 my icon/apps aren't working
Wondering if I may have locked my icon/apps on my iPad. I can access internet through safari, but not through the downloaded icons. If I did lock them, how do I 'unlock' them? Please help. this happened after I plugged my iPad into my computer andi
-
Dear All, We need to implement overtime. What is the best way to achieve this in OTL. Should we define the Overtime Hour type and employee should enter the overtime separately using this hour type. And overtime payment will be given as per the rule t
-
Stages in mdm implementation project
Hi all, wt r the different stages in implementation project and explain briefly abt each stage? Regards, Nani..