Partner Address NUmber Creation..

Hi Guru's,
   I have a little problem on creating the partner address number..
My requirment is to create address number for any partner number like 'ship to party'.i am using a custom bapi for sales order creation creation which is working fine....
My problem is i need to give partner address number'ADRNR' in 'partners' ( table parameter).
currently if i will give all the address informations.the bapi itself creating the address number internally....and it is reflecting in 'order_keys' parameter
i want to give the address number externally.as i need to pass  only address number 'ADRNR'to the bapi.,so that it will retrive all the address informations what i have created for address number creation.
Its urjent...help..
Commited with Full reward points ...
Sakti
[email protected]

Hi,
  Thanks for ur help.
But ..i require to create externally...because..i need to create single delivery for dwo diffrent line items.those line items have all the inputs same...but it is creating different deliveries.as bapi is considering the same ship to party address for both the line items as different...for that issue..i have tried with putting previously created address number manually....in the partners parameter of bapi...ex:..if i am putting same address number for two different..line items of same values ( same address)...it is creating one delivery which is my requirment....but for the next line item with different shipping address i need to pass different address number....
for this only i need to create externally address number which will populate address information from that 'partners' parameter before entering into the 'sd_sales_document_create'...and i can pass only the partner address number into it...means both of the two line items.....
Do you have any idea...regarding thia..
i am giving you  * points.
now..for your hepl..
try for this if you can...
more points waiting for ...
Thanks
SAKTI

