Changing GL Control Account of existing Business Partner

Hi, We have created and processed against some business partners. However the "Accounts Receivable", under the "Accounting" tab, the wrong GL account was selected. Now it is greyed out because there is postings. Is there anyway to reallocate the transactions to the correct account as well a fixing the "Accounts Receivable" account?

I don't think so it is possible to change the control account for a BP after transction are done.
Alternatively put the BP on hold and create a new BP with proper control accout.

Similar Messages

  • Update accounts receivable of business partner

    I want to update the accounts receivable of business partner through codng.For this I have used the following code-
    Dim objBP As SAPbobsCOM.BusinessPartners
    Dim lngStatus As Long
         Dim boolFlag As Boolean
    boolFlag = objBP.GetByKey("CA009")
    If boolFlag = True Then
    objBP.AccountRecivablePayables.AccountType = SAPbobsCOM.BoBpAccountTypes.bpat_Receivable
                    objBP.AccountRecivablePayables.AccountCode = "140000"
                    objBP.AccountRecivablePayables.SetCurrentLine(0)
                    lngStatus = objBP.Update
    End If
    But the business partner is not getting updated.What is the error in the above code ?

    Alexander,
          I am updating the account.For this I am using following code,
    objBP.AccountRecivablePayables.SetCurrentLine(0)
    objBP.AccountRecivablePayables.AccountCode = "_SYS00000000254"
    lngStatus = objBP.Update()
    Now I am not getting any errors,but the business partners are not getting updated.

  • SD Account determination for business partner items

    Hi All!
    I need to understand how does the account determination works for business partner items. I know that al trx VKOA is where I can customize the account that is gonna be used at the GL items, but I can't find where is the customizing of the accounts for the business partner items. Could you help me?
    Thanks in advance!
    Fred

    Hi
    When you create a billing document (trx VF01) in SD, you can then go to trx FPE3 and the this document from a finantial point of view.
    In trx FPE3 you will see the ducument splited in two parts, the business partner items and the GL items. If you doble click over any line of the GL items (excluding taxes) you will see more information about this line and one of it is the GL account. This account is set via trx VKOA.
    Going back, if you doble click over any line of the Business partner items, you will see more information about this line and one of it is the GL account. But in this case I don't know where it should be customized.
    I hope I was clear enoght.
    Regards,
    Fred

  • Formating existing Business Partner Telephone No.

    Hi,
    We would like to format the phone nos. of existing business partners(BP) in CRM to xxx.xxx.xxxx.
    I have written a program ...and the formatting works fine.
    The problem comes when I am trying to update the BP's...I have written a BDC..and it doesn't seem to work. I am not very good in  BDC...so would appreciate if somebody could help tweaking the code.
    Further, would appreciate to know..whether using a BDC is the right approach...is there any BAPI's that can do the trick.
    Once again, thanks to everbody once again.
    Rajib
    Code:
    *& Report  ZTEST_RD1                                                   *
    REPORT  ZTEST_RD1       .
    tables : but000.
    data:  begin of t_output occurs 0,
            bp  like but000-partner,
            home_phone like BAPIADTEL-TELEPHONE,
            mobile_phone like BAPIADTEL-TELEPHONE,
            fax like BAPIADTEL-TELEPHONE,
            work_phone like BAPIADTEL-TELEPHONE,
           end of t_output.
    data: workphone like BAPIADTEL-TELEPHONE.
    data: begin of t_bp occurs 0,
            partner like but000-partner,
          end of t_bp.
    data: w_addressguid like bapibus1006_addresses_int-addrguid,
          w_addrnr like bapibus1006_addresses_int-ADDRNUMBER,
          w_addressdata like bapibus1006_address,
          t_address like bapibus1006_addresses occurs 0 with header line,
          t_return like bapiret2 occurs 0 with header line,
          t_tel like bapiadtel occurs 0 with header line,
          t_fax like bapiadfax occurs 0 with header line.
    bdc declaration
          Batchinputdata of single transaction
    DATA:   BDCDATA LIKE BDCDATA    OCCURS 0 WITH HEADER LINE.
          messages of call transaction
    DATA:   MESSTAB LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
          error session opened (' ' or 'X')
    DATA:   E_GROUP_OPENED.
          message texts
    TABLES: T100.
    bdc
    start-of-selection.
      selection-screen  begin of block b2 with frame title text-105.
    *Business Partner Number
      select-options:  s_bp     for but000-partner, " obligatory,
                       s_bpkind for but000-bpkind, "  obligatory,
                       s_bptype for but000-type. " obligatory.
      selection-screen end of block b2.
    end-of-selection.
    get the basic data
      select partner
                from  but000
                into  table t_bp
                  where partner in s_bp     and
                                bpkind  in s_bpkind and
                                type    in s_bptype.
      loop at t_bp.
    write :/1 t_bp-partner.
    get the address guids.
        call function 'BAPI_BUPA_ADDRESSES_GET'
          EXPORTING
            businesspartner       = t_bp-partner
            addresstype           = 'HOME'
          IMPORTING
            standardaddressguid   = w_addressguid
            STANDARDADDRESSNUMBER = w_addrnr
          TABLES
            addresses             = t_address
            return                = t_return.
      Get Address Detail
        call function 'BAPI_BUPA_ADDRESS_GETDETAIL'
          EXPORTING
            businesspartner = t_bp-partner
            addressguid     = t_address-ADDRESSGUID
          IMPORTING
            addressdata     = w_addressdata
          TABLES
            bapiadtel       = t_tel
            bapiadfax       = t_fax.
    populate the data in the output table
        t_output-bp = t_bp-partner.
    home and mobile phone
        loop at t_tel.
          if t_tel-TELEPHONE is not initial.
            if t_tel-R_3_USER = '1'.                "Home Phone
              perform format_phone USING t_tel-TELEPHONE.
              t_output-home_phone   = t_tel-TELEPHONE.
            else.                                   "Mobile Phone
              perform format_phone USING t_tel-TELEPHONE.
              t_output-mobile_phone = t_tel-TELEPHONE.
            endif.
          endif.
        endloop.
    get fax number
        loop at t_fax.
          if t_fax-FAX is not initial.
            perform format_phone USING t_fax-FAX.
            t_output-fax =  t_fax-FAX.
          endif.
        endloop.
    get work number
        select single ADEXT from BUT020 into workphone
        where PARTNER = t_bp-partner
        and ADDRNUMBER = w_addrnr.
        if workphone is not initial.
          perform format_phone USING workphone.
        endif.
        t_output-work_phone = workphone.
        clear: t_tel[], t_fax[], workphone.
        append t_output.
        clear: t_output.
      endloop.
      write :/1 ' bp ', 20 ' home_phone ', 35 ' mobile_phone  ',
                50 'fax', 75 'workphone'.
      skip 3.
      loop at t_output.
        perform bdc_update.
        write :/1 t_output-bp, 20 t_output-home_phone, 35
        t_output-mobile_phone, 50 t_output-fax, 75 t_output-work_phone.
      endloop.
    *&      Form  format_phone
          text
         -->P_PHONE    text
    FORM format_phone  USING p_phone.
      Data: w_strlen type i,
           w_offset type i.
      clear w_offset. clear w_strlen.
      w_strlen = STRLEN( p_phone ).
      do w_strlen times.
        if p_phone+w_offset(1) na '0123456789 '.
          p_phone+w_offset(1) = ' '.
        endif.
        w_offset = w_offset + 1.
      enddo.
      condense p_phone no-gaps.
      clear w_offset. clear w_strlen.
      w_strlen = STRLEN( p_phone ).
      if w_strlen gt '10'.
        w_offset = w_strlen - 10.
      endif.
      p_phone = p_phone+w_offset(10).
      w_strlen = STRLEN( p_phone ).
      if w_strlen ne '10'.
        MESSAGE
        'Please enter 10 digit phone number in the format'
        TYPE 'E'.
      else.
        concatenate p_phone(3) '.' p_phone3(3) '.' p_phone6(4) into
    p_phone.
      endif.
    ENDFORM.                    " format_phone
    *&      Form  BDC_DYNPRO
          text
         -->PROGRAM    text
         -->DYNPRO     text
    FORM BDC_DYNPRO USING PROGRAM DYNPRO.
      CLEAR BDCDATA.
      BDCDATA-PROGRAM  = PROGRAM.
      BDCDATA-DYNPRO   = DYNPRO.
      BDCDATA-DYNBEGIN = 'X'.
      APPEND BDCDATA.
    ENDFORM.                    "BDC_DYNPRO
           Insert field                                                  *
    FORM BDC_FIELD USING FNAM FVAL.
    IF FVAL <> NODATA.
      CLEAR BDCDATA.
      BDCDATA-FNAM = FNAM.
      BDCDATA-FVAL = FVAL.
      APPEND BDCDATA.
    ENDIF.
    ENDFORM.                    "BDC_FIELD
    *&      Form  bdc_update
          text
    -->  p1        text
    <--  p2        text
    FORM bdc_update .
      perform bdc_dynpro      using 'SAPLBUS_LOCATOR' '3000'.
      perform bdc_field       using 'BDC_OKCODE'
                                    '=BUS_LOCATOR_SRCH_GO'.
      perform bdc_field       using 'BDC_CURSOR'
                                    'BUS_LOCA_SRCH01-SEARCH_TYPE'.
      perform bdc_field       using 'BUS_LOCA_SRCH01-SEARCH_TYPE'
                                    '1'.
      perform bdc_field       using 'BUS_LOCA_SRCH01-SEARCH_ID'
                                    '1'.
      perform bdc_field       using 'BUS_JOEL_SEARCH-PARTNER_NUMBER'
                                    '1000'.
      perform bdc_dynpro      using 'SAPLBUS_LOCATOR' '3000'.
      perform bdc_field       using 'BDC_OKCODE'
                                    '=%_GC 116 3'.
      perform bdc_field       using 'BUS_LOCA_SRCH01-SEARCH_TYPE'
                                    '1'.
      perform bdc_field       using 'BUS_LOCA_SRCH01-SEARCH_ID'
                                    '1'.
      perform bdc_field       using 'BUS_JOEL_SEARCH-PARTNER_NUMBER'
                                    '1000'.
      perform bdc_dynpro      using 'SAPLBUS_LOCATOR' '3000'.
      perform bdc_field       using 'BDC_OKCODE'
                                    '=BUS_MAIN_SAVE'.
      perform bdc_field       using 'BUS_JOEL_MAIN-PARTNER_ROLE'
                                    '000000'.
      perform bdc_field       using 'BUT000-NAME_FIRST'
                                    'KUMAR'.
      perform bdc_field       using 'BUT000-NAME_LAST'
                                    'ASHOK'.
      perform bdc_field       using 'BUT000-NAMEMIDDLE'
                                    'S'.
      perform bdc_field       using 'BUT000-NAME1_TEXT'
                                    'KUMAR ASHOK'.
      perform bdc_field       using 'BUS000FLDS-LANGUCORR'
                                    'EN'.
      perform bdc_field       using 'BUT000-BU_SORT1'
                                    'KUMAR'.
      perform bdc_field       using 'BUT000-BU_SORT2'
                                    'ASHOK'.
      perform bdc_field       using 'ADDR2_DATA-HOUSE_NUM1'
                                    '5638'.
      perform bdc_field       using 'ADDR2_DATA-STREET'
                                    'SHAWN TER'.
      perform bdc_field       using 'ADDR2_DATA-CITY2'
                                    'GWINNETT'.
      perform bdc_field       using 'ADDR2_DATA-POST_CODE1'
                                    '30092-1536'.
      perform bdc_field       using 'ADDR2_DATA-CITY1'
                                    'NORCROSS'.
      perform bdc_field       using 'ADDR2_DATA-REGION'
                                    'GA'.
      perform bdc_field       using 'ADDR2_DATA-COUNTRY'
                                    'US'.
      perform bdc_field       using 'ADDR2_DATA-TIME_ZONE'
                                    'EST'.
      perform bdc_field       using 'ADDR2_DATA-PO_BOX'
                                    '02255217'.
      perform bdc_field       using 'ADDR2_DATA-POST_CODE2'
                                    '30045-1111'.
      perform bdc_field       using 'SZA7_D0400-TEL_NUMBER'
                                    '678.770.0001'.
      perform bdc_field       using 'SZA7_D0400-MOB_NUMBER'
                                    '678.770.0002'.
      perform bdc_field       using 'SZA7_D0400-FAX_NUMBER'
                                    '678.770.0003'.
      perform bdc_field       using 'BDC_CURSOR'
                                    'BUS000FLDS-ADEXT'.
      perform bdc_field       using 'BUS000FLDS-ADEXT'
                                    '678-770-0004'.
      perform bdc_field       using 'SZA11_0100-TEL_COUNTR'
                                    'US'.
      perform bdc_field       using 'SZA11_0100-MOB_COUNTR'
                                    'US'.
      perform bdc_field       using 'SZA11_0100-FAX_COUNTR'
                                    'US'.
      perform bdc_dynpro      using 'SAPLSPO1' '0300'.
      perform bdc_field       using 'BDC_OKCODE'
                                    '=YES'.
      perform bdc_dynpro      using 'SAPLSPO1' '0300'.
      perform bdc_field       using 'BDC_OKCODE'
                                    '=YES'.
      perform bdc_dynpro      using 'SAPLSPO1' '0300'.
      perform bdc_field       using 'BDC_OKCODE'
                                    '=YES'.
      perform bdc_dynpro      using 'SAPLBUS_LOCATOR' '3000'.
      perform bdc_field       using 'BDC_OKCODE'
                                    '=BUS_MAIN_SAVE'.
      perform bdc_field       using 'BUS_JOEL_MAIN-PARTNER_ROLE'
                                    '000000'.
      perform bdc_field       using 'BUT000-NAME_FIRST'
                                    'KUMAR'.
      perform bdc_field       using 'BUT000-NAME_LAST'
                                    'ASHOK'.
      perform bdc_field       using 'BUT000-NAMEMIDDLE'
                                    'S'.
      perform bdc_field       using 'BUT000-NAME1_TEXT'
                                    'KUMAR ASHOK'.
      perform bdc_field       using 'BUS000FLDS-LANGUCORR'
                                    'EN'.
      perform bdc_field       using 'BUT000-BU_SORT1'
                                    'KUMAR'.
      perform bdc_field       using 'BUT000-BU_SORT2'
                                    'ASHOK'.
      perform bdc_field       using 'ADDR2_DATA-HOUSE_NUM1'
                                    '5638'.
      perform bdc_field       using 'ADDR2_DATA-STREET'
                                    'SHAWN TER'.
      perform bdc_field       using 'ADDR2_DATA-CITY2'
                                    'GWINNETT'.
      perform bdc_field       using 'ADDR2_DATA-POST_CODE1'
                                    '30092-1536'.
      perform bdc_field       using 'ADDR2_DATA-CITY1'
                                    'NORCROSS'.
      perform bdc_field       using 'ADDR2_DATA-REGION'
                                    'GA'.
      perform bdc_field       using 'ADDR2_DATA-COUNTRY'
                                    'US'.
      perform bdc_field       using 'ADDR2_DATA-TIME_ZONE'
                                    'EST'.
      perform bdc_field       using 'ADDR2_DATA-PO_BOX'
                                    '02255217'.
      perform bdc_field       using 'ADDR2_DATA-POST_CODE2'
                                    '30045-1111'.
      perform bdc_field       using 'SZA7_D0400-TEL_NUMBER'
                                    '678.770.0001'.
      perform bdc_field       using 'SZA7_D0400-MOB_NUMBER'
                                    '678.770.0002'.
      perform bdc_field       using 'SZA7_D0400-FAX_NUMBER'
                                    '678.770.0003'.
      perform bdc_field       using 'BDC_CURSOR'
                                    'BUS000FLDS-ADEXT'.
      perform bdc_field       using 'BUS000FLDS-ADEXT'
                                    '678-770-0004'.
      perform bdc_field       using 'SZA11_0100-TEL_COUNTR'
                                    'US'.
      perform bdc_field       using 'SZA11_0100-MOB_COUNTR'
                                    'US'.
      perform bdc_field       using 'SZA11_0100-FAX_COUNTR'
                                    'US'.
    perform bdc_transaction using 'BP'.
      CALL TRANSACTION 'BP' USING BDCDATA
                        MODE 'N' UPDATE 'S'
                        MESSAGES INTO MESSTAB.
    message tab
      DATA: L_MSTRING(480).
      LOOP AT MESSTAB.
        SELECT SINGLE * FROM T100 WHERE SPRSL = MESSTAB-MSGSPRA
                                  AND   ARBGB = MESSTAB-MSGID
                                  AND   MSGNR = MESSTAB-MSGNR.
        IF SY-SUBRC = 0.
          L_MSTRING = T100-TEXT.
          IF L_MSTRING CS '&1'.
            REPLACE '&1' WITH MESSTAB-MSGV1 INTO L_MSTRING.
            REPLACE '&2' WITH MESSTAB-MSGV2 INTO L_MSTRING.
            REPLACE '&3' WITH MESSTAB-MSGV3 INTO L_MSTRING.
            REPLACE '&4' WITH MESSTAB-MSGV4 INTO L_MSTRING.
          ELSE.
            REPLACE '&' WITH MESSTAB-MSGV1 INTO L_MSTRING.
            REPLACE '&' WITH MESSTAB-MSGV2 INTO L_MSTRING.
            REPLACE '&' WITH MESSTAB-MSGV3 INTO L_MSTRING.
            REPLACE '&' WITH MESSTAB-MSGV4 INTO L_MSTRING.
          ENDIF.
          CONDENSE L_MSTRING.
          WRITE: / MESSTAB-MSGTYP, L_MSTRING(250).
        ELSE.
          WRITE: / MESSTAB.
        ENDIF.
      ENDLOOP.
      SKIP.
    end message tab
    ENDFORM.                    " bdc_update

    Rajib,
    There won't be any bapi to convert or format telephone number. But you can find a bapi to update business partner. Try with bapipartner in se37.
    Have you tried changing telephone number with XXX.XXX.XXX. I don't think system will accept with this format for telephone number field.
    Regds
    Manohar

  • Update Accounts Receivable in Business Partner

    Hi.
    I'm trying update the the following field in the business partner form:
    Business Partner - Business Partner Master Data - tab Accounting - field "Accounts Receivable"
    How can i update this field?
    I  also try this:
    BP.AccountRecivablePayables.AccountType = SAPbobsCOM.BoBpAccountTypes.bpat_Receivable
    BP.AccountRecivablePayables.AccountCode = 21120000
    but the system update the field "Control Accounts" and not the field "Accounts Receivable"

    I found.... its the field DebitorAccount

  • Account group and Business partner link

    Hi all,
    Is there any relation maintained for Account group (From R/3)  and Business Partner Role in GTS system?

    Hi Balu,
    In GTS, system does not consider the Account group while creating a BP role for a BP whereas it only considers the classification of Vendors or Customers. If a Customer master is created in R/3 irrespective of Account Group, BP role SLLCPC will be assigned whereas if a Vendor is created in R/3, then BP role SLLCPS will be assigned.
    Hope this answers the query.
    Regards,
    Shiva Shankar

  • Is It Possible to change Chart of Accounts for Existing Company Code

    Hi
    Please guide me is it possible to change Chart of Accounts ID for Existing Company Code after posting the Documents
    Regards
    Sreenivasulu

    Hi,
    Its not possible once you assinged chart to accounts to a company code.
    Regards
    udayakumar.k

  • Table for link between conttract account no and business partner

    Hi,
    can anyone let me know abt any table that defines relation between contract account and business partner.
    so dat for a contract account no i can get 1 business partner .
    Thnx,

    Hi
    Use the table
    <b>VVKKFOPT and VVKKFOP</b>
    both business partner and Contract account fields are there.
    Reward points if useful
    Regards
    Anji
    Message was edited by:
            Anji Reddy Vangala

  • Gl Account Determination For Business Partner

    Hello Experts .
    I have 2 control accounts namely .Sundry Debtors [ Local ] & Sundry Debtors [ Foreign Buyers ].
    In Gl Acount Determination in Sales tab for " Domestic accounts receivable  " i have given account as " Sundry Debtors [ Local ] "
    and in Foreign Accounts receivable i have given as " Sundry Debtors [ Foreign Buyers ] ".
    Now when i add new customers by default it is taking  * Sundry Debtors [ Local ] * in accounts receivable/payable.
    Where as it should take * Sundry Debtors [ Foreign Buyers ] * .
    But when i put the * Sundry Debtors [ Foreign Buyers  ] * in * Domestic Accounts Receivable * then it is taking properly .
    But how is this happening .
    is there any thing i have to set to make * Sundry Debtors [ Local ] * come automatically.Because my clients customers are of foreign that is other than INDIA.
    Please help experts.
    Regards
    krishna Vamsi*

    Hello Rahul Sir
    Thanks for prompt reply .
    Yes as u said for foreign customers we should input foreign control account , where as for local we input domestic control account.
    But how does the SAP comes to know that the customer which we are going to add is either of foreign origin or local origin .
    For E.g:
    When we try to add new customer , automatically in accounting TAB the control account is selected automatically .
    and by default domestic control accoount is getting selected.
    What i want to know is how sap recogonises that the customer which we are going to add is either of foreign origin or local origin.
    or it is the default behaviour of SAP.
    as said above that domestic control account is selected automatically . where as i need foreign control account.
    whether i should select it manually when trying to add new customer or what .
    because we give local CA in domestic control account & foreign in foreign control account.
    What is the logic behind this that while adding new customer sap takes local control account automatically.
    Please experts i am confused with this , can any body help me out.
    Regards
    Krishna Vamsi

  • Change account receivable account in a business partner

    hello
    We have a series of customers with transactions posted to the wrong account. Do you know if there is a way to change the account receivables account ? We are ready to cancel all documents and reenter them but when we do this, it still blocks the modifications.
    Any help would be welcome.
    Thanks
    Fabrice

    Hi Fabrice,
    As you are aware, the A/R account cannot be changed once there is a transaction to the BP.
    One possible workaround in this scenario is -
    1. Cancel all documents relating to BP
    2. Put the BP on hold for an indefinite period.
    3. Duplicate the BP with a different code and change the A/R account.
    4. Use this new BP to key-in transactions.
    Hope this helps.
    Regards,
    Hamsa

  • How can I change a private account to a business a...

    Hi,
    I have the problem that I set up my account which was supposed to be my business account (which you normally set up with Skype Manager™) as a personal account...is there any way/chance that I can change that?
    Many thanks in advance.
    Best regards

    Hi, Rainerbrandl, and welcome to the Community,
    Please see this:
    http://community.skype.com/t5/Skype-for-business/Convert-personal-to-business-account/m-p/2029201/hi...
    Credit is not transferable from one account to another; you would request a refund from the account where it would no longer be needed.
    Regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • Add some more marketing attributes to an existing Business partner ( BP ).

    Hi...
    I need to add marketing attributes to an existing BP without deleting the previous ones.
    If i use CRM_MKTBP_ASSIGN_ATTRIBUT_TAB the old ones are get deleted.
    Please help me out.
    Regards,
    Swati

    Hi Swati,
    Can you try with FM CRM_MKTBP_ASSIGN_ATTRIBUT ?
    There fill the following parameters:
    IV_ATNAME = Characteristic attribute id
    IV_ATTRIBUTE_SET = Characteristic attribute set
    IV_ATWRT = Characteristic attribute value
    IT_PARTNER = Fill with partner GUID and Partner ID
    Leave the other parameters with default values.
    Hope that helps!
    Kind regards,
    Garcia

  • Change in Business Partner Master Data

    Dear all,
    i got a massage if i want to update the control Accounts for a *Business Partner.
    *"Another user-modified table 'Business Partner (OCRD) (ODBC- 2039) Message 131 - 183"
    The Business Partner has no transactions till now!!
    Thank you all and Best regards

    Hello Serkan Er 
    1.Does the error only happen to one BP?
    2.please read 1041482, this should apply to your case. if it does't help, please try the following:
    3.can the query return any results?
    declare @table                   nvarchar(16)
    declare @field                          nvarchar(256)
    select @table                    = 'OITM' -- parameter
    select @table = ltrim(rtrim(@table))
    create table problem_fields (field nvarchar(256))
    declare fldCursor1 cursor scroll optimistic for
    select [name] from syscolumns
    where [id] in (select [id] from sysobjects where [name]=@table) and [xtype] in (select [xtype] from systypes where [name] in ('char', 'varchar'))
    declare fldCursor2 cursor scroll optimistic for
    select [name] from syscolumns
    where [id] in (select [id] from sysobjects where [name]=@table) and [xtype] in (select [xtype] from systypes where [name] in ('nchar', 'nvarchar'))
    declare fldCursor3 cursor scroll optimistic for
    select [name] from syscolumns
    where [id] in (select [id] from sysobjects where [name]=@table) and [xtype] in (select [xtype] from systypes where [name] in ('datetime'))
    declare fldCursor4 cursor scroll optimistic for
    select [name] from syscolumns
    where [id] in (select [id] from sysobjects where [name]=@table) and [xtype] in (select [xtype] from systypes where [name] in ('nchar', 'nvarchar'))
    open fldCursor1
    fetch next from fldCursor1 into @field
    while (@@fetch_status = 0)
    begin
    exec(
    insert into problem_fields select ''' + @field + ''' where exists (select 1 from ' + @table + ' where len(' + @field + ')>0 and left(' + @field + ', 1) in ('' '', ''\t'', ''\n'', ''\r''))
    fetch next from fldCursor1 into @field
    end
    close fldCursor1
    deallocate fldCursor1
    open fldCursor2
    fetch next from fldCursor2 into @field
    while (@@fetch_status = 0)
    begin
    exec(
    insert into problem_fields select ''' + @field + ''' where exists (select 1 from ' + @table + ' where len(' + @field + ')>0 and left(' + @field + ', 1) in (nchar(0x0020), nchar(0x0009), nchar(0x000A), nchar(0x000D), nchar(0x00A0)))
    fetch next from fldCursor2 into @field
    end
    close fldCursor2
    deallocate fldCursor2
    open fldCursor3
    fetch next from fldCursor3 into @field
    while (@@fetch_status = 0)
    begin
    exec(
    insert into problem_fields select ''' + @field + ''' where exists (select 1 from ' + @table + ' where datediff(millisecond, cast(ltrim(rtrim(str(datepart(year, ' + @field + ')))) + ''-'' + ltrim(rtrim(str(datepart(month, ' + @field + ')))) + ''-'' + ltrim(rtrim(str(datepart(day, ' + @field + ')))) as datetime),' + @field + ')<>0)
    fetch next from fldCursor3 into @field
    end
    close fldCursor3
    deallocate fldCursor3
    open fldCursor4
    fetch next from fldCursor4 into @field
    while (@@fetch_status = 0)
    begin
    exec(
    insert into problem_fields select ''' + @field + ''' where exists (select 1 from ' + @table + ' where len(' + @field + ')>0 and right(' + @field + ', 1) in (nchar(0x0020), nchar(0x0009), nchar(0x000A), nchar(0x000D), nchar(0x00A0)))
    fetch next from fldCursor4 into @field
    end
    close fldCursor4
    deallocate fldCursor4
    select * from problem_fields
    drop table problem_fields
    Wilma Wang

  • What is Control Accounts? What is C/A for A/R and A/P?

    I have US COA set up automatically by SBO. So all accounts are already set up there.
    When I go to: Administration > Setup > Financial > G/L Account Determination:
    In Sales (general) tab, I noticed Account Receivable with (...) next to it.
    When I clicked it, it will bring window of Control Accounts for A/R.
    In Purchasing (general) tab, I noticed Account Payable with (...) next to it.
    When I clicked it, it will bring window of Control Accounts for A/P.
    1. What is this Control Accounts?
    Can I leave it blank as it is? If I left it blank, will it affect financial result? If the answer is it is OK to leave it blank then no need to answer my questions below. If I need to fill it out, then I need help with questions # 2  and # 3 below.
    2. Inside this Control Accounts for A/R: (note: we do business Domestic only)
    What will be the correct Account Code for Down Payment Receivable? (My guess it is A/R Domestic)?
    What will be the correct Account Code for Open Debts? (My guess it is A/R Domestic)?
    3. Inside this Control Accounts for A/P: (note: we do business Domestic only)
    What will be the correct Account Code for Down Payment Payable? (My guess it is A/P Domestic)?
    What will be the correct Account Code for Open Debts? (My guess it is A/P Domestic)?
    What will be the correct Account Code for Assets Account? (My guess it is A/P Domestic)?
    Thank you.

    Hi Tom
    You can define a G/L account as a control account.
    A control account links the business partner accounts to the general ledger. You must enter a control account in every business partner master record. Whenever you post a document to a business partner account, the system automatically adds a journal entry to the general ledger, which posts the receivables or payables to this control account.
    Some transactions, such as transactions with bills of exchange, must be posted to special control accounts. Therefore, you can assign these special accounts to predefined transaction types, such as
    Open Debts, Assets Account, Down Payments Receivable/Payable or other (country-dependent).
    You can also enter default control accounts under Administration &#61614; Setup &#61614; Financials &#61614; G/L Account Determination. These accounts appear by default whenever you create a new business partner.
    The system displays the total account balance in the business partner master record. From there you can navigate to the line item display of the account. In the line item display, the system displays the debit values in black and the credit values in green and in parentheses.
    If you are working with several control accounts, the system can display the business partner balances separately for every control account. To activate this, choose Administration &#61614; System Initialization &#61614; General Settings and select the Display Accounts Balance by Control Accounts indicator on the BP tab.
    You must have the proper authorization to view the accounts and balances.
    Hope this helps.
    Nagesh

  • Business partner changing in contract account

    Hi, all.
    Inform, please, somebody by experience, whether it is possible business partner change in contract account?
    At creation of the contract account the incorrect business partner was wrongly specified. In result one business partner had two contract accounts (one not him), and other business partner - any. This error was detected not immediately and exists several already billed and invoiced periods for today.
    Whether it is possible somehow assign to the contract account of other (correct) business partner (instead of existing) or transfer the contract account (without change its number) with all contracts from one business partner to another?
    Thank in advance.

    You have a few options:  execute a customer change or use the account holder functionality, or reverse all transactions and redo with correct partner.
    The account holder would enable you to keep the account number, but it only allows you to add a new business partner as related.  You cannot remove the current business partner relation, and thus might not be appropriate.
    The customer change process moves the contracts and account from one bp to another.  This will result in a new account number.
    Lastly, you can reverse the bills and moves, and then re-execute them with the correct bp. 
    regards,
    bill.

Maybe you are looking for

  • Is there any way to use paypal

    is there a way to buy apps thru the app store using a paypal account? i live in the country an the nearest place i can get an apple card is an hour away, i have no credit card, but i have a paypal account

  • Shift wise confirmation report

    Hi Is there any report in SAP to see the shiftwise confirmation reports in Production. Actualy my management wants to see the work center wise list as well as confirmation is done or not of that stage. E.G. Pre turning material in this operation is  

  • Listen to iHeartRadio

    I got this code Matthew Gyurgyik command line mplayer and created a new version for python3. So few free to listen iHeartRadio from everywhere. Station Default : 100z New york #!/usr/bin/python3 import subprocess import threading import argparse impo

  • Travel Management - ESS/R3

    Hi Experts, We need to implement Travel Management for one of our clients. I checked in R/3 its integrated with FI/AC.... I wanted to know whether travel management can be implemented in R/3.i.e without ESS... What are its advantages/disadvantages? R

  • ASCS on SAP HANA Appliance

    Hi All, I am planning to install the ASCS of SAP BW 7.4 in the same  Sap HANA Database Appliance . I read some notes, including the central note and found nothing related to the Central Services on the appliance. This scenario is supported by SAP? Re