Accessing address in user exit EXIT_SAPMF02D_001 (create/change customer)

Hi,
I'm trying to access the address given for a new customer in user exit  EXIT_SAPMF02D_001. I need Street4, which is not available on the i_kna1 object, and therefore I'm trying to play with the i_addrhandle parameter.
Can this be used with function module GET_ADDR to read addresses before the customer is saved, the following code gives me exception 1.
ls_addr1-addrhandle = i_addrhandle.
CALL FUNCTION 'ADDR_GET'
  EXPORTING
    address_selection             = ls_addr1
IMPORTING
    address_value                 = ls_addr1_val
EXCEPTIONS
   parameter_error               = 1
   address_not_exist             = 2
   version_not_exist             = 3
   internal_error                = 4
   OTHERS                        = 5
Regards
Mattias

Hello,
Address handle is used for internal communication in standard program..for the customer creation let's say it would store value like "KNA1                          ADRNR" and for vendor "LFA1                          ADRNR"
Please use address number in ADDR_GET function module
Thanks
Krish

Similar Messages

  • End User Doc. Create / Change Customer Master Data

    < MODERATOR:  Message locked.  Please read the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement] before posting next time. >
    Hi Experts,
    I would appreciate, if anyone of you could forward me the end user documents for creating & changing customer master data.
    sonicasmailbox at rediff
    Points will be assigned.
    Regards
    Sonica

    Hi
    Refer to help.sap.com for creating customer master data.
    Copy this to word document and it will be become user manual.
    http://help.sap.com/saphelp_ides/helpdata/en/47/ef8c64124811d2806f0000e8a495b3/content.htm
    Additionally refer to this weblink
    http://web.mit.edu/cao/www/AR/ar1/ar_FD01.htm - This if for FICO only.
    Changing customer master record.
    Use T.Code XD02.
    Enter Customer No,Company code,Sales Org, Distribution channel and division and press Enter or
    Enter Customer no,company code and click on customer's sales area, you will see Sales Org, Distribution channel and division,select the Sales org,Sales Org, Distribution channel and division and press enter.
    You can make necessary changes to customer master
    Please let me know if you need more information.
    Asssign points if useful.
    Regards
    Sridhar M

  • User exit to create change pointer as soon as network is created(CN21)

    Hi All
    I have to use function module change_pointers_create_direct . This function module i have to use in a exit which is called as soon as a network record is created(CN21).
    Then I will use SMD tool to track changes made to these pointers.
    can anyone tell me which user exit can I use for this?
    Or do anybody have idea whether CN21 creates change documents by default or not in CDHDR.
    Actual requirement is to send the network records to third party system through IDOC using program RBMIDOC which is scheduled every 15 minutes. This program will read the change pointers created in 15 minutes.
    Please advise on this...

    hi,
    CCOWB001            Customer exit for modifying menu entries
    COIB0001            Customer Exit for As-Built Assignment Tool
    COZF0001            Change purchase req. for externally processed operation
    COZF0002            Change purchase req. for externally procured component
    PPCO0001            Application development: PP orders
    PPCO0002            Check exit for setting delete mark / deletion indicator
    PPCO0003            Check exit for order changes from sales order
    PPCO0004            Sort and processing exit: Mass processing orders
    PPCO0005            Storage location/backflushing when order is created
    PPCO0006            Enhancement to specify defaults for fields in order header
    PPCO0007            Exit when saving production order
    PPCO0008            Enhancement in the adding and changing of components
    PPCO0009            Enhancement in goods movements for prod. process order
    PPCO0010            Enhancement in make-to-order production - Unit of measure
    PPCO0012            Production Order: Display/Change Order Header Data
    PPCO0013            Change priorities of selection crit. for batch determination
    PPCO0015            Additional check for document links from BOMs
    PPCO0016            Additional check for document links from master data
    PPCO0017            Additional check for online processing of document links
    PPCO0018            Check for changes to production order header
    PPCO0019            Checks for changes to order operations
    PPCO0021            Release Control for Automatic Batch Determination
    PPCO0022            Determination of Production Memo
    PPCO0023            Checks Changes to Order Components
    STATTEXT            Modification exit for formatting status text lines
    regds,
    paras

  • User Exit - EXIT_SAPMF02D_001

    Hi All,
    I'm currently using this User Exit EXIT_SAPMF02D_001 to do a check for change in Bank details during 'SAVE' from transaction code FD02.
    If there is a change (comparing the import tables with a SELECT statement to the database table), I would need to update the import table parameter T_KNBK-BKONT with a special value.
    However, my problem is that the value is only updated within the User Exit. Once it returns to the main calling program (SAPMF02D), the updated value is lost. I've checked the codes and concluded that this User Exit only allows checking of data but not changing them. SAP creates a copy of the table before calling the User Exit function module and passed the copy into the Function Module instead.
    Can anyone here suggest an alternative for me? I need to change the data during 'SAVE'.
    Thanks!
    Regards,
    Alban

    Hi Alban,
    I think u can use the following BAdi's
    CUSTOMER_ADD_DATA   "Additional Data at Customers"
    CUSTOMER_ADD_DATA_CS  "Additional Data at Customers "
    CUSTOMER_ADDRSCR_CHG   "Change Address Screen in 
                            the Master Data Maintenance"
    u can write ur code for updation of tables that u want.
    u have to write this code in method "SAVE_DATA" ,so that
    while saving data after cahnge, it will get called.
    There are many methods u can appropriate method that u think for ur requirement.
    Regards,
    Ranjit Thakur.
    Mark the Helpful Answers.

  • User exit/BADI for changing the exchage rate type in MIGO

    Dear guru's,
    Please help me in finding the user exit/BADI to change the exchange rate type in MIGO.
    Regards,
    Abdul Rahim

    did you check this one MB_GOODSMOVEMENT?
    also exchange rates needs to be changed at Purchase order level and those will be reflected while creating MIGO.

  • Error on reading user exit  EXIT_SAPMF02D_001

    Hello experts,
    Iu2019m working with user exit EXIT_SAPMF02D_001 and need to check certain values which are getting populate in tables I_KNA1 and I_KNVV. I realise these are available within import parameter. When I put a break point then during customer creation/modification before saving all the changes I can come and check all the values within I_KNA1 and I_KNVV but when I tried to write a select using I_KNA1 I get the error saying.
    u201CI_KNA1u201D is not defined in the ABAP Dictionary as a table, projection view or database view.
    Here is my select which gives the above error
      select kunnr ktokd into (v_kunnr, v_ktokd)
        from I_KNA1
           where kunnr = v_kunnr.
      endselect.
    If this is not the way Iu2019m doing in my select to fetch the values from I_KNA1 then how I can get all its values?
    Thanks a lot in advance.

    Hi,
    The importing structure I_KNA1 will contain all the fields available in KNA1. We can directly use I_KNA1-KUNNR and I_KNA1-KTOKD directly. We don't need to fire a select on KNA1 for reading KTOKD value. Just use I_KNA1-KTOKD where ever required.
    Regards,
    Ganga

  • Accessing the Logon User Exit from the Internet using an ITS Service

    I can access the Logon User Exit (EXIT_SAPLSUSF_001) from R/3, but not from the Web using an ITS service. What am I missing in order to access the Logon User Exit from the Web. The ITS service was created from an ABAP screen program.
    Thanks
    david yee

    The SAPGui logon exit is called after successfull authentication has been completed and after a SAPGui session has been attached.
    If you logon via RFC, WebGui, ICM or the Wgate then this exit does not trigger.
    What are you wanting to add to your code after the logon ?
    An solution I have used is to create a wrapper RFC for a BAPI and create a webservice for the wrapper. Before calling the BAPI you can do whatever you want to from a security perspective.
    But for that you need to have an appropriate BAPI...
    Please explain what you want to do and what you would have wanted in the exit. Often there is a better way.
    Cheers,
    Julius
    ps: I moved this to the security forum.

  • Enhancement/Exit for transportation zone while creating/changing customer

    Hi,
    I want Enhancement/Exit for chnging transportation zone while creating/changing customer.

    HI,
    I  used inmplicit enhancement .
    and change kna1-lzone
    but still previous value is store.
    no changes made.
    even i changed
    addr_chg = 'X'.

  • User exit for block changes in PO if movement 101 occured

    Hi,
    Does anyone knows if there is a user-exit to block changes in the items of a PO, if there was a GR (mov 101) for that item (and considering that didn't was a mov 102 for the same item)?
    Thanks,
    Pedro Mariano

    Hi
    Try to Use me Badi ME_PROCESS_PO_CUST
    surya

  • User exit to create template PPM

    Help us to find the User exit to create template PPM.
    The user exit need to have PPM type T so that when production version is CIF to APO , system will create template PPM.
    Regards.

    Please see if the user exits: EXIT_SAPMMDUSER_006 or EXIT_SAPMMDUSER_003 work for you.

  • User exit while creating delivery (VL01N)

    Hi Experts,
    Is there any User Exit, While creating Outbound Delivery with reference to Sales order using VL01N,subitem cannot be created without the related H.Level item.
    So my requirement is:
    Check Higher Level Item (VBAP-UEPOS), If Higher Level Item value is set for an item, ensure that the related item that the Higher Level Item value refers to is also on the same delivery. If not, then issue an error that sub item cannot be created without the related HLI item.
    How to achieve this, Any user exit ? Help will be appreciated.
    Thanks,
    Ranjith.

    Hi,
    You may use Report ZNEGI16 given in below link to find out the user exits and BADIs associated with the above T code.
    How to find BADIs
    Kindly let me know if this was of any help to you.
    Regards,
    Shayeree

  • Do we have a user exit to write some custom code at the R3 Logoff event

    Hi Colleagues,
    is it possible to have some custom code at the Log Off event. I mean when the user logs off from the R/3 system, do we have a user exit to write some custom code at that time?
    Thanks,
    Gaurav

    Hi Venkat,
    I suppose you are aware of the fact that for custom infotype, you need to create custom segment and custom message type. This process can be found at- **************** - Step-by-step guide to ALE and IDOCs
    You need to also know about the change pointer and job scheduling concept for the same. You can refer to this link- Resource Configuration Notes (Sun Identity Manager 8.1 Resources Reference)
    I hope studying these links will make you achieve your goal. All the best
    Tip- Try out each step that has been mentioned these links
    Regards,
    Ajinkya

  • User Exit/BADI to change the Purchase Requisition date,creating threw MD02

    Hi,
    I've a requirement to change the Purchase Requisition creation date.
    I'm using MD02 to create Purchase Requisition.
    Based on the requirement if the available qty is less than the required quantity,we can change Purchase requisition date.
    Please let me know if any BADI's/User Exits we can use for this purpose.
    I've checked EXIT_SAPLMEREQ_010. I've kept debugging point nad i run MD02, but it is not stopping in the exit.
    we are using SAP 4.6c.
    Thanks,
    Adi.

    Hi Experts,
    Could you please give me a suggestion for the above problem???
    Thanks,
    Adi.

  • User Exit/Badi to change the billing plan date when create sale order

    Experts,
    Please advise which user exit/badi can be used to change the billing plan date wen create sale order.
    My requriement is based on some rules to dynamically change the line item billing plan start date and end date when create sales order.
    I tried some user eixt in MV45AFZZ, but the date got revert to the orginal date from billing plan.

    Hi,
      check the include MV45AFZB.
    Thanks & Regards,
    Sateesh.

  • User exit/BADI to change the Accntg doc which gets created during Billing

    I am trying to do the following . Is this possible ?
    When a delivery related billing document is created an accounting document is created in the background , I want to modify the line items in the accounting document, Just before posting the accounting document.
    I am using  exit EXIT_SAPLV60B_008  as suggested but I don't see the accounting line items in any of the internal tables in this exit.
    My accounting document when it gets created looks like this. And I want to modify one of these lines before the document is posted.
    Thanks in advance.
    Regards,
    Ankur Bhandari
    1 01 32517 Jaaaa 3,700.83 USD
    2 50 3100000 MERCHANDISE SALES 3,199.96- USD
    3 40 3100000 MERCHANDISE SALES 160.00 USD
    4 50 3200000 DELIVERY INCOME 132.00- USD
    5 50 3200000 DELIVERY INCOME 10.00- USD
    6 50 2170156 SALES TAX COLLECTED 198.87- USD
    7 50 3400000 WARRANTY INCOME 320.00- USD
    8 15 32517 Jaaaa 3,700.83- USD
    9 40 1117217 RECV. VISA/MCARD Sto 3,700.83 USD
    Any answers on how can I delete line 1 8 and 9 and add another line which balances the amount ?
    Need to do this just before the accounting document gets generated.
    Is this possible ?

    Hi Ajay,
    I just want throw a light on your issue.
    There are couple of other user-exits also available here.
    Just check the required data is available or not?
    EXIT_SAPLV60B_001              User Exit AC Interface (Header Line)               
    EXIT_SAPLV60B_002              User Exit AC Interface (Customer Line)             
    EXIT_SAPLV60B_003              User Exit RW Interface (Cost)                      
    EXIT_SAPLV60B_004              User Exit AC Interface (GL Account Item)           
    EXIT_SAPLV60B_005              User Exit AC Interface (Accruals)                  
    EXIT_SAPLV60B_006              User Exit AC Interface (Tax Line)                  
    EXIT_SAPLV60B_007              User Exit AC Interface (Customer Line)             
    EXIT_SAPLV60B_008              User Exit AC Interface Transfer Tables             
    EXIT_SAPLV60B_010              User Exit Item Table for the Customer Lines        
    Thanks,
    Ramakrishna

Maybe you are looking for

  • Data out of sync

    Hi, we've encountered problem working with kodo within managed environment. It is difficult to reproduce, but here is rough scenario: we have WL 8.1 sp2 that has kodo jca installed. Kodo is not the latest one (3.1.5). We have several process files wi

  • Goods Receipt identification

    Hi Pals, I'm new to join this family. And I need your guidance. I want to download a data which shows the list of all Purchase orders with the Receipts availabe along with the references which can be seen in ME23N. Can any one advice me of how to get

  • Plese help me ! can't open files with double clicking icons...

    at the first, sorry about my English. (i'm japanese and english is my second language so..) anway.... i can't open the files on desk top by double click. if i go to Finder then i can open files... and some files i can open by double click. i download

  • Activity Journal not available in MSA

    Hi, Can someone please advise how to replicate AJs to mobile. Created an Activity Journal Template Type, assigned a Template, released it and I'm able to see the Activity Journal in the Maintain Activities transaction in CRM-Online, using the corresp

  • Displaying HTML Background's in JSP's

    Can anyone help? I have 2 JSP's, called via a servlet. All the code works fine and all I want to do is dislay a background picture. Both JSP's have the same layout, shown below. <html> <head><title>Football</title></head> <body background="../Web%20g