User exit for XD01/XD02 to update KNA1 field

Hi
I have added a custom field using append structure in KNA1
I need to update it during the XD01 or XD02 transaction before it is saved
I am searching for BADIs and user exits but I am not able to update anything in KNA1
kindly help if u were having similar requirement
thanks
b

Hi Max,
I have tried all of the following
BADI for XD01
CUSTOMER_ADD_DATA
BADI_LAYER
CUSTOMER_ADDRSCR_CHG
GOS_SRV_SELECT
ADDRESS_SUBSCREEN
save button:
ADDRESS_CHECK
ADDR_TXJCD_CHECK
ADDRESS_UPDATE
exits
EXIT_SAPMF02D_001.
BTEs
00001320
00001321
00001330
00001340
00001350
00001360
but nowhere I have found an interface for updating KNA1 fields.
I am not able to use CUSTOMER_ADD_DATA_CS and CUSTOMER_ADD_DATA_BI . I checked it using CL_EXITHANDLER
is there any way i can store the information I need . I just need one field against the customer number
thanks
b

Similar Messages

  • User exit for xd01

    hi!
    I am opening a customer with trans XD01.
    When I enter the zipcode, i want through the userexit to access external table and update 3 fields  in tables knvv and knb1 before or when saving the transaction.
    if there is no userexit, is it possible when saving xd01
    to trigger a job like a bi and update the relevant tables.

    Hi Yifat
    Look at this exit
    EXIT_SAPMF02D_001    customers: User Exit for Checks prior to Saving
    enhancement name SAPMF02D
    This may help you.
    <b>In this exit you will find an include program ZXF04U01.
    There you have to put you  code for update the relevent tables.</b>
    if it doesn't solve your problem then look for BAdIs
    regards ,
    Amit

  • User exit for XD01 (Customer Creation)

    Hi All Gurus,
    I need to extract some data (kunnr, name1, name2, telephone, mobile etc from KNA1, KNVV, KNBK tables) when user is creating a new customer. I have used the user exit SAPMF02D - EXIT_SAPMF02D_001 for the requirement.
    I am getting all the required data except KUNNR. It is always blank, and according to my guessing it is because yet the KUNNR is not created.
    Is there any other alternative or user exit for this scenario?
    Thank you all in advance,

    This was a very useful post Marcin!
    For those who need detailed steps for BTE regarding customer master data:
    Transaction FIBF
    Environment -> Infosystem P/S
    Find event code using google (debitors are 00001320)
    Click "Sample Function Module" and copy it to your FM (e.g. Z_CUSTOMER_UPDATED)
    Back in FIBF choose menu Settings -> Products -> ...of a customer and create one (check "Active"). Go back to FIBF
    Settings -> P/S Modules -> of a customer and assign your event + product + FM
    Now you can implement your FM
    You can use this FM to track changes to customer master data and e.g. feed the information into interfacing systems.

  • User exit for PO Item data update

    Hello All,
    At time of creation of PO using ME21N / ME58, we want to update PO item data . We want to update Over and Under delivery tolerances values from corressponding sales order rather than purchase info record.
    Please let me know if anyone has worked on similar requirement or any pointers for relevant user exits in SAP Release 4.6C .
    Regards,
    Manu.

    Hello ,
    Would you please check the below Userexits in 4.6C .
    EXIT_SAPLV50E_001
    EXIT_SAPLV50E_002
    EXIT_SAPLV50E_003
    EXIT_SAPLV50E_004
    EXIT_SAPLV50E_005
    EXIT_SAPLV50E_006
    In which I hope 2 and 4th were usefull.
    Regards,

  • User exit for XD01 with delivery priority

    Hi ,
    I am using a user exit EXIT_SAPMF02D_001 for customer master.Below is the piece of code .I am just displaying message based on delivery priority field in the customer master .
    But the probleam is when user only change the value in delivery priority field then only my message should come .But now my logic executes when ever no changes in the delivery priority field also and any touch other than this field also getting the message.
    Means the value in the delivery priority field  not refreshed in the customer master screen .Thats why the message is coming any time when not touching the field also.
    so can somebody suggest what to do?My logic should work only when delivery priority field only changed.
    TABLES:tpakd.
    DATA:l_lprio TYPE lprio,
         l_kztlf TYPE kztlf,
         l_antlf TYPE antlf.
    DATA:l_lp(2) TYPE c VALUE '03',
         l_kz(1) TYPE c VALUE 'B',
         l_an(1) TYPE c VALUE '1'.
    SELECT SINGLE * FROM tpakd
                    INTO tpakd
                    WHERE parvw = 'WE'
                      AND ktokd = i_kna1-ktokd.
    IF sy-subrc = 0 .
      MOVE i_knvv-lprio TO l_lprio.
      MOVE i_knvv-kztlf TO l_kztlf.
      MOVE i_knvv-antlf TO l_antlf.
      IF l_lprio = l_lp AND ( l_kztlf NE l_kz OR l_antlf NE l_an )  .
        MESSAGE w534(zm).
        ELSEIF l_lprio IS NOT INITIAL
                AND ( l_kztlf IS NOT INITIAL
                OR  l_antlf IS NOT  INITIAL
                OR  l_antlf NE '0'
                OR  l_antlf NE '9' ).
        MESSAGE w534(zm) .
      ENDIF.
    ELSE.
      EXIT.
    ENDIF.

    HI
    I think something doesn't sound good in this control
    ELSEIF l_lprio IS NOT INITIAL
      AND ( l_kztlf IS NOT INITIAL
           OR l_antlf IS NOT INITIAL                  "<-------
           OR l_antlf NE '0'
           OR l_antlf NE '9' ).
        MESSAGE w534(zm) .
    ENDIF.
    The control for L_ANTIF seems to be always valid, probably you should use AND insted of OR
    ELSEIF l_lprio IS NOT INITIAL
      AND ( l_kztlf IS NOT INITIAL
           OR ( l_antlf IS NOT INITIAL                  "<-------
           AND l_antlf NE '0'
           AND l_antlf NE '9' ) ).
        MESSAGE w534(zm) .
    ENDIF.
    Max
    Max

  • User Exit for the Funds Management Update

    Hi Experts ,
    My requirment is to make the movement type 261 as stastical . This should be reflected in COO11 T Code, Please suggest me the User Exit Or The BADI.
    Thanks in Advance,
    Regards,
    Manish

    Self Solved.

  • Exits for XD01 for pick up Customer No at SAVE Button...

    Hi,
    I need User Exits for XD01 for pick up Customer No at SAVE Button...
    I have to store it before going to display as Customer created.
    Regards
    Ricky

    Hi Neha,
    these links are not helpful to me.
    I want the User Exit/BADI which triggered at SAVE button which return me Customer Number before going to genrate/displa.
    Is there any way for u can suggest me?
    Plz reply me back.
    Regards
    Ricky

  • BADI or User Exit  of XD01  ??

    Hi Guru,
    I am looking for  BADI or User Exit for XD01 for customer number before saving.
    Thanksin Advance,
    Anthyodaya.

    Hi rithvika thanks for the reply
    but the problem is After saving not before saving. i asked u wrong...
    I am looking for BADI or User Exit for XD01 for customer number AFTER saving. (CREATING CLIENT)
    Thanksin Advance,
    Anthyodaya.

  • BADI/User Exit for custom table update from Delivery

    Hi
    Our requirement is to update a custom table with the delivery number and other related details when the picking status is changed to "C". Kindly suggest BADI/User exit for this requirement .
    Thanks in Advance for your immediate help .

    Hi Joseph,
    See SAP Note 415716 - User exits in delivery processing. It says when you have the document number available, what is permitted, what not, ....
    I hope this helps you
    Regards
    Eduardo

  • User exit for Price Conditions in VA02 (update,insert or delete conditions)

    Hi folks. I would like to know if anyone of you has already worked with transaction VA02...I need a user exit, which could be capable to: Erase, Update and Insert new Price Conditions.
    Scenario: The user will not enter into the Price Conditions Tab. He will only make some modifications to the document via VA02 and when he saves the document, then the user exit should update, erase or include new conditions based on some logic that the user exit will implement. does anyone know a user exit for this particular case, please !
    Thanks in advance.

    HI,
    Check this.
    V60F0001                                SD Billing plan (customer enhancement) diff. to billing plan 
    V46H0001                                SD Customer functions for resource-related billing           
    V45W0001                                SD Service Management: Forward Contract Data to Item         
    V45S0004                                Effectivity type in sales order                              
    V45S0003                                MRP-relevance for incomplete configuration                   
    V45S0001                                Update sales document from configuration                     
    V45P0001                                SD customer function for cross-company code sales            
    V45L0001                                SD component supplier processing (customer enhancements)     
    V45E0002                                Data transfer in procurement elements (PRreq., assembly)     
    V45E0001                                Update the purchase order from the sales order               
    V45A0004                                Copy packing proposal                                        
    V45A0003                                Collector for customer function modulpool MV45A              
    V45A0002                                Predefine sold-to party in sales document                    
    V45A0001                                Determine alternative materials for product selection        
    SDTRM001                                Reschedule schedule lines without a new ATP check                                                                               
    Business Add-in                                                                               
    BADI_SD_SCH_GETWAGFZ                    Scheduling Agreement: Read WAGFZ from S073                   
    BADI_SD_V46H0001                        SD Customer functions for resource-related billing           
    Regards
    Rajendra

  • User exit for updating delivery block of Sales order before Delivery

    Hi  Folks,
    Need to have an user exit for updating Delivery Block indicator for a Sales order Before creating its delivery
    I have got an exit in Program SAPMV45A
    MV50AFZ1
    FORM USEREXIT_REFRESH_DOCUMENT.
    that hits before processing the delivery block fro delivery (Correct me if i m wrong with this )
    Now i want now how to change the Delivery Block indicator of Sales order in that exit
    any FM available ?
    Thanks n regards
    Sonal...

    Hi  ,
    How did you solved this issue?
    I am having similar scenario in which while pressing the save button  delivery block should update if multiple schedule line exist.
    Tried by two different approaches in various user exit without any success.
    AFAIK we have two ways to achieve this functionality.
    1) Count the no of rows in vbep. If greater than 1 then multiple schedule line exist and we can assign the value to VBAK-LIFSK(delivery block) as per our requirement.
    This is not correct. If there are two line items both with single schedule line . This case total no lines in vbep will 2 and above condition will true which is incorrect.
    2) There is a indicator for multiple schedule line (VBAPD-EPMEH , xvbap-epmeh ) if it is check then multiple schedule line exist and we can assign the value to VBAK-LIFSK(delivery block) as per our requirement.
    If I write code in USEREXIT_SAVE_DOCUMENT_PREPARE.
    Multiple schedule line indicator is not populate so can not use 2nd approach.
    If I write code in  USEREXIT_SAVE_DOCUMENT it of no use as vbak is updated before reaching this user exit.
    If I write code in USEREXIT_MOVE_FIELD_TO_VBAK as this user exit is also called while pressing the enter key for this I have use
    the condition of fcode but it also fails in some condition.
    If fcode eq 'SICH'.
    Read table xvbap with key epmeh = 'X'.
    IF SY-SUBRC = 0.
    VBAK-LIFSK = '03'.
    Else.
    VBAK-LIFSK = ' '.
    Endif.
    Endif.
    Please help me to get the desired functionality working for all cases.
    1) One line item with multiple schedule line                                              
    2) Two line item with multiple schedule line                                             
    3) One line item having one schedule line and second one having multiple
    4)Two line item both with single schedule line.

  • BADI or User Exit for updating MSEG

    Hi,
       We are using ECC 6.0 and here is the scenario that we have to update custom fields into VBAP, LIPS and MSEG tables when these fields are entered on the sales order screen VA01,VA02.These field are added on this screen using Additional Data B screen.Also, These fields are there in VBAP and LIPS through Append Structure and MSEG through CI_COBL.Is there any BADI or USER EXIT for this.Thanks in Advance.
    Priya.

    Hi
    You can use exit ZXMBCU02 ( Function EXIT_SAPMM07M_001
    in SAP enhancement MBCF0002 ). Here also whtever changes you make to I_MSEG will be lost as MSEG is an importing parameter. You can do something like this.
    FIELD-SYMBOLS <F1> TYPE MSEG.
    DATA NAME(50) VALUE '(SAPMM07M)MSEG'.
    ASSIGN (NAME) TO <F1>.
    <F1>-KOSTL = 'XXXX'.
    ( In above example MSEG-KOSTL will be set as XXXX, you can change any of MSEG fields in above way. ).
    Cheers

  • User Exit for Delivery Updating

    Hi,
    I am creating one user exit for delivery ,
    My condition:
    If XLIKP-UPDKZ (Update indicator) = Update (U).
    Read table Deferred COGS Activity (Z1009) with key
    Delivery Number  eq LIKP-VBELN.
    If sy-subrc <> 0
    Exit.
    Else.
    If V50AGL-WARENAUSGANG=X (PGI is active)
    Update table Z1009 with
    WADAT_IST = XLIKP-WADAT_IST
    PGI_ERNAM = SY-UNAME
    PGI_ERDAT = SY-DATUM.
    where Delivery Number (DL_NO) eq LIKP-VBELN.
    If delivery updated successfully then no problem ,
    if not updated then I need to through error message to log.
    I need Function Module for this.
    Can u help me.

    These ar all the User Exits used in VL01N.
    Exit Name           Description
    V02V0001            Sales area determination for stock transport order
    V02V0002            User exit for storage location determination
    V02V0003            User exit for gate + matl staging area determination (headr)
    V02V0004            User Exit for Staging Area Determination (Item)
    V50PSTAT            Delivery: Item Status Calculation
    V50Q0001            Delivery Monitor: User Exits for Filling Display Fields
    V50R0001            Collective processing for delivery creation
    V50R0002            Collective processing for delivery creation
    V50R0004            Calculation of Stock for POs for Shipping Due Date List
    V50S0001            User Exits for Delivery Processing
    V53C0001            Rough workload calculation in time per item
    V53C0002            W&S: RWE enhancement - shipping material type/time slot
    V53W0001            User exits for creating picking waves
    VMDE0001            Shipping Interface: Error Handling - Inbound IDoc
    VMDE0002            Shipping Interface: Message PICKSD (Picking, Outbound)
    VMDE0003            Shipping Interface: Message SDPICK (Picking, Inbound)
    VMDE0004            Shipping Interface: Message SDPACK (Packing, Inbound)
    You can also look at BADI: LE_SHP_DELIVERY_PROC. It has several implementations which could be useful to you.

  • User Exit for XD02

    Hi ,
    I am working on an User Exit. I need the User exit for XD02 transaction.This Exit should trigger in the below scenario.
    A check box should appear in XD02 transaction in Sales Area Data at the end after Agency bussiness tab.
    There should be a tab Printing flag and a check box with comment same like Agency Bussiness tab.
    Can any one help me in finding this issue which is the exit or any specific to trigger that and write the feasible code relating to that.This is very urgent.
    Points will be rewarded maximum for the good answer.

    Hi Sandhya,
    I know that is from SAPMF02D but i need the exact Exit where to write the code.
    I need to add one more tab button and one check box in the exit. Can you please help more depth.
    Thanks & Regards...
    Satish Raju

  • Any user exit for updating VBRK-XBLNR when the billing is created?

    Hi all,
    I understand that in VTFL, there are 4 options for Reference number.
    But if i want it has a special value, how i can achieve it?
    Thanks,
    James

    Hi,
    See Note 301077 - User exits for the interface to accounting. I think that EXIT_SAPLV60B_001 is the right option.
    Regards
    Eduardo
    PD: althought perhaps USEREXIT_FILL_VBRK_VBRP in RV60AFZC fits better for your requirement.
    Edited by: E_Hinojosa on Jan 25, 2011 9:08 AM

