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.

Similar Messages

  • Business Partner Address not populating

    Hi,
    The Business partner address field is not getting populated properly. We did a full load last week and still we could not see those addresses for certain business partners. However we were able to see the addresses in RSA3 and PSA too but not in the InfoObject. Can anyone throw a light on this issue. Anything will be highly appreciated.
    Thank You,
    Kishore
    Edited by: Mayank Agrawal on May 11, 2010 10:41 PM

    Hi,
    As the data is getting populated successfully till PSA there should be no problem with the datasource.
    Now, if you are using 3.X, then check for the transfer rules and update rules also check whether
    any routines have been implemented and check the routine for any logic implemented in filtering/hiding/removing the address data. Try to debug the same using "simulate update" option over any datapackage.
    If you are using 7.0 then check in the transformation for the mapping of fields or any routines implemented in
    filtering/hiding/removing the address.
    Regards,
    Lakshminaraasimhan.N

  • CRM Datasources for Activities & Business Partner Address

    Hi Experts,
    Can you please help in understanding following issue?-
    For both these datasources-
    1) 0CRM_SALES_ACT_1
    2) 0BP_DEF_ADDRESS
    I can see huge queue stacked up in CRM side in tcode SMQ1/RSA7.
    But delta loads for these datasources bring exactly 1 millions records every day and this is happening since last month.
    Even after delta load completes, I don't see corresponding decrease in delta queue entries.
    -For second datasource delta queue entries are varying around 21+ million records
    -For first one its varying from 5 million entries to 7 million entries
    It started happening around the time when people from CRM team loaded data in huge amounts in CMR from other lagacy systems. Historical data loads & conversion in CRM is finished long time back but queues for some cases are still stuck at big numbers.
    -->When I double click on queue, following is the status-
    "NOSEND"
    -->Further double click on it gives following two types of entries-
    a) Transaction Recorded
    b) Message Edited in Target System
    Any helpful responses are welcome.
    Thanks,
    Arun Purohit

    In R/3 you can check
    WB2_PARTNER_ADDRESS_CREATE
    also confirm in which system u need to create the business partner address.
    Additionally you should also check out
    BAPI_BUPA_ADDRESS_ADD        
    BAPI_BUPA_ADDRESS_CHANGE     
    BAPI_BUPA_ADDRESS_GETDETAIL  
    BAPI_BUPA_ADDRESS_GET_NUMBERS
    BAPI_BUPA_ADDRESS_REMOVE     
    These may be helpful
    Regards
    Alok Pathak
    Message was edited by: Alok Pathak

  • Business Partner address in GTS is "garbage" characters

    We are testing our upgraded ECC 6.0 system and if a customer master in ECC has an international version maintained (Kanji) the business partner address in GTS (version 7.1) has garbage characters for that business partner.   Do I need to make an adjustment in ECC to /SAPSLL/DEBMAS_SLL so that it pulls the address data from the customer General data screen (always maintained in English there) rather than from the International address screen?
    These customers looked correct in GTS when we were on ECC 5.0.
    Any thoughts?
    Thanks.

    Hello Vicky,
    what is your highest support pack installed on ECC6 and on GTS? Did you search for notes?
    General question, in case you wont transfer international addresses would be the GTS user happy not to have this information is GTS? For instance for preference mngmt it is required.
    Cheers,
    Gabriel.

  • How to Remove Business Partner Address using DI Server

    Hello,
    I need to remove Business Partner Addresses using DI Server, the example in the SDK only mentions the remove of the entire business partner, but I need to delete only one of the business partner addresses, how can it be done?

    Hi,
    the usage of the "UpdateWithSubDeletion" method of B1 object atom might be an option.
    You need to update the complete business Partner with the changed amount of addresses.
    The usage is tricky, you need to retrieve the BP, which you want to update, first via synchronous retrieval method using import/export mode.
    From the retrieval result you should start to update every segment with all fields including the BPAddresses segment in exactly the same sorting order as displayed from the synchronous retrieval.
    Best regards
    Bastian

  • Updating business partner addresses in CRM

    Hi,
    I Need to build a interface to update business partner addresses in CRM and assign it to a address usage. I can not find a suitable FM/BAPI for this purpose. Please advise me how to accomplish this.

    Hi,
    Where do you start to activate or configure Business Address Services in R/3 Business partners. Any links to user guides or startup documents will be greatly helpful.
    Thanks very much
    Cheers!
    Padi

  • Limit the number of Business Partner relations in BP Master data

    Hello Gurus,
    I have a requirement where I have to limit the number of business partner relations to 2 at BP Master Data.For example for a BP X, there cant be more than 2 contact persons. So in the relationship tab they should not be able to add more than 2 contact persons. I know we can do this partner processing in sales transactions, but not sure we can implement the same in BP Master Data.
    Thanks a Lot in advance for your replies,
    Krishna.

    Hi,
    You can achieve this by customizing. Go to Transaction BUBA. Double click on you relationship category. Now change the cardinality. In your case it will be 0:2 .
    This will solve your problem.
    Thanks and warm regards,
    Smita.

  • Prevent users from printing the List of Business Partner window

    Hi All
    I have had this request and not sure if it possible.
    He wants to prevent the users from printing the List of business partner.
    That is when you do a search on the marketing documents.
    when do a search it brings up the window, List of Business Partners.
    they can go to file print...choose table and print the list of BP.
    is there anyway to prevent that?
    Thank you
    Jerusha

    is it a smartform
    You have to disable from ADOBE end
    sfpoutputparams-NOPRINT = X
    when calling the function module FP_JOB_OPEN.
    Unfortunately the PDF converter, which converts the output
    of a Smartform, does not allow to disable the print button.
    Please see note 841850 about this. Only the PDF-based forms
    support this features (class CL_FP_PDF_OBJECT also belongs
    to the PDF-based forms).

  • Business Partner Address Template Import

    We are importing Business Partner Address Template showing error
    "invalid item 'S' in enum 'BoAddressType' oBusiness Partner

    USe
    bo_ShipTo   for ShipTo Address 
    bo_BillTo  for BillTo Address

  • Will the change of business partner's number range affect current BPs?

    Hi,
    I want to change the numbers of business partner's number range in system. It means the external number range and internal number range are changed. But will it affect current existing BPs in system?
    Best regards,
    Long

    Okay I don't think this particular change will affect the data transfer. If external range is made wider, you are only making room for more numbers given by external sources (like R/3); and ofcourse when you make the internal number range narrow, there will be less numbers generated internally by the system.
    ( If you reverse or uncheck the external numbering, then it will affect the data tranfer and we will get MW numbering issues).

  • Post Code : Want to determine the list of Business Partner !!!

    Hi all
       I have given Post Code of BP.
       I want to determine the <b>list of Business Partner</b> present in the specified <b>Post Code Location</b>.
      Is their any direct way around to determine the list of
    Business Partner ?  or Please let me know the possible ways to determine the BPs with the given Post Code !!!!
    Many Thanks
    Jack

    Hi Jack,
    Have a look at BAPI_BUPA_SEARCH function module.
    Enter the Post Code in the ADDRESSDATA structure and it will return list of Business Partners for the same.
    Also ,have a look at BUPA_PARTNER_CONTACT_SEARCH function module.
    <b>Reward points if it helps.</b>
    Message was edited by: Amit Mishra

  • Query regarding Business Partner Address in SAP B1?

    Hi Friends,
    WHile i extract SAP datas for my ETL Product,I found some issues..Hereby i m telling the steps to reproduce that in Demo database of OEC Computers..
    1.Open SAP B1 Business Partner data
    2.Open C40001 Business partner data..
    3.Open Addresses tab of that Business partner
    4.Click Bill to Address..And u can c no datas is present for that BP 'C40001'.
    5.And Open OCRD in Sql Server.. And u can c Address as      '208 Hollywood Av'and ZipCode as '28989'.And it's present in XML of that Business Partner data but not shown in UI in Address tab..
    6.Where these datas are present in Business Partner UI..How can i view those in UI?
        Please give me a clear information for that..
    Thanks in Advance
    regards
    Sooriyakala.P

    Hi Sooriya,
    I was able to reproduce the issue in our demo database.
    This is most likely just an anomaly in that specific database, maybe created by manipulating the database directly.
    The actual data of the BP Addresses grid comes from CRD1. The third shipping address for BP 'C40001' actually seems to have the same information as in OCRD.Address.
    The Address field in OCRD is just a convenience shortcut that should duplicate whatever is written to the single billto address for that customer. You're right that the field should be empty as there are no billto address rows in CRD1 for that customer.
    I'm pretty sure you will not be able to reproduce this in a real live database. However, there are other issues to watch out for with BP addresses. For instance with SBO 2004, there is a issue regarding updating the name of a billto address. If you do it with DI API (or with DTW), you will end up with two billing addresses. This cannot be done in the client, as it is against the validation rules. The nasty part is that DI API does not currently support removal of BP addresses. It's no fun doing it manually for 4000 customers
    Henry

  • Formatted search - Copy Business Partner address of active screen

    Hello,
    I am using a credit card addon that creates a tab in Business Partner Master Data labeled "Credit Card". On this tab, credit card information is stored for the business partner. This includes CC Name, CC Type, CC Cardholders Name, CC Number etc.
    Credit cards are added on this tab, similar to an address being entered on the address tab. You have to click "Add New"
    The business process is the following:
    - CSR receives call from random customer (no BP data exists)
    - CSR creates new BP
       - Enters address for Bill to and Ship to.
       - We are required by this addon to enter address on credit card for a third time. This is where we would like to streamline the process by creating a formatted search to copy the Bill to information from the Address tab, to the address information on the credit card tab.
    This is where my dilema is. I am not sure how to capture the active record's information and bring it over to the credit card tab.
    Does anyone have an recomendations?
    John Sefton

    From what I have noticed.  You can create individual FMS and place them in the respective fields in the CC Tab.  I could only test this on the BP Remarks and they seem to work.
    For Address Name
    SELECT $[$178.1.0]
    For Street
    SELECT $[$178.2.0]
    For Block
    SELECT $[$178.3.0]
    Please enable system information from the VIEW menu for the other field co-ordinates

  • Unable to replicate Business partner Address

    I am replicating Business Partner(BP) from ECC 6.0 to CRM 7.0.
    r3am1 shows that all objects have been loaded sucessfully....however when I enter data using bp transaction in ECC the address doesn't get replicated in CRM.
    the adress fields show up empty in CRM....whiel all other fields are populated.
    Anyone has any idea how to solve this problem?
    I will be grateful for any clue.
    Regards,
    Nasreen

    Munish,
    Thank you very much for replying.
    My problem was solved by re-loading the customizing object DNL_CUST_ADDR
    Regards,
    Nasreen

  • Restrict Org details based on the User in Business partner creation..

    Hi Gurus,.
    I have to assign Sales Org , DIV, Distribution Channel to the Business Partner in Sales Area data.  When I try system shows entire Org structure. But I want the Org structure should be displayed based on the user log on. Assume that, I am assigned to Shangai and creating Business partner for Shangai, the system should not show Beijing or other Org Unit since I belong to Shangai.  How to address this scenario thro standard customization?
    Is it common problem in CRM Webui(6.0 and 7.0).
    My Org Structure:
    Global
      China
         Shangai
         Beijing
       Nanjing.
    Thanks in Advance....

    Hi Denis,
       Thanks for your reply. I believe Org determination rule is applicable for Transaction types not for Account Creation. I want to get Sales area data based on login user. It shows complete Sales Area(Sales Org IDDistribution ChannelDivision) when I create an Account.. Assume that you are an employee and assigned to Newyork, when you create New Customer in Newyork, system should not show Boston, Washington Sales areas...Please throw some light on this...
    Thanks in Advance.,

Maybe you are looking for

  • What is hpsetup and how do I stop it interfering with my airport?

    For a couple of weeks now our household (Powerbook G4 and iBook) have both been sporadically unable to connect to our own network because something called hpset up seems to be in the way. We don't have any hp printers or any hp appliances in our hous

  • How do I install Instagram app to my Mac?

    I have downloaded the Instagram App to my Mac but don't know how to install it and make it work. Please help.

  • Swing button PJC

    Hi All, I am trying to use Swing button PJC getting help from below website. http://forms.pjc.bean.over-blog.com/categorie-450786.html I am using forms 9i version not sure it is compatible for PJC? While running the form I am getting certificate noti

  • Working with Workflow in Duet Enterprise

    Hi experts, I have configured Workflow scenario in Duet Enterprise in my landscape. In order to test the scenario, i executed the workflow WS99000006 (shipped by Duet Enterprise) and also scheduled the reports RSWNSEL and S_OSP_WF_ITEM_SELECTION as s

  • Case statement doubt

    Hi, I need some help with a simple case statement. lets say i have a table called name which has following 2 rows - ID first_name last_name 1 JOHN SMITH 2 JOHN i want to write a statement like :- select id,case when first_name like '%JO%' then 'John