RFC comparing Purchase Order from server D10 and compare the PO E10 server
Hi Gurus,
I want to fetch data of Purchase order from D10 system client 058 and compare whether the same Purchaser order is also present in E10 system clilent 078.
Please send me the sample code how to retrieve the code from different servers using RFC. I am new to RFC, please guide me same code.
Regards,
Prasad
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Jan 30, 2008 4:24 PM
Hello Arza
You can use BAPI BAPI_PO_GETDETAIL to retrieve the PO data from the two (remote)systems.
During an important migration project I had to compare whether the PO data were the same on the old and new SAP system.
For this purpose I used the BAPI to retrieve the PO data, initialized all data of which I new they would differ between the old and the new system (e.g. time stamps, date, time).
Next I defined a complex structure which contained all PO data that I wanted to compare.
Each PO gave one record which I collected into an itab.
Finally I transformed the itab data into a single XML file for the data from the old and the new system. Then I took an XML editor (e.g. Oxygen) and made a diff analysis of the two XML files which showed me every difference.
This way I was able to compare thousands of PO's within a few hours.
Regards
Uwe
Similar Messages
-
I want to initialize my MBpro end reinstall lino, but I purchased it from apple store and cancelled the installation file. If i try to download again it from appstore I couldn't...How I can do ? Please help me
Thanks for the feedback. Now, before installing in, put a copy some place safe and you won't have to download it again, wasting bandwidth, time, and electricity. Why? Because the installer blows itself away during the installation—IMO, a braindead delivery system, copied from their iOS world, but totally unsuitable for computers.
-
Printing Purchase Order from ME9F using custom program and smartform
I was able to use my custom program which calls a smartform to print purchase orders from transaction ME9F. I did this using transaction NACE.
However, when I call "Output Message" from ME9F, the output always fails (shown by an 'X' icon after the checkbox). When I try to put back the standard program in NACE, it does not show an 'X' but a check which indicates that the printing was successful.
Do you know why this happens? What did I miss?
Here's my call to my smartform from my custom driver program:
" Change Smartform ZP_MMSF_P01_PURCHASE_ORDER
" to internal Function module name
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZP_MMSF_P01_PURCHASE_ORDER'
IMPORTING
FM_NAME = fmname
wa_cparam-no_dialog = 'X'.
wa_output-tddest = 'LOCL'. "or 'LP01'. "Spool: Output device
CALL FUNCTION fmname
EXPORTING
control_parameters = wa_cparam
output_options = wa_output
i_data = i_data
wa_lookup = wa_data_lookup
goods_amt = goods_amt
discount_amt = discount_amt
vat = vat
total_amt = total_amt
total_amt_inwords = total_amt_inwordsVijaya,
I have this problem though,
Whenever I try to provide values for CONTROL_PARAMETERS and OUTPUT_OPTIONS to the sapscript call in your code, the PO printing (even the preview) does not proceed. I do this because I wanted to suppress the printer dialog.
here is a fragment of the code:
" code I added
LS_COMPOSER_PARAM-tddest = 'LOCL'. "or 'LP01'. "Spool: Output device
LS_COMPOSER_PARAM-bcs_langu = sy-langu.
LS_CONTROL_PARAM-preview = 'X'.
LS_CONTROL_PARAM-no_open = 'X'.
LS_CONTROL_PARAM-no_close = 'X'.
LS_CONTROL_PARAM-device = 'PRINTER'.
LS_CONTROL_PARAM-no_dialog = 'X'.
DO NAST_ANZAL TIMES.
*--In case of repetition only one time archiving
* if sy-index > 1 and nast-tdarmod = 3.
* nast_tdarmod = nast-tdarmod.
* nast-tdarmod = 1.
* ls_composer_param-tdarmod = 1.
* endif.
IF SY-INDEX NE 1 AND REPEAT IS INITIAL.
REPEAT = 'X'.
ENDIF.
CALL FUNCTION LF_FM_NAME
EXPORTING
ARCHIVE_INDEX = TOA_DARA
ARCHIVE_PARAMETERS = ARC_PARAMS
CONTROL_PARAMETERS = LS_CONTROL_PARAM
MAIL_RECIPIENT = LS_RECIPIENT
MAIL_SENDER = LS_SENDER
OUTPUT_OPTIONS = LS_COMPOSER_PARAM
USER_SETTINGS = SPACE
IS_NAST = NAST
IS_REPEAT = REPEAT
I tried to trace it to the function module generated by smartform. The error propagates this way: From the function module, there is a call to function SSFCOMP_PROCESS_DOCUMENT. Then inside that function, there is a perform operation to tr_ssfcomp_process_doc
perform tr_ssfcomp_process_doc using startpage docstruc
header.
Inside that form, it calls the macro tr_active which checks the value of ssfcstat-trlevel (tracelevel) against c_trlevel_document. In the macro, if ssfcstat-trlevel is less than c_trlevel_document, the smartform will fail. c_trlevel_document is 15 and ssfcstat-trlevel is 0, and so the smartform fails.
(you can see the macro tr_active in include LSTXBCMAC and the form tr_ssfcomp_process_doc is in the include LSTXBCFTR)
When I do not put values in CONTROL_PARAMETERS and OUTPUT_OPTIONS, everything is ok.
Do you know why this happens?
Thanks in advance!
Edit: I have found out about transaction SFTRACE, but this is disabled.
Kyle -
Raising Partial Production and purchase order from MRP.?
Hi Experts,
How to raise partial production order and purchase order from MRP..
KarthikKarthi,
I believe you should go through both of these topics relating to Production Orders and MRP.
https://websmp105.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700000321882005E&_SCENARIO=01100035870000000183&_ADDINC=
https://websmp105.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700001061692007E&_SCENARIO=01100035870000000183&_ADDINC=
Best wishes
Suda -
i purchased gems from a game and didnt get them because my method was declined i want to remove the order so i dont pay for it and so i can update my other apps and i want to remove the method i will be thankfull if someone help me without updating the payment method i cant update my apps in my iphone i want to remove the method and remove the order i dont want it
Click here and ask the iTunes Store staff for assistance.
(125742) -
I'm trying to remove Exchange 2007 from an SBS 2008 server
(Server 2008 Standard FE). My ultimate goal is to completely remove the SBS 2008 Server from the network environment.
We have an Exchange 2010 Coexistence Scenario and Mailboxes/Public Folders/etc have been moved over to the 2010 mail server, on Server 2008 R2.
I have moved all Shares, FSMO roles, DHCP, DNS, etc over to their respective servers. We have two full blown DC's in the environment.
I'm ready to remove Exchange 2007 from SBS 2008 and DCPROMO the server. I can NOT seem to find a TechNet article that shows me how
to proceed in this kind of scenario. I am trying to use the TechNet article:
http://technet.microsoft.com/en-us/library/dd728003(v=ws.10).aspx
This article references Disabling Mailboxes, Removing OAB, Removing Public Folder Databases, then uninstalling Exchange using the Setup Wizard.
When I go to Disable Mailboxes I get the following error:
Microsoft Exchange Error
Action 'Disable' could not be performed on object 'Username (edited)'.
Username (edited)
Failed
Error:
Object cannot be saved because its ExchangeVersion property is 0.10 (14.0.100.0), which is not supported by the current version 0.1 (8.0.535.0). You will need a later version of Exchange.
OK
I really don't see why I need to Disable Mailboxes, Remove OAB and Public Folder Databases since they have been moved to 2010. I just want
to remove Exchange 2007 and DCPROMO this server (actually I just want to remove any lingering Exchange AD Objects referring to the SBS 2008 Server, using the easiest and cleanest method possible).
Can someone point me in the right direction?
Thanks!Hi,
Based on your description, it seems that you are in a migration process (migrate SBS 2008 to Windows Server
2008 R2). Now, you want to remove Exchange Server and demote server. If anything I misunderstand, please don’t hesitate to let me know.
On current situation, please refer to following articles and check if can help you.
Transition
from Small Business Server to Standard Windows Server
Removing SBS 2008 –
Step 1: Exchange 2007
Removing SBS 2008 – Step 2:
ADCS
Removing
SBS 2008 – Step 3: remove from domain / DCPROMO
Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft
does not guarantee the accuracy of this information.
Hope this helps.
Best regards,
Justin Gu -
Re: Error in submitting Import Standard Purchase orders from Pl/Sql
Hi All,
Iam using the following code to submit a concurret program
"Import Standard Purchase orders" from pl/sql
Program is sucessfully submittted but it is Completing in error status i am stuck there please help me in resolving this
My instance R12
My Code
======
DECLARE
v_request_id VARCHAR2 (100);
BEGIN
mo_global.set_policy_context ('S', 204); --org_id for the operating unit which the purchase order records belong too
mo_global.init ('PO'); -- sets the application
FND_GLOBAL.APPS_INITIALIZE (1013436, 50578, 201); --Consists of the user_id, responsibility_id, responsibility_application_id which is 201 for purchasing
v_request_id :=
fnd_request.submit_request (application => 'PO',
program => 'POXPOPDOI',
description => NULL,
start_time => NULL, -- To start immediately
sub_request => FALSE,
argument1 => '31348', -- Buyer_ID
argument2 => 'STANDARD', -- Doc Type
argument3 => '', -- doc subtype
argument4 => 'N', -- update items
argument5 => '', -- create sourcing rules not used
argument6 => 'INCOMPLETE', -- Approval status
argument7 => '', -- release generation method
argument8 => '1021387', -- batch_id
argument9 => '', -- operating unit null
argument10 => '', -- global agreement null
argument11 => '', -- enable sourcing null
argument12 => '', -- sourcing level null
argument13 => '', -- inv org enabled null
argument14 => '' -- inv org null
DBMS_OUTPUT.put_line ('Request submitted. ID = ' || v_request_id);
COMMIT;
EXCEPTION
WHEN OTHERS
THEN
DBMS_OUTPUT.put_line (
'Request set submission failed - unknown error: ' || SQLERRM
END;
output
=====
when i check output i am getting the follwing error
DECLARE
ERROR at line 1:
ORA-06510: PL/SQL: unhandled user-defined exception
ORA-06512: at line 133
Log message
==========
+-----------------------------
| Starting concurrent program execution...
+-----------------------------
Arguments
31348
STANDARD
N
INCOMPLETE
1021387
Start of log messages from FND_FILE
To get the log messages for PDOI, please use the following id to query against FND_LOG_MESSAGES table:
AUDSID = 945297
ORA-01403: no data found in Package po.plsql.PO_PDOI_PVT. Procedure init_sys_parameters.0
ORA-01403: no data found in Package po.plsql.PO_PDOI_PVT. Procedure init_startup_values.10
ORA-01403: no data found in Package po.plsql.PO_PDOI_PVT. Procedure start_process.50
User-Defined Exception in Package po.plsql.PO_PDOI_Concurrent. Procedure POXPDOI.30
End of log messages from FND_FILE
Thanks
Manoj kumarPass NULL instead of ''
Check the flag
SELECT multi_org_category
FROM fnd_concurrent_programs
WHERE concurrent_program_name = 'POXPOPDOI'Update it as per the below MOS Doc
R12 / POXPOPDOI - 'ORA-01422' Error While Running 'Import Standard Purchase Orders' [ID 457628.1]
Otherwise,
Follow the below doc and insert values to the interface tables (headers, lines and distribution) and run the Import Standard Purchase Orders from the front end.
How To Diagnose Problems With Importing Standard Purchase Orders [ID 781351.1]
HTH
Cheers,
ND
Use the "helpful" or "correct" buttons to award points to replies / Mark the thread as answered, if your question is answered. -
Purchase Order released date field and table name
Hi,
Please tell me the Purchase Order released date field and table name.
Regards
DeepakHi,
Table : EKKO.
Fields : FRGKE,FRGZU.
You can get release date of PO from CDHDR table.
give object value as your po number and check.dont forget to give leading zeros.
The udate will be date field and transaction will be me29n for relaesed po. -
How to block the Statistical delivery date in purchase order from updation
Hello All,
We have the following requirement from our client.
The client wants to track the delay in delivery of purchase orders raised to vendors. Currently the users, change the delivery date and then process the PO if there are any delays. The client wants to STOP this and track any changes being made.
We created a new screen layout for purchase orders and checked the Statistics relevant delivery date as DISPLAY
However, when we tested the same, the statistical delivery date was changed along with delivery date, when the delivery date was changed in the Purchase order, though the option for statistical delivery date was seen a DISPLAY field only.
Please provide us your suggestions on any other options available.
R's
Manoj.if your client wants to track the delay of a delivery from your vendor, then he has to give the vendor a chance that he can deliver on time. And the usual way to do this is by sending the PO to the vendor.
if you cange the delivery date before output of messagem then your vendor could not even know the original delivery date, so it is not the vendors fault if he cannot meet this date.
if you change the delivery date after output of message , then the statistical delivery date will stay with the old date.
the field is always open to maintain because it is not always the vendor who is reponsible for a delivery date change.
if you want to change the delivery date because you can take the quantity at that date, then it is not the vendors fault, in this case you have to change the statistical delviery date to evaluate the vendors delivery performance against the new date.
And often forgotten in this evaluation process is the warehouse personell that finally posts the goods receipt. if they post it with delay and do not change the goods reeipt date, then the vendor is as well evaluated to bad. -
Unit price validation in Purchase Order, Goods Receipt PO and A/R Invoice
Hello!
I want to have validation of the Unit Price field in Purchase Order, Goods Receipt PO and A/R Invoice documents.
This means that user has to get some kind of message if she/he do not enter the Unit price in above mentioned documents.
I can not use the price lists for this, to get the field populated automatically, because I do not have all the prices...
I am no longer newbie when it come to SAP, but this really puzzles me
Thanks,
DejanHello guys,
I have tried to add this code to check if the field Unit Price was empty in the Purchase Order form (Object ID 22)
But it gives me an error message - Error converting data type varchar to numeric (CINF)
I am getting the same error message even if I have some value in the Unit Price field...
I am really confused - what is wrong with it???
Here is the code from the Transaction notification
IF (@object_type = N'22' AND @transaction_type in (N'A', N'U') )
BEGIN
IF EXISTS (SELECT T1.DocEntry FROM OPOR T0 inner join POR1 T1 on T0.DocEntry = T1.DocEntry
WHERE (T1.PriceBefDi IS NULL OR T1.PriceBefDi = ' ') AND T0.DocEntry = @list_of_cols_val_tab_del)
BEGIN
Set @error =1
set @error_message = 'Unit Price cannot be blank'
END
END
Thanks,
Dejan -
Automatically creation of Purchase Order from MRP
Material type = ROH (raw material)
In MRP1 I have mentioned
1. RP type =VB ( manual reorder point planning)
2.Reorder point = 1000
3.Lot size =FX (fixed order quantity)
4. Fixed lot size = 300
In purchasing I have checked the automatic P.O. option
I have created a source list for the material and fixed the vendor for the material
Quantiy of the material in stock = 0
But Purchase Order is nor automatically generated during the MRP run ( MD03)
IS there any step missing ? please suggest if any .
Thanks in advance .Hi,
As others suggested standrad SAP will not create PO as output of MRP.
You need to check why you need AUTO FUNCTION.however you can use T code ME59n to create auto PO from Preqs.
About AUTO PO
One example is that while taking delivery of the raw materials which are delivered by trucks and since it is not possible to capture the actual receipted quantity at the time of PO creation.
To create AUTO PO
Check in customizing whether you have maintained creation of automatic PO during good receipt.
Menu path : MM -> Inventory Management -> Goods Receipt -> Create Purchase order Automatically -> Activate Auto PO creation for Mvt type and then activate Auto PO creation in vendor master.
Hope this helps.
SCMBEE -
Excluding price of last purchase order from cost estimate
Good morning,
we have the issue described below:
we would like to exclude a price of some purchase orders from valuation in cost estimate in case of valuation is made by price from purchasing info record.
In this case valuation considers price of last purchase order even if there is a valid agreement used.
Our customer would like to have valuation with price of purchasing agreement and not price of the standard purchase order closed, but if agreement is older and during creation of standard PO is setted the "InfoUpdate" flag, system updates the inforecord and in CK11N during cost calculation it uses this price for subcontracting.
We have done some tests...Is there a standard SAP solution to have price of valid purchase agreement?
Many thanks.
Giusy Castiglione
Accenture OutsourcingHi,
Your requirement seems to be very unique and hence you need to try out through by selecting the valuation through user exit where we can request the system take the po price from purchase agreement instead of purchase orders. This selection deftly resolve this unique requirement instead of searching for a std solution.
Trust this helps much!
Regards,!
Ashok Singh -
Quantities captured in Purchase Order from Sales Order
Hi,
Here is the scenario:
1. Sales Order: Ordered 2 units of item A.
2. Item A in warehouse = 1 unit. Therefore, I'm short of 1 unit.
3. Tick Purchase Order in the logistic tab.
4. When I click Add sales order, Purchase Order confirmation window appear.
5. Quantities captured in the PO confirmation order is 2 units.
The quantities for PO should be 1 unit, isn't it?
This is weird. I tested this a few days ago. The PO only captured the quantities that I'm short of, not the full quantities.Hi Joyce
As per your scenario if there are two items in sales order and if u make a purchase order out of it it would have 2 items in it
because it does not take into account the MRP aspect it directly links a direct link between sale and purchase order in the backend and also there exist a link between line items and there quantities
if u wana run the system eeping in mind the MRP concept then u would require to run the purchase order from MRP
Regards
Manish -
Automatic posting of purchase order from sales order
hiii
experts,
i m doing automatic purchase order from sales order. i have generated purchase requisition number from sales order now when i m trying to do automatic po the system says no suitable purchase requisition available.I have maintained info record, source code,automatic po tick in material master and in vendor master.what could be the problem .waiting for ur valuable inputs.
warm regards
thanks
subhash kulkarniHello,
Please check all the things mentioned by our experts e.g Source allocation ,infor record, source list.
Beside that I would suggest check document flow whether already PO is created or not.
If every thing is in place then try to create PO with reference to PR by transaction ME21N & see what error you receives.
Hope this help you ,
Regards,
Prashant -
Date difference issue for Purchase order in R/3 and APO
Hi,
I am sending the purchase order from APO to R/3. When I transfer the data through CIF and see the curresponding entries in stock requirement list in R/3, purchase order is 1 day earlier than in SCM.
However, when this purchase order is CIFed back to SCM, date appears correct in SCM ( as what it was before). Is this something because of timezone that difference in date appears in SCM and R/3.
Can someone who came across date issues for transaction data transfer between SCM and R/3 elaborate in more detail please.
Thanks,
SanjayHello Somnath ,
I am also facing the same issue which sanju was facing earlier in PRs .
In APO I am not able to understand how system calculates the opening , start and end date .In my case the transportation time is 48 hrs , planned delivery time is 1 day and all calenders are 5*24 , GR proceeeing time .01 day . When I am creating PR at destination location on 06/06/2008 , 24:00:00 Hrs . System calculates the dates as follows :-
Start date -06/05/2008 , 00:45:00 , end date -06/06/2008, 24:00:00 , opening date -05/20/2008 ,23:25:00 Hrs . I tried to understand the formula given by you in your reply as Opening Date = Requirement Due Date - GR Time - Planned Delivery Time
Start Date = Requirement Due Date - GR time - Transportation Duration
End date = Requirement Date.
But I am not getting the desired results.
Could you let me know why the system is behaving in such way.I also want to know does system can create orders in such a way the opening date lies in past. If yes then can we restrict that ?
Regards ,
Mukesh
Edited by: Mukesh Kumar on Mar 9, 2008 1:59 PM
Maybe you are looking for
-
Multiple Users on Lightroom? Or Other Solution?
I just called Adobe technical support and spoke with someone about using Lightroom to organize patient photos in a medical office. I was told that Lightroom does not support multiple users, and there is no work-around solution or plug-in for this.
-
Sync over Wi-Fi does not always work
Sometimes it does, sometimes it doesn't; works very inconsistently. Often iTunes displays an error, iPhone can't be located despite the fact that it's connected to my Wi-Fi. Any way to increase the reliabilty of the sync?
-
TNSNAMES.ORA for Oracle database 11.1.0.7
Hi, Im installed oracle database 11.1.0.7 ,but unable find the TNSNAMES.ORA File.Can any help on this.
-
I did a restore some time back and after it created a folder labeled "private". Inside this folder looks like this private/tmp/tempVM/vm/swapfile0 What is this and is it safe to delete?
-
Knowledge Management & Colloboration Implementation
Dear All, Would you please let me know how Knowledge Management & Collaboration (KMC) on EP platform of SAP. I need to know about the Roadmap of implementation with phases / steps of implementation. Thanks & Regards, Pankaj Kumar