Skip to Content
author's profile photo Former Member
Former Member

Formatted Search based on multiple fields

Good day Experts,

I need a formatted search which will pull through the average price (AVGPrice on OWHS) of an item as the unit price. This only needs to pull through if the BP belongs to a specific property otherwise, it needs to pull through the specific price linked to the BP.

Please advise what the correct syntax would be?

Thanks in advance,

Kiran

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 08, 2013 at 08:21 PM

    Hi Kiran,

    Have you considered Special Prices for Business Partners?

    Regards,

    JP

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 08, 2013 at 09:11 PM

    Kiran,

    Please check the "Blanket Agreements" in..

    http://help.sap.com/saphelp_sbo900/helpdata/EN/99/f34ef644104dbcb75527fbe2780ede/content.htm?frameset=/en/40/70cd76b9ad4839b66aca0e450780d3/frameset.htm

    **Depending on the agreement and the discount will be given to specific BP

    Regards,

    Marcelo Silva Santos

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 09, 2013 at 01:38 AM

    Hi,

    There is no AvgPrice in OWHS table. Please provide exact table to retrieve the item cost.

    Thanks & Regards,

    Nagarajan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 09, 2013 at 06:00 PM

    Hi,

    Try below Query. I am using purchase order for Example.

    Select avgprice from OITW where Itemcode=$[$por1.itemcode] and whscode=$[$por1.whscode]

    Thanks,

    Kalaiyarasan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 10, 2013 at 12:44 PM

    Hi Kiran Iserbelas,

    Try this

    SELECT T1.[AvgPrice] FROM OITM T0 INNER JOIN OITW T1 ON T0.ItemCode = T1.ItemCode WHERE T0.ItemCode=convert(character (40),(select $[$38.1])) and T1.[WhsCode] =convert(character (40),(select $[$38.24])) and (select ocrd.QryGroup1 from ocrd where cardcode =convert(character (40),(select $[ordr.cardcode]))) ='Y'

    change BP Property according to your requirement

    Above Query will automatically reflect Avg Price in Sales Order. this will solved your 1st Case, For second part you have to elaborate process through which specific price is linked to the BP.

    regards,

    Raviraj

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.