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>

Similar Messages

  • 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.

  • 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

  • Slaes order for one time customer

    Hi All,
    While creating sales order for one time customer, i would like to make transportation zone mandotory.
    Can any one help me & suggest me where i can write code to get it done.
    Best Regards,
    Ashwini Patil

    Hi Vinod,
    Thank you very much for below suggestion.
    But this uer exit will be called before the screen where i need to make changes
    i.e. after entreing customer value (one-time customer), i will get a screen in whih i need to make transportation zone mandotory.
    Best Reagrds,
    Ashwini

  • To Get the list of sales orders for a Business partner in CRM.

    Hi all
    Is there any Function module or BAPI to get the Sales orders for a Business partner in CRM. I know there is a BAPI to get the list of sales orders for a customer in ECC, but I donu2019t know how to get the list of sales orders for a Business Partner in CRM.
    Can anybody tell me if there is an inbuilt function module or BAPI available?
    If not how can I pick the sales orders of a business partner in CRM? Between which tables should I apply a join and write SELECT statement to get list of sales orders for a business partner in CRM.

    Hi Jessica,
    Try CRM function module CRM_BUPA_READ_ORDER_OBJECTS.
    You'll get a table with the documents associated to that partner, where you can work on.
    Kind regards.

  • Searching for Sales Order for the given Customer PO Number Pattern in BAPI

    Hi,
         I have developed a BAPI which retrieves all the Sales Orders for a given Customer (Sold-To). The Following are the Input Parameters given in the Function Module (RFC).
    Customer Number (Mandatory)
    From Date (Optional)
    To Date (Optional)
    Sales Order Number(Optional)
    Customer PO Number(Optional)
    Now, when the Customer PO Number is populated, it will come as a Pattern, say 9ab* and I need to retrieve all the Sales Orders with PO Number starting with 9ab.
    When I am trying to retrieve, it is giving different set of output based on the Case specified in the Customer PO Number Pattern. Lets say, if I give 9ab, I get 200 Records but if I give 9AB, I get only 5 to 6 Records.
    As I have understood from the Standard Transaction VA03, it has a Search Help VMVAA which retrieves all the Sales Orders for the given PO Number pattern irrespective of the Case, that is Lower Case, Upper Case or Mix of Upper and Lower Case.
    I can see the Code in the Search Help Exit but couldn't find useful piece of code which I can implement in my BAPI to simulate the same.
    Can somebody help me on this?
    Thanks,
    Venkat.

    Hi Sudhir,
             I think you did not understand what my problem is. What I mean to say is, for Customer X, the PO Number could be 9abc and for Customer Y, the PO Number Could be 9ABC.
           So, according to your logic, if I translate it to Upper Case, it will give the Sales Order details of Customer Y to Customer X.
          And more over, SAP stores the PO Number as it is entered in the Sales Order Screen (VA01).
        What if the Customer PO Number for Customer X is 9aBcDeFgH? and the PO Number for Customer Y is 9AbCdEf?
       Hope you've understood my question.
    Thanks,
    Venkat.

  • Created sales order for one division, for which the material belongs to ano

    Dear All,
    A sales order has been created for a division 10, for which the material belongs to some other division 20 in material master.
    When we are  create a sales order for 10 division ( the one which we give at organzational data) at the item level the material which we select should also belong to the same division, if  the material division  is different as 20 the system will throw an error at sales order  saying "ship-to-party so and so is not created for the sales area so and so.."
    But here it's allowing me to create a sales order for division 10 with 20 Division material without any error. But this should not happen.
    Checked in the document type VOV8 where at the Check division field 2 has been there.
    Please suggest

    Hello,
    Let me explain the concept of Header division and item division...the header division is the one which gets copied from the sales area division that gets determined in the sales doc creation from SP.
    The item division is the division that gets copied from the material master in the line item material.
    In the Sales document type , there is a check box "Item Division". If this is marked, then system takes the division from the Mat master. if this is not marked system the system doesnt find from MMR instead it picks up from header division.
    The check division controls, how the system should behave in case the header and item division differ..
    Rgds,
    Rags.

  • 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

  • Changing proposed delivery date in sales order for one specific sales org

    Hi All,
    I want to change proposed delivery date in sales order automatically for one specific sales org only without changing lead time in VOV8.
    For that can I use MV45AFZZ. But it is asking access key to make changes. Is there any other user exit for the same. And how does exactly change it.
    Thanks in advanced.
    Points will be awarded.
    Regards,

    EXIT_SAPFV45E_001 has nothing to do with this - it is meant to update the purchase order from a sales order. It might not even be triggered if the sales order has no link to a purchase order.
    USEREXIT_SAVE_DOCUMENT is not really good for this either, because the delivery date has to be changed before that. If memory serves, it also influences the schedule lines and probably the ATP check and such. I would strongly advise against it. One of the other routines in MV45AFZZ should do just fine, USEREXIT_MOVE_FIELD_TO_VBAK for example.

  • Displaying stock and sales orders for aggregated product in Product View

    Hello,
    We have successfully created an SNP aggregated planning scenario which uses CTM to plan purchase requisitions and planned orders at the aggregated product level.  The disaggregation to the sub-product level is working as well.
    We have one issue.
    We would like to be able to use the Product View (SAPAPO/RRP3) to view the sales order and stock information for both the aggregated products and the sub-products. 
    Currently, the sub-products (which are the materials in the stock and sales orders functions in ECC) show the disaggregated planned orders and purchase Reqs, and the sales order and stock information in the Product View.
    The aggregated-products (which aren't included in the ECC sales order and stock functions), only show the aggregated planned orders and purchase Reqs. 
    Is there a Product View configuration which will show the aggregated stock and sales orders in the aggregated product view?
    thanks in advance for any comments and/or assistance.
    Sarah

    Hi Sarah,
    The Product view configuration is available under customisation menu under the below path.
    spro > sap guide > APO > supply planning > PPDS > settings for order view/product view
    Under this, you can configure your customised product view structure.
    Regards,
    R. Senthil mareeswaran.

  • 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

  • Report - List of sales orders for a specific region in Ship-to Party

    Hello,
    I have a requirement to find all sales orders that were shipped to a specific US state within a specified date range.  For example, it would be a report to find all sales orders from 2009-2010 where the region of the ship-to party is CA.  The issue is that there is a generic "SHIPTO" partner set up where Customer Service manually enters the address and I cannot pull this information from customer master records.  Is there a standard report that I can find this information?  I cannot find in VA05, also tried looking on the delivery side in VL06o but I cannot find in there.

    After doing additional digging on this, I developed a query in SQ01 using the following table join:
    LIKP  -->  VBPA  -->  ADRC
       |____>  VBFA  -->  VBRK
    The address code provided in table VBPA can be accessed via table ADRC.  Therefore, when doing the link in SQ01, link together VBPA-ADRNR to ADRC-ADDRNUMBER.  When doing this it brings in the address information, then you can further develop the query to filter by region code.
    For my report, I used the following fields:
    Delivery - LIKP-VBELN
    Delivery Date - LIKP-LFDAT
    Preceding Sales document - VBFA-VBELV
    Preceding Item # - VBFA-POSNV (at my company every delivery document item starts with 10, later filter in the report to only show 10 in this field)
    Follow-on document - VBFA-VBELN (I'm using the billing document as the follow-on to pull the net value of the invoice)
    Follow-on document category - VBFA-VBTYP_N (set the document category to only look for M - Invoice; otherwise you'll pull in PGI document and WM documents if applicable)
    Net Value - VBRK-NETWR
    Ship-To Party - LIKP-KUNNR
    Partner Function - VBPA-PARVW
    Name 1 - ADRC-NAME1
    Name 2 - ADRC-NAME2
    Street - ADRC-STREET
    City - ADRC-CITY1
    Region - ADRC-REGION
    Postal Code - ADRC-POST-CODE1

  • Wanted to restrict sales order for a particular region

    Hi all
    I want to restricted two sales order on the region parameter,while using same sales area.
    Ex:
    sales order A should be used in delhi region,where as sales order B should be used for outside delhi,though the sale area is same for both the order type.
    Hope my problemis clear to all.
    Thanks
    siddharth

    Dear Siddharth
    You can try with any of the following user eixts
    -  User exits in the program MV45AFZZ - USEREXIT_READ_DOCUMENT
    -  User exits in the program MV45AFZZ - USEREXIT_SAVE_DOCUMENT_PREPARE
    -  User-Exits in program MV45AFZB - USEREXIT_CHECK_VBAK
    thanks
    G. Lakshmipathi

  • 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

  • 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 .

Maybe you are looking for

  • What OS will my MacBook 2,1 support?

    Apparently I need to repair my start up disk but I don't have a OS bootable disk! What will my MacBook support that I can get from the apple store?

  • Is there a way of putting a JLabel on top of a JComponent

    In the method setTitleText() I'm wondering if I'm missing anything because the label does not show up. Thanks so much for the help. import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.awt.Graphics2D; import javax.swing.

  • ECC cryptography in 1.5_11

    I am trying to use the ECC algorithm (http://java.sun.com/j2se/1.5.0/docs/guide/security/jce/JCERefGuide.html#ECC-Support ) but when i execute the following code try Cipher cipher= Cipher.getInstance("ECIES"); catch (NoSuchPaddingException ex) ex.pri

  • Tutorials for Elements 8

    Someone told me that the best tutorials for a reasonable price are at www.lynda.com. Do you agree? I can't afford to go to an expensive class. Thanks!

  • Imac Randomly goes into sleep mode...Hard to start

    My IMAC G5 will randomly go into sleep mode while I am in the middle of using it. Typically the fan noise increases and than it auto goes into a sleep mode. It also has issues starting. I have to press and hold the power button for it to kick on whil