Maybe you are looking for

  • Synching photos from TeraStation to Apple TV is not working - any ideas?

    Hi, gosh, I hope someone can help me with this ... please my iTunes library runs on a Buffalo TeraStation Live (network attached storage). Synching and streaming movies, TV shows and music works fine. But as soon as I choose the photo folder on the T

  • Why can I not print from text editor?

    I am new to the mac & was trying to do up a text document.  I went to text editor thinking that would work. I did it up all nice & can not print it. I just goes all funny. I know it is not my printer; can print other things fine. Can you please help?

  • Why is the IPad so extreme expensive in Europe???

    Hello, if I would buy a IPAD 3G-WIFI with 64 GB in Germany i must pay 799,00 €uro. If I buy it in the USA I just would pay 829,00 US-Dollar. OK it looks that it is cheaper in Europe but.......829,00 US Dollar are just 672,00 €uro so why is the IPAD s

  • Rich:DataGrid Problem

    Hi guys, i have a problem with the rich:datagrid. The page which have the datagrid starts with a search method by name. ( query includes like function ) Search components are in h:form. So the related names after the search, will be ordered on the da

  • Flash AS3.0, Create  bar, pie chart.

    hi how to create flash bar and pie chart in actionscript3.0. any ideas about this, any refference file. any samples file give me thnks