Need a price

Ok, this is what I have set up and you get the idea on what I
am trying to
accomplish.
I have a table of my database called 'members'
Amongst other items I have columns called:
state: varchar(2)
service: TinyInt
keywords: LongText
When people sign up they choose their service from a list,
choose their
state from a list and enter keywords from a textbox which is
all inserted
into the table. They can enter it any way they want.
When people go to search, they have to choose a state and a
service
(required).
The keywords is optional and is a textbox. They may just put
random words in there or separate them with comma or such.
I need a SQL code written that will take the state and the
service which are
always chosen and add the option of keywords.
I would like this put into a CFC to use on the site.
How much would anyone / everyone charge me to do this for me?
I am at my
wits end and don't have the time to keep this request up.
I will probably learn better from seeing it completed then to
have people
send me to places.
If you need any other information, please ask.
Listed below is that I have currently. Everything works fine
except for the
keywords section. It works if one word is entered, but bombs
if you enter
more than one.
<cfcomponent>
<cffunction name="ServiceSearch" access="remote"
returntype="query">
<cfargument name="service" type="string"
required="true">
<cfargument name="state" type="string"
required="true">
<cfargument name="keywords" type="string"
required="false">
<cfquery name="ServiceResults"
datasource="#Request.MainDSN#">
Select company, name, phone, service, city, state, username
FROM members
WHERE service = #arguments.service# AND state =
'#arguments.state#'
<cfif len(trim(arguments.keywords)) GT 0>
AND keywords LIKE '%#Trim(arguments.keywords)#%'
</cfif>
ORDER BY company ASC
</cfquery>
<cfreturn ServiceResults>
</cffunction>
</cfcomponent>
Please let me know.
Wally Kolcz
Developer / Support
Wally Kolcz
Developer / Support

First, you need to determine what delimiter you expect users
to use. Space, comma, semicolon..?
Second, put those keywords into a list. It makes easier for
you to handle the values/keywords.
Third, for each value/keyword you loop to create SQL
condition e.g. OR keywords LIKE '%#Trim(keyword_from_list)#%'
I hope that helps,
Laksma

