PO header condtion value
Hi Gurus
How to fetch the value from PO header condtion for layout purpose? &
How to fetch the value from subtotals (ex: Asseable value) value from header condtions tab?
Thanks with anticipation
Raju
Thanku
Please let me know detail.
Got the condtion record number by passing PO no. to EKKO. then condtion record no. entered in KONP and KONH but there was message that "no table enteries found"
I would like capture value against particular condtion type from header.
Raju
Similar Messages
-
Free goods by header net value not Quantity
Regards
My client wants to make a sales promotions as the free goods SD. The difference is that free goods should not be given by the bought quantity of certain material, they should be given from the header net value of an order.
For example:
If a customer have an order with header net value of 100$ from only materials that has certain material pricin group, it should receive one free good.( All the materials in the order have the same material pricing group)
If a customer have an order with header net value of 200$ from only materials that has certain material pricin group, it should receive two free goods.
If there are ways to make this happen please let me know i would really appreciate it.
Thanks
Edited by: Ronald Caroli on Feb 13, 2008 9:13 PMHi ronald,
The userexit option is very tough to do.
You are using a right userexit, but how are you coding it? Whats your design and flow?
The BDC are programmable recordings of a standard transaction. Hence you will be able to record the way in which you add a line item to sales order. Ths recording is automatically converted into lines of code by SAP. Then you insert your checks and balances between these lines of code to make it behave the way you want the sequence of transactions to work.
My thought was to make a recording of adding a new line item, in change sales order transaction(va02), with item category as Free of Charge(FOC). Then in the code, I wanted to check for material pricing group, if found correct, then would go finding the net value of sales document. If the value is above the limit, calculate the target quantity. Then follow the rest of the recording and add a new line with FOC as item category.
But this was a seperate transaction, which could be applied seperately and not to be done automatically in sales order. This was becuase say if you switch off the promotion tomorrow, then you will not have to worry abt removing the same functionality from sales order, you just need to de-activate the transaction.
Then there would be issues of doing hardcoding the net value limits, free good quantity in the user exit which is not at all recommended.
Hope this helps.
Abhishek -
Line item Net value is not coming in Header Net Value
Hi All,
I have four conditions
1) A condition with condition cat.Price this is annual price condition and condition value comes from condition record.
2) B condition with condition cat.Discount & Surcharge this is monthly dis. and condition value comes from condition record.
3) C condition with condition cat.Discount & Surcharge this is monthly dis. and condition value comes through pricing routine(formula value).
4) D condition with condition cat.Discount & Surcharge this is monthly dis. and condition value comes by USER EXIT (this value is basically pervious month condition C Net value) .
5) E condition with condition cat.Discount & Surcharge this is monthly dis. and condition value comes through pricing routine (formula is condition C - D and resultant value should come in condition E)
When i am creating sales order for Jan month sales order
condition A , B, C is considered and value of condition E comes perfectly in net value column of line item and in net value of sales header matches.
But When i creating sales order for Feb month sales order header net value
condition A , B, C, D is considered and value of condition E comes perfectly in net value column of line item and in net value of sales header does not match. In net value of header system is considering only Condition value C.
So my query is why system is considering condition C value and why not the Net value of line item.
My PP is as follow:
Step Cond.type From to Man Reg St subtotal Req Caltype Bastype
10 A X 2
20 B X 2
30 C X 2 601
40 D X 2
50 Net value 30 40 X 1
60 E 50 2 25 5
70 Total 60
Please help me where is going wrong.
Thanks & regards
SreeHi Sanjay
Just go to V/06 and check wheather header data has been checked or not. That could be the reason it has not copied to header data
Regards
Srinath -
How to get a Header UDF value in a FMS ?
Hi !
How is it possible to get a Header UDF value from a Formatted Search in a header ? If we don't want to create as many FMS as there are marketing documents in the system, how is it possible ? Can we have a syntax like the following ?
SELECT T0.OnHand
FROM OITW T0
WHERE T0.ItemCode=$[$38.1.0]
AND T0.WhsCode=$[$U_Nwr_WH.0.1]
Thanks,
LuceHi Gordon,
oh, I'm sorry, I did a mistake...
In fact, my question is "How can we get a header UDF value in any FMS without specifying the table name?" !!!!!
Can we access it through specific syntax like $ and [ ?
thanks,
Luce -
Is there any API or Program to Update GL Journal Header DFF Values
Hi All,
Can anyone let me know if we have any API or Program for updating GL Journal Header DFF Values.
Any information will be appreciated..
Thank You
Gt1942DFFs (Attribute1-15) can be updated directly using custom programs. Oracle doesn't provide any APIs to update Attribute1-15.
-
How can we transfer the header fiedl value to the item
we have add the "storage location" field to the sales order head and item, now we need to batch change the item's storage location when we change the head's storage fields ,
we have use the function module in 'crmc_map' transcation, but with some problems, when we change the head's field, we can't triger the item's 'SET' event, so we can't change's the item's fields(through the screen is changed, but when we use 'CRM_ORDERADM_I_READ_OW' to get the value, it stand still);
we also tried to when we change the head's field, we use head's set event to change to item's value, but we can't get item's guid, so Now I have no idea to deal with it.
Any body can help me?
Thanks a lot!Hi,
Using the set method in this scenario is not reliable. The set methods are triggered only for displayed items, whereas you need to change the value for, I presume, all the items. In the code where you change the header field value, write the code to change values for items as well. The approach will differ depending on whether you are using the BOL method or directly call the maintain APIs.
Regards,
Arun Prakash -
RFx Header Target Value in Sourcing is Zero for RFx created in SRM Manually
Hi All,
We are facing the issue with RFx Header Target Value, before proceeding with question , like to share our scenario's
We are using SAP SRM Classical Strategic Scenario. and below are two possible ways.
Case1)ECC PR - SRM SC (EXTR-BUS2121) - SRM RFx(BUS2200) - SRM RFx Response(BUS2202) - > ECC PO.
Case2)ECC PR - SRM SC (EXTR-BUS2121) - SRM RFx(BUS2200) - SRM RFx Response(BUS2202) - > SRM Contract - ECC Contract.
Case3) SRM RFx(user create RFx directly in SRM ) - SRM RFx(BUS2200) - SRM RFx Response(BUS2202) - > SRM Contract - ECC Contract.
Case4)SRM RFx(user create RFx directly in SRM ) - SRM RFx(BUS2200) - SRM RFx Response(BUS2202) - > - > ECC PO.
Now for cases 1 & 2 , Target Value in the RFx Header is populating correctly ,but for Cases 3 & 4 where the RFx is directly created in SRM ,the Target Value field is visible and editable in the RFx Header ,but when we enter some value and go to other tab, like bidder, the "Target Value" is getting cleared.,
Can any help to understand this SAP behavior of application ,Is this SAP standard? or is there is any miss in our configuration.? Kindly provide some inputs on this. I also cross checked the notes
Thanks
ChannaHello Channa,
There is note 1992525 and 1712226.
Please refer to the note 2037465 for important information about pricing.
This note has all information about pricing in SRM for different scenarios.
Best regards,
Rohit -
Default Header DFF value in Line DFF.
Hi,
I am using EBS 12.1.1 and would like to default header DFF value at line level DFF.
Please guide.
Regards,Hi,
Not for Price unit in RFx but we had a similar requirement in Master Agreements wherein we needed to default the ECC Integration fields within predetermined values. We had achieved this via scripting.
For you purpose, you can use the following:
Scripting Context: Document Lifecycle Event
External ID:SAPINT_LineitemValidate
Class: Rfx Line Item(783)
Script: import com.frictionless.sap.integration.event.RfxLineItemEventHandler
Herein you can specify the Pricing Unit = "1000";
Hope this is of help to you.
Thanks,
Vikram Shukla -
Header net value different in display and change mode in Sales Order.
Hi All,
I am facing a strange problem. When I check an order in display mode, I can see the header net value as 120047 Euro. However, If I open the order in change mode, it shows value as 133099.
Do not understand why?
Please help me to solve the issue.
Regards,
NehaDear Neha
Can you please clarify as to whether any header condition type is flowing in the sale order, so that I will try to give a suitable solution accordingly.
thanks
G. Lakshmipathi -
Price NETWR- Net and KWERT- Condtion value both should be same
Dear All
My requirement is such that NETWR- Net (30000/-) and KWERT- Condtion value (as 30000/- only) both should be same. system should not club any value into Net what ever the condition value is there the same should be seen in Net(NETWR)
eg:30000/- Condition Value (KWERT) should be same as
30000/- Net (NETWR)
Kindly suggest me in this regard
Regards
BMSDear Sri nath
Qty 1,000 KG Net 45,415.89 INR
Tax 908.32
ZP00 Price 48,300.00 INR 1,000 KG 48,300.00 INR
ZTRD Trade Discount 1,100.00- INR 1,000 KG 1,100.00- INR
ZSPD Special Discount 1,000.00- INR 1,000 KG 1,000.00- INR
ZFRC Freight Rebate 800.00- INR 1,000 KG 800.00- INR
SubTotal for Sales T 45,415.89 INR 1,000 KG 45,415.89 INR
In the above table what ever you see in BOLD Font those should be same
Regards
BMS -
When I try to access iTunes or safari, I get the following message:The procedure entry point QTCF_CFHTTP message set header field value could not be located in the dynamic link library QTCF.dll I uninstalled and reinstalled.same result HELP!
Taken at face value, you're having trouble with a QuickTime program file there.
Let's try something relatively simple first. Restart the PC. Now head into your Uninstall a program control panel, select "QuickTime" and then click "Repair".
Does the repair go through okay? If so, are you able to launch iTunes and/or Safari now? -
Header condition value is changing in Invoice compare to Sales Order
Hi,
I have created one Sales Order with five line items and total quantity is 100 units. I have one header condition type and the value is 1000 USD in Sales Order.
Now I have created delivery and changed the quantity from 100 units to 105 units..
And than I have created Invoice. If i check the Header condition type value now it it 1100 USD instead of 1000USD(header condition type value should be the same as in Sales Order)
Can anyone suggest me why the header condition value is changing in Invoice where as it should be as same as in Order?
Thank you for your support
Best Regards
AmjathpashaHi Amjad,
You might check in copy controls for the Pricing type if the prices are getting re-determined at the time of billing.
Although, if it is, the value should have been 1050 USD and not 1100 USD.
As you know item condiitons for all the items are added up to the header, you might want to analyze item conditions as well.
Also, since you are delivering 105 units instead of 100, do you still want the system to charge for 100 units? Or is it something related to under-delivery/over-delivery tolerance?
Regards,
Amit -
Purchase Order header Net Value
HI ,
Can anyone advise how to get the net value from Purchase Order Header..
The header net value is not the one from EKPO-NETWR ,, BUT it is showing from KOMP-NETWR , so is there any function module or any tables links where we can get the purchase order net value.
thanks
-sureshHi,
Try with folowings:
KONH Conditions (Header)
KONP Conditions (Item)
Regards,
Biju K -
Hi All.
I have a control file which i need to add a column with header data value.
example
data file:
123456;201303
santiago;producto1;100
santiago;producto2;200
valparais;producto1;400
valparais;producto3;900
The control file skip the first column and load the three columns on the table, but, now i need to add other column with 201303 value constant of the first record and load it on the table.
Then
select * from table:
santiago producto1 100 201303
santiago producto2 200 201303
valparais producto1 400 201303
valparais producto3 900 201303
How i do this in the control file?
Regards!SCOTT@orcl_11gR2> host type test.dat
123456;201303
santiago;producto1;100
santiago;producto2;200
valparais;producto1;400
valparais;producto3;900
SCOTT@orcl_11gR2> host type test1.ctl
options (load=1)
load data
infile test.dat
replace
into table onecol_onerow
fields terminated by ';'
trailing nullcols
(filler1 filler, newcol)
SCOTT@orcl_11gR2> host type test2.ctl
options (skip=1)
load data
infile test.dat
append
into table test_tab
fields terminated by ';'
trailing nullcols
(col1, col2, col3,
newcol expression "(select newcol from onecol_onerow)")
SCOTT@orcl_11gR2> create table onecol_onerow
2 (newcol number)
3 /
Table created.
SCOTT@orcl_11gR2> create table test_tab
2 (col1 varchar2(15),
3 col2 varchar2(15),
4 col3 number,
5 newcol number)
6 /
Table created.
SCOTT@orcl_11gR2> host sqlldr scott/tiger control=test1.ctl log=test1.log
SQL*Loader: Release 11.2.0.1.0 - Production on Mon May 6 10:46:44 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Commit point reached - logical record count 1
SCOTT@orcl_11gR2> select * from onecol_onerow
2 /
NEWCOL
201303
1 row selected.
SCOTT@orcl_11gR2> host sqlldr scott/tiger control=test2.ctl log=test2.log
SQL*Loader: Release 11.2.0.1.0 - Production on Mon May 6 10:46:45 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
Commit point reached - logical record count 4
SCOTT@orcl_11gR2> select * from test_tab
2 /
COL1 COL2 COL3 NEWCOL
santiago producto1 100 201303
santiago producto2 200 201303
valparais producto1 400 201303
valparais producto3 900 201303
4 rows selected. -
How to delete header condtion line of sales order by BAPI
Hi,
I want to delete the condtion line of sales order header using BAPI "BAPI_SALESORDER_CHANGE",
it is work well in item level condition type, but it is not work for header condition type. show error message "missing item number" since of pass item number "000000" for header condition line.
Below is reference source code, thanks in advance.
*& Report ZTEST_BAPI_SO_DELETECONDLINE
*& Sample program to call BAPI_SALESODRER_CHANGE to
*& delete condition line of so line item
REPORT ZTEST_BAPI_SO_DELETECONDLINE.
***--- Structures for create BAPI
DATA: SALESDOCUMENT LIKE BAPIVBELN-VBELN.
DATA: ORDER_HEADER_INX LIKE BAPISDH1X,
BEHAVE_WHEN_ERROR LIKE BAPIFLAG-BAPIFLAG,
SIMULATION LIKE BAPIFLAG-BAPIFLAG.
DATA: BEGIN OF ORDER_ITEM_IN OCCURS 2.
INCLUDE STRUCTURE BAPISDITM.
DATA: END OF ORDER_ITEM_IN.
DATA: BEGIN OF ORDER_ITEM_INX OCCURS 2.
INCLUDE STRUCTURE BAPISDITMX.
DATA: END OF ORDER_ITEM_INX.
DATA: BEGIN OF SCHEDULE_LINES OCCURS 2.
INCLUDE STRUCTURE BAPISCHDL.
DATA: END OF SCHEDULE_LINES.
DATA: BEGIN OF SCHEDULE_LINESX OCCURS 2.
INCLUDE STRUCTURE BAPISCHDLX.
DATA: END OF SCHEDULE_LINESX.
DATA: BEGIN OF ORDER_CFGS_REF OCCURS 2.
INCLUDE STRUCTURE BAPICUCFG.
DATA: END OF ORDER_CFGS_REF.
DATA: BEGIN OF ORDER_CFGS_INST OCCURS 2.
INCLUDE STRUCTURE BAPICUINS.
DATA: END OF ORDER_CFGS_INST.
DATA: BEGIN OF ORDER_CFGS_VALUE OCCURS 2.
INCLUDE STRUCTURE BAPICUVAL.
DATA: END OF ORDER_CFGS_VALUE.
DATA: BEGIN OF CONDITIONS_IN OCCURS 2.
INCLUDE STRUCTURE BAPICOND.
DATA: END OF CONDITIONS_IN.
DATA: BEGIN OF CONDITIONS_INX OCCURS 2.
INCLUDE STRUCTURE BAPICONDX.
DATA: END OF CONDITIONS_INX.
DATA: BEGIN OF EXTENSIONIN OCCURS 2.
INCLUDE STRUCTURE BAPIPAREX.
DATA: END OF EXTENSIONIN.
DATA: BEGIN OF RETURN OCCURS 2.
INCLUDE STRUCTURE BAPIRET2.
DATA: END OF RETURN.
DATA: TMP_POSNR LIKE VBAP-POSNR,
L_KNUMV LIKE VBAK-KNUMV,
L_KSCHL LIKE KONV-KSCHL,
L_STUNR LIKE KONV-STUNR,
L_ZAEHK LIKE KONV-ZAEHK.
***--- Selection
PARAMETERS: P_VBELN LIKE VBAK-VBELN OBLIGATORY MEMORY ID AUN DEFAULT '7000510', "'0001007443', " SO
P_POSNR LIKE VBAP-POSNR OBLIGATORY DEFAULT '000000' , " so item
P_CONDN LIKE KONV-KSCHL DEFAULT 'ZOSP', " condition type
P_CONDI LIKE KONV-ZAEHK DEFAULT '01', " Condition item number
P_TEST AS CHECKBOX DEFAULT 'X'. " test mode
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = P_VBELN
IMPORTING
OUTPUT = P_VBELN.
CLEAR: L_KNUMV.
SELECT SINGLE KNUMV INTO L_KNUMV
FROM VBAK
WHERE VBELN = P_VBELN.
IF SY-SUBRC = 0.
CLEAR: L_KSCHL,L_ZAEHK,L_STUNR.
SELECT SINGLE KSCHL ZAEHK STUNR INTO (L_KSCHL, L_ZAEHK, L_STUNR)
FROM KONV
WHERE KNUMV = L_KNUMV
AND KPOSN = P_POSNR
AND ZAEHK = P_CONDI
AND KSCHL = P_CONDN.
IF SY-SUBRC <> 0.
WRITE:/ 'Condition type or condition item is not exist.'.
EXIT.
ENDIF.
ELSE.
WRITE:/ 'Sales order number is not exist'.
EXIT.
ENDIF.
IF L_ZAEHK IS INITIAL.
WRITE:/ 'Condition type or condition item is not exist.'.
EXIT.
ENDIF.
SALESDOCUMENT = P_VBELN. " Sales order number
ORDER_HEADER_INX-UPDATEFLAG = 'U'. "U = change sales order
***Item Data
ORDER_ITEM_IN-ITM_NUMBER = P_POSNR.
APPEND ORDER_ITEM_IN.
ORDER_ITEM_INX-UPDATEFLAG = 'U'. "I = add, U= update, D=delete
ORDER_ITEM_INX-ITM_NUMBER = P_POSNR.
APPEND ORDER_ITEM_INX.
***--- Begin delete a condition line
***--- Make sure to use update flag 'D'. Here I = add, U= update, D=delete
CLEAR: CONDITIONS_IN,CONDITIONS_INX.
REFRESH: CONDITIONS_IN,CONDITIONS_INX.
CONDITIONS_IN-ITM_NUMBER = P_POSNR.
CONDITIONS_IN-COND_ST_NO = L_STUNR.
CONDITIONS_IN-COND_COUNT = L_ZAEHK.
CONDITIONS_IN-COND_TYPE = L_KSCHL.
APPEND CONDITIONS_IN.
CONDITIONS_INX-UPDATEFLAG = 'D'.
CONDITIONS_INX-ITM_NUMBER = P_POSNR.
CONDITIONS_INX-COND_ST_NO = L_STUNR.
CONDITIONS_INX-COND_COUNT = L_ZAEHK.
CONDITIONS_INX-COND_TYPE = L_KSCHL.
APPEND CONDITIONS_INX.
***--- End delete a condition line
BEHAVE_WHEN_ERROR = 'P'.
SIMULATION = P_TEST. " Test mode or not
"=== call BAPI
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
SALESDOCUMENT = SALESDOCUMENT
ORDER_HEADER_INX = ORDER_HEADER_INX
LOGIC_SWITCH = ' U'
TABLES
RETURN = RETURN
ORDER_ITEM_IN = ORDER_ITEM_IN
ORDER_ITEM_INX = ORDER_ITEM_INX
CONDITIONS_IN = CONDITIONS_IN
CONDITIONS_INX = CONDITIONS_INX .
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
WRITE: / 'Return code =', SY-SUBRC.
SKIP 1.
LOOP AT RETURN.
WRITE: / RETURN-MESSAGE.
ENDLOOP.
Edited by: hank jiang on May 21, 2010 5:07 AM
Edited by: hank jiang on May 21, 2010 5:25 AM
Edited by: hank jiang on May 21, 2010 5:27 AMSALESDOCUMENT = P_VBELN. "Sales order number
ORDER_HEADER_INX-UPDATEFLAG = 'U'. "U = change sales order
ORDER_ITEM_IN-ITM_NUMBER = P_POSNR.
APPEND ORDER_ITEM_IN.
ORDER_ITEM_INX-UPDATEFLAG = 'U'. "I = add, U= update, D=delete
ORDER_ITEM_INX-ITM_NUMBER = P_POSNR.
APPEND ORDER_ITEM_INX.
"Begin delete a condition line
"Make sure to use update flag 'D'. Here I = add, U= update, D=delete
CLEAR: CONDITIONS_IN,CONDITIONS_INX.
REFRESH: CONDITIONS_IN,CONDITIONS_INX.
CONDITIONS_IN-ITM_NUMBER = P_POSNR.
CONDITIONS_IN-COND_ST_NO = L_STUNR.
CONDITIONS_IN-COND_COUNT = L_ZAEHK.
CONDITIONS_IN-COND_TYPE = L_KSCHL.
APPEND CONDITIONS_IN.
CONDITIONS_INX-UPDATEFLAG = 'D'.
CONDITIONS_INX-ITM_NUMBER = P_POSNR.
CONDITIONS_INX-COND_ST_NO = L_STUNR.
CONDITIONS_INX-COND_COUNT = L_ZAEHK.
CONDITIONS_INX-COND_TYPE = L_KSCHL.
APPEND CONDITIONS_INX.
"End delete a condition line
BEHAVE_WHEN_ERROR = 'P'.
SIMULATION = P_TEST. " Test mode or not
"=== call BAPI
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
SALESDOCUMENT = SALESDOCUMENT
ORDER_HEADER_INX = ORDER_HEADER_INX
LOGIC_SWITCH = ' U'
TABLES
RETURN = RETURN
ORDER_ITEM_IN = ORDER_ITEM_IN
ORDER_ITEM_INX = ORDER_ITEM_INX
CONDITIONS_IN = CONDITIONS_IN
CONDITIONS_INX = CONDITIONS_INX .
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
WRITE: / 'Return code =', SY-SUBRC.
SKIP 1.
LOOP AT RETURN.
WRITE: / RETURN-MESSAGE.
ENDLOOP.
Maybe you are looking for
-
Admin Personalization property and problem in Extending controller
Hi, I am working on Oracle CMRO module R12. I have one OAF page.The path is as follows, */oracle/apps/ahl/prd/webui/UpdateWorkordersPG* I want to extend this page controller which is .*oracle.apps.ahl.prd.webui.UpdateWorkordersCO* but i have seen at
-
Query value output should be positive
Hello , I am working on one finance query and requiremnt is that query out for that report must be positive value even it takes negative value. Is there any way to get positive value? Thanks CPY
-
Hello! Is there some simple step-by-step guide for disaster recovery of Enterprise 4.7, WAS 620, Oracle? I am trying to create a disaster recovery scenario for our production based on DB13 backup and brrestore (I am doing backup to disk). The backup
-
Virus Software Turned Off & Internet Connection Problem
My laptop has been slowing down, but it was fine otherwise. A few days ago, I turned it on and received warning messages from the HP Action Center and HP Support Center that my Kaspersky Anti-Virus and Anti-Spyware software was no longer on. I nev
-
Transaction IVIEW or WEBDYNPRO
Hi, I have to deliver a new functionality using the EP. Is it better to create a general program and a transaction iview or to create a webdynpro? What's the advantage of each approach?