How to check LIV made for a partner vendor in Schedule agreement or P.O.?
I have defined partner vendor in schedule agreement and made LIV for a different vendor during MIRO. I need to check this in system. What is the procedure for viewing LIV made for a partner vendor with all these details like LIV no, Amount,partner Vendor and Condition type,etc.
Hi,
Check this to see if helps: Re: MM LIV-Report
Thanks,
Gordon
Similar Messages
-
How to check with table for cursor..?
How to check with table for cursor..?
Here I have Table temp_final_plan
Here i want to update if already exit...below is the procedure....
CREATE OR REPLACE PROCEDURE spu_final_profit_plan
AS
-- Constant declarations
ln_errnum number := 0;
-- Variable declarations
ls_errmsg app_errors.err_msg%TYPE;
ls_appmsg app_errors.app_msg%TYPE;
ls_appid app_errors.app_id%TYPE;
-- Cursor declaration for final_update_el
CURSOR cur_final_update_el IS
select '910' ent,
'9127316' center,
post_acct,
sum(avg_mtd_01) sum_avg_mtd_01,
sum(avg_mtd_02) sum_avg_mtd_02,
sum(avg_ytd_01) sum_avg_ytd_01,
sum(avg_ytd_02) sum_avg_ytd_02
from mon_act_cypy
where rec_type = 'A'
and sum_flag = 'D'
and yr = '2008'
and substr(ctr_or_hier, 1, 2) = 'el'
and ent || sub_ent in
(select ent || sub_ent
from ent_ref
where roll_ent || roll_sub_ent = '999100')
group by post_acct
having sum(avg_mtd_01) <> 0
or sum(avg_mtd_02) <> 0
or sum(avg_ytd_01) <> 0
or sum(avg_ytd_02) <> 0;
-- Cursor declaration for final_update
CURSOR cur_final_update IS
select b.plan_ent b_plan_ent,
b.plan_ctr b_plan_ctr,
a.post_acct a_post_acct,
sum(a.avg_mtd_01) sum_avg_mtd_01,
sum(a.avg_mtd_02) sum_avg_mtd_02,
sum(a.avg_ytd_01) sum_ytd_mtd_01,
sum(a.avg_ytd_02) sum_ytd_mtd_02
from mon_act_cypy a,
plan_unit_tbl b
where a.ent || a.ctr_or_hier = b.ent || b.ctr_or_hier
and a.rec_type = 'A'
and a.sum_flag = 'D'
and a.yr = '2008'
and b.hier_tbl_num = '001'
and a.ent || a.sub_ent in
(select ent || sub_ent
from ent_ref
where roll_ent || roll_sub_ent = '999100')
group by b.plan_ent, b.plan_ctr, a.post_acct
having sum(a.avg_mtd_01) <> 0
or sum(a.avg_mtd_02) <> 0
or sum(a.avg_ytd_01) <> 0
or sum(a.avg_ytd_02) <> 0;
-- Begin the procedure body
BEGIN
-- Insert / Update final profit plan for final_update query using cursor
FOR rec_final_update_el IN cur_final_update_el
LOOP
EXIT WHEN rec_final_update_el%NOTFOUND;
IF rec_final_update_el. THEN
UPDATE temp_final_plan
SET sum_avg_mtd_01 = rec_final_update_el.sum_avg_mtd_01,
sum_avg_mtd_02 = rec_final_update_el.sum_avg_mtd_02,
sum_avg_ytd_01 = rec_final_update_el.sum_avg_ytd_01,
sum_avg_ytd_02 = rec_final_update_el.sum_avg_ytd_02,
WHERE ent = rec_final_update_el.ent
AND center = rec_final_update_el.center
AND post_acct = rec_final_update_el.post_acct;
ELSE
INSERT INTO temp_final_plan VALUES(rec_final_update_el.ent,
rec_final_update_el.center,
rec_final_update_el.post_acct,
rec_final_update_el.sum_avg_mtd_01,
rec_final_update_el.sum_avg_mtd_02,
rec_final_update_el.sum_avg_ytd_01,
rec_final_update_el.sum_avg_ytd_02);
END IF;
END LOOP;
-- Insert / Update final profit plan for final_update query using cursor
FOR rec_final_update IN cur_final_update
LOOP
EXIT WHEN rec_final_update%NOTFOUND;
IF rec_final_update. THEN
UPDATE temp_final_plan
SET sum_avg_mtd_01 = rec_final_update.sum_avg_mtd_01,
sum_avg_mtd_02 = rec_final_update.sum_avg_mtd_02,
sum_avg_ytd_01 = rec_final_update.sum_avg_ytd_01,
sum_avg_ytd_02 = rec_final_update.sum_avg_ytd_02,
WHERE ent = rec_final_update.b_plan_ent
AND center = rec_final_update.b_plan_ctr
AND post_acct = rec_final_update.a_post_acct;
ELSE
INSERT INTO temp_final_plan VALUES(rec_final_update.b_plan_ent,
rec_final_update.b_plan_ctr,
rec_final_update.a_post_acct,
rec_final_update.sum_avg_mtd_01,
rec_final_update.sum_avg_mtd_02,
rec_final_update.sum_avg_ytd_01,
rec_final_update.sum_avg_ytd_02);
END IF;
END LOOP;
-- EXCEPTION handling section
EXCEPTION
-- Fire OTHERS Exception case by default
WHEN OTHERS THEN
-- ROLL BACK Transaction, if any failure
ROLLBACK;
ln_errnum := SQLCODE;
ls_errmsg := SUBSTR(SQLERRM, 1, 100);
-- Log the ERRORS into APP_ERRORS table using SPU_LOG_ERRORS procedure
spu_log_errors(ln_errnum, ls_errmsg, ls_appid, ls_appmsg);
-- End of the stored procedure
END spu_final_profit_plan;
[\pre]I'm not sure what you mean by, 'How to check with table for cursor..?' but I'll offer a comment on your Code Snippet. I think you want to know how to check if a record exists so you know if you need to perform an INSERT or an UPDATE.
Here is a snippet of your code. I'll put my comments in "Comment" style in your code.
-- Insert / Update final profit plan for final_update query using cursor
FOR rec_final_update_el IN cur_final_update_el
LOOP
/* There is no need to test for %NOTFOUND since you are using Cursor FOR Loop!
** This construct automatically exits when the last record is processed. */
EXIT WHEN rec_final_update_el%NOTFOUND;
/* Is this where you would like to know how to Check if the record already exist??
** I asked this because, 'rec_final_update_el.' is not valid syntax. Are you looking for
** an Cursor Attribute or Method you can check here?
** I would suggest a Primary Key or Unique Index on ENT, CENTER, and POST_ACCT
** on the TEMP_FINAL_PLAN table. Then simply perform an INSERT and code an
** Exception to UPDATE when you get a DUP_VAL_ON_INDEX exception. Otherwise,
** you will need to simply run an Implicit or Explicit Cursor to test if the row exists and
** use this return value to determine if you should INSERT or UPDATE. */
IF rec_final_update_el. THEN
UPDATE temp_final_plan
SET sum_avg_mtd_01 = rec_final_update_el.sum_avg_mtd_01,
sum_avg_mtd_02 = rec_final_update_el.sum_avg_mtd_02,
sum_avg_ytd_01 = rec_final_update_el.sum_avg_ytd_01,
sum_avg_ytd_02 = rec_final_update_el.sum_avg_ytd_02,
WHERE ent = rec_final_update_el.ent
AND center = rec_final_update_el.center
AND post_acct = rec_final_update_el.post_acct;
ELSE
INSERT INTO temp_final_plan VALUES(rec_final_update_el.ent,
rec_final_update_el.center,
rec_final_update_el.post_acct,
rec_final_update_el.sum_avg_mtd_01,
rec_final_update_el.sum_avg_mtd_02,
rec_final_update_el.sum_avg_ytd_01,
rec_final_update_el.sum_avg_ytd_02);
END IF;
END LOOP;I hope I've answered your question, but if I haven't please provide more details so we can better understand your request.
Craig... -
How to check call duration for total dialled calls (after resting) on a particular day in iphone 4?
Is there a solution like iphone 5, i.e.Settings > Cellular.if the device is unlocked cellular is called mobile
-
BAPI for fetching the list of scheduling agreements
This is my first post in SDN Forums so pardon me if I commit a mistake.
My question is: Is there a standard BAPI for fetching a list of scheduling agreements?
I know that there are BAPIs for creating and maintaining scheduling agreements like BAPI_SAG_CREATE and BAPI_SAG_CHANGE and iBAPI_SAG_GETDETAIL but each of these require the scheduling agreement number. My requirement is to list out all the scheduling agreements that are present in the system.
I found a BAPI named BAPI_DOCUMENT_GETLIST and BAPI_DOCUMENT_GETLIST2 but I'm not able to find out what documents it is able to display. If I don't specify any selection criteria, it is fetching just two records of document type DRW. No other document of any other type is fetched.
Another BAPI that I found was BAPI_SALESORDER_GETLIST in which if I specify the Transaction group as "3" (for scheduling agreement), it fetches them but those are related to Sales orders and not purchase orders.
So, if anyone has any info and can help me out, I would really appreciate it.
Edited by: rkarthea on Jul 30, 2010 10:44 AMHi Raj,
As I had said earlier, I need the Scheduling agreements related to purchase orders and not sales orders. The ones in EKKO table (Doc category: L).Will this program fetch this info?
Also, I need a Java app (that's being developed) to fetch this info, so I'm looking for a BAPI. Is there any or can this program (if it fetches the right Scheduling agreements) be called from an external Java app? -
SAP Treasury Management-How to Config Tax codes for Business Partner
Hi SAP Gurus,
Please suggest me how to configure specific Tax Code and Tax relevant data for Business Partner in SAP Treasury Management while posting transactions with reference to any specific GL A/c. Kindly help me .
Thanks and advance
Regards
ShivanHi Appalas,
Check this link
Re: Linking of default taxes and discounts to BP
Tax Code
/people/arshdeep.singh/blog/2008/10/20/defining-a-new-tax-code-in-sap-business-one-2005-b-and-2007-b
Regards
Jambulingam.P
Edited by: Jambulingam P on Jun 22, 2009 12:39 PM
Edited by: Jambulingam P on Jun 22, 2009 1:20 PM
Edited by: Jambulingam P on Jun 22, 2009 1:21 PM -
How to check a value for paramter query
I am passing a paramter value from my text box to my sql statement and I would like to check if the value is entered into a text box. If you have any idea please share it with me, i have been struggling with this for many days.Code below is how i try to check if the value is entered but I do not know how to check the value in the :VendorName
thanks
If Not txtVendorName.Text = "" Then
Sql = Sql & " AND (Upper(V.VNAMEL) LIKE '%' || Trim(Upper(:VendorName))|| '%') "
End IfSorry guys english is not my first language and i will try to be clear and specific.
I have a search page where customeres can do searching either using a text box or two dropdowns i have on my page. they have the option of doing search either using a text box or dropdowns or both.Everything seems to work fine but if users does not leave the text box blank. but they leave the text box blank and do searching using the two dropdowns then the page comes up empty and i checked my query and i should get a value. Attacehed my code for you to look at it.
<pre>
Sub VendorSearch()
gvSearch.Visible = True
Dim MinPDate As String = drPur.SelectedItem.ToString
Dim MaxMDate As String = drPurM.SelectedItem.ToString
Dim liThisOne As ListItem
Dim strState As String = ""
For Each liThisOne In lstState.Items
If liThisOne.Selected Then
strState = strState & "'" & liThisOne.Value & "'" & ","
End If
Next
Dim Sql As String = " SELECT distinct V.VENDOR ""Vendor Id"",R.ADDRNUM,V.VNAMEL ""Vendor Name"",R.AADDR1,R.ACITY,R.VASST1, "
Sql = Sql & "R.ASTATE State,R.AZIPCODE, to_char(Max(P.DATEPUR),'YYYY/DD/MM') ""Plan Purchased Date"" , "
Sql = Sql & "TRIM (r.aaddr1 || decode(trim(r.aaddr2),null,'',' - ') || r.aaddr2) Address,"
Sql = Sql & " substr(decode(trim(r.vasst1),null, 'N/A','000/000-0000?','N/A','000/000-0000','N/A', r.vasst1),1,12) Fax, "
Sql = Sql & " substr(decode(trim(r.aphone),null, 'N/A','000/000-0000?','N/A', r.aphone),1,12)Phone "
Sql = Sql & "FROM VENDOR V,VENDADDR R, PLANHOLD P "
Sql = Sql & "WHERE V.VENDOR = R.VENDOR AND P.VENDOR = R.VENDOR "
Sql = Sql & " AND (P.DATEPUR >= TO_DATE('1999-01-01','YYYY-MM-DD')) "
Sql = Sql & "AND P.DATEPUR In ( select Max(P.DATEPUR) from PLANHOLD P where P.vendor = R.VENDOR) "
'If txtVendorName.Text <> "" Then
' Sql = Sql & " AND (Upper(V.VNAMEL) LIKE '%' || Trim(Upper(:VendorName))|| '%') "
'End If
If (strState.Length > 0 And lstState.SelectedIndex <> 0) Then
strState = Left(strState, strState.Length - 1)
strState = "(" & strState & ")"
Sql = Sql & "AND R.ASTATE IN " & strState
End If
If (drPur.SelectedIndex <> 0 And drPurM.SelectedIndex <> 0) Then
Sql = Sql & " AND to_number(to_char(p.datepur, 'YYYY')) between " & "'" & MinPDate & "'" & " AND " & "'" & MaxMDate & "'"
End If
' Dim Para As String
' SqlDataSource1.SelectParameters.
If Not txtVendorName.Text = "" Then
Sql = Sql & " AND (Upper(V.VNAMEL) LIKE '%' || Trim(Upper(:VendorName))|| '%') "
End If
'If Not IsDBNull(SqlDataSource1.SelectParameters(":VendorName")).val Then
' Sql = Sql & " AND (Upper(V.VNAMEL) LIKE '%' || Trim(Upper(:VendorName))|| '%') "
'End If
Sql = Sql & " AND V.VOBSOLET = 'N' "
Sql = Sql & "GROUP BY V.VENDOR, R.ADDRNUM,V.VNAMEL,R.AADDR1,R.AADDR2,R.ACITY,R.ASTATE, R.AZIPCODE, R.APHONE, R.VASST1, P.DATEPUR "
Sql = Sql & "ORDER BY V.VENDOR "
Response.Write("Sql " & "<br/>" & Sql & "<hr/>")
SqlDataSource1.SelectCommand = Sql
End Sub
</pre> -
How to check silent switches for adobe reader installation ?
Hi All,
We are working on one project where we have to install adobe remotely and silently on around 5K machines. I am wondering how to check all adobe reader silent installation switches.
Any help would be great
Thanks And Regards
Vaibhav Singh
[personal info removed by moderator]What do you mean by "check" the silent switches? Do you mean you want the documentation for enterprise deployment?
(Worth mentioning just in case: you will need a deployment license from Adobe). -
[Win-ILL 10]How to check overprint & color for Pattern Swatches?
Hi all,
Im using Visual C++ 6.0 & Illustrator 10.
Please tell how to check whether overprint is applied to an object inside a Pattern Swatch(I dont want to Expand the object)
I also want to get the color for the object inside the Pattern Swatch
.Any Solution for this?
Thanks
myRiazThe reference to port 427 is in any firewall on the computer. Network communication is done over these ports and the job of the firewall is to monitor and block these ports.
This document might also be relevant for the problem.
http://h10025.www1.hp.com/ewfrf/wc/document?docname=c04011652&lc=en&cc=us&dlc=en&product=5199463
I was an HP employee.
Please mark the post that solves your problem as "Accepted Solution" -
How to check changes made in standerd layout set
Hi abaper's
How to check the changes made in the standard layout set , other than using Utilities--- -> Print preveiw ?Hi,
In ABAP there is no chance to check the version managment of the script , the better option to get this is to develop a small tool as follows:-
Every time u release the request of a script or layout just import that layout with (layoutname_request) no in application server. and using this RSTXFCOM program u can check transported one with existing.
Note: Everytime while checking transported one make it a local layout in RSTXFCOM we can check two layout differences.
Thanks
Pathan -
How to check the DPI for images on pages
hi,
I want to check the DPI for images programatically, is there any function available in acrobat SDK,
If not what other option we have to check the DPI for images programatically.
Thank you,You don't mention which parts of the SDK, but you can use the Preflight feature of Acrobat via either JavaScript or C/C++ (plugin) to generate a report of images in a document and their information (including dpi).
You can also write a plugin to iterate over each image individually and get its properties. -
No business partner found for ERP partner "Vendor" (role:LF)
Dear Experts,
When we create Inbound Delivery in ERP, it is getting distributed.
But the IBD is not created in EWM.
We checked in SLG1 and the deliveries were failed in the queue.
The error message says "No business partner found for ERP partner EWM_TEST (role:LF)".
We have maintained Business partner and IT type = CRM004 in Identification Tab.
Still, no idea how we can solve this issue.
Please suggest with your valuable inputs.
Thanks,
ShettyHi Ulf ,
Yes i have CIF ed vendor and seems ok now , but while task creation am getting error Please refer below screen shots and kindly guide me on error message . -
How to use multiple addresses for a global vendor
Hi experts.
scnerios is.company has different plants in different countires.they have centrally agreed contract with vendor.now each plant create p,o is in different country how can we use that vendors local addresses in p.o because in vendor master we can define one addres at a time.so if that adrees is in other country.and plant creating p,o is in different how can select the local address of that vendor.
if option is partner function then how to use it.all adressess witl be odering address of that vendor.his offices is alll the counties.
thanksIQBAL,
You can maintain multiple addresses for the same vendor using international addresses.
First, you have to Activate International Address Versions for each country/language via config at
IMG: Flexible Real Estate Management (RE-FX) > Address Management > International Settings > Activate International Address Versions (You can do this even if you are not using Real Estate Management
Then, in the vendor master, address screen, select the "International Verion" button, select the address version and maintain your address.
If you have any programs that need to display or print these addresses, you will have to specifiy the address version to display/print. by default, the version (Field = NATION) is Blank.
I hope this helps. -
How to change delivery block for all item in the schedule lines via va32
dear sap expert:
i onle can change delivery block for one sales order item in the schedule line every times via va32,it will take so many time because there are hundreds of item in a sceduling agrrement. how to change all the item one times.
please give me a way to resovle the problem.
best regards.dear:
the fast change function cann't resovle the problem,i first double click the item of schedule agreement ,then select the schedule lines option, finally in the delivery block input the reason of bolck.
best regards. -
How DMR can be maintained for MATERIAL AND VENDOR LEVEL
Hi,
For now we implemented the DMR only at material level, but now we want to know if it is possible to implement the same at material and vendor level, because some material are provided by different vendors and we want to apply a different DMR for each vendor (or only apply the DMR for one specific vendor).
The DMR that we created on the system is just to complete the inspection protocol every 10 material good receipts and skip it the other ones.
Please, Could you provide us the correct way to perform this DMR at material and vendor level?
regards
mohanok
-
Invoice verification For Freight before GR in Scheduling agreement
I have one doubt like can we post the Planned delivery cost against the Scheduling Agreement just like Import Purchases with checking off the GR Based IV Indicator before doing the GR
I tried it but its giving me that no delivery costs are Planned in the Scheduling agreements it runs fine in case of the PO because PO is a time independent Agreement , Please
Let me know how to achieve the same in case of the scheduling agreements.
Appreciate if you can suggest something in this case Urgently .HI Deep
I am facing exactly the similar issue. Experts please suggest.
Deep! If you already have an answer? Please disclose the same.
Regards
Arvind
Maybe you are looking for
-
Adobe Muse keeps crashing every time I publish any website all of a sudden
Adobe Muse keeps crashing every time I publish any website all of a sudden. Not just for the website I was working on but now all my websites. It was working perfectly fine and when I hit publish it just crashes. I have multiple copies and different
-
ADD WINDOWS DOCUMENT TO AN ORDER
Hi,I am interested in adding a windows document to an order, in the same way that crmd_order transaction do. Do you know if is it possible? Thanx
-
Best practice: Computations or Source
Hi, Question about what's the best use. If you write a SQL query to get a value out of a database for a field on your page. What is the best way to do this. - By setting a computation (with the query) on that field - Or write te query in the source a
-
Discoverer item type - how to apply style
Hi. On OracleAS 10.0.04, we have links to disco portal & viewer (added an item, chose Discoverer as item type, and typed "viewer" / "plus" in the DiscoItem section). These to links does not seem to change according to style changes - always the same
-
Viewing plugin automation data
Hi Guys, I'm using a plugin minimoog as my instrument, and am recording some cutoff frequency sweeps etc. They are recording fine, but I want to go back and edit it manually. The automation data is appearing as grey bars within the midi region.. but