Price conditions selection
Hello,
I just want to read some price conditions from SD.
I see that there is FM RV_T681_SELECT_AND_GENERATE that geenrates (if needed) a dynamic standard program for data selection, I see in this generated program that some subroutines are for external execution (FILL_COMM_AREA_FROM_VAKEY, ...) and it seems that by passing VAKEY field with required data for selection, standard program is able to make a selection in to respective DataBase.
Does anyone know how to use this external subroutines from this dinamic program for reading conditions?
Hi Jorge,
this is taken from an IS-Media order print program:
CONCATENATE ls_jhaga-pos_nr ls_jhaga-gruppabrnr INTO lv_vbdpaposnr.
CLEAR ls_komk.
ls_komk-mandt = sy-mandt.
ls_komk-kalsm = ls_jhaga-kalsm.
ls_komk-kappl = 'JA'.
ls_komk-waerk = ls_jhaga-waerg.
ls_komk-knumv = ls_jhak-knumv.
ls_komp-kposn = lv_vbdpaposnr.
CALL FUNCTION 'RV_PRICE_PRINT_REFRESH'
TABLES
tkomv = lt_komv.
CALL FUNCTION 'RV_PRICE_PRINT_ITEM'
EXPORTING
comm_head_i = ls_komk
comm_item_i = ls_komp
language = nast-spras
IMPORTING
comm_head_e = ls_komk
comm_item_e = ls_komp
TABLES
tkomv = lt_komv
tkomvd = lt_komvd.
It should work for you with some minor changes: Find out what is the calculation scheme and application. knumv is in the document header; kposn might be a little tricky. In our case it is concatenated item and invoice grouping number; this might be different. You can set a breakpoint on function module RV_PRICE_PRINT_ITEM because it is used in many transactions to select conditions. If your transaction runs into the breakpoint you can check the parameter values.
The best will be to run the function in test environment SE37, but: You have to start transaction all over again after one try; in program you have to call 'RV_PRICE_PRINT_REFRESH' before (or after) calling because RV_PRICE_PRINT_ITEM stores internal data hurting subsequent calls.
The resulting tables
tkomv will have ALL conditions
tkomvd the conditions to be printed.
Regards,
Clemens
Similar Messages
-
Price conditions from Info Record to PO
Hi,
While creating PO, Price conditions flow from Purch.info record.
My requirement is => In the Item detail Conditions Tab, the price should not be available for editing (i.e.it should be in display mode) at end user level. If we need to modify the Amount against any condition it should be done only in info record only.
How to address this requirement.
Regards,
BaskarHi,
1. Go to SPRO > MM > Purchasing > Authorization Management > Define Function Authorizations for Buyers > Function Authorizations: Purchase Order > Here "New Entries" and define Function Authorization Key as "01" and give description.
OR use T. Code - OMET
Here under "General parameters" subscreen,
Activate "Display conditions" indicator and assign Field selection as "$DE1", do not select "Enter conditions"
In "Possible ref. objects", select "W/o reference" otherwise reference documents (for e.g. PR, RFQ, etc...) for PO creation will become mandatory.
2. Now go to SU01 > Enter User ID > Parameters Tab > Here for Parameter ID EFB i.e. Function Authorization: Purchase Order, maintain value "01" and check in PO field selection will get applied for that user.
Now check in PO, Conditions will become in display mode. -
Purchase Info record price conditions
Hello Gurus,
My client wants to extract their Purchase Info Record in R/3 to the BW Environment. This I have already done.
The problem now is that my client wants to see the price conditions associated to the Info Record. To see the conditions you have to select validity time period first and only after that you have the prices associated.
Do you know if there is a way to transfer this kind of data to BW without creating a custom DataSource?
Best regardshi,
Yeah, I just checked it..
Its not possible in Std. SAP system...
There is no field provided for the same...
the other way, but doesn't applies to you...as you are doing massive job...
still if req. then check..
The other way is:
Maintain Quotation and ref. it in inforecord...price gets updated easily from it...
Regards
Priyanka.P -
Change orders item price conditions
Hi all !!
I have to change/update orders item price condition in a report.
I think is possible calling the function CRM_ORDER_MAINTAIN but I do not manage to do that.
The CT_INPUT_FIELDS have these values:
REF_GUID = item guid
REF_KIND = 'B'
OBJECTNAME = 'PRIDOC'
Is it correct ?
Which others parameters have to be passed to the function?
Thanks in advance for your help!!
Elenaexample:-
*& Report ZSALESORDER_CHANGE
REPORT ZSALESORDER_CHANGE MESSAGE-ID 38.
Selection Screen Definitions *
PARAMETERS: p_vbeln TYPE vbap-vbeln OBLIGATORY, "Order Number
p_posnr TYPE vbap-posnr OBLIGATORY, "Order Item
p_etenr TYPE vbep-etenr OBLIGATORY, "Schedule Line
p_reqqty TYPE bapischdl-req_qty OBLIGATORY. " Order Qty
Internal Tables/Structures/Variables for calling BAPI. *
DATA: i_hdr TYPE bapisdh1,
i_hdrx TYPE bapisdh1x,
i_ret TYPE bapiret2 OCCURS 0 WITH HEADER LINE,
wa_ret TYPE bapiret2.
DATA: BEGIN OF i_sched OCCURS 10.
INCLUDE STRUCTURE bapischdl.
DATA: END OF i_sched.
DATA: BEGIN OF i_schedx OCCURS 10.
INCLUDE STRUCTURE bapischdlx.
DATA: END OF i_schedx.
START-OF-SELECTION Event *
START-OF-SELECTION.
*" Initialize internal tables.
REFRESH: i_sched, i_schedx, i_ret.
CLEAR: i_sched, i_schedx, i_ret.
*" Fill required ORDER_HEADER_IN data.
i_hdrx-updateflag = 'U'.
*" Fill required SCHEDULE_LINES data.
i_sched-itm_number = p_posnr.
i_sched-sched_line = p_etenr.
i_sched-req_qty = p_reqqty.
i_schedx-updateflag = 'U'.
i_schedx-itm_number = p_posnr.
i_schedx-sched_line = p_etenr.
i_schedx-req_qty = 'X'.
APPEND i_sched.
APPEND i_schedx.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = p_vbeln
order_header_in = i_hdr
order_header_inx = i_hdrx
TABLES
return = i_ret
schedule_lines = i_sched
schedule_linesx = i_schedx.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
LOOP AT i_ret.
WRITE / i_ret-message.
ENDLOOP. -
User exit for Price Conditions in VA02 (update,insert or delete conditions)
Hi folks. I would like to know if anyone of you has already worked with transaction VA02...I need a user exit, which could be capable to: Erase, Update and Insert new Price Conditions.
Scenario: The user will not enter into the Price Conditions Tab. He will only make some modifications to the document via VA02 and when he saves the document, then the user exit should update, erase or include new conditions based on some logic that the user exit will implement. does anyone know a user exit for this particular case, please !
Thanks in advance.HI,
Check this.
V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
V46H0001 SD Customer functions for resource-related billing
V45W0001 SD Service Management: Forward Contract Data to Item
V45S0004 Effectivity type in sales order
V45S0003 MRP-relevance for incomplete configuration
V45S0001 Update sales document from configuration
V45P0001 SD customer function for cross-company code sales
V45L0001 SD component supplier processing (customer enhancements)
V45E0002 Data transfer in procurement elements (PRreq., assembly)
V45E0001 Update the purchase order from the sales order
V45A0004 Copy packing proposal
V45A0003 Collector for customer function modulpool MV45A
V45A0002 Predefine sold-to party in sales document
V45A0001 Determine alternative materials for product selection
SDTRM001 Reschedule schedule lines without a new ATP check
Business Add-in
BADI_SD_SCH_GETWAGFZ Scheduling Agreement: Read WAGFZ from S073
BADI_SD_V46H0001 SD Customer functions for resource-related billing
Regards
Rajendra -
Send price conditions to external system
Hello,
I would like to send the price conditions to a non SAP system. The IDOC COND_A02 seems to be the solution for sending the price conditions modifications to this system but is there a programm to send an initial set of idocs with all conditions (like RBDSEMAT for materials)? I cannot find any.
Thanks in advance for any help provided.
JulienJulien,
You can send prices to external system from pricing reports, transaction V/LD. For example, I used this to send sales prices to an external system using pricing report 15. Here you can enter your material selection criteria including, condition type. This will generate a report which you can then send to external systems. I apologize, but I do not remember the menu path from the report result off hand.
Ram,
Make sure you have activated change pointers for message type COND_A, create or change a price and excute RBDMIDOC for COND_A. -
Table for Contarct number and price condition record GUID
Hi All,
Please help me to find the table in which the Contarct number and price condition record GUID was stored.
By....
BiplabHi Biplab,
I know this is not a recommended way or a proper approach for this.
try this if you want..
open transaction ST01 start the button Trace on go back to the Business Objects
you want to find the info about and select the fileds you want and come back
to ST01 screen and push the button Trace off.
You will get the result.
Points Please,
Murali -
I do not obtain to change value in price conditions bapi CHANGE_SALES_ORDER
Hi all,
We are developing a new solution using this RFC to maintain Sales Orders from the Legacy System.
In some situations, it will be necessary to change values of the Item Price Conditions in Sales Orders already created, in order to attend a Legacy Systems requests.
We tried to use the follow keys, but without a good result:
IX_KONVKOMX-UPDKZ = D (Delete) - Doesn't works
IX_KONVKOMX-UPDKZ = U (Update) - Insert a new line in Pricing
IX_KONVKOMX-UPDKZ = I (Insert) - Works as U (Update)
Could you please clarify why the key "U" doesn't works as Update and
if there is any way to make this kind of modification?
I verified you vary answers in this forum, but none was useful.
Thanks a lotexample:-
*& Report ZSALESORDER_CHANGE
REPORT ZSALESORDER_CHANGE MESSAGE-ID 38.
Selection Screen Definitions *
PARAMETERS: p_vbeln TYPE vbap-vbeln OBLIGATORY, "Order Number
p_posnr TYPE vbap-posnr OBLIGATORY, "Order Item
p_etenr TYPE vbep-etenr OBLIGATORY, "Schedule Line
p_reqqty TYPE bapischdl-req_qty OBLIGATORY. " Order Qty
Internal Tables/Structures/Variables for calling BAPI. *
DATA: i_hdr TYPE bapisdh1,
i_hdrx TYPE bapisdh1x,
i_ret TYPE bapiret2 OCCURS 0 WITH HEADER LINE,
wa_ret TYPE bapiret2.
DATA: BEGIN OF i_sched OCCURS 10.
INCLUDE STRUCTURE bapischdl.
DATA: END OF i_sched.
DATA: BEGIN OF i_schedx OCCURS 10.
INCLUDE STRUCTURE bapischdlx.
DATA: END OF i_schedx.
START-OF-SELECTION Event *
START-OF-SELECTION.
*" Initialize internal tables.
REFRESH: i_sched, i_schedx, i_ret.
CLEAR: i_sched, i_schedx, i_ret.
*" Fill required ORDER_HEADER_IN data.
i_hdrx-updateflag = 'U'.
*" Fill required SCHEDULE_LINES data.
i_sched-itm_number = p_posnr.
i_sched-sched_line = p_etenr.
i_sched-req_qty = p_reqqty.
i_schedx-updateflag = 'U'.
i_schedx-itm_number = p_posnr.
i_schedx-sched_line = p_etenr.
i_schedx-req_qty = 'X'.
APPEND i_sched.
APPEND i_schedx.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = p_vbeln
order_header_in = i_hdr
order_header_inx = i_hdrx
TABLES
return = i_ret
schedule_lines = i_sched
schedule_linesx = i_schedx.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
LOOP AT i_ret.
WRITE / i_ret-message.
ENDLOOP. -
Price conditions in Shceduling Agreement
Hi All,
I have one query:
How to make the price conditions greyed out in Shceduling Agreement of document type LP?
I even tried out making the price and price unit field display in the field selection but was of no use.
Any help highly appreciated..
Regards,
AbhijitHi
Try it out in SPRO- Material amnagement- Purchasing- Scheduling agreement - Define screen layout at document level.
Then select PT0L and change the price into dispaly.
It will work
Regards,
Raman -
Determination of price conditions
Hi all !!
We have a problem with our price determination.
The situation that is working wrong is the following:
When we create a sales order which is giong to be delivered in several steps (For instance, 400 units of the material XXXX, delivering 100 units per month) our system calculate the price conditions using the date of the outbound delivery instead of the pricing date of the sales order. Taking this into consideration, when the billing documents are created, for each outbaund delivery we've got a different price, and we should have the same price for every outbound delivery.
We've have been checking the copy control and everything is ok.
Anyone can help us?
Of course if you need more information, please let us know.
Thanks a lot.Please check the copy controls (T-code VTFL, at the item category level field "Price Source", over there select the option "order" instead of delivery/order.
All the prices relevant at the order level will be applicable in the billing document
Plz reward points if this was useful to you.
Regards,
Sanjay -
I want to reference a condition type Z001 from application area F against a pricing condition ZF00 in my sales order (application area V). I have maintained condition records against condition Z001 only. During Sales Order processing the system advises that no condition record can be found for ZF00, even though it also advises me not to create conditon records in transaction VK11 due to the reference.
Is there an extra step missing? Do I need to point my ZF00 condition type to the access sequence from application area F? Is this possible?You can maintain Price conditions to vendor in MEKE transaction code.
One you are in MEKE transaction - sytem will ask you purchase org and vendor name and after entering detail press execute button. Place your curser on vendor name and select create icon. it will direct to new fast entry screen to define the scales for price condition.
The above will only work when you have already configure Schema Calculation. I mean following steps are required to calculate Schema.
1. Define calculation schema
2. Define schema group (Vendor Shema Group + Puchase Organization Schema Group)
3. Assign Vendor Schema Group to Vendor
4. Assign Purchase Organization Schema Group to Purchase Organization
5. Define Schema Determination.
Hope it will help. -
How to delete a Price Condition?
Hi all,
I need to delete a price condition. How should I proceed?
Thanks in advance,
Regards,Hi,
Do you want to delete the condition in the PO or a condition record created for a combibnation to come into PO?
However you can delete the condition in the PO like this.
Open the PO in change mode.and go to the tab conditions.
Select the condition to be deleted.and press the icon ( A square with a Minus sign in Red )at the bottom of the tab and the condition will be deleted and save the PO..Please see that the PO is in fresh open condition without any transaction posted.
If you want to delete a condition record created , go to the T code MEK2 and out the condition type there and select the key combination for which the record exists and in the next screen , select the record and press the icon for deletion (which is one like above said).and save.
Regards, -
Sending Sales Price & Conditions(VK11) Data
Sending Sales Price & Conditions(VK11) Data ALE/IDOC Interface . please let me know the message types and tcode to send pricing condtion like BD10 for MATMAS .
your help is appriciated
thanks
NaveenIDoc COND_A01 (also see if the higher numbers work for you), message type COND_A, if memory serves.
To send (like BD10) - transaction VK13. Enter condition type, pick a Key combination (if applicable). You should get a screen with the key fields and the [Condition Info] button. Fill in the required fields, if any (the values don't matter, you just need to pass through the screen), click [Condition Info] button. This will open the selection screen - fill in the fields, as needed, click Execute button.
If you have done everything correctly, you should get a list of condition records with the checkboxes. Check the records that you want to send and click [Send Condition] button. On the next screen, provide the requested informaton for the IDocs.
You might need to configure a partner profile (WE20) and distribution model (BD64), of course.
Good luck! -
SD price condition with per mille
I need to calculate a value of 7,7/1000 + 15%, which is 0,008855. I am trying to configure the condition as per mille, but I cannot select neither "K" nor "J". The system says they are not defined for the application.
If I try to create the condition as a percentage, I have the problem that there are only 3 decimals, so I still have a problem.
Does anyone have an idea how to solve it ?
MichaelHi all,
Checking the price condition in the invoice, i see these values:
Amount 2.160- COP / 33 UND
Cond.base value 71,000 UND
Condition value 4.647- COP
The result we need is Condition Value = -2.160 * 33, but, because this formula is calculated in a position of the invoice, this position has its own quantity that differs from the quantity calculated by the formula.
In simulation, SAP takes the result as we need, that is Condition Value = -2.160 * 33. But when the billing document is created, the value is calculated like this:
Condition value = (-2.160 / 33) * 71
Condition value = (KOMV-KBETR / KOMV-KPEIN) * KOMV-KAWRT
Maybe there is something that is missing in our condition value formula.
Can anyone please tell me where can I find a document that explain some details to have into account when we develop a condition value formula using transaction code VOFM?
I kindly ask you to give me any clue.
Thanks in advance.
Kind regards,
Daniel Reyes -
Price condition equal to VPRS cost of goods
I have a senario ,which we will create sales orders for customers with sales price equals to the MAP(moving average price) at the time when the SO being input .And the sales price in sales orders should be copy to the billing whether the MAP has changed or not .
Now I have set up an pricing procedure ,which use VPRS as the sales price condition type ,but here comes another question when I create billing according to the delivery . When I create the billing document ,the net value is defferent with the net value of the sales order ,because the MAP has changed during the goods issue.
Is there any idea that can make sure the sale price equals to the MAP , and the billing net value is same as sales order net value?
can you give me some advice ? thanks for you help!Hi,
The pricing type (Copy control) is an extremely important field. It is worthwhile keeping this entry
in mind when creating your pricing condition types. As a rule of thumb, you should
have all item categories for a particular sales document with the same settings.
Generally, you may use pricing type B (carry out new pricing), G (copy pricing
elements unchanged and redetermine taxes), or C (copy manual pricing elements
and redetermine the others).
When using condition B all manual pricing condition types are lost.
If you want to copy the sales order to the invoice without changing the sales order
conditions, use pricing rule G. This will copy the pricing conditions from the order into the
invoice without changing them, but will redetermine the taxes.
Regards...
SBC
Maybe you are looking for
-
please help!! how can i configure my iphone 3gs because i've been updated a new version, i did it but it's hard to activate it again. this message i always recieved in my iphone "We're sorry, we are unable to continue with your activation at this tim
-
I recently recieved an (cheap looking) email from Apple via kudenserver.de about my apple id and its supposed problem. first of all, the email didn't make much sense gramatically so it just made me confused. it was talking about how i shared informat
-
User rights required to install and run netmon on windows 7
What are minimal user rights required to install and run Netmon on Windows 7 Senior IT Systems Administator
-
I see the other libraries but don't get the "import" ribbon and buttom at the bottom
I just added a new computer to the homesharing and while I see the other libraries, I don't get the ribbon at the bottom that has the import button. This is only happening on the new system. How can I get the ribbon to come up
-
Has anyone transferred a video from a canon ZR80 to imovie?
I have connected the camcorder to my Mac via firewire, but Imovie doesn't see it at all. Has anyone accomplished this task? I know this is an old camcorder.