Block customer sales order for other sales persons

Hi all
Could some one tell me how is it possible to block the sales documents created by one sales person from not being accessed by other sales person.
In my case, we r having sales person dedicated to a customer nad when ever he wants to access a document, he should not be able to go into others documents not even in the display mode.
Requirement quite urgent. points assured for helpful answer.
Sailendra

Hi,
There is no exit name for field exit.Go to se38 run program RSMODPRF.
Here you will have to create the field exit for the required field.
Consult your ABAPer,he will do the rest
Few more info for you:)
Short text
Field Exits for Data Elements
Description
Maintenance transaction for creating and activating field exits
As part of the extension concept, SAP allows you to install a field exit for each screen field. Similar to the conversion exit, the system branches at the field exit at DCI (DATA COMMUNICATIONS INPUT) to a function module, if the field is an input field and a function code was triggered. The function module must adhere to the following naming convention:
Prefix: FIELD_EXIT_
Infix:  <Data element name>
Suffix: _0 to _9 (optional), _A to _Z
The interface is automatically generated during the creation of the function module, and has 2 parameters:
Import parameter:  INPUT
Export parameter:  OUTPUT
After a function code has been triggered the contents of the field are made available to the FB via the "INPUT" import parameter. You can edit this and, when changed, make it available to the ABAP/4 processor in "OUTPUT". The input field contents are usually passed on: you can simply write OUTPUT = INPUT.
If, e.g., you have activated the field exit for the data element 'PROGRAM', then the fields of all the screens, which refer to the data element 'PROGRAM', branch to the function module FIELD_EXIT_PROGRAM. This includes the field 'Program' of the initial screen SAPMS38M0100 in transaction SE38, for example.
If you do not want the function module to be accessed from all screens, assign particular screens to the data element PROGRAM. By allocating an exit number, it is also possible to branch to other function modules with the corresponding suffix _0 ... _Z.
Example: You have assigned screen SAPMS38M0100 and exit number 5 to data element 'PROGRAM'. The corresponding field on SAPMS38M0100 branches to FIELD_EXIT_PROGRAMM_5.
As soon as you activate an exit, the corresponding screens are invalidated.
Note: Field exits are only taken into account during screen generation if the parameter  abap/fieldexit = 'YES' is set in the system profile.
Requirements
Set the profile parameter  abap/fieldexit = 'YES' before system start.
Limitations
The following ABAP statements are not allowed in the function modules of field exits:
     BREAK-POINT,
     CALL SCREEN, CALL DIALOG, CALL TRANSACTION, SUBMIT,
     COMMIT WORK, ROLLBACK WORK,
     COMMUNICATION RECEIVE,
     EXIT FROM STEP-LOOP,
     MESSAGE I, MESSAGE W.
