Reg : SD pricing user exit

Hi Guru's,
I need help on sd pricing user exit..
when preceding order document do not have ZW15 condition type,if we try to create the return order using the preceding order , we will not have ZW15 condition type in the returns order. But if we try to enter ZW15 condition type manually in return order,system should throw a warning message that manual entry of ZW15 is not allowed.
i need write code for this concept..Please provide exact user exit for this concept.
Regards
P.Senthil Kumar

Hi Raju Chitale,
Thaks for your response..
Thanks for your input..
Ckear w_count.
loop at xkomv where ( kposn = xvbap-posnr )
And ( kschl = 'ZW15' ).
w_count = w_count + 1.
Endloop.
If w_count > 1.
Give Appropriate message.
Message e057(znov) with 'ZW15'.
Endif.
In this case, I need to check preceding order document whenther its having ZW15 condition type or not..
If ZW15 conditon type not found in preceding order then ur try to enter the ZW15 condtion type mannually then i want to show error msg..in this code how to check the preceding order having condition type or not.???
Regards
P.Senthil Kumar

Similar Messages

  • Pricing User Exits - Requirement

    Hi Experts,
    I am new to IPC and Pricing. Can anybody please suggest me how to code in java for the pricing user exits. Also I would like to know. After I have uploaded the Jar file into the system. How can I put a breakpoint in my java code and debug. Or does the code get converted into ABAP after uploading?
    Can anyone please throw some light on this issue.
    Warm Regards,
    Abdullah

    hi abdullah,
    You cannot debug the java program as an ABAP program.
    you can use the following code in the java program for debugging.
    private static UserexitLogger userexitlogger =new UserexitLogger(//put the name of the class file of ur userexit);
    userexitlogger.writeLogDebug(//here you can write the varibles those values which you want to know at the runtime.);
    And to see this values using sm53 transaction. select log administration->log display->slect ur user exit under the corresponding package. Then you can see the values of the varibales at runtime.
    For developing user exit u have to use Eclipse IDE.
    With Regards
    Shanto Aloor

  • Sales Order Pricing User Exit Problem

    Hi,
    I am facing a problem related to coding in Sales Order pricing user exits. Scenario is as mentioned below:
    Based on Material Entered and Sold To in Sales Order, auto determination of a manual pricing condition happens. For doing this, coding has been done in USEREXIT_PRICING_PREPARE_TKOMP by changing XKOMV table. Auto determination of the manual price is happening properly.
    From Sales Overview Screen when user goes to the Conditions tab, Net Value is not getting calculated. When we navigate away to Schedule line tab and then come back to COnditions tab, Net Value is automatically getting calculated.
    AM i missing something in the coding part? As the data is getting populated automatically I guess some piece of code needs to be triggered. Can anyone shed some light into this.
    Thanks in advance,
    thunderans.

    Prabhu: After filling in XKOMV structure, I am calling FM PRICING. On doing this, the Sales Pricing is getting calculated but even then net value of order at header i.e VBAK-NETWR is not getting populated when we are in Sales Overview screen. When, I am getting into Conditions tab and coming back to Sales Overview screen, Net value is getting populated correctly. This portion of everything not getting populated at the same time is bothering me. The pricing conditon that I am  filling is a manual pricing condition.
    I put a breakpoint after FM PRICING which correctly populates XKOMV structure. How do I properly update Order Net Value in Sales Overview screen wihtout having to navigate to any other tab?
    Nicklas: I am looping at Order line within the user exit USEREXIT_PRICING_PREPARE_TKOMP and determining price. Once all line items are processed, I am using the FM PRICING for calculating Sales Prices.
    J@Y: Request to send me a bit more details into your approach.

  • SO Pricing User Exit - How to know which item is selected for re-pricing.

    Hello Experts,
    I have to modify material data when user does a update pricing in VA02, the problem is...How do I know which item is selected for re-pricing (in MV45AFZZ)? I am using user exit USEREXIT_PRICING_PREPARE_TKOMP.
    For Ex: If my order has 3 items and 2nd one is selected and then 'Update' is done on 'conditions' tab. Above pricing user exit is triggered 3 times for all items, so I cant check XVBAP.
    Your help will be appreciated.
    Thanks,
    Sagar

    Hi J@Y,
    Thanks for reply. But USEREXIT_PRICING_PREPARE_TKOMP is triggered for all items, so how do I know which is current item?
    If you see in debug mode, xvbap-posnr and tkomp-kposn will have 10,20,30 everytime (for 3 times). How do I know if user has selected 20?
    Thanks,
    Sagar

  • Hi Help on SD Pricing user exit

    Hi Guru's,
    I need help on sd pricing user exit..
    when preceding order document do not have ZW15 condition type,if we try to create the return order using the preceding order , we will not have ZW15 condition type in the returns order. But if we try to enter ZW15 condition type manually in return order,system should  throw a warning message that manual entry of ZW15   is not allowed.
    i need write code for this concept..Please provide exact user exit for this concept.
    Regards
    P.Senthil Kumar

    Hi,
      The error is due to the configuration of the pricing condition type. For the present configuration you will not be able to add the condtion manually. In order to add the condition type in your return order you have to create a new pricing routine and get it configured. Add checks in the routine for the order type while applying it. This routine will get trigerred while creation of the orders.
        Go to trasncation VOFM  and then go to Requirements--->Pricing, you will be able to see the pricing routines here. You can create a routine similar to these.
    Regards,
    Susanta

  • CRM - Pricing User Exit in Java - BADI CRM_COND_COM_BADI

    Hi All
    I have to convert some user-exit from Abap to Java in order to work in CRM Pricing Scenario (I use VMC technology based on Web AS 7.00).
    In the manual attached to note 809820 (New userexit concept for pricing)
    I find this chapter but I don't understand how to work with BADI <b>CRM_COND_COM_BADI.</b>
    <b>My objective is to create Java user-exit using Custom Tables and Fileds.</b>
    <b>Passing additional information to pricing</b>
    To summarize, if the information used in a requirement is not depending on the current calculation result, then the information can be passed to the pricing engine. This is the best way to avoid e.g. DB or JCo calls from the user exits.
    Nearly all application scenarios using the pricing engine provide a way of filling additional attributes.
    1. Create a field catalogue entry for the additional attribute
    2. Program the filling of that attribute value
    The application calling the pricing engine and the way it is allowing customer code to fill or influence attributes is not part of this document. Here is only a short list of documentation to start with (also various notes exist):
    Application Description
    CRM Online Order Processing
    Implement BADI CRM_COND_COM_BADI. Note 850077
    Mobile Solutions Implement VBA user exit methods on SPCDOCHANDLER or SPCITEMHANDLER.Note 677314 and Note 934216
    Best regards
    Davide Ivanov
    [email protected]

    Hi davide,
    The BADI CRM_COND_COM_BADI is used for filling the pricing communication structure.
    If you have added any field at header level of the field catelog that will available in the changing parameter of the method HEADER_COMMUNICATION_STRUCTURE.
    If you have added any field at item level of the field catelog that will available in the changing parameter of the method ITEM_COMMUNICATION_STRUCTURE.
    Additional fields added at catelog can be filled with the values using this BADI.
    Thanks & Regards,
    Raghuram. K.R.

  • Reg:IW22 tc USER EXIT

    Dear all,
    Which user exit will trigger when we r working in IW22 tcode and putting notificaiton no and going to the next screen that time
    Causes  named one table control is there know , at which user exit that table control will trigger exactly when we are making the entries in that table control?
    Thanks,
    Sankar M

    Hi,
    Try the below user exits.
    EXIT_SAPMIWO0_020
    QQMA0014
    IWO10026 User check on setting status 'Do not perform'
    IWO10027 User exit: Generate user-defined settlement rule
    IWOC0001 Create PM/SM notification: Determine reference object
    IWOC0002 PM/SM notification: Check whether status change is allowed
    IWOC0003 PM/SM authorization check of ref. object and planner group
    IWOC0004 Change single-level list editing PM/QM/SM ALV settings
    Triggered on SAVE:
    BADI Definition: NOTIF_EVENT_SAVE
    Method Name: CHANGE_DATA_AT_SAVE
    Goto Function Group XQQM.All the customer exits including BADI for notifications have been included in that FG.
    Goto SPRO ->Plant Maintenance and Customer Service->System Enhancements and Date Transfer..you can find the exits along with documentation. Hope this helps you.
    Thanks,
    Harini

  • Reg: EDI Invocie user exit

    Hi all,
    I wanted to add a field in basic type INVOIC02. so, I wanted to know outbound user exit for the same.
    Thanks in advance.
    Regards,
    Bharat.

    EXIT_SAPLIEDI_002

  • Reg. IW41 User Exit

    Hi Experts,
    In IW41 transaction, I have to copy the Actual Duration of work field to the Actual work field.
    Is it possible? If possible please suggest some exits.

    Hi,
    The following r the enhancements for  IW41
    CONFPP01                                PP order conf.: Determine customer specific default values
    CONFPP02                                PP order conf.: Customer specific input checks 1
    CONFPP03                                PP order conf.: Cust. specific check after op. selection
    CONFPP04                                PP order conf.: Customer specific input checks 2
    CONFPP05                                PP order conf.: Customer specific enhancements when saving
    CONFPP06                                PP Order Confirmations: Actual Data Transfer
    CONFPP07                                Single Screen Entry: Inclusion of User-Defined Subscreens
    CONFPS01                                PS confirmation: Determine customer specific default values
    CONFPS02                                PS confirmation: Customer specific input checks 1
    CONFPS03                                PS confirmation: Customer specific check after op. selection
    CONFPS04                                PS confirmation: Customer specific input checks 2
    CONFPS05                                PS confirmation: Customer specific enhancements when saving
    CONF0001                                Enhancements in order confirmation
    CONFPI01                                Process order conf.: Calculate cust.specific default values
    CONFPI02                                Process order confirmation: Customer spec. input checks 1
    CONFPI03                                Process order conf.: Cust. spec. check after op. selection
    CONFPI04                                Process order conf.: Customer specific input checks 2
    CONFPI05                                Process order conf.: Cust. spec. enhancements when saving
    CONFPI06                                Process order confirmation: Actual data transfer
    CONFPM01                                PM/SM order conf.: Determine cust. specific default values
    CONFPM02                                PM/SM order confirmation: Customer specific input checks 1
    CONFPM03                                PM/SM order conf.: Cust. spec. check after op. selection
    CONFPM04                                PM/SM order conf.: Customer specific input check 2
    CONFPM05                                PM/SM order conf.: Cust. specific enhancements when saving

  • Reg:QE01 TC user exit

    Dear All,
    I have to give one popup message like that 'Critical Vendor Inspect more samples'. While doing the entry in QE01, that case we will give the inspection lot number & oper'acct & inspector and then we will move on to next screen.When we are reaching to the next screen we ahve to give the popup message. by checking that material against with that vendor , while taking that material  in '105' mvt type , that time any '122' happend for that material or not for the last ten supplies.
    What should be the process ? And at which exit we have to do the coding for this scenario.
    Thanks,
    Sankar M

    yes

  • Help me on SD user exit

    Hi Guru's,
    I need help on sd pricing user exit..
    when preceding order document do not have ZW15 condition type,if we try to create the return order using the preceding order , we will not have ZW15 condition type in the returns order. But if we try to enter ZW15 condition type manually in return order,system should throw a warning message that manual entry of ZW15 is not allowed.
    i need write code for this concept..Please provide exact user exit for this concept.
    Regards
    P.Senthil Kumar

    did you find the user exit.
    find the user exit in smod ,what do you want to do..
    accordingly you can find the user exit.
    these are the exists..
    MBCF0002            Customer function exit: Segment text in material doc. item       
    MBCF0005            Material document item for goods receipt/issue slip              
    MBCF0006            Customer function for WBS element                                
    MBCF0007            Customer function exit: Updating a reservation                   
    MBCF0009            Filling the storage location field                               
    MBCF0010            Customer exit: Create reservation BAPI_RESERVATION_CREATE1       
    MBCF0011            Read from RESB and RKPF for print list in  MB26                  
    MB_CF001            Customer Function Exit in the Case of Updating a Mat. Doc.
    vijay
    Message was edited by: Vijay Babu Dudla

  • IPC Pricing with AP 7.00 Database Access/Call function module user-exit

    Hi experts,
    we are running SAP ECO on SAP ECC 6.0 with IPC Pricing AP 7.00 running in the VMC.
    I'm facing a new requirement. In an user-exit for requirements the access to the ABAP database is needed.
    (I know that the SAP recommendation is, don't have access to database. But we need this functionality)
    In ABAP it looks like:
    select single * from  a590
          into     LH_674_a590
          where    kappl  = 'V'
          and      kschl  = 'ZSPR'
          and      kunnr  = komk-kunnr
          and      matnr  = komp-matnr
          and      datbi  >= komk-prsdt
          and      datab  =< komk-prsdt.
    Is there a possibility to implement the same SELECT in the Java-User-Exit?
    Is there maybe the alternative to call a function module instead?
    The database exits on the same application server on which the VMC runs.
    If there is a possiblity can anyone provide me with sample coding or give an advice where to find samle coding?
    I would prefer to call a functions module.
    Thanks in adcance
    Karl-Wilhelm

    Hi Shanto & Sumit,
    Thanks for the inputs.
    as per my understanding of the log
    java.lang.IncompatibleClassChangeError: com.sap.leasing.pricing.tools.LeasingPricingTools: method getPricingConditionByConditionTypeName(Lcom/sap/spe/pricing/transactiondata/userexit/IPricingItemUserExit;Ljava/lang/String;)Lcom/sap/spe/pricing/transa ctiondata/IPricingCondition; used to be stati
    error is thrown by the SAP standard user exit and because of which execution is failing in customer user exits and surprisingly we have not made any changes in both of them.
    this was working earlier before upload.could this be because of the jar packaging.
    how i can download the standard user exit com.sap.leasing.pricing.tools.LeasingPricingTools from crm
    for further investigation.
    Thanks,
    Siddharth

  • Reg:User-Exit In Sales Order to Invoice

    Hi All,
    I have An requirement that to create automatic sales order and invoice  in one go, i have used BAPI_SALESORDER_CREATEFROMDAT2 to create sales order and bdc invoice to create invoice its worked fine.
    My problem is now i got an requirement as after creating sales order it should not create invoice as such because they will manually check whether the sales order is correct then only i should proceed to invoice also they need the option to create,change,delete sales order and same too invoice how can i acheive this scenario through user exits?
    Since am new to user exit can any one tell me how to use user exits and what user exits need like this scenario?

    Hi Suresh,
    For sales order following user exits can be used. These are available in include MV45AFZZ.
    USEREXIT_DELETE_DOCUMENT : At the time of deletion of sales order
    USEREXIT_SAVE_DOCUMENT : At the time of updations or creation of sales order.
    Following are the user exits available in smod.
    SDVFX007  User exit: Billing plan during transfer to Accounting
    SDVFX008  User exit: Processing of transfer structures SD-FI
    SDVFX009  Billing doc. processing KIDONO (payment reference numbe
    SDVFX010  User exit item table for the customer lines
    SDVFX011  Userexit for the komkcv- and kompcv-structures
    V05I0001  User exits for billing index
    V05N0001  User Exits for Printing Billing Docs. using POR Procedu
    V60A0001  Customer functions in the billing document
    V60P0001  Data provision for additional fields for display in lis
    V61A0001  Customer enhancement: Pricing
    Please check this exits which will help you for your requirement.
    Thanks,
    Naveen Kumar.

  • User exit to update the incompletion log in sales order for pricing error

    Hi experts,
    I have to check the some mandotory pricing conditions in sales order, if that conditions are not exist in sales order then i need to show the information message as well as i need to update it in incompletion log of sales order. (incopletion log we can see on menu bar 'EDIT' or ctrl+F8 on main screen of VA01). So that user can save the sales order but it will be in incomplete status.
    I have completed it upto showing the information message using user exit 'MV45AFZZ', but after this i don't know how to update it in incompletion log of sales order for pricing. I tried to update in tables VBUK-UVPRS, but i am not getting the desired result.
    Please anyone can tell me how to update it. In which user exit i can update the incompletion log.
    Thanks and Regards,
    Vicky.

    Hi Vinod,
    I am sending you my code please check it,
       if TKOMK-SPART = 10.
        if XKOMV is not INITIAL.
          clear v_JEXP.
        READ TABLE XKOMV with key kschl = 'JEXP'.
        if sy-subrc = 0.
          check XKOMV-kwert = 0.
          message i003(ZT) with 'Value should not be 0 for conditioin type JEXP'.
          v_JEXP = 'X'.
        else.
          message i003(ZT) with 'Maintain the mandatory Conditioin type JEXP'.
          v_JEXP = 'X'.
        endif.
        if v_JEXP = 'X'.
      XVBUV-MANDT = sy-mandt.
      XVBUV-POSNR = '000010'.
      XVBUV-TBNAM = 'VBAP'.
      XVBUV-FDNAM = 'PRSOK'.
      XVBUV-FEHGR = 20.
      XVBUV-STATG = '06'.
      XVBUV-FCODE = 'PKON'.
      XVBUV-SORTF = 9999.
      XVBUV-LFDNR = 0000.
      XVBUV-UPDKZ = 'I'.
      append XVBUV.
        endif.
    endif.
    endif.
    Please suggest something to solve this.
    Thanks and Regards,
    Vicky.

  • User Exit / BAdI to update the pricing conditions of the Purchase Order

    Hello SAPients,
    This is my requirement:
    "Copy the Pricing Conditions from the Shipment Cost Document (VI01 / VI02) to the automatically generated Purchase Order".
    I'm using the enhancement V54U0002 (Function Module EXIT_SAPLV54U_002) to EXPORT  the values of the Pricing Conditions to memory and I have used the enhancement MM06E005 ( FM EXIT_SAPMM06E_006, 007, 012, 013, 014, 016, and 017) to IMPORT the values from memory and store them in TKOMV. But, when the PO is generated the values don't stay, they are always changed with the standard PBXX pricing conditions.
    My question is: Does anyone know the User Exit / BAdI that I can use to change the Pricing Conditions of the Purchase Order?
    <<removed_by_moderator>>
    Thanks!
    Edited by: Vijay Babu Dudla on Jan 14, 2009 11:08 PM

    >
    kartik tarla wrote:
    > check this badi
    > ME_PROCESS_PO_CUST
    >
    > and the following user exit
    > Goto-> include RV61AFZA then search for
    > USEREXIT_PRICING_RULE see if its helpful to u.
    Hello Kartik / SAPients,
    I tried with ME_PROCESS_PO_CUST but didn't work. The system doesn't execute that code. Any other idea would be greatly appreciated.
    Thanks.

Maybe you are looking for

  • Error handling limitations in XI3.0 SP11 when using IDOC's

    Backround: Sending IDOC's from XI to a 6.20 SAP system with ALEAUD turned on. We have found a couple of limitations with XI 3.0 SP11 regarding error handling and are wondering what other XI Developers are doing to work around them: 1) Unable to gener

  • HT4623 If I have an iPad one and it doesn't show I can update it what should I do

    If I have an iPad one and I have iOS 5.0.1 and it says I'm up to date what should I do

  • 4.6C to ECC 6.0 Upgrade with EP 6.0

    HI We are planning to upgrade from 4.6C to ECC 6.0 . We have the Following as of now SAP ITS 6.2 standalone. ESS/MSS Business Packages for 4.6C SAP EP 6.0 I understand that a) Migrating to Integrated ITS is a must b) EP 6.0 works with SAP ECC 6.0 as

  • Populating datagrid using web service. pls help me...

    i don't know why i cant populate my data grid using data on a web service, i try to access web service by a simple return string like helloworld and it is working but when i try to get data in web service nothing happens there is no error on my build

  • Distortion correction?

    Hi folks I am a new lightroom user, and I have been reading tutorials and guides for the last couple of days. As far as I can tell, Lightroom does not have the ability to correct barrel distortions (I have version 2.6). I have read about PTLens, but