BAPI to Insert new Address entry to a Customer

Hi,
  I am working in ECC 6.0 and i am looking for a BAPI/FM to insert a new Address Entry in ADRC table   by passing address number or customer number as an input parameter to the BAPI...for example Nation = 'A' (Arabic) should be the new entry ... Please help me out in this regard ..
Thanks & Regards,
PSK

Hi,
If i understand your requirement right, i think the BAPI BAPI_BUPA_ADDRESS_ADD will help you add an address against a customer / business partner.
Please check the same, and remember to call BAPI_TRANSACTION_COMMIT after this if you use it.
Hope this helps.
Regards,
Chaitanya

Similar Messages

  • Creation of New fast entry for custom infotype

    Hi all, I need to create new fast entry form my custom 9010 inft.
    What I need to do,? How to create screen for input and how to assign it to transaction PA70.
    Change some modules or what?
    Kind regards.

    to create a new infotype for personnel administration (PA) use transaction PM01.

  • BAPI to insert a new row in the MCHA table

    Hi all,
    I am in search of a BAPI to insert a new row in the MCHA table... with the fields of the materail, plant and batch values.
    Any inputs on this..is highly appreciable...
    thanks in advance...
    regards..
    prathima.

    explore BAPI_BATCH_CREATE

  • BAPI to insert a new row in the AUSP table

    Hi all,
    I am in search of a BAPI to insert a new row in the AUSP table... with the fields of the object and
    characteristic values.
    Any inputs on this..is highly appreciable...
    thanks in advance...
    regards..
    prathima.

    hi,
    from best of my knowledge  here is list of bapi through you can insert ausp table.
    check it.
    CLSE_SELECT_AUSP
    CLVF_INSERT_AUSP
    BAPI_CLASS_CREATE
    C14K_AUSP_CHANGE_VALUE
    CLSE_SELECT_AUSP
    CLVF_UPDATE_AUSP
    C14K_AUSP_ADD_UPD
    BAPI_CLASS_CREATE
    regards,
    vipul

  • Inserting new line item into existing delivery using BAPI

    Hi
    can you send me the code for inserting new line item into existing delivery either using BAPI or
    Function module.
    We are using SAP 4.7 version

    Hi Sreekanth,
    Refer to this links
    New item for outbound delivery via FM/BAPI?
    /message/3976349#3976349 [original link is broken]
    BAPI_OUTB_DELIVERY_CHANGE Help - Add new line item
    hope it is useful to you.
    Regards!

  • Transport request prompted when insert new entries for ADCOMP via SM30?

    When I insert new entries for table ADCOMP via SM30, the system prompts me for a transport request number when I save the entries.  It never asks me the transport no. for any other tables via SM30 edit.  Is it something specific to table ADCOMP?
    The Table Maintenace Generator is delived by SAP with Authorization group assign to VC (SD User Control), will this cause the issue I have here?
    The user is responsible for updating the entries in Production, I had created a Z tcode to run SM30 on this table, at the end, it stills ask for a transport request no. 
    Can someone help me out on this?
    Thanks for your help in advance.

    I had searched OSS notes before I posted my question here.  Note# 726769 mentioned the maintenance view on ADCOMP.  As I mentioned in my last reply, I am NOT going to change anything on ADCOMP, I just create a custom view ZV_ADCOMP on top of it and change the attributes on the custom view.  
    I tried and it seems working.  I can enter data via SM30 on ZV_ADCOMP, it allows me to save the data without a transport request. 
    I think my problem has been solved.  Thanks for Rob and Suhas 's reply.  Points has been rewarded for both.

  • EEWB: Insert New Table with more than one key field  for BP object

    Hi Gurus,
    I want to enhance Business Partner object with a new table with two key fields, one the address number and another a sequence number, because I need to save several entries for each address belonging to a determined business partner. Something as what happens in communication data (i.e fax number)for an address.
    I have run the wizard from EEWB but the only possibility that offers you is to create only one key field for the new custom table. There is something in EEWB to achieve this, two key fields for the new table?
    Another question is the following: which Badi or BAPI must I enhance to populate my table with the corresponding address number to which the data belong to?
    I mean my custom data are filled through a table control that I have allocated within the screen sequence BUA130 (Detail Address). Thus, when a new address is added to a BP and my particular table control is populated within this address I should fill the key fields from my table (address number and sequence number) when the BP were saved. So, I must know beforehand which address number the system will assign to this new address.
    I repeat the question: which Badi or BAPI must I enhance to populate my table with the corresponding address number to which the data belong to?
    Thanks in Advance.
    Regards,
    Rosa Ferrando

    Hi Rosa,
    Please go through the following links. It will help you.
    <a href="http://help.sap.com/saphelp_crm50/helpdata/en/20/a4ffee7e0fcc4ebb7e5466d3903d38/frameset.htm">http://help.sap.com/saphelp_crm50/helpdata/en/20/a4ffee7e0fcc4ebb7e5466d3903d38/frameset.htm</a>
    <b>Reward points if it helps.</b>
    Regards,
    Amit Mishra

  • Inserting new records into database table at runtime

    Hi all ,
    How to insert new records into database table at runtime on click update?
    Thanks.

    Hi Sasikala,
    Just for your understanding am giving a sample code snippet which you can use to read the contents of your Table UI element & save the data on to your database. Suppose you have a button up on pressing which you want to read the data from your screens table & save on to the database then you can proceed as shown below:
    1) Obtain the reference of your context node.
    2) Fetch all the data present in your table into an internal table using methods of if_wd_context_node
    3) Use your normal ABAP logic to update the database table with the data from your internal table
    In my example I have a node by name SFLIGHT_NODE and under this I have the desired attributes from SFLIGHT. Am displaying these in an editable table & the user would press up on a push button after making the necessary changes to the tables data. I would then need to obtain the tables information & save on to the database.
    data: node_sflight           type ref to if_wd_context_node,
            elem_sflight           type ref to if_wd_context_element,
            lt_elements            type WDR_CONTEXT_ELEMENT_SET,
           stru_sflight           type if_main=>element_sflight_node,
           it_flights             type if_main=>elements_sflight_node.
    "   navigate from <CONTEXT> to <SFLIGHT_NODE> via lead selection
        node_sflight_node = wd_context->get_child_node( name = 'SFLIGHT_NODE'  ).
       lt_elements = node_sflight->get_elements( ).
    "   Get all the rows from the table for saving on to the database
        loop at lt_elements into elem_sflight.
          elem_sflight->get_static_attributes( importing static_attributes = stru_sflight ).
          append stru_sflight to it_flights.
        endloop.
    " Finally save the entries on to the database
        modify ZSFLIGHT99 from table it_flights.
        if sy-subrc eq 0.
    endif.
    However a word of caution here.... SAP doesn't ever recommend directly modifying the database through an SQL query. You would preferably make use of a BAPI for the same. Try go through Thomas Jung's comments in [here|modify the data base table which is comming dynamiclly;.
    Regards,
    Uday

  • Help, my new Blog entries, since iLife '08 upgrade, don't show ANY text!

    Ever since upgrading to iLife '08, my new Blog entries do not show any of the text once it is uploaded to the server. In fact, all of my recent Blog entries now have all thier text gone when viewed online. Only Blog pages in "Archives" are still normal. What gives?! They all look good in iWeb, but not live. Thanks for your help. Wayne
    [email protected]

    Hi Cedric. I went ahead and took down all recent changes to my site, and then just re-uploaded my last good set-up from iLife 2006. I think iLife 2008 changes how blog pages are addressed. As an example, my two most recent good entries show on the web as:
    http://waynelhenderson.com/Blog/693901ED-99E6-42D3-8AA9-7F8338989B47.html
    http://waynelhenderson.com/Blog/629035FF-E021-4B9D-AFE5-D091583E0676.html
    Notice the long string of numbers, letters, and dashes, after the word /Blog/? My iWeb in iLife 2008 no longer puts those types of strings at the end of /Blog/. Instead, the Blog web entries show as:
    http://waynelhenderson.com/Blog/Entries/2007/10/26Tuning_In_With_Wayne_Henderson_podcast_39_%26_40%2C_by_Wayne_Henderson_Voice-ove rs(206)984-1446iPhone_GreenpeacePackers!.html (before I took it down because it wasn't working right).
    Could the fact that instead of the string of number, letters, and dashes after /Blog/, my iLife '08 uses "/Blog/Entries/2007/10/26_Tu....etc" have anything to do with my problem of text not showing?
    I've always used the same fonts, sizes, and colors. But now it's not working. What is weird, however, is that if I did Select All, and Copy and Paste the web page contents onto Notepad...the text IS THERE...just not showing on the web.
    Argh!
    Wayne

  • Cannot add a new SHIP_TO address to a exist customer by using Interface

    Hi,
    I am encountered an error when i am using Customer Import Interface to add a new SHIP_TO address to a exist customer,
    the template format of the Excel i used like below: <will insert to table: ra_customers_interface_all>
    Customer Num. | Customer Name | Site Name | Address | Site Use Code | ... ...
    1 | oracle | AA | address1 | BILL_TO |... ...
    1 | oracle | AA | address1 | SHIP_TO |... ...
    1 | oracle | AB | address2 | SHIP_TO |... ...
    I am able to import top 2 rows correctly, as those 2 sites with same Site Name AA;one is BILL_TO site and another one is SHIP_TO address; I tested for few customers, it can run correncty if the BILL_TO address and SHIP_TO address are same.
    But when running import for the third row to add another SHIP_TO address<AB&address2> to the exist customer<1&oracle>,the error raised, it gave error message like below:
    The Customer Number has been used by another customer,import failed !
    I am not too clear about this error,i just want to add a SHIP_TO address to the exist customer<1&oracle> and don't want to create a new customer.
    what should i pay attention to? please give me some tips,,,,,,
    Thanks a lot...
    Rock Lei

    Did you ever get a response or resolution? I have the same issue. Did you get a fix for this? If so, could you share?
    Thanks

  • XSLT - inserting new line character

    Hi, hoping somebody could help me please.
    I'm attempting in 10g to convert a XML purchase-order with multiple detail lines to a CSV delimited output using an XSLT to undertake the transformation. Each line of the purchase-order, namely the header and each detail line must go on separate lines within the CSV file. This means each line must be clearly terminated with a CR-LF.
    While I can happily convert the XML purchase-order to CSV format, my experiments in inserting a CR-LF have failed, resulting in all lines collapsed onto one large line.
    According to various sources on the Net, inserting the following entry in my XSLT file should generate the new line that I'm looking for:
    <xsl:text>ampersand#xa;</xsl:text>(In the above code replace the text "ampersand" with an actual & - I'm unable to display the proper ampersand hash value xa as this HTML page renders it as newline character)
    However with no success.
    The sample program below shows the conversion process. Anybody any idea on why I'm not seeing the output with new lines?
    Your help appreciated.
    CM.
    DECLARE
    v_xml XMLType;
    v_xml2 XMLTYPe;
    v_xslt XMLType;
    BEGIN
    v_xml := XMLType(
    '<?xml version="1.0" encoding="UTF-8"?>
    <PurchaseOrder xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.xxxx.com.au/schemas/gatewayPurchaseOrder.xsd gatewayPurchaseOrder.xsd"
    xmlns="http://www.xxxx.com.au/schemas/gatewayPurchaseOrder.xsd">
    <Header>
    <GatewayPurchaseOrderNo>1234</GatewayPurchaseOrderNo>
    <PharmacyReference>2345</PharmacyReference>
    </Header>
    <Detail>
    <ProductNo>9876</ProductNo>
    <APNNo>7654</APNNo>
    </Detail>
    <Detail>
    <ProductNo>8888</ProductNo>
    <APNNo>7777</APNNo>
    </Detail>
    </PurchaseOrder>');
    v_xslt := XMLType(
    '<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns="http://www.xxxx.com.au/schemas/gatewayPurchaseOrder.xsd">
    <xsl:output method="text"/>
    <xsl:template match="/PurchaseOrder/Header">
    <xsl:value-of select="normalize-space(GatewayPurchaseOrderNo)"/>,<xsl:value-of select="normalize-space(PharmacyReference)"/>
    <xsl:text>ampersand #xa;</xsl:text>
    </xsl:template>
    <xsl:template match="/PurchaseOrder/Detail">
    <xsl:value-of select="normalize-space(ProductNo)"/>,<xsl:value-of select="normalize-space(APNNo)"/>
    <xsl:text>ampersand#xa;</xsl:text>
    </xsl:template>
    </xsl:stylesheet>');
    v_xml2 := v_xml.transform(v_xslt);
    dbms_output.put_line(v_xml2.getclobval);
    END;(In the above code replace the text "ampersand" with an actual & - I'm unable to display the proper ampersand hash value xa as this HTML page renders it as newline character)

    I don't know much about XSLT yet, but tickeled by the problem, after wandering over the internet and found stuff like this - http://forums.devshed.com/xml-programming-19/cannot-output-crlf-xslt-348042.html - I constructed the following...
    SQL> set serveroutput on size 50000
    SQL> DECLARE
       v_xml XMLType;
       v_xml2 XMLTYPe;
       v_xslt XMLType;
    BEGIN
       v_xml := XMLType(
          '<?xml version="1.0" encoding="UTF-8"?>
          <PurchaseOrder xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://www.xxxx.com.au/schemas/gatewayPurchaseOrder.xsd gatewayPurchaseOrder.xsd"
             xmlns="http://www.xxxx.com.au/schemas/gatewayPurchaseOrder.xsd">
             <Header>
                <GatewayPurchaseOrderNo>1234</GatewayPurchaseOrderNo>
                <PharmacyReference>2345</PharmacyReference>
             </Header>
             <Detail>
                <ProductNo>9876</ProductNo>
                <APNNo>7654</APNNo>
             </Detail>
             <Detail>
                <ProductNo>8888</ProductNo>
                <APNNo>7777</APNNo>
             </Detail>
          </PurchaseOrder>');
          v_xslt := XMLType(
             '<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:xs="http://www.w3.org/2001/XMLSchema"
                xmlns="http://www.xxxx.com.au/schemas/gatewayPurchaseOrder.xsd">
             <xsl:output method="text"/>
             <xsl:template match="/PurchaseOrder/Header">
                <xsl:value-of select="normalize-space(GatewayPurchaseOrderNo)"/>,<xsl:value-of select="normalize-space(PharmacyReference)"/>
                <xsl:text>AMPERSAND#xa0;AMPERSAND#xa;</xsl:text>
             </xsl:template>
             <xsl:template match="/PurchaseOrder/Detail">
                <xsl:value-of select="normalize-space(ProductNo)"/>,<xsl:value-of select="normalize-space(APNNo)"/>
                <xsl:text>AMPERSAND#xa0;AMPERSAND#xa;</xsl:text>
             </xsl:template>
             </xsl:stylesheet>');
       v_xml2 := v_xml.transform(v_xslt);
       dbms_output.put_line(v_xml2.getclobval);
    END;
    SQL>
    1234,2345
    9876,7654
    8888,7777
    PL/SQL procedure successfully completed.So first one space and then the CR-LF.
    Hope this helps?
    Message was edited by:
    mgralike

  • Transfer Address Data to A new Address

    Hi all,
    Is there a function module or BAPI that transfers the address data of an existing address to a new address?
    Your help will be much appreciated!
    Thanks!

    Whose address??
    Is it the address of a customer /vendor?
    try BAPI_BUPA_ADDRESS_CHANGE   Change BUsiness Partner's address
    BAPI_ADDRESSEMP_CHANGE         Change Employee Address
    BAPI_ADDRESSPERS_CHANGE        BAPI for Changing Personal Addresses
    BAPI_ADDRESSCONTPART_CHANGE    BAPI to change contact person addresses

  • Change the field 'StornoToTr' in new journal entry.

    6.50.098 SP:01 EF:14
    Hi,
    When I reverse (Cancel) a journal entry (Storno), I create a new one with
    opposite values and then I insert it (with oJournalEntries Object). But in table 'OJDT' the field 'StornoToTr' in new journal entry, must be changed with transID of cancelled Journal Entry.
    How can I do that with 'oJournalEntries' Object?
    Best Regards,
    Ricardp Pereira

    hi,
    Here is a nice piece of code that set the journal entries for reversal on a certain date. So when a user logs into B1 on that date they will be shown a list of journal entries that are scheduled to be reversed. The user click execute and the journal entries are revered and the functionality you are looking for will be implemented.
    Dim journal As SAPbobsCOM.JournalEntries                             
    journal =                                                            
    oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oJournalEntries)                                                                               
    If journal.GetByKey("665") = True Then                                                                               
    journal.StornoDate = "1/11/04"                           
                journal.UseAutoStorno = SAPbobsCOM.BoYesNoEnum.tYES      
                lErrCode = journal.Update()                              
                '// Check for errors d                                   
                oCompany.GetLastError(lErrCode, sErrMsg)                 
                If lErrCode <> 0 Then                                    
                    MsgBox(sErrMsg)                                      
                End If                                                   
            End If                                                       
    Its an alternative way to reverse journal entries.
    Thanks,
    Cormac

  • How to replicate the old address communication data into new address commun

    Hi All,
    In SAP R/3   4.7
    T.code: BP or FPP1
    Business partner have address with telephone, fax and email details, now I want to add another (new) address with same telephone number, fax and email with out copy and paste.
    When I click u2018createu2019 on address overview screen, the existed telephone number, fax and email fields data should be popup or appear in same filed in the new address screen.
    May i know standard sap user exit, BADI or BAPI.
    Thanks
    Venkat.

    Open the newly created address book. Click on one contact to select it. Hit control+a to select them all. Drag and drop them on the personal Address Book folder to move them there.

  • Insert new line items in Delivery

    Hello All,
    Is there any BAPI or FM in which i can add new line item in SD delivery vl01n? The new line item will not be there in SO , but i want it in delivery. Manually i can insert new line item using VL01n , but i need FM to do the same.
    Thanks

    Hello,
    I need a Bapi or FM through which i can add new line item in delivery , maybe while creation of delivery or changing the delivery i.e. via VL01n or Vl02n. The new item will not be there in SO. It is a non valuated material.
    Helpful answers will be rewarded.
    Thank you

Maybe you are looking for

  • My bluetooth is not working how do i get it working

    how do i get my bluetooth working on the i phone 4

  • Why is exporting an iMovie to iDVD so difficult?

    Hi, I prepared an iMovie, chapter markers and all, then went menu Share -->iDVD, and after two hours of churning away iDVD opened up all by itself, and, voila, everything was there... EXCEPT that all the scenes had little yellow warning triangles tel

  • Create mail form in CRM

    Hello everyone, I'm trying to create new mail form in the CRM (tran " CRMD_EMAIL")  with new structure that we defined. The problem is that we can't find a way to fill it with our data. To be more specific: when I create the form, the fields that we

  • EasyIn

    I am new to java and trying to get input from the console. Previoud method was to use BufferedReader and get string input first and convert it to int. Now i see this EasyIn.getInt(), getChar(). I do not know how to use these methods. Do i need to ove

  • How to Group itab values....

    Hi Experts, I have created  a report and inserted into itab. The values are Matkl      Pend.Qty.  Pend Value. ========================= SPG           5              100.00 SPG          3               300.00 SRG          2              300.00 SRG