How to include plant address data in price calculation procedure in PO?
Hi, experts
I need to include in conditions PO the field REGION from plant address data. Price depends on region of recivable plant. I included the field in condition table (it was in the field catalog KOMK and KOMP), it was included as KOMK- REGION. As a result price in PO depends on the field REGION from vendor address data in header PO. How to change to REGION from plant address data in item of PO?
Thanks
Hi,
Since SAP standard routines don't fill KOMK-WKREG
the badi implementation me_po_pricing_cust
would be the best option. User exits would work
too at the end of function me_fill_komk_po, since it's called right after the check for the badi in function
me_fill_komk_po.
Regards,
Edit
Similar Messages
-
How to calculate any two date with diffence calculation by using obiee11g?
Hi,
i have a requirement like,
location wise current month and previous month with movement calculation,can to tell me how to calculate any two date with diffence calculation
by using obiee11g
Note,
I tried to implemented ago function as well as dynamic two dates calculation using $2-$1 methods..but i am getting the o/p it's self i am getiing some null value also that' why it's not tallying with our actual report.
i tired to used ifnull(mesaurecolumn,0) also case condition on the mesaure colution still it's not tallying.
THanks and Rds,
Devarasu.RHi,
for Date Difference........
TimestampDiff(interval, timestamp1, timestamp2)
ex:TimestampDiff(SQL_TSI_DAY, cast('1-apr-2011' as date), current_date)
Where:
interval
The specified interval. Valid values are: SQL_TSI_SECOND, SQL_TSI_MINUTE, SQL_TSI_HOUR, SQL_TSI_DAY,
SQL_TSI_WEEK, SQL_TSI_MONTH, SQL_TSI_QUARTER, SQL_TSI_YEAR.
Cheers,
Aravind -
How to include email address of the consignee in ORDERS05 purchase orders?
Helllo,
how can the email address of the consignee be included to the address data in purchase orders of the type ORDERS05?
The email address should fit somewhere in here:
< E1EDKA1 >
< PARVW > WE </ PARVW >
< LIFNR > 1234</ LIFNR >
< NAME1 > COMPANYNAME </ NAME1 >
< NAME2 > A.NONYMUS </ NAME2 >
< STRAS > 1 Highstreet </ STRAS >
< STRS2 > 1.C.110 </ STRS2 >
< ORT01 > Ratingen </ ORT01 >
< PSTLZ > 40882</ PSTLZ >
< TELF1 > +49 2102 123456 </ TELF1 >
The email address is part of the ADDRESS DETAILS of the purchase order.
The dynpro field is: SZA1_D0100-SMTP_ADDR
Is it possible to send this address only to a specific vendor?
Your help is very much appreciated!
KarstenHello there,
Following is the URL for the widget.
http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=3072025
Thanks,
Vish -
How to include some costs in standart price on the base of material costs?
Hi,
the current client want to include some costs in standart price for the material on the base of raw material costs (according to bill of material). "Some costs" are costs for whole plant or workshop: electricity, gas, salary of some wokers an so on. These costs can not be ascribe to concrete finished products, but must be included in cost of goods manufactured. I assume to use cost center to collect these costs. Direct costs for raw material collects on cost collectors.
Now the problem by standard cost estimate:
1.The balance this cost center must be zero (it follows flegal requirements). Therefore I can not use overhead rates. Or I don`t know something?
2. I can create activity type, calculate its price on the base of planned costs of this cost center and use it in operation in routing for finished product. But in routing I can not use the costs of raw material to determine how many units of activity type must be confirmed. I can make only rule like: 1 Unit finished product - 1 Unit of activity type.
So, no chance?
P.S.
In fact there is no problem - I can use distribution of cost objects hierarchy
Best regards,
Yury
Edited by: Yury Pogorelov on Jun 17, 2009 4:33 PM
Edited by: Yury Pogorelov on Jun 17, 2009 4:33 PM
Edited by: Yury Pogorelov on Jun 17, 2009 4:34 PM
Edited by: Yury Pogorelov on Jun 17, 2009 4:35 PMHi Anu,
Putting the resource files in WEB-INF/classes is the correct and good way!
Simon -
How to include the 1st data point date time in x
Hi,
I use a formular in the Interval from "Axis range and interval"
=IIF(COUNT(Fields!Date_Reading.value, "DataSet1") <=48 ,1 , 12)
However, it always missed the 1st data point date/time, please advise on how to include it always ... !
Thanks !Hi kkcci8888,
Per my understanding that when you using the expression in the Interval you can't see the first date display in the label, right?
I have tested on my local environment and can reproduce the issue, the issue caused by the setting of the Interval. I assumed the 1st data point date time which haven't display means the minimum date in the report.
If you have specify an kind of "Interval Type", the first date not display as the label, if you keep the "Interval Type" as "Default", you will get it display correctly.
I recommend you to do the setting as below to get it display correctly:
Go to Horizontal Axis Properties
In Axis Options, Select the Axis Type as Scalar.
Deselect "Always include zero".
In Minimum box type [First(Sale_Date)]
note: make sure you have use the order by Sale_Date in the query to order the date already.
keep the "Interval Type" as "Default", the default means "Days", try to modify the expression to specify an new value of the Interval and the type will be "Days" by default.
Click "Labels" on the left pane to check you haven't select the "Hide first and last labels along with this axis":
If you still have any problem, please feel free to ask.
Regards
Vicky Liu
Vicky Liu
TechNet Community Support -
How to get Plant address from SAP R/3 to SRM
Hi Gurus,
We need to retrieve the plant address from SAP R/3 to SRM and display it in the output list of the report (SRM).
Suggest any standard FM or should we need to create a Custom Remote enabled FM and put the select query to get the address.
Regards
PaulHi Paul,
Try using the RFC_READ_TABLE function module...
Pass the table name as t001w which contains the plant details.
Hope this helps.
Thanks,
Pradeep -
How to view the returned data from a stored procedure in TOAD?
Hi,
I created ref cursor in the stored procedure to return data. The stored procedure works fine, just want to view the result in TOAD. The BEGIN... EXEC... END can execute the stored procedure, but how to make the result display?
Thanks!Right click the editor and choose
"Prompt For Substitution Variables".
Run for example the following code:
DECLARE
PROCEDURE p (cur OUT sys_refcursor)
AS
BEGIN
OPEN cur FOR
SELECT *
FROM DUAL;
END p;
BEGIN
p (:cur);
END;
The result will display in Toad's Data Grid!
Regards Michael -
How to view the returned data from a stored procedure?
Hi,
I created ref cursor in the stored procedure to return data. But how can I view the data when I execute it? The stored procedure works fine, just want to view the result.
Thanks!SQL>set serveroutput on size 100000;
SQL>set autoprint on
SQL>variable cv refcursor;
SQL>exec proc_name(param1,:cv); -
Oracle POC - how to include variable in data source and reference it
from style sheet? We need to automatically print Supplier name on Oracle Contract Terms Template signatures section. Presently it needs to be entered by hand and it is not optimal because Supplier name exists on a purchasing document.
Thanks in advance!It's not very intuitive to do this sort of thing in a batch file. If you have the option to use PowerShell instead, I'd highly recommend it. It's the new way for performing command-line tasks in Windows, and there's no need to struggle with the old command
prompt anymore.
Here are PowerShell and batch examples of doing this type of string parsing:
# PowerShell:
$dataDirectory = Get-Content .\test.txt |
ForEach-Object {
if ($_ -match '^\s*data directory\.*:\s*(.+?)\s*$')
$matches[1]
break
$dataDirectory
# Batch file:
@echo off
setlocal EnableDelayedExpansion
set DATA_DIRECTORY=
for /F "tokens=1,* delims=:" %%a in (test.txt) do (
set PROPERTY=%%a
set PROPERTY=!PROPERTY:~0,14!
if /I "!PROPERTY!" equ "data directory" (
set DATA_DIRECTORY=%%b
:RemovingSpaces
if "%DATA_DIRECTORY:~0,1%" neq " " goto :SpacesRemoved
set DATA_DIRECTORY=%DATA_DIRECTORY:~1%
goto :RemovingSpaces
:SpacesRemoved
echo %DATA_DIRECTORY%
endlocal -
in which table plant adress and its telephone numbers
hi
The table for Purchase Organisation to receieving plant is stored is T024W
Vendor is saved in LFA1.
Check SPRO
Enterprise Strucrure->Assignment->Materials Management
<b>Reward if useful</b> -
How to access the record data send by a procedure
Hi I have a procedure with below code snippet..
create package pkg
type t_rec is recod (id number,id_name varchar2(10));
type t_data is table of t_rec index by binary_integer;
act_data t_data;
procedure return_data is (o_rec out t_data,dept in number,region in number) ;
create package body pkg
procedue return_data is (o_rec out t_data,dept in number,region in number) is
p_cur sys_refcursor;
l_text varchar2(100);
indx number:=0;
begin
open p_cur for 'select id,id_name from tab1'||l_text';
loop
fetch p_cur into o_rec(indx).id,o_rec(indx).id_name;
exit when p_cur%notfound; --p_cur.count=0 giving error
dbms_output.put_line('id is '||o_rec(indx).id); ---- 4
indx:=indx+1;
end loop;
close p_cur;
exception ....
end pkg;Now ---4 is giving me values when i put value to id and id_name parameter.
Then i try to fetch the returned value by below code
DECLARE
bk_data PKG.T_DATA;
BEGIN
PKG.RETURN_DATA(bk_data, 'parameter.pm1', 'parameter.pm2');
dbms_output.put_line('id is '||bk_data(1).id);
end;But it is not giving me any data and thowing error " no data found "
Please help me how i can fetch and se the the data returned by PKG.RETURN_DATA
Thanks in advance.
Edited by: bp on May 31, 2012 2:56 PM>
I have corrected my code as below.
>
No you haven't. You didn't fix the errors I mentioned.
Worse you added new lines that have new errors.
t_data:=&t_data -- i passed 10
dept :&dept -- ipassd 10You added substitution variables to the package code; those are for sql*plus - not PL/SQL.
>
Can ypu please post the sample code that is giving you data for the sample package pkg .
>
If you aren't willing to post sample code why should we? The code you posted won't even compile so it can't possibly be the code you are actually using that purportedly has an error.
exception ....That is invalid code as you undoubtedly know so what does it accomplish by adding it other than making people think your actual code was removed. But that means that the code you removed could have a problem in it that we can't see. And that means we have no hope of finding your problem because we can't see all of the code that might be causing it.
>
Please ignore spelling mistakes.
>
We can't ignore them if the code you post won't compile with them in it. The word 'procedue' you provided in the original question isn't a spelling mistake; it's because you did not cut & paste your actual code. It means that instead you manually entered text that is not code you are actually using.
If you really want help with your problem you need to post the code that you are actually using and that is giving you the problem you are reporting.
>
l_text varchar2(1000):=null; -- i have built some dynamic whee clause in this variable
>
But are you using NULL for this value when you run your test? If not then maybe the problem is in the value that you are using. How could we possibly tell when you don't post what you are using?
Post the code you are actually using. If you can't do that for proprietary reasons then modify it to remove the sensitive code. But the code you post has to be the code you are using and the code that is giving the problem. -
How to include 3 sql statements in a single procedure
I have 3 SQL statements to create 3 tables:
Table1:To get all the data from an ORIGIN table that have an expiration_dates between 02/01/2006 and 04/30/2006. This has all the customer data (customer_id, company, etc )
Table 2:Secondly I am getting all the customer_ids for February into another table called table2
Table 3: Thirdly I am joining table 1 and table 2 on customer_id to get all the entries for the February customers those expire in February, March and April.
Now I want to include all these in a procedure. Can I put all these together in 1 procedure so that I can run all these at once and have the results?
Please throw some light on this.
Thanks,
AcI hope this code will help you a little bit
[email protected]> create table orgin(customer_id int, company varchar2(20), expiration_date date)
2 /
Table created.
Elapsed: 00:00:01.06
[email protected]> create table table2 (customer_id int, expiration_date date)
2 /
Table created.
Elapsed: 00:00:00.01
[email protected]> create table customers_table(customer_id int, cust_date date)
2 /
Table created.
Elapsed: 00:00:00.01
[email protected]> create table table3(customer_id int)
2 /
Table created.
Elapsed: 00:00:00.01
[email protected]> create table table1(customer_id int, company varchar2(20), expiration_date date)
2 /
Table created.
create or replace procedure customers is
begin
-- table1
insert into table1 select customer_id, company, expiration_date
from orgin
where expiration_date between to_date('01-02-2006','dd-mm-yyyy')
and to_date('30-04-2006','dd-mm-yyyy');
-- table2
insert into table2 select customer_id, cust_date from customers_table
where cust_date between to_date('01-02-2006','dd-mm-yyyy')
and to_date('28-02-2006','dd-mm-yyyy');
-- table3
insert into table3 select a.customer_id from table1 a, table2 b
where a.customer_id = b.customer_id;
end;
Best Regards
Krystian Zieja / mob -
Address Data in Multiple Language
Hi Friends,
How can i mentain Address Data for Vendor/Customer in multiple language while Uploading through BAPI or if any other method to achieve the same.
Regards
SonalHi Arun,
Use Standard text ade those text elements. Then use those in SAP script using different languages.
Regards,
Amitava -
Address Data in Mutiple Languages
Hi Friends,
How can i mentain Address Data for Vendor/Customer in multiple language while Uploading through BAPI or if any other method to achieve the same.
Regards
SonalHi,
I think as you do the validation for postal code and city, the same way i think you can achieve the data as per your requirement.
Path:- SPRO-SAP Web Application ServerApplication ServerBasis ServicesAddress ManagementRegional Structure/City File--Postal Codes,Cities and Streets we can maintain as per the requirement.
I think this will help you out.
Thanx
Chinmaya
Edited by: Chinmaya Parida on May 19, 2009 12:53 PM -
hi,
how to change plant address and shipping point address.Hi Amit,
Follow the path to change the plant and shipping point address.
SPRO -> Enterprise Structure -> Definition -> Logistics General -> Define, Copy, Edit Plant -> Define Plant -> Select your plant by doubling clicking and press (Shift + F5)
SPRO -> Enterprise Structure -> Definition -> Logistics General -> Define, Copy, Edit Shipping Point -> Define Shipping Point -> Select your shipping point by double clicking and press (Shift + F5)
Hope it had helped. Do reward if it had.
Regards
Nadarajah Pratheb
Maybe you are looking for
-
Win 7 in Boot Camp: Drivers will not install from snow leopard cd.
I have a early 2011 Macbook Pro (8,1). I am loading Windows 7 with Boot Camp, but cannot get any of the drivers to install. (ethernet, video, etc) I have tried both the Snow Leopard cd (I think it's Boot Camp 3.2?), and also downloading drivers onlin
-
Retrieving Images Embedded In XML (from rss using xsl)
I am trying to comsuem and rss feed into my site but i dont seem to see an "image" element in the Item node. can someoen tell me how to retrieve Images Embedded In XML dreamwaever. i am using an xsl fragment on a pap server. Doh
-
Where do i find frames in photoshop CS6 & how do i remove background images in photos ?
-
What is proper syntax for using PassBack in a Report page select statement
In my select statement I reference the passBack function using: onClick="javascript:passBack()" In my Page Header I (Typically) define the passBack function as: <script language="JavaScript" type="text/javascript"> function passBack(passVal1,passVal2
-
Hi Seniors, Can anybody tellme what is the use of FB03 & SQ01 with detailed information please. If i didnt mistake SQ01 is being used by ABAP Consultant not FICO Consultant please give me some more detail information pertaining SQ01. Awaiting for you