Enhancement of VA01

Hi,
I need to make the over all status of the credit check (VBUK-CMGST)  as space, if the payment term (VBKD-ZTERM) is Z000.
I tried it using MV45FAZZ, FORM USEREXIT_SAVE_DOCUMENT, but its not working. Can any one help me out

Hi,
Try it in USEREXIT_NUMBER_RANGE USING US_RANGE_INTERN.
This code needs to be included here because USEREXIT_SAVE_DOCUMENT_PREPARE is too early (credit check status field not set yet) and USEREXIT_SAVE_DOCUMENT is too late (VBUK already updated).
The above solution should solve your problem! Share your test results with us.
Cheers,
Varna

Similar Messages

  • Enhancement for VA01

    Hi experts,
                    I hope u can Resolve this query.......My requirement is in 'XD02'  by giving the customer no and the division type. in the next screen in sales document screen and in the billing document tab it will dispaly the payment term  tat maintained to the division type.
    for eg:   customer no : 500010.
                 division type : 00 common.
                 division type : 05  some name.
         in the second screen.
    in sales area data.
    in billing document.
    In the payment term field  tat corresponding to the division type.The Point is the common division '00 ' is also maintained for customer no and payment term is also maintained individually for  both division type.
    in sales order 'Va01' screen if we enter the order type tat relates to the division type  has some values.
    My client  Requirement is in 'VA01' if they enters the order type and the common division '00'  it will enter into the next screen there if we give the 'customer no' it should relate the order type and should brings the value of 05.
    for that found out the enhancement in the standard program 'MV45AFZZ'.
    Could you Pls provide Some Code to fill this.
    Note: Client says that Not to create any Ztable.
    Moderator Message: Kaushik is right. Thread Locked. And refrain from posting duplicate thread too.
    Edited by: kishan P on Dec 16, 2011 1:32 PM

    Sorry kaushik some Idea to How to do this.....we found out the enhancement but our code is not working since some one coding has overwriting that....sorry am not Asking the entire code.

  • Enhancements for VA01

    Dear All,
    We have one requirement.
    While creating a sales order(VA01,   ECC6.0), in the shipping data( item level) user maintains unloading point and receiving point .
    Ideally it should throw an error incase user inputs wrong unloading point and receiving point .
    But due to non handling of exception in the standard program these two fields can accept any value.
    As per the requiremt we have to validate these 2 fields.
    Can you please let me know the ideal place where we can add this validation logic. (Customer exit , user exit , BADI or enhancement point?)
    Regards
    Arindam

    Hi Ariandam ,
    try to use Userexits , mv45afzz . there u can put any kind of check (validation) for sales .
    Regards ,
    Joy .

  • Screen enhancement in va01

    I appended one structure with one field field1 of component type char1 to the table VBAK. That field is added to the subscreen(Header-add data A). Default value to be assigned to that field VBAK-field1  with out going to that screen.
    while creating sales order even if he doesn't open that subscreen default value value must be saved to that table while saving tha sales order using usr exit.
    First of all is it possible using user exit not customer exit because there are no SAP standard enhancements are available for this scenario.
    thanks,
    Raju

    Hi Raju,
               Here is user exit you can implement <b>"MV45AFZZ</b>"...
    in this there is one form where you can pass your values in that subscreen field.
    Eg.  you have appended field<b> "field1"</b> in table <b>VBAK</b> .
    <b>FORM userexit_move_field_to_vbak.</b>
    here under this you can pass your own value with condition as per your scenario....
    If any other query please let me know....
    <b>Reward Points</b>
    Cheers,
    Enjoy,
    Sagun Desai....

  • Enhancement in VA01 (Custom field addition in Additional Tab at header)

    Hi Experts,
    I have to develop some custom fields in tcode VA01 at header level in addtional data B tab. I know that i can use access key and develop the screen 8309 of program SAPMV45A and for that i have to provide access key. But i dont want to use access key.
    Is there any screen exit or badi through which i can develop the screen in additional data B tab in VA01. Please provide me suggestion.
    Thanks in advance.
    Regards,
    SURYA BASU

    Hi
    I don't know other solution. Provide a key in my opinion is not a problem. You must do it when create your own VOFM subroutines in your customer range number. if your boss or your client has doubts, ask him/her to see the SAP Note 381348 - Using user exit, customer exit, VOFM in SD, when it says:
    At the beginning of the R/3 development the SAP Basis did not offer
    technologies for exits yet, nevertheless many customers wanted to implement
    their own functions, checks, and so on. Thus, in the SD area, includes were
    delivered like, for example, MV45AFZZ. This include contains some empty
    FORM routines (user exits) to which you can go from the respective
    processing programs.
    and
    Changes to user exits in SD are MODIFICATIONS,
    since the original of an object belongs to SAP (thus when you change a user
    exit an SSCR registration is also required).
    Why this exits belongs to SAP, see Note 16466 - Customer name range for SAP objects.
    I hope this helps you
    Regards
    Eduardo

  • Enhancement in VA01 Additional data B tab

    Hi All,
    I have added 2 fields in tcode VA01 in header --> Additional Function --> Addtional data B (screen 8309) which are getting saved in VBAK table in custom fields which i have added in VBAK table using append structure.
    Now my requirement is, for a particular order type one of the fields which I have added in Additional data B screen should be mandatory. For that i have wriiten a code in PBO (include MV45AOZZ)
                                      LOOP AT SCREEN.
                                           IF VBAK-AUART = 'Z2OR' AND SY-TCODE = 'VA01'.
                                                IF SCREEN-NAME = 'VBAK-ZZTRIPORDER'.
                                                       SCREEN-REQUIRED = 1.
                                                       MODIFY SCREEN.
                                                ENDIF.
                                            ENDIF.
                                       ENDLOOP.
    Now this code is working fine if I visit that screen (Additional data B screen), but it is not working if i dont visit that screen. I want that the document will not get saved if that field blank for that particular order type.
    Can anyone help me please?
    Thanks in advance.
    Regards,
    SURYA

    Hi
    If you are in the screen, it works, if no, it doesn't work. The manner to do it is with a userexit. Try it with USEREXIT_SAVE_DOCUMENT_PREPARE in include MV45AFZZ for instance.
    I hope this helps you
    Regards
    Eduardo
    Edited by: E_Hinojosa on Jul 1, 2011 9:14 AM

  • Screen exit or enhancement for va01

    Hello Friends,
    I want to add two new columns in the item level in va01(create sales order) transaction.
    Pls comment on this.
    Regards,
    Sunny

    Hello,
    Did you check this?
    [screen exit for va01|https://forums.sdn.sap.com/click.jspa?searchID=21368448&messageID=5054086]
    Note : Plz SEARCH in SCN before posting.

  • Enhanced exits and Badi's implemented in VA01

    Hi,
    I am working on a support project and wants to check the user exits and BADI's which have been enhanced for VA01 Transaction in my project specifically. Please let me know how can I check the same.
    Regards,
    Naveen

    Hi,
    I am working on a support project and wants to check the user exits and BADI's which have been enhanced for VA01 Transaction in my project specifically. Please let me know how can I check the same.
    Regards,
    Naveen

  • Enhancement in Sales order VA01/02

    Hello,
    When user puts reason for rejection for an item and saves the order, at that time you need to give a pop-up saying " Please enter rejection date in Sales Text (DD.MM.YYYY) "
    I need an enhancement for va01/02 to do this...
    How to do this?..
    Thanks!.

    dear nivetha,
    you can use this Funciton Module - EXIT_SAPFV45S_005 for your purpose of displaying the popup message.
    To give the popup message use the FM POP_UP TO_CONFIRM where in you need to give the title of the message and Yes and No button names and then you would have to handle when user clicks on these buttons.
    through your User Command.
    When 'YES'
    Continue.
    when 'NO'
    Call screen 0.
    Hope this helps you.
    Encourage others to answer your queries by suitably rewadring them
    Thanks
    Venugopal

  • Va01 Itemlevel enhancement

    Hello ,
    My requirement is to include the length attribute as extra column (from configuration view) into the Sales item overview.
    Anybody please advise me the appropriate solution .
    Thanks

    Hi,
    Check this link
    Re: Enhancment in VA01
    Regards,
    Raju.

  • In VA01  In Schedule line Delivery date not getting populated

    Hello,
    We have developed enhancement for VA01 tcode.
    Depending upon the quatity entered for a material it should show one more item as free good.
    If quatity is 10 for a line item 10 then it should show item 20 by default same mateerial and quatilty as 1.We have done this it is working fine.
    But if we select free good item in our case it is 20 and click on schedule line item buttom all quaitity fields getting populated.but delivery date not getting populated for only free good.for line item 10 it showing properly.
    Can any one please suggest what i need to do in order to display delivery date for free good.
    Thanks in advance.
    Regards.

    Thanks for your response.
    Actually i have seen technical settings for that field.it is rv45a-etdat.this field has value till MV45AFZZ.seen in debugger.
    Looks like it is clearing some where after the above include.Any suggisitions welcome.Thanks again.

  • Is it possible to add 'Additional Data C' tab in VA01/VA02/VA03

    Hi All,
    Is there any way or in config that we can enhance the VA01/VA02/VA02 with one more tab other than 'Additional Data B' tab.
    i want to add 'Additional Data C' tab for a requirement.
    Please give your valuable comments.
    Thanks,
    Jaffer Ali.S

    Hi ,
    It can't done for the VA01/VA02/VA03.
    these are available for the .
    V45A0001  Determine alternative materials for product selection --->The Description of this enhancement tell us that it determines the alternative materials for product selection. (i.e., If  one material is not available what is the other material that has to be used as an alternative. So it is item specific).
    V45A0002  Predefine sold-to party in sales document--->By Description we understand that we can predefine sold-to party in the sales document. (i.e., it is used to populate the field sold-to party through user-exit while entering the data. ) But our requirement comes after entering the data in the screen and save button is pressed.
    V45A0003  Collector for customer function modulpool MV45A
    V45A0004  Copy packing proposal---->Copy packing proposal Into Out bound delivery. This description implies that  whenever we create a Delivery Order from Sales Order it copies the packing proposal  Based on the already created Sales order. So, there is no chance for us to save the data while we create or change a Sales order.    
    We can't done.
    Regards,
    Bharani

  • Added custom field to VA01 should be mandatory for a particular order type

    Hi experts,
    I have created a custom field in Additional Tab B (Screen 8459) in VA01 at the item level. Now that field should be mandatory for a particular order type. If a sales order is created with that order type then the user cannot save the sales order without putting any value to the custom field. Please can anyone suggest me how to do that?
    Regards,
    SURYA

    Hi
    Sap_wiz is right. It's the same that in this [post|Re: Enhancement in VA01 Additional data B tab].
    Regards
    Eduardo

  • Enchancement in va01

    hi experts,
    Im doing an enhancement in VA01.
    The BADI I am using is cfop_det_prep   . My task is in the Conditions TAB in Item Conditions. My main purpose is that i want to pick the value of Discount (Condition : SOC) (Screen Field : KOMV-KBETR ) and Price(Condition PR00 ) .
    But the interfaces show that structures of table vbap and vbak are only there.
    Is there any way other than interfaces to pick the value from the KOMV Screen Field
    Thanks in advance guys.

    Hi Pawan,
    My requirement is that in VA01 --> Item Conditions --> Conditions Tab , when the user enters a Customer Discount (Condition SOC ) he should be restricted to only 5 values i.e 1% 2% 3% 5 % .. I have found the BADI for that CFOP_DET_PREP.
    In the Interface there only these are available.
    i table of structure vbap and vbak.
    The value which i want is stored in KOMV-KBETR Screen Field but has no I_table assigned to it in the interface.
    If any method is possible please let me know .
    Thanks a lot.

  • Storage location value in Tcode VA01

    Hello experts,
                           I have done the enhancement for 'VA01'. According to my requirement i have to give some values to storage location for a particular order type.
    e.g if my order type is 'zwxl' my storage location should be '0001'.
    i am writing the enhancement code in program name SAPFV45P in that in include FV45PF0V_VBAP-POSNR_FUELLEN.
    the part of code is :
    IF vbak-auart = 'ZWMF'.
        vbap-lgort = '0007'.
        ELSEIF
          vbak-auart = 'ZSDR'.
          vbap-lgort = '0001'.
    but after the save i dont see my storage location in VA01 even if the order type is ZWMF or ZSDR.the storage location is blank there in VA01.
    but if i write if vbak-auart = 'ZWLF'.
    vbap-lgort = '0011'.
    else.
    vbap-lgort = '0004'.
    endif.
    for this if my order type is not ZWLF the value of the storage location appears in VA01 and that too 0004.
    what i can see while debugging is if the order type is other than my requirement for which storage location comes MTCOR-RMARD EQ 'SAPCE'.
    and if order type is amongst my requirement the value of MTCOR-RMARD is EQ 'X'.this why the field of storage location comes blank for my reuirement.
    plz help.why this is so?
    thanks n regards,
    Ashmita Singh

    thanks experts..Enhancement is working for all the order type except one..ZCRE
    AFTER entering the order type n all a pop window appears to enter billing document,
    then a information window 'The plant for item 000010 must be redetermined' occurs 
    then in the form 'VBAP_KOPIEREN_VORBEREITEN'
    after PERFORM (MODUL) IN PROGRAM SAPFV45C. VBAP-LGORT value becomes zero
    then 'The plant for item 000011 must be redetermined'.
    now value of vbap-lgort at this time before initialization is '0004'.
    after PERFORM (MODUL) IN PROGRAM SAPFV45C.
    value of vbap-lgort become '0004' again.
    The plant for item 000020 must be redetermined
    value of vbap-lgort is initial at this time.
    after PERFORM (MODUL) IN PROGRAM SAPFV45C. value of vbap-lgort becomes initial again.
    The plant for item 000021 must be redetermined
    after this vbap-lgort is 0004 again.
    PERFORM (MODUL) IN PROGRAM SAPFV45C. after this vbap-lgort = '0004'.
    The batch number of item 000011 is cancelled
    The batch number of item 000021 is cancelled.
    plz help.this is for this order type only and for rest of the
    order the enhancement is working fine.
    for Itme 10 the storage location blank
    then for Item 11 storage location is 0004
    for item 20 storage location is blank again
    and finaly for item no 21 storage location is 0004.
    below is my enhancement code.
    enhancement 1  zstorage_location.    "active version
    This is to change the storage location
    as per the order type
      if vbak-auart = 'ZWLF'.
        vbap-lgort = '0007'.
        elseif
          vbak-auart = 'ZSCR'.
          vbap-lgort = '0001'.
          elseif
            vbak-auart = 'ZRAW'.
            vbap-lgort = '0001'.
            elseif
              vbak-auart = 'ZORD'.
              vbap-lgort = '0004'.
              elseif
                vbak-auart = 'ZLCI'.
                vbap-lgort = '0001'.
                elseif
                  vbak-auart = 'ZEXP'.
                  vbap-lgort = '0010'.
                  elseif
                    vbak-auart = 'ZCRE'.
                    vbap-lgort = '0008'.
    endif.

Maybe you are looking for

  • Remote Authentication Naming Service Not Found

    Hey everybody, I found this thread: http://swforum.sun.com/jive/thread.jspa?threadID=54004 That thread mentions (or implies) there is something different that must be accomplished when performing remote authentications vs local authentications but ne

  • Copying tunes from my iPod to my computer.

    I recently built a new computer, and therefore the songs that are on my iPod are not on my computer. Is there a way to copy songs from my iPod (not the library!) to a folder on my computer? Thanks.   Windows XP     Windows XP  

  • IDVD 08 Won't Open

    Hi Gang I upgraded iLife 06 to iLife 08 The new Apps were automatically placed in the Application Folder. All new programs successfully opened except iDVD - Do I need to trash any .plst files? Thanx Mike

  • Windows xp 64bit and disk you get with IPOD

    Ok.. Im not sure if I need to install my ipod with the disk that I got with my ipod last year now that im using windows xp 64bit? I have the windows xp 64 also. I dont want to mess up my pc so maybe its best to ask here first.

  • Oid: 1.3.6.1.4.1.9.9.712 ?

    Hi, I'm messing around with snmptraps from our new NCS installation. And I get this new and interesting oid: 1.3.6.1.4.1.9.9.712.... In the SNMP Object Navigator i only find ciscoVrfMIB (711) and then ciscoTrustSecPolicyMIB (713) but no (712)? Do any