Similar Messages

  • Function module needed - Convert price to one unit to another

    Hi All,
    I need FM to covert price to one unit to another.
    Any suggestion welcome.
    Regards,

    sorry the earlier one will convert the quantity this one will covert price
          CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
                EXPORTING
                  date             = sy-datum
                  foreign_amount   = w_material-stprs
                  foreign_currency = t001-waers
                  local_currency   = p_waers
                  type_of_rate     = 'M'
                IMPORTING
                  local_amount     = w_material-stprs
                EXCEPTIONS
                  no_rate_found    = 1
                  overflow         = 2
                  no_factors_found = 3
                  no_spread_found  = 4
                  OTHERS           = 5.

  • Change Log needed at price list and special prices

    Tracking changes made to the price list and special prices by BP is a valuable control function missing that needs to be included in future.

    I was told by my Implementation Partner that it is possible to import and update price list by using the Import function that is available in SBO.  To do this:
    1. From your sales quotation with the agreed prices - export to excel.
    2. Change the format to list: Product code, Price list to update, New price, Currency
    3. Save the file as tab delimited text
    4. Import into SBO using the Administration, Data Import/Export, Data Import, Import from Excel option.
    5. Choose Item type to import
    6. In the B line, choose Price List Code, the list updates to show only the fields relevant to price list updates
    7. Press OK and follow rest of instructions to complete the import.
    I found the above to be simple, repeatable and reliable enough to solve my initial question.

  • Purchasing and need last price of an item

    Hi ,
    i need an help to find the last price or previous rate of an item for which we are going to create a PO
    how to get this information from table (ie we are going to create a report to get this previous rate of an item)
    thanks in advance,
    userg

    Hi,
    PO header & line Archive data are stored in PO_HEADERS_ARCHIVE_ALL and PO_LINES_ARCHIVE_ALL tables respectively.
    Pl.make necessary changes in following SQL
    SELECT POA.LINE_NUM , POL.ITEM_ID , POA.UNIT_PRICE, POL.BASE_UNIT_PRICE
    FROM PO_LINES_ALL POL, PO_HEADERS_ALL POH, PO_LINES_ARCHIVE_ALL POA
    WHERE POA.PO_LINE_ID = POL.PO_LINE_ID
    AND POA.PO_HEADER_ID = POH.PO_HEADER_ID
    HTH
    Sanjay

  • Need net price itme in sapscript form invoice

    Hello expers,
    i need the net price item for the invoice form ?!
    I search the table, but i can´t find it.
    In the table KOMP, there is no net value.
    Can anybody help me ?
    /Simon

    Hi,
    You may be using FM   CALL FUNCTION 'LB_BIL_INV_OUTP_READ_PRTDATA' for getting the Billing Data.
    this FM imports ES_BIL_INVOICE(Billing Item: Price Data information).
    (table type LB_T_BIL_IT_PRICE, structure LBBIL_IT_PRICE)
    in the structure LBBIL_IT_PRICE we have NETWR(Net Value in Document Currency).
    once you get this value
    make a select on VBRK and get KNUMV for the billing number then make a select on KONV, WHERE KNUMV = KNUMV(you got this value from the above select). here you can play around with the price values you want.
    Thanks,
    Sree.

  • Sales Order Approval needed when price is changed

    Gurus,
    Here is the Scenario:
    User creates a sales order. If he changes the price of an item or adds a discount, it is required that the Sales Order needs approval from the Manager. Please let me know how to proceed with this.
    P.S.I found a similar thread but it was not answered.
    Referal Thread
    Approval at the time of price difference

    Hi Manoj,
    This can be done by using status profile at the sales order header and with function module I_Change_Status, you can change the user status in background and the order would need approval from the manager before allowing to create any subsequent documents.
    So create user status in your status profile
    SPRO - SD - SALES - DEFINE AND ASSIGN STATUS PROFILE - SALES DOCUMENT HEADER
    10 - Order Created
    20 - Order Confirmed
    30 - Order changes pending approval
    40 - Order Rejected
    50 - Order changes approved
    Now your abapper can write a logic in program MV45AFZZ wherein, whenever something in the order is changed after the order has been confirmed (status 20), then the status would automatically be set to 30. ((This can be done changes made to pricing if order is still at status 10. You have to decide the best possible scenario, i am just giving you an overview))
    Now your sales manager can come and either make it 40 if he wants to reject it, or make it 50, if he is okay with the new rates or discounts if any.
    You can find what changes have been made in the order by going to Environment - Changes.
    This will give the manager a clear picture of which fields in the order have changed.
    I have used this concept and it works perfectly fine.
    Try and let me know.
    Reward points for contribution if helpful.
    Regards
    Ravi

  • Need net price & gross price for matnr

    Hi all,
    i need to get the sales Price Net & Sales Price Gross which are dispalyed in MM43....
    Can any one let me knw in which table these values are maintianed ...i m creating a report....
    Thnx
    Rohit

    Look at MBEW table but they are not sales price. if you are asking about the price which comes into sales order, you need to calculate using pricing function module.

  • Need to Price control in Sale order(debit Order)

    HI Friends
    i Having the requirement, i maintain the material BM_BOMHD01 Price is Rs 100 and second material BM_BOMIT01 is Rs .01 , so total net value is 100.01.
    i dont want to add the price of BOM_IT01 to total net value ...
    How i do this requirement.please suggest me.
    With Regards
    dinesh

    Hi Dinesh,
    Material BM_BOMIT01 for this material define new item ctgry grp, base on item ctgry grp you can determine new item ctgry Ex (ZTAN).
    Ex: OR _ZNORM_Usage Blank_ Higher level Blank_ZTAN
    in this item ctgry mention statistical value should be 'X'(it will not add line item value to net value).
    Regards,
    mahaboob shaik

  • Need a Price List Tutorial

    I feel somewhat stupid asking this question, but I just can't seem to figure this out.  I have the default 10 price lists synching from B1 to WebTools, though I did rename 5 of them that I am using.  Below are my mappings (B1 on left, WebTools on Right)
    Price List 06     / 06
    Price List 07     / 07
    Price List 08     / 08
    Price List 09     / 09
    Price List 10     / 10
    Competitor Price     / CompetitorPrice
    List Price     / ListPrice
    Sales Price     / SalesPrice
    Wholesale Cost Without Shipping     / WholesaleCostWithoutShipping
    Wholesale Cost With Shipping     / WholesaleCostWithShipping
    My sync works just fine and all the prices come over to WebTools.  In my SynchManager settings, I have selected "List Price" as the "Default Retail PriceList", and "Sales Price" as the "Item Base Pricelist".
    What I don't understand is why my prices don't show up on my product pages, and I obviously don't understand how I can determine what price list that any given person is looking at.  I know that if I delete all my price lists, I can just use the Original and Base Price fields in the part setup, but I want to use Price Lists.
    Again, sorry for asking such an elementary question here, but I can't figure it out.  Is there documentation somewhere that I should be able to look this up under?  The only help resource I have is these forums, and I couldn't find anything searching through here.
    Thanks,
    Derek

    Hi Derek,
    Sounds like you have this setup correctly. So the items you are browsing on the web have prices on the "List Price" pricelist in B1 I presume?
    Unless the bp login you are using has a special pricelist assigned to it, it should default to the Base Price on the item if the Default Pricelist has no value and there is no special price.
    It's actually that straightforward. Now, you can do a lot of other things with these pricelists in Wt, but as of right now the synch will overwrite those changes if the item on a pricelist is updated.
    Does this answer your questions?

  • Help needed with price sticker printing using Jetform

    Hi,
    I am trying to do a layout for printing price stickers. Here is an example of what the output should look like :
    1st Sticker 2nd Sticker
    Cust Name Order date #
    Address Print Time #
    Cust # Cust Ord #
    3rd sticker 4th sticker
    Item # Item #
    Price# Price#
    and so on the stickers will keep printing, two stickers side by side in portrait style. After all the items and related fields are printed then the last page looks like :
    Cust Name Order date #
    Address Print Time # Zone #
    Cust # Cust Ord # Total Stickers #
    To achieve the above format structure, I defined 3 subforms. The 1st form is the fields listed on Sticker1 and sticker 2. The 2nd form has fields listed on sticker3 and sticker 4.(Any number of stickers should be printed by the second subform). The 3rd subform is the ending structure with the customer name and the total stickers.
    I added a few lines of code in the preamble :
    ^inline on
    ^define group:PRDITM1!FldNotAvail \fieldNP\groupITM.
    ^define group:PRDITM1!FldUsed \fieldNP\groupITM.
    ^define group:ITM \reserve"1.50",in\subform2\fieldPRDITM1.
    ^define group:ITM!OnBOF \page1\fieldNP.
    ^define group:DELADDA!FldNotAvail \fieldNP\groupADDA.
    ^define group:DELADDA \positionabsolut,"0.5","9.0",in\subform3\fieldDELADDA.
    I am very new to Jetforms and not sure how the above mentioned structure can be achieved. Please help.

    Hi
    I guess you're on the right track but it's hard to tell exectly how to pan it out without knowing your data stream. If you send me a sample DAT file I can try to work it out for you.
    [email protected]

  • Need different price for sales order and billing document.

    Hi,
         I'm having a scenario.I have created a sales order for a material,the order value is $100.I have done up to Delivery.Billing part is only remaining in the flow.Unexpectedly the price of the material increases $20 more.Customer is ok with the new price $120.So how the new price comes in billing document.For this what are all the steps i want to configure?
    Regards
    Raj

    I want to know from you is client entering price manual or condition records maintained, if it is manual.you can go billing in the item pricing condition click on update field and select B i.e carry out new pricing.& enter the current price manually.

  • Item Price in report for every transaction

    Hi Guys.i am using the below queries for Stock report and i am getting the desired output  except the price calculation.
    In that query it is calculated like max(price) or avg(price) but instead of that i need the item price for that particular transaction  and also i need the prices for opening stock , goods issue, goods receipt and closing stock seperately in each column .
    pls provide me the updated query.
    Declare @FromDate Datetime
    Declare @ToDate Datetime
    Declare @Group nvarchar(10)
    Declare @Whse nvarchar(10)
    Set @FromDate = (Select min(S0.Docdate) from dbo.OINM S0 where S0.Docdate >='[%0]')
    Set @ToDate = (Select max(S1.Docdate) from dbo.OINM s1 where S1.Docdate <='[%1]')
    Set @Group = (Select Max(s2.ItmsGrpCod) from dbo.OITB S2 Where S2.ItmsGrpNam = 'Group B')
    Set @Whse = (Select Max(s3.Warehouse) from dbo.OINM S3 Where S3.Warehouse = '03'  )
    Select
    @Whse as 'Warehouse',     
    a.Itemcode,
    max(a.Dscription) as 'Description',MAX(a.Price) as 'Price',
    sum(a.[Opening Balance]) as [Opening Balance],
    sum(a.[IN]) as [Receipt],
    sum(a.OUT) as [Issue],
    ((sum(a.[Opening Balance]) + sum(a.[IN])) - Sum(a.OUT)) as Closing,
    ( MAX(a.Price) *  ((sum(a.[Opening Balance]) + sum(a.[IN])) - Sum(a.OUT)) ) as ClosingValue
    from(
    Select
    N1.Warehouse,
    N1.Itemcode,
    N1.Dscription,N1.Price,
    (sum(N1.inqty)-sum(n1.outqty)) as [Opening Balance],
    0 as [IN],
    0 as OUT
    From dbo.OINM N1
    Where
    N1.DocDate < @FromDate and N1.Warehouse = @Whse
    Group By
    N1.Warehouse,N1.ItemCode,N1.Dscription,N1.Price
    Union All
    select
    N1.Warehouse,
    N1.Itemcode,
    N1.Dscription,N1.price,
    0 as [Opening Balance],
    sum(N1.inqty) as [IN],
    0 as OUT
    From dbo.OINM N1
    Where
    N1.DocDate >= @FromDate and N1.DocDate <= @ToDate and
    N1.Inqty >0
    and N1.Warehouse = @Whse
    Group By
    N1.Warehouse,N1.ItemCode,N1.Dscription,N1.price
    Union All
    select
    N1.Warehouse,
    N1.Itemcode,
    N1.Dscription,N1.price,
    0 as [Opening Balance],
    0 as [IN],
    sum(N1.outqty) as OUT
    From dbo.OINM N1
    Where
    N1.DocDate >= @FromDate and N1.DocDate <=@ToDate and
    N1.OutQty > 0
    and N1.Warehouse = @Whse
    Group By
    N1.Warehouse,N1.ItemCode,N1.Dscription,N1.price) a, dbo.OITM I1
    where
    a.ItemCode=I1.ItemCode and
    I1.ItmsGrpCod = @Group
    Group By
    a.Itemcode
    Having sum(a.[Opening Balance]) + sum(a.[IN]) + sum(a.OUT) > 0
    Order By a.Itemcode
    Regards,
    Vamsi

    Hi Gordon,
    We are maintaining different Price Lists  so is it possible to give the input in the query to select the report based on which price list???
    Or else  is it better to create an udf in item master data for Standard price of the item and display it in report??
    And i have another doutb that while i run the inventory audit report  and the query it is showing different values .. why is it so??
    pls give me the solution for the same,
    thanks in advance..

  • PO price not getting printed

    Hi ,
    When I create a PO without the Inv Receipt check box in the Item details (Invoice tab) the net price is taken as 0. And consequently I do not see the price appearing in the print preview of PO.
    My question is : I do not want to do a Invoice. But I need a price in the PO and it should get printed. Do i need to change the pricing condition for this? Or is there any config change that I can make so that the Inv receipt check box and net price are not affected at the same time.

    Hi
    In such cases of free goods where you need to print the material price, the material price needs to be picked up from the material master.
    In the Print program you need to do this modifictaion,
    If the PO line item if Flagged as free godds then you need to pick up the price form MBEW table.
    Please witre a note that this item is a free goods & carries no valution, price mentioned here is for valuation only.
    In case of Stock transfer between storag locations the same logic is used.
    If you donot complete the invoice , then the anmount will be pending in the GR/IR Clearing account, which is settled by an invoice
    Thanks & Regards
    Kishore

  • What I need to create and publish a magazine for iOS and Android?

    Hi!
    I would like to know what I need to design, create and publish a magazine for iOS and Android. I would also like to know what products I need, what price would you pay and what process I have to follow to carry out this work.
    Thanks in advance!

    It is NOT possible to create a Single Edition app for Android. Single Edition apps work only on the iPad.
    You can create Single Edition apps using any account—CC, Pro, or Enterprise—and if you cancel your DPS subscription, these Single Edition (or single-folio) apps are still available in the App Store as long as you maintain your iOS account with Apple.
    For multi-folio apps, the app container is downloaded from an app store, but the folios are downloaded from the Adobe Distribution Service. If you cancel your DPS subscription, the Adobe Distribution Service basically shuts down for that app. New users can still download your apps from an app store, but the library will be empty. Existing users can still view the folios they've downloaded, but they can't get any updates or new folios.

  • Get Item price based on Price List

    Hi all,
    anyone has some sample of how to get the price for an item based on a specified price list, selected by the user, following the SAP's rules for assigning item price?
    I've used the GetItemPrice method, but it doesn't need a price list reference and i think it gives back the basic price of the item.
    I'm able to get the price list and the item code. How can i get the correspondig price (unit price) for that item?
    Thanks in advance.
    Nick

    Thanks Rasmus,
    i've done. I get the PriceList currently selected by the combo box and update the price list used by the BP, and after that i use the getitemprice.
    So it should work now, i get the correct prices related to the pricelist selected and i think that using the getitemprice the price that i obtain follows the sap B1 logic in assigning prices.
    After that i'm considering to set back the pricelist on the BP to the one that is originally stored in the BP.
    Thanks for your help

Maybe you are looking for