How to get customer no relating to a Business partner No

How to get customer no relating to a Business partner No . Is that Customer unique ?

hi arshad,
based on business partner u can get customer number. both tables having some uniqe field...based on that uniqe field u can identify business partner no.......
if it is usefull review the points

Similar Messages

  • How to get custom defined messages in WAD

    Hi
    can you please help me how to get customized error messages in WAD.
    While I'm executing in RSRT the customer exit variable throws error message saying that 'No Sales orders exist for this Sold_To Party' but when I execute same query using Bex WAD, then no error message throwing for me for given sold_to party. I tried with all options as given in below code, but WAD gives me system error that "No values found for the customer exit variable 'Zxxxx'. Please help me in this regard. Should I do any settings in WAD to get custom defined messages. Kindly let me know
    my code is as below
    I_STEP = 2.
    CASE i_vnam.
    WHEN 'Custome exit variable'.
    IF sy-subrc = 0.
    ELSE.
                   MESSAGE e060(/bmc/bw).  "No Authorization exist
                    g_errflag1 = 'X'.
                   exit.
                   CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
                      EXPORTING
                        i_class  = '/bmc/bw'
                        i_type   = c_e                                    "'E'
                        i_number = '061'
                        i_msgv2  = l_msgv2.
                         RAISE NO_REPLACEMENT.
                    l_s_range-low = g_soldto.
              l_s_range-sign = c_sign_i.
              l_s_range-opt  = c_range_opt_eq.
              APPEND l_s_range TO e_t_range.
    ENDIF.
    I_STEP = 3.
      READ TABLE i_t_var_range INTO w_s_var_range
                  WITH KEY vnam = 'customer exit variabel'.
      IF sy-subrc = 0.
    Check the flag and throw message 'No Sales orders'.
        IF g_errflag1 = 'X'.
          l_msgv1     = 'No Sales orders'.
    Call the FM to populate message
          CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
            EXPORTING
              i_class  = c_r9
              i_type   = c_e                                    "'E'
              i_number = c_000
              i_msgv1  = l_msgv1
            EXCEPTIONS
              dummy    = 0
              OTHERS   = 0.
         CALL FUNCTION 'RRMS_MESSAGES_SHOW'.
         CALL FUNCTION 'RRMS_MESSAGES_DELETE'.
          RAISE NO_REPLACEMENT..
        ENDIF.
    Thanks & Regards
    silu

    Hi
    Custom Messages WAD

  • How to get customer number and name from the SD document

    Hi All,
    Can you please let me know how to get Customer Number and Name from the SD Document?
    Thanks a lot....
    Anil

    Hi,
    It will be displayed in the SD (BIlling document) itself,  you clikc on the VF03. The customer name and number will also appear in the SO document also Tcode VA03
    regards,
    radhika
    Edited by: kolipara radhika on Jul 10, 2009 5:32 AM

  • How to get customer-specific objects into PCUI ?

    Hello,
    we want to get an Z-table as tab page of the business partner-application into PCUI. It should 'only' be possible to create new entries - today there is no need to modify or delete records.
    Does there exist something like a "cookbook" on this task or has anyone of you experience how to get customer-specific objects (without using EEWB) into PCUI ?
    Thanks in advance
    Martin

    Option 1:
    If you are good in ABAP.
    You can add new tab in which create a new Field group. Assign it to a model access clas in which handle the table update.You can get the details in PCUI cookbook itsel.
    Option 2:
    If you are good at java
    Develop an FM to update the table.
    Call the FM from webdynpro
    Include this webdynpro as HTML viewer in PCUI.
    Regards,
    Abdul Raheem S

  • How to switch off automatic creation of the business partner?

    Hello!
    Advise please why in erp after creation of the customer automatically form business partner? How to switch off automatic creation of the business partner? It very much disturbs, because business partner are created from crm. Because of automatic creation business partners are duplicated.

    Hi,
    I have made the following customizing settings to activate customer integration with business partner, but the problem is when I create a BP with a role (FI-Customer) the customer is not created automatically.
    1. Set BP Role Category for Direction BP to Customer
    Roles: FLCU00 - Business Partner FI Customer (FS: BP)
    FLCU01 - Business Partner Customer (FS: BP)
    2. Defined the Number assignment for Direction BP to customer
    4. Customer account group and numbering is also defined.
    3. Created a BP with BP Role FLCU00, I can see the Customer - General Data tab, but no customer was automatically generated by the system.
    Kindly let me know if any customizing I have missed.
    Regards
    Ameya

  • How can one see all printdocuments for a business Partner

    How can one see all printdocuments for a business Partner(only transaction, no table please)
    Thx

    Avajit,
    Use T-Code CORRHIST
    Hope this helps
    Rgds
    Rajendra

  • How to update multiple calling hours based on business partner

    Hi All,
    please help me in this issue : how to update multiple calling hours based on business partner in SAP CRM.
    Regards,
    Siva kumar.

    Check maintainance view V_TB49, add new scheduling type.

  • How to find out last update date for business partner's marketing attribute

    How to find out last update date for business partner's marketing attribute??
    Im freshie for SAP Application and im assigned to find out last update date for marketing attribute changed
    which table is involved??
    Yours kindness will be appreciated
    thanks

    You can take a look at table AUSP as well as CRMD_AUSP_HIST.
    The "changed by" and "changed at" are logged on attribute level, not on attribute value level. When you change one specific value, the system does a "re-insert" of all existing values of this attribute.
    Take a look at the SAP notes 938426 and 966670  these may assit you in resolving the issue.
    Regards,
    William Laverde

  • How to get custom field value in vbkd table using "SD_SALESDOCUMENT_CREATE" bapi

    Hi Experts,
    Need your help . In one program Iam using SD_SALESDOCUMENT_CREATE bapi .
    i/p for my report is am excel.
    excel is having  below formatt.
    To create salesdoc we are using SD_SALESDOC_CREATE bapi.
    but After execution of the program we are unable to find the ZZFV_SBCNT (which is custom  field) in VBKD w.r.t salesdocument.
    Need your help what we need to do to reflect the value in vbkd table.
    Here temp will contains the data from excel
    1)
    FORM f_move_header_data .
       wg_header-doc_type            = wg_temp-auart .                   "Order type
       wg_header-sales_org           = wg_temp-vkorg .                   "Sales Organization
       wg_header-distr_chan          = wg_temp-vtweg .                   "Distribution Channel
       wg_header-division            = wg_temp-spart.                    "Division
       wg_header-sales_off           = wg_temp-vkbur .                   "Sales Office
       wg_header-sales_grp           = wg_temp-vkgrp .                   "Sales Group
       wg_header-purch_no_c          = wg_temp-bstnk .                   "Customer purchase order number
       wg_header-pymt_meth           = wg_temp-zlsch  .                  "Payment Method
       wg_header-zzychan_role        = wg_temp-zzychan_role_i.           "Channel Role
       wg_header-zzysub_role         = wg_temp-zzysub_role  .            "Submitter Role
       wg_header-zzy_inv_for_opt     = wg_temp-zzinv_format  .           "Invoice Format Optio
       wg_header-ord_reason          = wg_temp-augru  .                  "Order Reason Code
       wg_header-bill_block          = wg_temp-faksp.                    "Billing Block
       wg_headerx-doc_type            = c_set .                   "Order type
       wg_headerx-sales_org           = c_set .                   "Sales Organization
       wg_headerx-distr_chan          = c_set .                   "Distribution Channel
       wg_headerx-division            = c_set.                    "Division
       wg_headerx-sales_off           = c_set .                   "Sales Office
       wg_headerx-sales_grp           = c_set .                   "Sales Group
       wg_headerx-purch_no_c          = c_set .                   "Customer purchase order number
       wg_headerx-pymt_meth           = c_set  .                  "Payment Method
       wg_headerx-zzychan_role        = c_set.                    "Channel Role
       wg_headerx-zzysub_role         = c_set .                   "Submitter Role
       wg_headerx-zzy_inv_for_opt     = c_set .                   "Invoice Format Option
       wg_headerx-ord_reason          = c_set .                   "Order Reason Code
       wg_headerx-bill_block           = c_set.                    "Billing Block
    ENDFORM.                    " F_MOVE_HEADER_DATA
    2)
    FORM f_move_item_data .
       wg_item-itm_number          =   g_itmnumber.                              "Item number
       wg_item-material            =   wg_process-matnr .                        "Material
       wg_item-target_qty          =   wg_process-target_qty.                    "Targeted Qty
       wg_item-item_categ          =   wg_process-pstyv.                         "Sales document item category
       wg_item-zzylegal_i          =   wg_process-zzlegal.                       "Legal Contract
    **********Added this line for vbkd-ZZFV_SBCNT****************************
       wg_item-zzfv_sbcnt          = wg_process-zzfv_sbcnt.      
    APPEND wg_item TO i_item.
    wg_itemx-material            =   c_set .                        "Material
       wg_itemx-target_qty          =   c_set.                         "Targeted Qty
       wg_itemx-item_categ          =   c_set.                         "Sales document item category
       wg_itemx-zzylegal_i          =   c_set.                         "Legal Contract
       wg_itemx-zzsteady_date       =   c_set .                        "Amortization Start Date
       wg_itemx-zzsteady_end_dat    =   c_set.                         "Amortization Stop Date
    **********Added this line for vbkd-ZZFV_SBCNT****************************
       wg_itemx-ZZFV_SBCNt     =   c_set.   "
       APPEND wg_itemx TO i_itemx.
       CLEAR : wg_itemx. 
    endform. 
    3)           
    FORM f_move_head_ext
    wg_extension-structure   = c_ext_vbak.
       wg_ext_vbak-zzinv_format = wg_temp-zzinv_format.
    wg_ext_vbak-zzychan_role = wg_temp-zzychan_role_i.
       wg_ext_vbak-zzysub_role  = wg_temp-zzysub_role.
       wg_extension+30 = wg_ext_vbak.
    APPEND wg_extension to i_extension.
    CLEAR wg_extension.
       wg_extensionx-structure =  c_ext_vbakx.
       wg_ext_vbakx-zzinv_format = c_set.
      wg_ext_vbakx-zzlegal      = c_set.
       wg_ext_vbakx-zzychan_role = c_set.
       wg_ext_vbakx-zzysub_role  = c_set.
       wg_extensionx+30 = wg_ext_vbakx.
       APPEND wg_extensionx TO i_extensionx.
       CLEAR wg_extensionx.
    ENDFORM.                    " F_MOVE_HEAD_EXT
    *&      Form  F_MOVE_ITEM_EXT
    *       Item Extension
    4)
    FORM f_move_item_ext .
    * Structure for BAPI parameter Extension
       wg_extension-structure = c_ext_vbap.
       wg_ext_vbap-posnr      = g_itmnumber.
       wg_ext_vbap-zzsteady_date       =   wg_process-zzsteady_date .                 "Amortization Start Date
       wg_ext_vbap-zzsteady_end_dat    =   wg_process-zzsteady_end_dat.               "Amortization Stop Date
       wg_ext_vbap-zzlegal             =   wg_process-zzlegal.                        "Legal Contract
       wg_extension+30 = wg_ext_vbap.
    APPEND wg_extension to i_extension.
    * Structure for BAPI parameter Extension - Update Indicator Fields
       wg_extensionx-structure =  c_ext_vbapx.
       wg_ext_vbapx-posnr = g_itmnumber.
       wg_ext_vbapx-zzsteady_date       =   c_set .
       wg_ext_vbapx-zzsteady_end_dat    =   c_set.
    *  wg_ext_vbapx-zzlegal             =   c_set.
    *wg_process-zzfv_sbcnt = c_set.
       wg_extensionx+30 = wg_ext_vbapx.
       APPEND wg_extensionx TO i_extensionx.
       CLEAR wg_extensionx.
    and bapi calling is like below.
    CALL FUNCTION 'SD_SALESDOCUMENT_CREATE'
         EXPORTING
           sales_header_in       = wg_header
           sales_header_inx      = wg_headerx
           logic_switch          = wg_logic_switch
           business_object       = fp_bus_obj
           status_buffer_refresh = 'X'
         IMPORTING
           salesdocument_ex      = g_sorder
         TABLES
          return                = i_return
           sales_items_in        = i_item
           sales_items_inx       = i_itemx
           sales_partners        = i_partner
           sales_conditions_in   = i_cond
           sales_conditions_inx  = i_condx
           sales_text            = i_text
           extensionin           = i_extension
         extensionex           = i_extensionx.
    still we are not getting ZZFV_SBCNT value in VBKD table w.r.t created salesdoc(g_sorder)
    Please help me from this issue.
    Thank You..

    Hi,
    Please let me know how to add custom fields in the characteristic list, My clients wants department and profit center grouping.
    Please tell me how to solve it..
    Thanks & Regards,
    Reena..

  • How to get tax amounts related to PO

    Dear All,
    I have to write a report based on PO and taxes related to it.
    I have got the PO details, but how to get the tax details like service tax, Excise , SHcess.
    I get some details in KONV table but when I check the PO taxes there are more no. of taxes.
    miro  has not been done for that PO.
    Please help,
    Thanks in advance,
    Salman Zahir

    Hi,
    Please Use the FM : CALCULATE_TAX_ITEM to fetch all taxes pertaining to PO and line Item.
    Before this we have to use FM:'REFRESH_TAX_TABLES'.
    Check the sample code for your reference.:
    LOOP AT it_ekko_ekpo INTO is_ekko_ekpo.
        CALL FUNCTION 'REFRESH_TAX_TABLES'
        EXPORTING
          LIVERY        = 1
        CONCATENATE '0' is_ekko_ekpo-ebelp INTO w_ebelp.
    *"--- Assigning values to Taxcom
        is_taxcom-bukrs = is_ekko_ekpo-bukrs.
        is_taxcom-budat = is_ekko_ekpo-bedat.
        is_taxcom-ebeln = is_ekko_ekpo-ebeln.
        is_taxcom-kposn = w_ebelp.
        is_taxcom-mwskz = is_ekko_ekpo-mwskz.
        is_taxcom-lifnr = is_ekko_ekpo-lifnr.
        is_taxcom-matnr = is_ekko_ekpo-matnr.
        is_taxcom-werks = is_ekko_ekpo-werks.
        is_taxcom-land1 = is_ekko_ekpo-lands.
        is_taxcom-wrbtr = is_ekko_ekpo-netwr.
        IF is_taxcom-mwskz IS NOT INITIAL.
    *"--- Function Module to get Condition types
          CALL FUNCTION 'CALCULATE_TAX_ITEM'
            EXPORTING
              i_taxcom            = is_taxcom
            TABLES
              t_xkomv             = it_komv
            EXCEPTIONS
              mwskz_not_defined   = 1
              mwskz_not_found     = 2
              mwskz_not_valid     = 3
              steuerbetrag_falsch = 4
              country_not_found   = 5
              OTHERS              = 6.
          IF sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ENDIF.
          DELETE it_komv WHERE kbetr = 0.
          LOOP AT it_komv INTO is_komv.
            is_out-kschl = is_komv-kschl.
            APPEND is_out TO it_out.
          ENDLOOP.
          CLEAR: is_taxcom,
                w_ebelp.
        ENDIF.
      ENDLOOP.
    thanks
    Eswar Rao

  • How to get customer consignm orders (type of cat item KBN) updates LIS

    Good morning,
    we have an issue with this type of sales orders, we are trying to update an not standard info structure (created by us) but we have found that this type of category item is not relevant foe info structure updating (it has Statistics group for the item category
    equal blank).
    Does anybody know how to get that this type of item category is relevant foe that updating??
    thank you very much in advance,
    regards,
    Maria

    I believe you can use one of the customer exits in the FM which creates your IDOC to filter items.

  • How to get custom iCal colors to carry over to iPad or iPhone calendars

    How do I get custom calendar colors designated on my iMac to carry over to my iPad or iPhone?  It used to do so, and now it no longer does.

    Thanks Joe.  We have discovered from this forum, actually, that if you send the photos from the iPhone, if that's where they were taken, then you are asked what size. 
    "If you send from the camera, then you get the option of reducing the size. If you send from your other photos synced from your computer, they don't have that option of reducing."
    I tested it by sending a couple of photos taken by my iPhone, and sure enough, was asked as to size.  Then sent the same two photos from my iPad (Photostream) and was not asked.  Interestingly though, the sizes were identical in both emails.

  • [JS CS5]How to get Custom Page size

    I've been searching the answer of this simple question but looking no way around.
    I have an InDesign document with different page size e.g. left page width is 621 pt. and on the same document right page width is 837 pt.
    Now I need to get the width of pages using script but app.documentPreferences.pageWidth return standard document preset size(621 pt.) not the custom page size.
    Does any one have the Idea to get custom page size using script.
    Thanks in advance
    Mac

    Mac,
    as documentation is showing there are some new properties of "page" since InDesign CS5.
    Among those is:
    bounds    Array of Measurement Unit (Number or String)    readonly    The bounds of the Page, in the format [y1, x1, y2, x2].
    So:
    myPage.bounds
    and pageWidth of the documentPreferences might be:
    myPage.bounds[3]-myPage.bounds[1]
    unless  myPage is transformed (e.g. rotated and/or sheared and/or scaled) with:
    myPage.transform()
    void transform (in: CoordinateSpaces, from: varies, withMatrix: varies[, replacingCurrent: varies][, consideringRulerUnits: bool=false])
    Transform the page item.
    var d = app.activeDocument;
    var myPage = d.pages[0];
    var oldPB = myPage.bounds;
    var rAngle = -45;
    var sAngle = 40;
    var myTransformationMatrix1 = app.transformationMatrices.add({counterclockwiseRotationAngle:rAngle});
    myPage.transform(CoordinateSpaces.INNER_COORDINATES, AnchorPoint.CENTER_ANCHOR, myTransformationMatrix1);
    var myTransformationMatrix2 = app.transformationMatrices.add({clockwiseShearAngle:sAngle});
    myPage.transform(CoordinateSpaces.INNER_COORDINATES, AnchorPoint.CENTER_ANCHOR, myTransformationMatrix2);
    var newPB = myPage.bounds;
    $.writeln(oldPB);
    $.writeln(newPB);
    Now oldPB and newPB will differ a lot.
    So, the question remains: what is a reliable way to show if the myPage was or was not transformed against documentPreferences.pageWidth or if  myPage is of rectangular shape at all. See the possibility of adding a sheer angle to the transformation matrix. Also see screen shot:
    Transform_Page_CS5.png
    Uwe

  • How to get custom trigger result when insert

    I set a trigger before insert, if the result was $aa = 50;
    how to get $aa?
    it doesn't work
    $ins_testtable->addColumn("t_num", "NUMERIC_TYPE", "VALUE", $aa);

    I tried this one, actually, {GLOBALS.variable_name} is one of mark-up language,I add echo $a this time, after submit, $a appear on the page, so I think "definea trigger" has been executed successfully, but still got error message
    <br />
    <br />http://uploads.screenshot-program.com/my.php?image=upl2682569831.jpg
    <br />
    <br />code
    <br />--------------------------------------------------
    <br /><?php require_once('Connections/conndb.php'); ?>
    <br /><?php<br />// Load the common classes<br />require_once('includes/common/KT_common.php');<br /><br />// Load the tNG classes<br />require_once('includes/tng/tNG.inc.php');<br /><br />// Make a transaction dispatcher instance<br />$tNGs = new tNG_dispatcher("");<br /><br />// Make unified connection variable<br />$conn_conndb = new KT_connection($conndb, $database_conndb);<br /><br />//start definea trigger<br />function definea(&$tNG) {<br />global $a;<br />$a = 100;<br />}<br />//end definea trigger<br /><br />// Make an insert transaction instance<br />$ins_testtable = new tNG_insert($conn_conndb);<br />$tNGs->addTransaction($ins_testtable);<br />// Register triggers<br />$ins_testtable->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "ins");<br />$ins_testtable->registerTrigger("BEFORE", "definea", 50);<br />// Add columns<br />$ins_testtable->setTable("testtable");<br />$ins_testtable->addColumn("t_name", "STRING_TYPE", "POST", "t_name");<br />$ins_testtable->addColumn("t_num", "NUMERIC_TYPE", "VALUE", "{GLOBALS.a}");<br />$ins_testtable->setPrimaryKey("t_id", "NUMERIC_TYPE");<br /><br />// Execute all the registered transactions<br />$tNGs->executeTransactions();<br /><br />// Get the transaction recordset<br />$rstesttable = $tNGs->getRecordset("testtable");<br />$row_rstesttable = mysql_fetch_assoc($rstesttable);<br />$totalRows_rstesttable = mysql_num_rows($rstesttable);<br />?>
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <script src="includes/common/js/base.js" type="text/javascript"></script>
    <br />
    <script src="includes/common/js/utility.js" type="text/javascript"></script>
    <br />
    <script src="includes/skins/style.js" type="text/javascript"></script>
    <br />
    <br />
    <br />
    <br /><?php echo $a; ?>
    <br />
    <form id="form1" name="form1" method="post" action="">
    <br />
    <label for="t_name">tname</label>
    <br />
    <input type="text" name="t_name" id="t_name" />
    <br /> <?php<br /> echo $tNGs->getErrorMsg();<br />?>
    <br />
    <input type="submit" name="ins" id="ins" value="submit" />
    <br /></form>
    <br />
    <br />

  • How to get telephone and mobile phone for one partner

    Hello Expert,
    In VA03, I open one sales order and go into the partner tab. Then I selection one partner and click "Detail" button, one page with partner detailed information will pop up.
    In the pop-up window:
    There are two fields: Telephone and Mobile Phone.
    In my program, I want to get these two information. 
    I tried to call FM 'ADDR_COMM_GET' by passing address_number(VBPA-ADRNR), table_type('ADTEL'), iv_current_state(SPACE). For some partner, it works, but for others it doesn't work.
    Then I find table ADR2 which is used to keep phone infomration. There are two entries in the table. But how can I identity which one is telephone and which one is Mobile phone?
    So can any expert help me on how to get the telephone and Mobile Phone of the pop-up page?
    Thanks in advance,
    Best Regards, Johnny.

    Read ADR2-TEL_NUMBER where ADDRNUMBER = VBPA-ADRNR and R3_USER = '2' or '3'.
    These are the possible values
            Telephone is Landline Telephone
    1     Telephone is Default Under Landline Telephones
    2     Telephone is Mobile Telephone but Not Default Mobile Phone
    3     Telephone is Default Mobile Telephone
    X     Obsolete - No Longer Valid

Maybe you are looking for