Similar Messages

  • Regarding address number of a partner in a sales order

    Dear All,
    I have one doubt in creting sales order.
    When creting sales order we provide the partners data like name, address,tel no etc.When we saved it does the system automatically generates the address number or we need to generate it.

    hi shoban,
                    When you create a sales order with the details of the partners, the address number is generated automatically...
    thanks
    nayan
    Reward Points If Useful

  • Error message - Specify either address number or address handle

    Hi all,
    When I tried to display an outbound delivery, there is a status message which says 'Specify either address number or address handle'.
    Please let me know the reason for the above.
    Thanks and regards,
    Anishur

    Hello Anishur
    Today I have received the same error message while processing an inbound ORDERS IDoc. The error is due to the partner segments E1EDKA1 which contained:
    PARVW     AG
    ILNNR     SHOPS02020001
    PARVW     WE
    ILNNR     SHOPS02020001
    When I changed the data in this segments as shown below it works:
    PARVW     AG
    LIFNR     SHOPS02020001
    PARVW     WE
    LIFNR     SHOPS02020001
    Regards
      Uwe

  • Update shipment partner address E1ADRM4 & BADI_LE_SHIPMENT

    Hi,
    We want to update an existing shipment with updated detailed address information from an incoming Idoc from the forwarding agent. The idea is to replace the generic phone, email, name etc. with the specific clerk handling this shipment.
    We are on release 6.02, so OSS note 982041 is in. Still, I can not get the data on the E1ADRM4 segment to do any updates.
    As an alternative plan, I am looking into BADI_LE_SHIPMENT. By setting a breakpoint in FM SD_PARTNER_ADDRESSES_TO_DB, I have studied how a manual change in VT02N affects the address update. When the shipment is created, the adress number from the Vendor master is copied to the shipment. When I change the address, a new 90* number is created. I replicated the update flag (UPDKZ) in both VBPA and VBADR level, but to no avail. This is the current code. A new 90* address number is assigned, but it does not contain any address data ...
    method if_ex_badi_le_shipment~at_save.
      data : ld_e_mail(70) type c.
      data : ld_name_co(40) type c.
      data : ld_telephone1(30) type c.
      data : ls_vbpa type vbpavb.
      data : ls_vbadr type sadrvb.
      clear : ld_e_mail, ld_name_co , ld_telephone1.
    import from memory id. EXPORT done in edi program zxtrku09
      import e_mail to ld_e_mail from memory id 'Z_E1ADRM4'.
      import name_co to ld_name_co from memory id 'Z_E1ADRM4'.
      import telephone1 to ld_telephone1 from memory id 'Z_E1ADRM4'.
    ld_e_mail = 'Email'.
    ld_name_co = 'Ole Elmose'.
    ld_telephone1 = '555.555 1111'.
      if not ( ld_e_mail is initial
      and ld_name_co is initial
      and ld_telephone1 is initial ).
        cha_shipments_at_save-old_vbpa[] = im_shipments_at_save-old_vbpa[].
        cha_shipments_at_save-new_vbpa[] = im_shipments_at_save-new_vbpa[].
        cha_shipments_at_save-old_sadr[] = im_shipments_at_save-old_sadr[].
        cha_shipments_at_save-new_sadr[] = im_shipments_at_save-new_sadr[].
    Get shipment partner data
        read table cha_shipments_at_save-new_vbpa
        with key parvw = 'SP'
        posnr = '000000'
        into ls_vbpa.
    Get shipment address data
        read table cha_shipments_at_save-new_sadr
        index 1
        into ls_vbadr.
        case ls_vbpa-adrda.
          when 'D'.
    First change from Vendor master adress
            ls_vbadr-telf1 = ld_telephone1.
            ls_vbadr-email_addr = ld_e_mail.
            ls_vbadr-updkz = 'I'.
           ls_vbadr-addr_renumbered = 'X'.
            ls_vbadr-adrnr = 'SP  $00000'.
            append ls_vbadr to cha_shipments_at_save-new_sadr.
            loop at cha_shipments_at_save-new_vbpa
            into ls_vbpa.
              ls_vbpa-updkz = 'U'.
              ls_vbpa-adrnr = 'SP  $00000'.
              ls_vbpa-adrda = 'E'.
              modify cha_shipments_at_save-new_vbpa
              from ls_vbpa index sy-tabix.
            endloop.
          when 'E'.
    Change an already changed (90*) address number
            ls_vbadr-telf1 = ld_telephone1.
            ls_vbadr-email_addr = ld_e_mail.
            ls_vbadr-updkz = 'U'.
            modify cha_shipments_at_save-new_sadr
            from ls_vbadr index 1.
            ls_vbpa-updkz = 'U'.
            modify cha_shipments_at_save-new_vbpa
            from ls_vbpa index 1.
          when others.
        endcase.
      endif.
    endmethod.                    "if_ex_badi_le_shipment~before_update
    Anyone who have succeeded in updating shipment address either from Idoc or BADI ?

    Hi,
    Yes and no.
    I tried hard with several alternatives, but never got the partner update to work. The workaround was to write the updated information in a new dedicated shipment text field in ZXTRUKU11. Specific qualifiers are used if just part of the updated address is avaialble. The E-mail is checked as in the Vendor master.
    Then this text is read in similar way in ZXTRKU02 for the EDI output.
    CLEAR ls_idoc_data.  CLEAR gs_emaildata.
    gs_emaildata-type = 'INT'. " Address type is E-mail
    LOOP AT all_idoc_data INTO ls_idoc_data
    WHERE segnam = 'E1ADRM4'.
      gd_tabix = sy-tabix.
      MOVE ls_idoc_data-sdata TO str_e1adrm4.
      CHECK str_e1adrm4-partner_q = 'SP'. " Forwarding agent
    * Validate mail formatting
      IF NOT str_e1adrm4-e_mail IS INITIAL.
        MOVE str_e1adrm4-e_mail TO gs_emaildata-address.
    * Use same validation as in partner maintenace
        CALL FUNCTION 'SX_INTERNET_ADDRESS_TO_NORMAL'
          EXPORTING
            address_unstruct    = gs_emaildata
          EXCEPTIONS
            error_address_type  = 1
            error_address       = 2
            error_group_address = 3
            OTHERS              = 4.
        IF NOT sy-subrc IS INITIAL.
          CLEAR str_e1adrm4-e_mail.
          MOVE str_e1adrm4 TO ls_idoc_data-sdata.
          MODIFY all_idoc_data FROM ls_idoc_data INDEX gd_tabix .
        ENDIF.
      ENDIF.
    * Save updated address data in text object ( Ignore existing)
      CLEAR ls_lines.  CLEAR lt_lines.
    * Add name to text ID with qualifier QN
      IF NOT str_e1adrm4-name_text IS INITIAL.
        CONCATENATE gc_qual_name   " Qualifier for name: QN:
        str_e1adrm4-name_text
        INTO  ls_lines-tdline
        SEPARATED BY space.
        ls_lines-tdformat = gc_star_format.
        APPEND ls_lines TO lt_lines.
        CLEAR ls_lines.
      ENDIF.
    * Add Telephone to text ID with qualifier QT
      IF NOT str_e1adrm4-telephone1 IS INITIAL.
        CONCATENATE gc_qual_phone   " Qualifier for telephone: QT:
        str_e1adrm4-telephone1
        INTO  ls_lines-tdline
        SEPARATED BY space.
        ls_lines-tdformat = gc_star_format.
        APPEND ls_lines TO lt_lines.
        CLEAR ls_lines.
      ENDIF.
    * Add E-mail to text ID with qualifier QM
      IF NOT str_e1adrm4-e_mail IS INITIAL.
        CONCATENATE gc_qual_email   " Qualifier for mail: QM:
        str_e1adrm4-e_mail INTO  ls_lines-tdline
        SEPARATED BY space.
        ls_lines-tdformat = gc_star_format.
        APPEND ls_lines TO lt_lines.
        CLEAR ls_lines.
      ENDIF.
      CLEAR  ls_header.
    * Get shipment number
      READ TABLE all_idoc_data INTO ls_idoc_data
                          WITH KEY segnam = 'E1EDT20'.
      MOVE ls_idoc_data-sdata TO str_e1edt20.
      ls_header-tdobject  = 'VTTK'.              " Shipment
      ls_header-tdname    = str_e1edt20-tknum.   " Shipment #
      ls_header-tdid      = gc_address_tdid.     " Z016 - Text for DSP address details
      ls_header-tdspras   = 'EN'.
      CALL FUNCTION 'SAVE_TEXT'
        EXPORTING
          client          = sy-mandt
          header          = ls_header
          insert          = 'X'
          savemode_direct = 'X'
        TABLES
          lines           = lt_lines
        EXCEPTIONS
          id              = 1
          language        = 2
          name            = 3
          object          = 4
          OTHERS          = 5.
    ENDLOOP.
    - Sorry for the mess, but can't get any markup to work ....

  • Restricting the partner address change in both VA01 & VA02

    Hi All,
    In Sales Order Creation / Change i need to make the partner address fields editable but want a restriction on save.
    For that i am doing the following:
    Change:
    This is possible by restricting the update comparing YVBPA & XVBPA table using parameter UPDKZ.
    Create:
    In the create scenario YVBPA table remains empty.Are there any other tables I should look at to restrict this address data change?
    However, there is a table XVBADR , changes to which do not influence the final display address.
    Alternatively , do we have an alternative approach to restrict the partner address change in both VA01 & VA02?
    Thanks in advance!!!
    Regards,
    AP

    Resolved by using YVBPA & XVBPA tables.

  • New ADRNR  (address number ) created for Every Purchase Order

    Hi Friends,
    Whenever I create a Purchase Order, I can see that in EKKO there is a new address number updated which is unique for every PO. This address is copy of the vendor address but the address number is different. The effect of this is that my PO is blocked in GTS since the Flag for manipulated in the partner of the API.
    Now my question is why does the system create a new address number for every Purchase order. For some Purchase order this is not happening.
    Thanks for your help in advance.
    Regards,
    Vijay V

    Hi,
    Good to know this. But then how does GTS (SPL check) system identify this dynamically created address. Must this not be passed to the GTS system by writing it in the user exit or is there some other standard way of doing this.
    But we are not entering the address manually in these POs.
    Also some POs that are not for One time Vendor is also having an address entry in the EKKO table. SO it is not only for OTV POs.
    Regards,
    Vijay V
    Edited by: Vijay Venkataraman on Jan 13, 2011 4:35 PM
    Edited by: Vijay Venkataraman on Jan 13, 2011 4:41 PM

  • New Document Address Number

    Hi All-
    We are on SRM 5.0, SP6 Ext classic scenario. Every time we create a Shopping cart with an existing Ship to Address number, the system generates a new document address number in SRM even though the address number and the address already exist in SRM.
    I am not sure if this happens standard in SRM 5.0 or is it due to some custom development on our system. I am aware that this was an old Issue and there were OSS notes related to it:
    Note 570543 - Creation of document addresses
    Note 718206 - Copy template: New address number for delivery address
    Can somebody confirm if they are seeing the same behaviour on their SRM 5.0 system? If yes, i can go ahead and create an OSS message and keep you guys updated.
    Thanks,
    Sundeep

    Hi Sundeep,
    We are using SRM 5.0 , SP7 and it is not creating new address number whenever we create new shopping cart.
    But it is creating new address numbers whenever some changes were made to the business partners.
    Rgds,
    Teja

  • ABAP query using IHPA--need partner address

    I am using SQ01 to create a query.  I amusing the EQUI and IHPA.  I need the partner address for Partner function = EC.  I have the parner number but not the address number, so I cannot join to table ADRC.

    Hi Priyank,
    First you need to check whether all the required fields are available there in the LDB PNPCE(I guess you are using the same).
    I think old department, old division must not be available there. Then you need to add it in your Infoset and write custom code for these fields. Once you are done with custom coding, you can use this infoset for creating queries.
    Use trnx SQ02 to create queries, either SAP or Infoset.
    Hope it helps. Let me know if you need some more help.
    Raveesh

  • Problem while creating the Partner Address in CRM

    Hi,
       We are facing one problem while creating the new address for the Business Partner.
       When ever customer wants to change the address : we are following one process : where we are      
       using 'BAPI_BUPA_ADDRESS_ADD' functin module. Becuse of this , new addrss number will be generated for the 
      corresponding account in BUT021_FS table.But this table contains old address number as a first record, so that when ever
      we display the partner address in UI, it is displaying the old address only because first entry of the the table 'BUT021_FS'
      contains the old address number.
      Because of this , we are getting lots of complaints regarding this.
    Can you please help on this ASAP.
    Thanks & Regards
    Pradeep.

    Try BAPI_BUPA_ADDRESS_CHANGE  for address change followed by BAPI_TRANSACTION_COMMIT . It works.

  • Address number , person number and address type in Ship to address

    HI All,
    We  are working on SRM 6.0.
    In our system we have ship to address as partner function 27 in  shopping cart line item  .
    If all the line items in the same shopping cart have same address  then also we are getting different  address number , person number and address type in the partner functions of SC line items.
    In ship to partner function,  how the address number , person number and address type is decided?
    Your inputs will be valuable for us.
    Thanks
    Snehal

    Hi
    Ship to address no is set up at company level - you can also create a ship to address and you can main in the attribute ship to address.
    if you enter the ship to address manually then new address number might be created.
    What is the setting in your existing system.
    for eg. create a sc with 2 line item  let one from inherited ship to address and anothe ritem you undo them and enter new address.
    and click partner function 27 for line item 1 and 2 in the bbp_pd and it takes you to crmd_partner table and show you different address no.
    br
    muthu

  • Updation of partner address data in sales order

    Hi,
       I am trying to create a sales order using an Idoc of the message type ORDERS.
       Within this Idoc, the street number for the Sold-to partner is blank.
       However, by the time the Idoc is processed and the order is created, the street address
       for the Sold-to partner gets picked up from the customer master where this field is not
       blank for the partner.
       Is there any way to avoid this so that the sales order reflects the partner address
       details as it is in the IDoc and this street address remains blank.
    Regards,
    Sudeep

    Hi Sudeep,
    You could try the below solution(as i cant think of a straight forward solution) to this.
    Export the value of street in one of the customer exits in IDOC_INPUT_ORDERS, and then implement the implicit enhancement option in the FM "SD_PARTNER_READ", in this enhancement import the value that you earlier exported, if the import succeeds then the call is via "IDOC_INPUT_ORDERS"(hence this enhancement will not affect dialog users/other interfaces), then check if the imported value is blank, if so then clear the value in I_XVBPA.
    Note: If the program doesnt get into SD_PARTNER_READ, the you can try with user exit for VBAP/save_document_prepare.
    Regards,
    Chen

  • VA01 user exit at line item with partner address

    I need a user exit for VA01 that is at the line item level.  The catch is I also need access to the partner address data.  I have found userexit_pricing_prepare_tkomk (include MV45AFZZ) but that doesn't give you the "instance" address information (the address data that is specific to that order, after being changed).  It only gives you the address number for the partner's default address.
    Does anybody know if such an exit exists?
    Regards,
    Aaron

    Hi Aaron,
    I had a similar requirement Long back & This was my code I written. Hope this helps you.
    *  Extract and Update field for partner-id - Goods Supplying vendor
      CLEAR TKOMK-Y_GSVN.
      PERFORM XVBPA_LESEN(SAPFV45K) USING 'WL'  VBAP-POSNR SY-TABIX.
      IF XVBPA-UPDKZ <> 'D'.
        TKOMK-Y_GSVN = XVBPA-LIFNR.
      ENDIF.
      PERFORM XVBPA_LESEN(SAPFV45K) USING 'ZP'  VBAP-POSNR SY-TABIX.
      IF XVBPA-UPDKZ <> 'D'.
        TKOMK-BSART = 'ZIN'.
        SELECT SINGLE LAND1 FROM LFA1 INTO TKOMK-Y_COMM_CTY  WHERE LIFNR = XVBPA-LIFNR.
      ENDIF.
    FORM XVBPA_LESEN USING US_PARVW US_POSNR US_TABIX.
    DATA: DA_VBADR   TYPE   VBADR.
    DATA: DA_VBPA    LIKE   XVBPA.
    CLEAR DA_VBPA.
    READ TABLE XVBPA INDEX 1 INTO DA_VBPA TRANSPORTING VBELN.
    XVBPAKEY-MANDT = VBAK-MANDT.
    XVBPAKEY-VBELN = DA_VBPA-VBELN.
    XVBPAKEY-PARVW = US_PARVW.
    XVBPAKEY-POSNR = US_POSNR.
    READ TABLE XVBPA WITH KEY XVBPAKEY.
    IF SY-SUBRC > 0.
       XVBPAKEY-POSNR = POSNR_LOW.
       READ TABLE XVBPA WITH KEY XVBPAKEY.
    ENDIF.
    IF SY-SUBRC > 0.
      CLEAR XVBPA.
      IF  US_PARVW = 'WE'.
        CLEAR KUWEV.
      ENDIF.
      IF  US_PARVW = 'RG'.
        CLEAR KURGV.
      ENDIF.
    ENDIF.
    US_TABIX = SY-TABIX.
    * CAM is not activated
    IF ZAV_FLAG IS INITIAL.
      IF NOT XVBPA-ADRNR IS INITIAL.
        CLEAR XVBADR.
        XVBADR-ADRNR = XVBPA-ADRNR.
        READ TABLE XVBADR.
        IF SY-SUBRC > 0.
          CLEAR XVBADR.
        ENDIF.
      ENDIF.
    * CAM is activated
      ELSE.
    *if there is an address
        IF NOT XVBPA-ADRNR IS INITIAL.
    *clear address data
          CLEAR XVBADR.
    *try to read address in internal table XVBADR
          READ TABLE XVBADR WITH KEY ADRNR = XVBPA-ADRNR  ADRNP = XVBPA-ADRNP.
    *if address is not in internal table XVBADR
          IF SY-SUBRC NE 0.
    *read address in CAM tables
       CALL FUNCTION 'SD_ADDRESS_GET'
          EXPORTING
            FIF_ADDRESS_NUMBER    = XVBPA-ADRNR
            FIF_PERSONAL_NUMBER   = XVBPA-ADRNP
            FIF_ADDRESS_INDICATOR = XVBPA-ADRDA
          IMPORTING
            FES_ADDRESS           = DA_VBADR
          EXCEPTIONS
            OTHERS                = 4.
            IF SY-SUBRC EQ 0.
              MOVE-CORRESPONDING DA_VBADR TO XVBADR.
              APPEND XVBADR.
            ELSE.
              CLEAR XVBADR.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDFORM.
    Thanks & Regards,
    Dileep .C

  • Find the SetCurrentLine in Business Partner /Addresses/ billing address

    I am using B1 2004.2 B
    In this below example:
                oBp.Addresses.SetCurrentLine(0)
                oBp.Addresses.AddressType = BoAddressType.bo_BillTo
                oBp.Addresses.AddressName = "Test1"
                oBp.Addresses.Add()
                oBp.Addresses.SetCurrentLine(1)
                oBp.Addresses.AddressType = BoAddressType.bo_BillTo
                oBp.Addresses.AddressName = "abc"
    My requirement is to synchronies the BP master with another database.
    I have some issues in Business Partner /Addresses/ billing address.
    How to find the SetCurrentLine in  oBp.Addresses.SetCurrentLine(XYZ)?
    I see a Line number in CRD1 table, is that refers to the line number which I can use in oBp.Addresses.SetCurrentLine(xyz) ?
    I tried it but it fails, the line number is based on the order in which the records are displayed in the BP/Addresses/ billing address Screen.
    For example:
    Address          Linenum
    Abc               1
    Test1               0
    In the above example “Test1” is added first and “Abc” is added second.
    So the line number is 0 and 1.
    When the records are displayed in BP/Addresses/ billing address Screen,
    it displayes “Abc” first and “Test1”as second record.
    So according to the screen display the “Abc” is line 0 and “test1” is line 1.
    But in the database the values are vice versa. So when I want to update the
    Values using the DIAPI , I need to know the value for SetCurrentLine(XYZ)
    How can I find it?

    Line number in CRD1 table has nothing to do with SetCurrentLine.
    SetCurrentLine index depends on the order of
    the records displayed in BP/Addresses/ billing address Screen, which is sort by
    Name.

  • Full Equi address data by Address number via RFC

    Hi, I'm programming in an SAP ERP system, and try to get some equipment releated information from a partner IS-U system. In particular I would like to get an equipments full address data from the IS-U system. Now, I found the BAPI with function module BAPI_EQUI_GETDETAIL which already provides me with the address number of the equi in IS-U, but so far no luck to find some RFC enabled function module (or the like) to get the full address for this address number. On the other hand, this equi is bult into a functional location. But the situation is similar here: I can make it to an address number of that functional location, but did not find a way to translate that adress number to the full address date. Somebody around who knows [a|the] solution for this problem? My other way would be to write an RFC enabled function module myself, but I would be happy not to need to... Thanks, kind regards, Holger

    Hi Holger,
    You can try ADDRESS_GET_DATA, it's RFC enabled and part of the Basis component (so should be in your IS-U system).
    However, the prefix of the description reads 'obsolete', so I'm assuming there's a replacement for it out there somewhere.
    Regards,
    Nick

  • How to get the service address from service address number

    Hi, IS-U Gurus:
    I got the service address number by passing business partner number to  BAPI 'BAPI_ISUPARTNER_GETDETAIL'
    On return table of "bapiisubpa", the first field is service number, but what we need is service address,
    How can I get the service address from service number ?
    Thanks in advance.
    Liang
    Edited by: Liang Ji on Apr 27, 2009 6:57 PM

    hi
    are u looking for business partner address?
    if so u can ref table but020, get its bp no. and then refer table but000 for its address.
    Regards,
    Sumedha

