Reg: condition value computing.
Hi,
i am using bapi to create an order. I have to migrate the legacy data to the sap system, it has 2 condition record in the header and 4 in the item,
how to calculate the amount for each conditions. the conditions which we would be receiving is not fixed. based on which the value (KBETR) has to be computed..
for example
if the Condition type is ZHP1(discount) - the input value is 2 but the expected value is 0.2-
if the condition type is ZMV1(Netprice) - the input value is 4 the expected value is 4.0
how to update this.. is there any function module.. which determines it based on the structure
Konv structure.
Adv Thanks & Regards
Dinesh
I dont think this is possible.
The reasoning is that if SAP allows it, then there is no control over what values exist in the file. This means anyone can change values in the file which defeats the purpose of one of SAP's important plus points - strict control over master data.
Similar Messages
-
BAPI_CUSTOMERQUOTATION_CHANGE - error while changing a condition value
Hallo Gurus,
I am trying to use tshi BAPI BAPI_CUSTOMERQUOTATION_CHANGE to change a condition value of a condition record of a quotation.
Every time I execute the BAPI, instead of the condition tyoe being changed, a new record is added to the list of conditions!
Can someone please help!
Thsi is my piece of code::
itab_BAPISDH1X-UPDATEFLAG = 'U'.
append itab_BAPISDH1X.
itab_BAPICOND-ITM_NUMBER = '10'.
itab_BAPICOND-COND_ST_NO = '31'.
itab_BAPICOND-COND_COUNT = '00'.
itab_BAPICOND-COND_TYPE = 'ZST3'.
itab_BAPICOND-COND_VALUE = '15.00'.
itab_BAPICOND-COND_UPDAT = 'X'.
append itab_BAPICOND.
itab_BAPICONDX-ITM_NUMBER = '10'.
itab_BAPICOND-COND_ST_NO = '31'.
itab_BAPICOND-COND_COUNT = '00'.
itab_BAPICONDX-COND_TYPE = 'ZST3'.
itab_BAPICONDX-UPDATEFLAG = 'X'.
itab_BAPICONDX-COND_VALUE = 'X'.
append itab_BAPICONDX.
CALL FUNCTION 'BAPI_CUSTOMERQUOTATION_CHANGE'
EXPORTING
salesdocument = p_vbeln
QUOTATION_HEADER_IN =
quotation_header_inx = itab_BAPISDH1X
tables
return = itab_BAPIRET2
CONDITIONS_IN = itab_BAPICOND
CONDITIONS_INX = itab_BAPICONDX
Thanks!
MuktaHmm...
Change the following....and check..
itab_BAPICONDX-ITM_NUMBER = '10'.
itab_BAPICOND-COND_ST_NO = '31'.
itab_BAPICOND-COND_COUNT = '00'.
itab_BAPICONDX-COND_TYPE = 'ZST3'.
itab_BAPICONDX-UPDATEFLAG = 'X'.
itab_BAPICONDX-COND_VALUE = 'X'.
append itab_BAPICONDX.
"change the above to.....
ab_BAPICONDX-COND_TYPE = 'X'.
append itab_BAPICONDX.
The BAPICONDX.. should contain only X.. in the fields which you want to update.. try this change..and let us know if it works.
Also have a look at the FUNCTION MODULE DOCUMENTATION for this bapi in SM37.
Cheers... -
BAPI_PO_CHANGE, changing condition value in the purchase order
Hi Friends,
I have a requirement,
a flat file is present in the application server that contains the information about PO,PO-ITEM,Condition type, movement type , condition value, plant, storage location .
And i m calling the bapi "BAPI_PO_CHANGE" and passing the po number to it.
the bapi returns the following tables, i_return, i_header,i_cond, i_item,i_itemx.
But the purpose of calling the BAPI is, to check, if the condition value in the specified PO is '0', then it has to replace with the value of condition type present in the flat file.
But when we check the tablei_return, its shows error type.
And the PO is not updated with the new condition value.
Help me out in sorting this problem, by telling me
what value is to be passed to the respective BAPI and what should i do to solve the issue?
and after that i m using a BAPI " BAPI_GOODSMOVEMENT_CREATE".
and it is for the purpose of creating the GR(Goods Receipt),
when i go through the i_return table of the bapi, it si returning a message that "BAPI_201 Unable to create goods movement".
Help me in proving the input to those bapi's and how can i get the expected output?
And let me know, what the bapi's ,"BAPI_COMMIIT" and " BAPI_ROLLBACK" , will be doing?
Edited by: kumar t on Aug 9, 2008 1:02 PMHI
[Check the Link|http://abap.wikiprog.com/wiki/BAPI_PO_CHANGE]
[Commit|http://abap.wikiprog.com/wiki/BAPI_TRANSACTION_COMMIT]
[Roll Back|http://abap.wikiprog.com/wiki/BAPI_TRANSACTION_ROLLBACK]
Regards
Pavan -
Absolute condition value in contract and release order
Hi,
We are creating quantity contract. When a absolute condition (value) is entered this value is considered for release qty in the contract for calculating the unit price.But when a release order is created for this contract, the same absolute value is for the PO quantity due to which there is a difference in unit price between contract and PO.
Please advice.
Regards,
PratapHi,
Verify you steps, find link below:
http://help.sap.com/saphelp_470/helpdata/en/75/ee0f4d55c811d189900000e8322d00/content.htm
Reetesh -
Standard Report for PO with Condition Value
HI MM experts,
I have checked all the existing standard reports ME2*, cud not find the report which gives the
condition value means
Eg; PO made on Pencils - Qty 10 NOs. @ Rs. 1/- (incl tax)
condition value for the above is Rs.10, in std sap all reports are showing with net price only
PO no. 45XXXXXXX dt 11.11.2011 - Pencil - qty-10 - Net price Rs.1
Please let us know is there any Standard report which gives the condition value ie., Rs.10 along with or without Net price.Thank you! It is not meeting my requirement.
I am looking for sap standard report to see the PO value or condition value which is nothing but
Qty X net price. I do not want to touch the tables.
for analysis purpose, i want to have the total PO value in any MM Standard Report.
Today i am visiting every PO and looking at header data for PO value. or at item level Condition value. -
PR/ Sales order value not coming in condition value routine
As per the requirement while creating a PO I need to add a new condition type and need to calculate condition price for this newly added condition based on some matrix.
For this requirement PO will always be created with reference to PR and with account assignment category as 'E' .
(Hence sales order number /item will be copied from PR to PO in account assignment tab )
Now I have created a new pricing requirement routine ( To add the condition type ) and new condition routine to calculate and update the price.
These routines are working fine if i check them with hard coded price values.
But the problem is that I need the PR number(which we put in item overview ) / Sales order item number (from account assignment ). these values are not coming in pricing tables in the routine...structure EKPO come blank, KOMP-AUBEL is also blank).
Please give your suggestions how i can i get PR/ SO in the condition values routine .
Please replyresolved my self
-
Condition Values different fro Billing and Excise Invoice in some cases
Hi All,
Excise Invoice for domestic sales is having different condition values.
I am scenerio like this when Billing doc manually VF01, excise Invoice in generated automatically and condition values
were corrrect.But when I create Billing Document using BAPI in program, Excise Invoice is not generating,then
we are running BDC for T-code J1IIN and creating Excise Invoice.Excise Invoice generated in second case (by BDC)
is having wrong condition values.
Can anyone explain why it is happing.Is there any user exist to copy Billing Doc condition values to Excise Invoice?
Thanks in Advance ,
RayuduThanks for you response Lakshimipathy.
The above mentioned configurations were all ready done.Excise Invoice is getting generated when we create Billing Doc online.
Problem here is Excise invoice is not getting generated automatically when Billing Doc is created by our program,so we were running BDC code to created excise Invoice.
Condition values ( Duties :AED,Ecess,SHEcess) were getting calculated wrongly in excise Invoice which is created by running BDC code in program. But the Excise invoice which was created automatically while saving Billing doc manually is having correct condition values. But the billing document condition values remain the same & correct for both.
Regards,
Rayudu -
How do invoice condition values hit accounting?
Hello,
I am picking up the billing item condition values from KWERT and the corresponding GL Account SAKN1 from the KONV tabke. KWERT gets stored with the sign. I need to know how this condition amount will hit accounting. Would it be a debit or a credit entry on the accounting side. How can I do this? I cannot use the debit/credit indicator BSEG-SHKZG as we have a summarization on the material and we are trying to re-determine in a custom code what amounts should have posted to BSEG by material. While I am getting the amounts correctly from KONV, I am not able to figure out how these amounts should be treated on the accoutning side - as a debit or a credit?
Example, on a regular invoice if the value is positive for a G/L account, on the accounting side the value is reverse in sign. However, this cannot be generalized as we can have many different types of invoices and different combinations.
Thanks,
PrayarnaHi,
The values from billing for different condtions pick accouting documents for the GL's that are assigned as per the required combinations set in VKOA transaction. We do the revenue account det here. Now the values on invoice with + ve are the ones we are going to receive from the customer, so the customer account is debited and you see a negative sign. A discount is in negative on invoice which goes positive to the customer and hence positive sign. Freight goes to a Freght revenue GL since it cannot really be accouted as revenue as we end up paying the transporter though we collect from customer.
you may need a functional consultant if you are already not one.
regards
sadhu kishore -
How to query the condition value in VPRS
Hello all,
we provide the sales price to customers based on the condition value in "VPRS" ,because I have thousands of goods need the price,so I 'd like to make a query to extract the condition value in "VPRS".
which table is refer to this?
https://mnlylq.bay.livefilestore.com/y1mXNdIiY7VgiU1v3ymS71pxZluGxj4YNp4IFsyQEr1zkoxjm1VCsxpOgbBQ1-ucxiRtA9tC7O_3ZPaQa7qWKGbdnHNX8UzazWTlettENIO7iujggSx7vHjc2bvuIqhYFYb2DEgIjuNaJ5foKU_xF7wvA/%E5%9B%BE%E5%85%AD.jpg?psid
Thanks,
helaihi,
For your Item category, if you check DETERMINE COST
Determine cost
Indicates whether, during pricing, the system determines the cost (stock value) of a sales document item.
Use
The system checks the cost determination indicator as a requirement before applying the condition type that calculates the cost (condition type VPRS in the standard version of R/3 1.1)
Mainatin VPRS as D then it will automatically pull the price from Material master if maintained
IF VPRS is getting determined, then in your pricing procedure, you can add markup (multiplier) -
BAPI_SALESORDER_CHANGE add new line and conditions with a condition value
Hi,
I am using BAPI_SALESORDER_CHANGE to add new lines to a credit memo. All works fine except that I can not seem to put a condition value on the new lines. The condition is created but with a value of 0. I can popluate the condition amount field, KBETR but not KWERT. BAPICONDX seems to only have the COND_VALUE field in it and not CONDVALUE as in BAPICOND. Does anyone have any idea how to do this? In the code below I just want to change the material on the first line of the credit memo and not add the condition. Then add new lines with the the condition.
lw_order_header_inx-updateflag = 'U'.
LOOP AT i_accru INTO wa_accru.
lv_count = lv_count + 1.
lv_posnr = lv_count * 10.
* Order Items
lw_order_item_inx-itm_number = lv_posnr.
lw_order_item_inx-material = 'X'.
IF lv_count = 1.
lw_order_item_inx-updateflag = 'U'.
ELSE.
lw_order_item_inx-updateflag = 'I'.
ENDIF.
APPEND lw_order_item_inx TO lt_order_item_inx.
lw_order_item_in-itm_number = lv_posnr.
lw_order_item_in-material = wa_accru-vakey.
APPEND lw_order_item_in TO lt_order_item_in.
* Conditions
IF lv_count <> 1.
lw_conditions_inx-itm_number = lv_posnr.
lw_conditions_inx-cond_st_no = '905'.
lw_conditions_inx-cond_count = '01'.
lw_conditions_inx-cond_type = 'ZHIE'.
lw_conditions_inx-currency = 'X'.
lw_conditions_inx-updateflag = 'I'.
APPEND lw_conditions_inx TO lt_conditions_inx.
lw_conditions_in-itm_number = lv_posnr.
lw_conditions_in-cond_st_no = '905' .
lw_conditions_in-cond_count = '01'.
lw_conditions_in-cond_type = 'ZHIE'.
lw_conditions_in-condvalue = wa_accru-accru.
lw_conditions_in-currency = 'GBP'.
APPEND lw_conditions_in TO lt_conditions_in.
ENDIF.
ENDLOOP.
* Change the credit memo
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = lv_vbeln
order_header_in = lw_order_header_in
order_header_inx = lw_order_header_inx
* SIMULATION =
* BEHAVE_WHEN_ERROR = ' '
* INT_NUMBER_ASSIGNMENT = ' '
* LOGIC_SWITCH =
* NO_STATUS_BUF_INIT = ' '
TABLES
return = lt_return
order_item_in = lt_order_item_in
order_item_inx = lt_order_item_inx
* PARTNERS =
* PARTNERCHANGES =
* PARTNERADDRESSES =
* ORDER_CFGS_REF =
* ORDER_CFGS_INST =
* ORDER_CFGS_PART_OF =
* ORDER_CFGS_VALUE =
* ORDER_CFGS_BLOB =
* ORDER_CFGS_VK =
* ORDER_CFGS_REFINST =
* SCHEDULE_LINES =
* SCHEDULE_LINESX =
* ORDER_TEXT =
* ORDER_KEYS =
conditions_in = lt_conditions_in
conditions_inx = lt_conditions_inx
* EXTENSIONIN =
IF sy-subrc = 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
* EXPORTING
* WAIT =
* IMPORTING
* RETURN =
ENDIF.Hi Rob,
Have you managed to solve this issue. If so, could you please share the solution.
I am also facing similar problem.
Thanks for your help.
Anoop -
Condition value of Tax condition type gets added to Total Value in Contract
Hi All,
I'm currently investigating an issue where there are 2 line items in an SAP Sales Contract. There is a human error in the second line where the billing end date is less than billing start date in the billing plan. Consequently, the second line has null Outgoing target value.
However, the header Total value in the Contract gets wrongly calculated as Basic condition value of 1st line + Condition value of tax condition type of line one due to this. When I modify the billing end date for the second line item to be a date greater than the billing start date, the above problem disappears and the total value of the contract does not include the tax component.
For eg.
Normal Error free Contract
Total Value at Header = 700.00 EUR
Material Outgoing Target val
Item 0010 MAT1 450.00 ( 450 + 50 (tax ) )
Item 0020 MAT2 150.00
Contract with billing plan error in second line
Total value at Header = 550.00 EUR
MAterial Outgoing target val
Item 0010 MAT1 450.00 ( 450 + 50 (tax ) )
Item 0020 MAT2 0.00
Any inputs would be most welcome.
Regards,
Venkatesh.
Edited by: Venkatesh Gopalarathnam on Jan 24, 2012 9:48 AMNo, i didn't.
Actually, i enter condition type and amount in sales order manually.
At that time my program which i modified at 'Define And Assign Pricing Procedures' in IMG should be run.
But the result of running is different from my purpose.
To change Condition value of condition type in sales order, are there any solution? -
Change condition value in debit memo and credit memo
Hi Experts,
When I am trying to create Credit Memo/Debit memo I could able to change the condition value for which condition type the value is there in Sales Order, but where as for other condition types it is not changeable.
For example for Freight the Condition type is ZFRE, value is 100 rs in sales order 90000001.
If I create credit memo with reference to sales order I can able to change freight value from rs100 to rs 75.
But what to do If I do not maintain freight value initially in sales order and if I want to adjust freight value ZFRE as rs 60 in credit memo. Presently I could not able to enter values in C/D Memo.
Hope my question is clear to you all.
Thanks & Regards
NareshHi Naresh
If I understand correctly, then you want to include the freight amount automatically in the Credit memo which was not featuring in the Credit memo request.
If it is so, then first see which is Pricing procedure working for your Credit memo Request.
In the Pricing Procedure, check the freight condition type (e,g. KF00).
See the what is Acees sequence assigned to it and in the Access sequence what are table assigned.
In condition type KF00, Access sequence assigned is KF00 and two condition tables "Incoterm" and "Incoterm Part1 + Part2" are assigned to it.
In the Access sequnce of your Freight condition type , add another/new condition table "350" (Sales organisation). This table is already available in standard system.
Select the new condition table row, and click on the "Field" in the dialog box till the technical names are opened up / shown inspite of warning.
Once the technical names of the fields are shown , you can see the green light there, then save it.
Now, create a condition record (VK11) for your Freight condition (e,g. KF00) by choosing the "Sales organisation" level from the key combination.
Then go to the Copy control (VTFA), find the combination "G2 from CR "> go to Item level > select item category G2N and go to details.
Here, you change the "Pricing type" value to " H " and save it.
Now, when you will create a Credit memo with reference to the Credit memo request, the new Freight condition (KF00) will come into effect in the Credit memo, even if ,it was not there in the reference document. -
Pricing amount and condition value in sales order
Hi all,
I have noticed for a sales order we are not able to see condition type amount, condition value in sales order even though it shows net price finaly ofr a sales order. Not even able to select the condition lines.
To be specific not able to find value in field KBETR - amount column and KWERT - condition value column
When we go to sales order line item and select condition tab, do see value displayed in Amount and Condition column. Is there are specific reason it is doing visa vis in our production we see both values.
Advise what could be the reason value not getting displayed in Amount and Condition value column.
thanksIt is due to auth for specific columns we have solved the problem.
-
How to read Condition Value of a Sales Order
Hello everyone,
I want to read the salse order's Condition Value in VA03, in sales order's Header condition.
Anyone who can help me?
Thank a lot.
Julie.hi Julie
all conditions are stored in KONV table, the main key field is condition number, field KNUMV: so
SELECT * FROM KONV WHERE KNUMV = VBAK-KNUMV.
If the value of item (field KPOSN) is initial it means it's an hedaer condition, else an item condition.
Max -
Fm to change the condition value in sales order pricing
Hi Friends,
I need a FM to change the Pricing value that is auto calculated in the sales order. It needs to be overwritten. BAPI_SALESORDER_CHANGE I don't think will do it. It can be used only to update the condition type and the condition amount but not the condition value.
Can someone please help me. I've been stuck with this for quite sometime.
Thanks,
Dikshitha GTry these BAPI's
BAPI_LISTING_CONDITIONS,
BAPI_AGREEMENTS
Regards,
Rajasekhar Reddy.
Maybe you are looking for
-
Lack of smooth video flow, pixel activity in white colors when dvd burned.
We have a 2008 HD AVCHD HDR SR12 sony video camera. We down loaded movies onto our macbook and burned dvd's on idvd. The result when viewed on hd tv was as follows. Lack of smooth video flow and pixel activity in white colors. The finished product lo
-
Where is the file descriptor leak in this code?
The following "appendStringToFile" method is used to append a String to a file. My java app calls this method a few times per minute, and then crashes after running for about 12 hours. The exception is "Too many open files". The code that calls it do
-
SQL*Loader and unzipping with uploaded file
hi, everybody i was trying to integrate some functionalities, today separated. i made a simple Apex page that uploads a file, and now i need to process that file. is there any way to process that uploaded file and load it onto a table, just like i'd
-
Mapping problem with xs:dateTime
Hi there, I am trying to set up a demo project for training purposes illustrating the implementation of composite services using third party and ECC services. For the third party portion of it, I am using the Fedex web services. After importing the r
-
Can't put bookmarks into folders or create folders
When I bookmark a page it does not give me the option to put it into a folder or to create a folder most of the time. And if it does then when I try to put it into a folder the whole "bookmark option" disappears.