Note:
Field exits cannot be edited with the debugger.
You should not use any external Performs in field exits. The ABAP processor shares the table work areas of externally called programs with those of the first caller. This could lead to errors at field exits that can hardly be analyzed, as field exits are sometimes slipped into the flow of the program at unforeseen events.
Questions and answers on field exits
1. A field exit was created with the CMOD and activated, but it does not get executed when the screen is called.
Since the field exit is not executed until DCI, some action must occur in the screen (e.g. press Return, saving....).
Set the abap/fieldexit profile parameter to YES and start the system again.
After the FIELD_EXIT... function module has been activated and the field exit has been activated, the transaction in whose screen the field exit is to be executed must be terminated. The screen is not generated until it is called.
Do not work on different application servers, otherwise there may be a delay before the field exit becomes active.
The profile parameter must be set either on all application servers or on none.
If the field exit is to be active in certain screens only, then you should check whether you have selected the correct program and the correct screen number (Careful with SUBSCREENS Do not rely on the F1 information for the field!
2. How does setting abap/fieldexit affect the performance?
If a screen is generated and the profile parameter is set, then the system checks in 2 tables (TDDIR, TDDIRS) to see whether a field exit has to be generated for the field. In practice the screen load after a Put is not generated until the screen is called. The user will not experience a noticeable delay, since screen generation is extremely fast.
3. Can the contents of other screen fields be read in a field exit?
In principle all fields can be copied to global variables in the TOP or the function group. However, since the order in which the field exits are called is not guaranteed, this possibility should not be used.
4. How does the field exit work in step-loop fields?
After data input to DCI the field exit will be called as many times as fields are visible on the step-loop. The SY-STEPL system variable is incremented each time. If a new value is assigned to be field, then it will be visible in the module between LOOP. ENDLOOP. This module will also be called as many times as there are visible step-loop lines.
5. Can field exits be debugged?
No. Field exits have to be tested in isolation in the development environment. To analyze problems that occur only in the screen environment, the relevant variables can be written to the file system using TRANSFER... and can be analyzed there.
6. What should one do if the field contents are not getting transported to ABAP/4?
Check whether you have assigned a value to the OUTPUT field.
7. When does the field exit get called in the case that there is a conversion exit attached to the data element?
The field exit will be called after the conversion exit. This means that the INPUT field contains the data in the same form as that in which the ABAP/4 program also gets them.
Reward points if useful
Regards,
Amrish Purohit

Similar Messages

  • User exit or badi to restrict PROO in Sales Order for certain sales organisation

    Hi SAP SD experts,
    I would like to know the User exit or badi to restrict PROO in Sales Order for certain sales organization. This can be done by making condition type as D but will affect all sales org and we to restrict for a certain sales org only.
    thanks,
    SG 

    Kindly  explained  how  you have  solved  others  may benefit..
    regards
    Arunkumar

  • Abnormal sales order for FOC sales

    Hi Expert,
    I am encountering a weird situation as listed below.
    SO created with -ve figure which is the -ve figure is reflected from my ZREB consition typre. Logically should be zero value regardless of +ve or -ve condition type.
    however the +ve value(ZDEF- deferred revenue) it does not show on net value.
    1) We have customize document type ZFOC
    Sales Document Type   ZFOC  Free of Cost
    SD document categ.    C                             Sales document block
    Indicator
    No.range int.assgt.  01                            Item no.increment    10
    No. range ext. assg. 02                            Sub-item increment   10
    Reference mandatory                                Material entry type
    Check division
    Probability          100
    Check credit limit                                 Check purch.order no
    Credit group
    Output application   V1                            Commitment  date
    Screen sequence grp. AU    Sales Order             Display Range        UALL
    Incompl.proced.      11    Standard Order          FCode for overv.scr. UER1
    Transaction group    0     Sales order             Quotation messages
    Doc. pric. procedure C                             Outline agrmt mess.
    Status profile       ZSD_REL                       Message: Mast.contr.
    Alt.sales doc. type1                               ProdAttr.messages    A
    Alt.sales doc. type2
    Variant
    Corr.delivery type                                 Delivery block
    Usage
    MRP for DlvSchType
    Delivery type        LF    Outbound Delivery       Immediate delivery
    Delivery block
    Shipping conditions  01    standard
    ShipCostInfoProfile
    Dlv-rel.billing type F2    Invoice                 CndType line items   EK02
    Order-rel.bill.type  F2    Invoice                 Billing plan type
    Intercomp.bill.type  IV    Intercompany Billing    Paymt guarant. proc. 01
    Billing block                                      Paymt card plan type 03
                                                       Checking group       01
    Lead time in days
    Date type
    Prop.f.pricing date
    Prop.valid-from date
    PricProcCondHeadr                                  Contract data allwd.
    PricProcCondItem                                   FollUpActivityType
    Contract profile                                   Subseq.order type
    Billing request      DR                            Check partner auth.
    Group Ref. Procedure
    Business transaction
    2) customize condition type with ZDEF(deferred revenue), ZREB(rebate)
    3) define consition type ZDEF
    Condit. type  ZDEF Deferred Revnue       Access seq.   PR02 Price with Release St
    Cond. class   B Prices                                 Plus/minus      positive a
    Calculat.type C Quantity
    Cond.category
    Rounding rule   Commercial
    StrucCond.
                                            GrpCond.routine
    Manual entries      D Not possible to process manually
    valid from      Today's date             PricingProc
    Valid to        31.12.9999               delete fr. DB
    RefConType
    RefApplicatio
    Scale basis   C Quantity scale           Scale formula
    Check value   A Descending               Unit of meas.
    Scale type      can be maintained in con
                                             Exclusion
                                             Pricing date    Standard (KOMK-PRSDT; ta
                                             Rel.Acc.Assig   Relevant for account ***
    TextDetPrc                               Text ID       0001 Internal comment
    Condit. type  ZREB Rebate                Access seq.   K005 Customer/Material Dis
    Cond. class   A Discount or surcharge                  Plus/minus    X Negative
    Calculat.type C Quantity
    Cond.category
    Rounding rule   Commercial
    StrucCond.
                                            GrpCond.routine
    Manual entries      D Not possible to process manually
    valid from      Today's date             PricingProc
    Valid to        31.12.9999               delete fr. DB
    RefConType
    RefApplicatio
    Scale basis   C Quantity scale           Scale formula
    Check value   A Descending               Unit of meas.
    Scale type      can be maintained in con
                                             Exclusion
                                             Pricing date    Standard (KOMK-PRSDT; ta
                                             Rel.Acc.Assig   Relevant for account ***
    TextDetPrc                               Text ID       0001 Internal comment
    item category is
    ZTAN - FOC item category

    Hi,
    What u can do is.
    1.check what pricing procedure assigned to ur order .
    header->sales
    2.check access sequence of condition types that u can see in ur condition tab page in order.[vk12]
    3.In vov7 set billing relevance as A-not relavent for billing,pricing as B -free of charge.
    Hope it works.
    Regards,
    Sharad

  • Copy purchase order number and date from one sales order to other sales ord

    Hi,
    I am creating sales order in va01. here i am entering purchase order number (p100) and date. Sales order number ex: 42000
    I am creating another sales order with reference to 42000. when creating sales order with reference to 42000, purchase order number (p100) and date has to be copied automatically from that order.
    Can anyone please give me a solution?
    Thanks in advance
    Babu

    Dear Babu,
    Currently, PO number is being mentioned in copy routine 101 but this  
    field VBKD-BSTKD is being cleared out.                                
    If we check this routine code:                                                                               
    FORM DATEN_KOPIEREN_101.                                              
    Data which is not copied                                            
    Pricing date for consignment issue by external service agent from   
    the scheduling agreement                                            
      IF CVBAK-VBTYP CA VBTYP_LP_EDL.                                     
        CLEAR VBKD-PRSDT.                                                 
      ENDIF.                                                              
    PO data should not be copied                                        
      CLEAR: VBKD-BSTKD,                    <<<<<                         
             VBKD-BSTDK,                                                  
    In order to achieve your requirement, you need to consider creating you
    own copying routines for VBKD fields copying standard copying routines
    (for example copying routine 101) according your business requirements
    and change them via transaction VOFM, in order to:                    
      - deactivate the LOCAL: statement                                   
      - delete the clear statements                                                                               
    Once you have created those two routines to match your business needs,
    you can insert them in transaction VTAA, so the sales order will copy 
    the PO date at item level.                                            
    I hope I was able to help you.
    Kind regards,
    Zsuzsanna

  • Profit Center Billing blank in sales order for intercompany sales scenario

    Dear Experts,
    It's weird that i got some sales orders which have blank 'Profit center billing' , but carried out proper 'Profit Center'.
    Because Billing copy 'Profit center' from 'Profit center billing'  in sales order ,so i got error while creating billling.
    Can somebody explain this to me ,thanks a lot

    Hi,
       Please check the configuration. Check mainly the assignments.Before that check your material master and check when it was maintained ie., before the sale order creation or after???.
    Regards,
    Rajeswari

  • Error while creating sales order for material with another DIVISION

    Hello Friends,
    I have a problem with my sales order creation.
    I have defined a new sales area 0010 / 10 / 01. I have the sales order type assigned to this sales area. (in VOV8 for the sales order type, in the 'General Control' the 'item division' is flagged.
    Now, I have created the sold to party XYZ with all the partner functions defaulted same as the sold to party for the sales area 0010 / 10 / 01.
    NOW, I have the material ABC with the DIVISION 10 in the basic data. I have extended the material to my sales org & dist. channel & plant.
    Now, while creating the sales order for my sales area 0010 / 10 / 01 , I enter the sold to party XYZ - it is OK. But when I enter the material ABC, I get the error - "SHIP TO PARTY IS NOT DEFINED FOR SALES AREA 0010 / 10 / 10"
    Please help to resolve the issue.
    Edited by: Vivek on Aug 13, 2009 9:04 AM

    Hi
    Common division for Material Master data will not work
    Because in the material master Division is a field not an organizational unit
    Means when you create MMR you will give sales org, DC, Plant  as organizational units and then enter but not division
    Division is a field maintained in basic data and sales org data 1
    This is the reason in t code you will find in t code VOR2 Common division only customer and conditions but not materials
    But in t code VOR1 Common DC ,customer  conditions and materials all there are available (you can check these t codes)
    Coming to your issue Item div is clecked in your order type
    This means the division in MMR has the priority or control for that order type
    Your header division is 01 ( taken from customers sales area) and item division is 10 (taken from MMR as per your post)
    So it differs
    To process this order with Item div is clecked in your order type you need to extend your Sold to party ABC to the sales area 0010/10/10 (the sales area where the division of the material falls)
    or alternatively
    There should be a  customer say DEF created in sales area 0010/10/10 who will be a ship to party ( your error is also the same)
    for your ABC  that is sold to party in sales area 0010/10/01 where the order is registered
    Hope yopu are getting it
    ABC in sales area 0010/10/01 will have  or should have ship to paty DEF  in sales area 0010/10/10 
    or
    ABC should operate in in sales area 0010/10/10  too
    If item division is not ticked then these are not necessary as the header division 01 will be valid for all items and syatem will not look MMR at all for division
    Regards
    Raja

  • Changing sales order for a Credit blocked customer

    Hi Gurus
    One of the requirement of my client is that they create sales order for a customer and deliver the goods. During sales order creation billing block is automatically applied. This block is removed by a batch job after the goods are delivered. Sometime credit department block the customer using FD32 (KNKK-CRBLB). Now when the batch job is run to remove the billing block the system will not allow it for that order as the system calls VA02 during that batch job run. When you process a sales order using VA02 for a customer which is blocked (KNKK-CRBLB) then system will through error message V1 (154) i.e Order receipt/delivery not possible, credit customer blocked.
    So the batch job will not be able to remove the billing block from the order. NOw the requiremetn is that how can I achieve this so that the billing block are removed by that batch job as the customers has already been delivered the goods (Any user exit?).
    Thanks
    KTK

    Dear KTK,
    Please check this sample program from other thread to find BADI and enhancement for a given transaction code. You just need to create a custom program in your system by cut and paste below codes.
    REPORT ZTEST.
    TABLES: TSTC,
    TADIR,
    MODSAPT,
    MODACT,
    TRDIR,
    TFDIR,
    ENLFDIR,
    SXS_ATTRT ,
    TSTCT.
    DATA: JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
    DATA: FIELD1(30).
    DATA: V_DEVCLASS LIKE TADIR-DEVCLASS.
    PARAMETERS: P_TCODE LIKE TSTC-TCODE,
    P_PGMNA LIKE TSTC-PGMNA .
    DATA: WA_TADIR TYPE TADIR.
    START-OF-SELECTION.
    IF NOT P_TCODE IS INITIAL.
    SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
    ELSEIF NOT P_PGMNA IS INITIAL.
    TSTC-PGMNA = P_PGMNA.
    ENDIF.
    IF SY-SUBRC EQ 0.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'PROG'
    AND OBJ_NAME = TSTC-PGMNA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    IF SY-SUBRC NE 0.
    SELECT SINGLE * FROM TRDIR
    WHERE NAME = TSTC-PGMNA.
    IF TRDIR-SUBC EQ 'F'.
    SELECT SINGLE * FROM TFDIR
    WHERE PNAME = TSTC-PGMNA.
    SELECT SINGLE * FROM ENLFDIR
    WHERE FUNCNAME = TFDIR-FUNCNAME.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'FUGR'
    AND OBJ_NAME EQ ENLFDIR-AREA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    ENDIF.
    ENDIF.
    SELECT * FROM TADIR INTO TABLE JTAB
    WHERE PGMID = 'R3TR'
    AND OBJECT in ('SMOD', 'SXSD')
    AND DEVCLASS = V_DEVCLASS.
    SELECT SINGLE * FROM TSTCT
    WHERE SPRSL EQ SY-LANGU
    AND TCODE EQ P_TCODE.
    FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
    WRITE:/(19) 'Transaction Code - ',
    20(20) P_TCODE,
    45(50) TSTCT-TTEXT.
    SKIP.
    IF NOT JTAB[] IS INITIAL.
    WRITE:/(105) SY-ULINE.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    Sorting the internal Table
    sort jtab by OBJECT.
    data : wf_txt(60) type c,
    wf_smod type i ,
    wf_badi type i ,
    wf_object2(30) type C.
    clear : wf_smod, wf_badi , wf_object2.
    Get the total SMOD.
    LOOP AT JTAB into wa_tadir.
    at first.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 'Enhancement/ Business Add-in',
    41 SY-VLINE ,
    42 'Description',
    105 SY-VLINE.
    WRITE:/(105) SY-ULINE.
    endat.
    clear wf_txt.
    at new object.
    if wa_tadir-object = 'SMOD'.
    wf_object2 = 'Enhancement' .
    elseif wa_tadir-object = 'SXSD'.
    wf_object2 = ' Business Add-in'.
    endif.
    FORMAT COLOR COL_GROUP INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 wf_object2,
    105 SY-VLINE.
    endat.
    case wa_tadir-object.
    when 'SMOD'.
    wf_smod = wf_smod + 1.
    SELECT SINGLE MODTEXT into wf_txt
    FROM MODSAPT
    WHERE SPRSL = SY-LANGU
    AND NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    when 'SXSD'.
    For BADis
    wf_badi = wf_badi + 1 .
    select single TEXT into wf_txt
    from SXS_ATTRT
    where sprsl = sy-langu
    and EXIT_NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED ON.
    endcase.
    WRITE:/1 SY-VLINE,
    2 wa_tadir-OBJ_NAME hotspot on,
    41 SY-VLINE ,
    42 wf_txt,
    105 SY-VLINE.
    AT END OF object.
    write : /(105) sy-ULINE.
    ENDAT.
    ENDLOOP.
    WRITE:/(105) SY-ULINE.
    SKIP.
    FORMAT COLOR COL_TOTAL INTENSIFIED ON.
    WRITE:/ 'No.of Exits:' , wf_smod.
    WRITE:/ 'No.of BADis:' , wf_badi.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'No userexits or BADis exist'.
    ENDIF.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'Transaction does not exist'.
    ENDIF.
    AT LINE-SELECTION.
    data : wf_object type tadir-object.
    clear wf_object.
    GET CURSOR FIELD FIELD1.
    CHECK FIELD1(8) EQ 'WA_TADIR'.
    read table jtab with key obj_name = sy-lisel+1(20).
    move jtab-object to wf_object.
    case wf_object.
    when 'SMOD'.
    SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
    CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    when 'SXSD'.
    SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
    CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
    ENDCASE.
    Alternatively, you can do the following:
    1. For what ever transaction u want the enhancement .. just check for the System-->status (menu) and find out the PROGRAM name....
    2. Double click on to the program name and go inside the program (Abap editor)
    3. Search for "Call Customer-function " ... and u'll get some search results .. If u get results then u have enhancement in that tcode .....
    4. Then it actually calls a Function module .... copy the Function module name .... go to SE80 (object navigator) click on "Repository Information system" then Customer Enhancements .... Give the Function module name in the "Components" field and click Execute ....
    ull get a list of Enhancements related to that Componene....
    5. Choose which ever enhancement will suit ur business need ..
    6. Go to CMOD... create a project .... assign ur enhancement ... and then code ur logic.... activate ur enhancement in CMOD ....... Ur Buisness need will be solved...
    For a user exit......
    Finding whether there is any User Exit or not for tcode VA42
    1. For what ever transaction u want the user exit .. just check for the System-->status (menu) and find out the PROGRAM name.... ( The program name would be for our scenario "SAPMV45A" )
    2. Double click on to the program name and go inside the program (Abap editor)
    3. Search for the word "USEREXIT" .... u ll find all the user exits in the search result .. and find ur's then ...
    Reward points if this helpful.
    Regards,
    Naveen.

  • Can we create a sales order for party_type='PERSON' ?

    can we create a sales order for party_type='PERSON' ?
    Thank you,
    Cheers,
    Naveen.

    Hi
    Yes You can create a SO for a Party_type of Person, But it should have Customer account (i.e) The Person should have a Bill to / Ship to site
    Hope this helps
    Regards
    Sivakumar

  • Getting sales orders for a customer

    Hi Experts,
    Which FM should be used to get all sales orders for a particular customer in ECC 6.0
    Thanks and Regards
    Shilpi

    Hi,
    Not sure abt FM.
    Did u check VBAK table has a field KUNNR.
    You can put query on VBAK with condition Kunnr = 'Customer NO'.
    Please check if this serves ur purpose.
    Thanks
    Praveen

  • How to block Sales order for any overdue balance.

    There is a need to change SAP setting for blocked Sales Order for due balance. Current SAP setting : block is valid only for "over due
    more than 30 days".
    The requirement is to block order based on any overdue amount say For example : if we have due balance for 1 day, than system should block the SO.
    In current credit management settings applied, there is Static check ( C ) and Oldest open item (C ) with Days oldest item =30 days. Kindly suggest as what changes should be made to reflect the desired changes. Also , help in confirming the thought that Static check itself considers the OPEN ITEMS, so if i am activating static check and REMOVES THE OLDEST OPEN ITEm, will it take any overdue amount automatically and block subsequently. To add to it kindly explain, what is the use of this additional check of Oldest Open Item ( with days = X days ) for creit mngt. can't we maintain it by Static check.
    Kindly guide as what to change in OVA8 to have this. All feeedbacks are highly appreciated.

    The user want to  block SO for 2 types below. System must block SO if the credit limit is exceeded and/or the payment is overdue
    Currently Two credit checks in OVA8
    1- Static check
    2- Payment Overdue check by Oldest Open Item ( 30 Days limit is set)
    But, now for SO block due to payment overdue need to be changed from 30 days overdue to any day overdue.
    How to acheive the above , Also kindly confirm that Static check contains OPEN ITEMS so Won't static check only carry the functionality to block SO for ANY DAY OVERDUE.
    Any feedback is highly appreciable.

  • Restrict creation of sales order for specific customer

    Hello All,
    I want to restrict creation of sales order (of particular sales order type) for specific customer, please let me know how can I do it.
    Your early reply will be highly appreciated.
    Thanks & Regards,
    Mahavir

    HI
    As per My knowledge it is not possible in Standard SAP , you need to go with Enhancement
    Go to SE38 : MV45AFZB, User Exit: USEREXIT_CHECK_VBAK
    Regards,
    Prasanna

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

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

  • Duplication of Purchase Order while creating sales orders for a customer

    when we try to create sales order for one customer it have to create by picking up the purchase order from the table linearly.
    But the problem is that here when we are trying to create multiple sales orders the same purchase order is being picked.
    for example..when we create sales order 1 the purchase order picked is PO1 and
    for creation of sales order 2 the same purchase order PO1 is being picked up instead of PO2.
    No idocs are being generated in this, even to check them..
    How shall i resolve this...? Please help me out ASAP

    Hi Kumar,
    Thanks for the reply. But actually the problem is that this is related to some customized table in the project. When a EDI Batch job runs in the background then automatically the SO is created and the PO is being picked from the table(custom table) and then posted against the respective SO. we are not aware of that job which is triggering this to debug. Once if we can know that particular batch job or pgm or edi or idoc what ever it is then we can debug.
    Do you have any idea how can we find that particular pgm/edi/idoc/job name which triggers this creation of SO?

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

Maybe you are looking for

  • How to successfully revert to itunes 6.0.5 and restore itunes library.itl

    Hi guys, Since I have now successful restored my software (and so once again have a working ipod and itunes software - no thanks to Apple for the buggy upgrade) - I thought I would share my experience of how I successfully went about this - since it

  • Forward email to a specific address to an Exchange mailbox

    I would like to know if it is possible to forward email to a specific address (for an Identity that doesn't exist) to a user's mailbox. Example: when our employees are terminated we delete their active directory accounts and email mailbox.  I'd like

  • How to install Windows 7 on Mac mini Late 2009

    After I upgraded to Mavericks from Lion, I can't edit info.plist file to enable the 'Create Windows bootable USB flash drive' feature in Boot Camp 5.1. Who can help me, please?

  • Searching external hard drive attached to Time Capsule

    I have a 1 TB Time Capsule which I use for backing up my 2011 MacBook Pro and for providing my WiFi. I also have a 1 TB external hard drive plugged into my Time Capsule which I can access via WiFi. I can go to Finder on my laptop and browse the folde

  • Sort Contacts by [First Name, Last Name] on Phone

    I currently have all of my contacts in Outlook saved and "Filed As" First Name, Last Name. When I go to sync with the phone (through iTunes), the phone still shows all my contacts sorted as Last Name, First Name. I have tried deleting my contacts com