Retrieve the sales orders for a particular customer in selection screen

Hi
I want to retrieve the sales orders for a particular customer(entering customer number field in the selection screen and then clicking on f4 help on sales order field in the selection screen I should get only sales order numbers for that particular customer number).How can I achieve this through search helps?Are there any standard search helps that I can use.
<removed_by_moderator>
Edited by: Julius Bussche on Apr 9, 2009 12:55 PM

Hi,
try this:
at selection-screen on value-request for p_par.
select * from vbak
into itab
where kunnr = p_par.
then use the FM 'F4IF_TABLE_VALUE_REQUEST'.
with
retfield = 'VBELN'
dynprog = sy-repid
dynpnr = sy-dynnr
dynprofield = <name of parameter>
value_org = 'S'
tables = itab.
Regards,
Leo.

Similar Messages

  • Display list of sales orders for one particular customer using BAPI in WD

    Friends,
    i want to display list of sales orders for one particular customer, the materials ordered, quantity ordered, goods issue date of that particular order and contact information about that particular customer, using Webdynpro.
    Please somebody send me related info,blogs,help links , to complete this task, this is very urgent.
    Please help
    Peter

    Find the WD tutorials here...
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/web%20dynpro%20sample%20applications%20and%20tutorials.htm">Tutorials</a>

  • Report for analyse the sales realisation for a particular period

    Hi guys,
    Is there any report for analyse the sales realisation for a particular period.
    thanks
    murali

    Able to find the solutin the report S_AHR_61016532 it self.

  • The Material description on sales order for a particular item is red text

    Hi friends,
    When I key-in a sales order for a specific material, the material description on the sales order appears in red text. What could be the reason?
    Sreedhar

    Hi Sreedhar
    First of all Welcome to SDN forum
    Coming to your query , As the material description maintained in MMR  is coming in red colour in sales order , First of all check in which colour you maintained the text in MMR . Secondly check the MAKT table .
    As you are telling for a specific material , check for other materials and their material texts & colour in sales order also
    Regards
    Srinath

  • How to block order for a particular customer. pls read clearly

    hi
    some customers may be asked for cash and carry procedure.
    bcos they do very small sales they have access to only cash sale document ie CS.
    here how to block OR, RO etc to that particular customer or group of customers
    regards
    sridhar

    Hi,
    One simple way would be to give those customers a special sales area (e.g. a separate distribution channel) than for normal customers. Then you do not allow the Document Type for this sales area in the transaction "Assign Sales Areas to Sales Document Types" in IMG (Sales & Distribution -> Sales -> Sales Documents -> Sales Documents Header).
    Ensure that the customer is created to this "blocked" sales area only. Then when you try to create the sales order, system would give an error message saying customer is not defined for the sales area, and would not let you proceed.
    Hope this helps,
    Regards
    Nikhilesh

  • How to create a sales order for one-time customer

    Hi all,
    I have a requirement where in creating a sales order, I have to add the tax code for one-time customer. This is not the tax jurisdiction but it is a text field that you can see in Further attributes and it will store in VBPA3 table.
    My plan was create sales order first using SD_SALESDOCUMENT_CREATE or BAPI_SALESORDER_CREATEFROMDAT2. Then I used BDC of va02 for changing the salesdoc. But the problem is, we can't proceed because there's a message "TAX HAVE REDETERMINED"  that it doesn't included in recording a transaction.
    Another one is, instead of calling the standard bapi, I used BDC for VA01. Again, upon recording there was anothe message popped up "FREIGHT REDETERMINED". And it's not in the recording so we can't proceed.
    Would you know what field is for the tax code when I use SD_SALESDOCUMENT_CREATE or any standard bapi? Is there other way aside from calling a standard bapi or bdc?
    Points will be given..Thanks!

    Good afternoon Bella,
    We are in a project that exactly need this solution. Could yoy please explain me how you solve the issue ?
    Kind regards

  • Can't open sales order for a deleted customer number

    Dear all ,
    i have deleted a customer cos it was repeated ,now there were some sales orders where that customer is a sold-to-party
    when ever i try to open thous sales orders the systems gives an error message [ no customer record exist for sold to party ******* ]
    the sales orders that does not open because of this error are no more wanted
    would you advise about how to delete them ?
    thanks and best regards

    well,
    thanks for the fast reply but
    the customer no. is generated automatically and I can't assign the same number again .

  • How to block sales order for a particular pricing condition

    Hi Experts,
    Here I have a requirement on sales order blocking . I have searched in the forum but I didn't find any relevant thread. So please help me in the following requirement
    On a particular pricing condition create or change I need to automatically block the sales order. I don't know how exactly to block the sales order. Please make me aware on this concept. Do we have any exit or badi to block the sales order in this requirement.
    How to block the sales order manually and automatically please explain me.
    Thanks & Regards
    G.S.Naidu

    Hi,
    You can use user exit MV45AFZZ, form-routine USEREXIT_SAVE_DOCUMENT_PREPARE to set the delivery block on sales order.  Write your required logic in this routine.  You have to set the value of VBAK-LIFSK to a relevant value available in table TVLS (Field : LIFSP).
    If the value in VBAK-LIFSK is initial, then sales order is not blocked for delivery & if it is having some value (available in TVLS), then sales order is blocked for delivery.
    Regards
    Vinod

  • Promotion number in the sales order for free goods promotion.

    Hi,
    I have a business scenario in which "Sales Orders are created" for the customers in SAP IS Retail System.(This is for helpdesk ordering). In most of the occasions, free goods promotion would be running. The free goods promotions(exclusive) are maintained using promotion module in IS Retail system(condition type NA00). In this situation, the promotion number is not getting populated in the sales order automatically. Is there any specific configuration required or any BADI needs to be activated?
    Note: Free goods item is getting generated automatically in the sales order with item category TANN.
    Can any one advice pls.
    Thanks and Regards,
    Selvakumar

    Hi selva
    1)Check in Change Promotion T.code - WAK2
    in the item level   Promotion announcement category(Ann column) - set indicator as F     Promotion announcement
    2)Check sales periods dates - Sales order from to TO it should be valid date
    if not works, reply me i will give some more solutions
    regards
    Satish

  • How to update the condition price in the sales order for all the items

    Hi,
    How to update the condition price for all the itmes in the sales order to carry out the new price automatically through a stand alone program, for all the orders in the billing due list table?
    Thanks,
    Balaram

    Hi,
    There is a change in the requirement.
    Scenario:
    I have created a sales order with some 4 condition types, in that 2 condition types are of class A & B and the other two is of class C. Here I need to update the condition price of class A & B only and the remaining condition types should not get update even though there is an updated price is available.
    For the above scenario, I need to write a standalone program. Do we have any function modules to update the price of the single condition in the sales order? Please tell me how we can update the sales order at item condition level.
    Thanks.
    Balaram

  • To release the sales order credit block by Customer Group

    Hi,
    1. I want to release the sales order credit block based on the Customer Group.
    Normally we release the credit block using the t.code VKM3.
    2. When i am maintaining the credit using the FD32, under the status screen of Credit control area Tab, the field "Credit Horizon Date", when i am creating the credit limit on 17/05/08, the system will take this field by default ie 16/07/08. I have maintained as 12 months in horizon ie OVA8.
    If any one could let me know, how the system is taking this date.
    Regards
    Ravishankar M

    Hi Ravi
    Sap default horizon time is 2 month,thats why systym is taking  two months time,so if you want to change this as 12 month you can go to
    OMO1 and select S66 then change it as month you want.
    Reward if it helps you
    thanks
    Utpal

  • How to block the sales order for not creating requirement

    Dear All,
    My client want that whenever a sales order is raise, that should not go create requirement for production unless until account department check whether the prices etc are correctly put or not
    how can i do this
    thanks

    I suggest you can try to use the functionality of Status Profile.
    Create one Status Profile  with 2 line items-
    1: First line : Pricing Approval or PR and check what all you want to block if this status is assigned to the order type.
    2: Second line : Released and check what all you want to be released once the Approval is done.
    So by default the status profile - Pricing Approval will be assigned to the Sales Order during order creation. Then after your accounts department check the pricing and approves , they can change the status to Released and the order can be processed further.
    Regards
    Sai

  • Regd : Error during saving the  sales order for Variant configuration

    Hi -
    When the item( config material) is saved in the sales order , system scheduled the production order and getting an error as " Posting Rule for Assembly order for item 000010 could not be generated".
    Any solutions regarding the error.

    Hi,
    This is the process of Assembly to order with variant configuration. In material master, you can maintain gen item category 0002 (configurable material) in basic data view, sales 2 view item category grp 0002 and strategy group 82 in MRP 3 view. After creating of material master, BOM & Routing, You can create sales order in VA01 transaction.
    In this VA01, When you create sales order, system will check material availability, capacity checking and system will show variants for each items. And also when you will save the sales order, system will create production order no immdiately.
    So you can maintain the above settings compulsory.
    please let me know any clarification.
    Regards,
    Mohan

  • Purchase Order missing for some of the Sales Order for few customers

    Hi All,
    There are few sales orders for which corresponding PO is missing.
    But most of other Sales orders for the same set of customers, PO is coming.
    Could you please enlighten me how this PO is assigned to the Sales order or it is updated with the Inbound Idoc ..
    In any case what may be the reason for PO missing for these sales order...How I can explore this...?
    Thanks,
    Sanjeet

    Hi sanjeet,
       If your IDOC is ORDERS05, Check if you are getting the PO Number in : E1EDK01-BELNR
    Regards,
    Ravi

  • Get the sales order number based on customer number

    HI all,
    how can i get the sales order numbers based on the customer number?
    plz tell me the table names.
    thanks,
    Srini

    hiiiii..
    go to database table VBAK
    where you can find customer id and sales order
    use a select statement in your report program
    and key as kunnr ...
    i hope it does ...the job

Maybe you are looking for