Maybe you are looking for

  • Mail wont display messages, says "sorting messages"

    Hello, I have OS X 10.3.9 on a MDD dual 1ghz with 768mb of ram. My mail program used to work and now when I try and open the Mail program it opens and doesn't display any messages. What it does say, is "1746 messages - sorting messages". and that lit

  • HP Photosmart C4480 through Time Capsule

    I have a Vista machine and my wife has a Macbook Pro she just got. We both wanted to share a wireless printer so the guy at the apple store suggested we get the Time Capsule and the HP Photosmart (actually we got the 100 off printer deal so we got th

  • Scenario-4....Project release

    Dear Experts, For ex:u2026I want to control my Project release. The projects should allow to release when: Costplanu2026u2026.completed Revenue plan u2026u2026completed Budgetu2026u2026u2026..Provided(Costplan replica). How I can reach this req: Is i

  • Is there a way to schedule a report in Ops Center 12c on SMF services chang

    We are looking for a way to report on Solaris SMF changes (needed for PCI DSS). for example: If telnet service is enabled or disabled. We are using Enterprise Manager Ops Center 12c which alerts on SMF changes. but we would like to baseline the SMF e

  • Best SSD upgrade for macbook pro 2011 13"???

    Hello all, I have a early 2011 macbook pro with 8gb ram, my question is what is the best ssd to upgrade the hdd from, I know the samsung 830 series is good and is the preferred choice for some people, and the crucial m4 is a good choice too, but has