Skip to Content

Userexit for changing Item category while creating Sales order

Hi All

I want to change the item category while creating a sales order...

like if Shipping condition is Home Delivery item cat.should change to ZTBB.....

if Shipping condition is UPS nothing will happen....

so i found Userexit MV45AFZZ...i think so...plz conform....

If so then how to do that......

plz let me know.....wt else has to do ......along with this userexit....

Waiting for reply .....its urgent....

if any one has done tht ...plz send me the procedure....

thnx

rohit

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 15, 2008 at 12:38 PM

    Hi,

    document is saved after the below routine..

    SAPMV45A >MV45AF0C_CHANGE_DOCUMENT_CREAT >CALL FUNCTION 'SD_XVBLB_CHANGES'

    Transaction Code - VA02 Change Sales Order

    Exit Name Description

    SDTRM001 Reschedule schedule lines without a new ATP check

    V45A0001 Determine alternative materials for product selection

    V45A0002 Predefine sold-to party in sales document

    V45A0003 Collector for customer function modulpool MV45A

    V45A0004 Copy packing proposal

    V45E0001 Update the purchase order from the sales order

    V45E0002 Data transfer in procurement elements (PRreq., assembly)

    V45L0001 SD component supplier processing (customer enhancements)

    V45P0001 SD customer function for cross-company code sales

    V45S0001 Update sales document from configuration

    V45S0003 MRP-relevance for incomplete configuration

    V45S0004 Effectivity type in sales order

    V45W0001 SD Service Management: Forward Contract Data to Item

    V46H0001 SD Customer functions for resource-related billing

    V60F0001 SD Billing plan (customer enhancement) diff. to billing plan

    No of Exits: 15

    Thanks

    Sarada

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Rahul Keshav

      In USEREXIT_SAVE_DOCUMENT_PREPARE, try with code similar to below:

      loop at xvbap.
      
         " SELECT if XBAP-WERKS exists in TVARV
         if sy-subrc eq 0 and xvbap-matkl ne '20110' and xvbap-pstyv ne 'ZTAB'.
         
            xvbap-pstyv = 'ZTAB'.
            modify xvbap.
            
         endif.
         
      endloop.
      

      Regards

      Eswar

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.