Pogramm update for Vendor's bank account with duplicate No.

HI Guru's,
This program will perform the Vendor's bank account with
duplicate No. on both level on higher level as well company code level. but field lfa1-loevm not shwoing in the report..
if i put delection flag at company level or centrel level : lfa1-loevm.. will not showing in report.. how to modify any one can help me..
TABLES: lfa1,
        lfb1,
        lfbk,
        t077y.
DATA: BEGIN OF fi_vendor,
      bukrs     LIKE lfb1-bukrs,   "company code
      vendor_no LIKE lfbk-lifnr,   "Vendor No"
      name      LIKE lfa1-name1,   "Vendor name
      bank_no   LIKE lfbk-bankn,   "Bank account no.
      bankc_key LIKE lfbk-banks,   "Bank control key
      bank_key  LIKE lfbk-bankl,   "Bank account
      create_n  LIKE lfa1-ernam,   "Created by
      createon  LIKE lfa1-erdat,   "Created on
      acct_group LIKE lfa1-ktokk,  "Vendor group name
      deletion   LIKE lfa1-loevm,  "deletion flag
      nodel    LIKE lfa1-nodel,  "Central deletion block
      sperr      LIKE lfa1-sperr,  "Posting Block
      no_account TYPE i.
DATA: END OF fi_vendor.
DATA: vendor  LIKE lfb1-lifnr,
      name    LIKE lfa1-name1,
      bank    LIKE lfbk-bankn,
      company LIKE lfb1-bukrs,
      bc_key  LIKE lfbk-banks,
      b_key   LIKE lfbk-bankl,
      cre_by  LIKE lfa1-ernam,
      cre_on  LIKE lfa1-erdat,
      ven_group LIKE lfa1-ktokk,
      dele    LIKE lfa1-loevm,
      nodel   LIKE lfa1-nodel,  "Central deletion block
      sperr   LIKE lfa1-sperr,  "Posting Block
      number TYPE i.
DATA: fi_vendor_dupli LIKE fi_vendor OCCURS 0 WITH HEADER LINE.
DATA: fi_vendor_dupli1 LIKE fi_vendor OCCURS 0 WITH HEADER LINE.
CONSTANTS: a1sg(5) VALUE 'AH',
           w1sg(5) VALUE 'IMH',
           n1sg(5) VALUE 'NUH',
           t1sg(5) VALUE 'TTSH',
           q1sg(5) VALUE 'HQ',
           h1sg(5) VALUE 'PHARM',
           e1sg(5) VALUE 'NETC',
           p1sg(5) VALUE 'POLY',
           d1sg(5) VALUE 'DIAG'.
Limiting the select option to company code.
*SELECT-OPTIONS: bukrs FOR lfb1-bukrs.
START-OF-SELECTION.
  PERFORM bank_detail.
TOP-OF-PAGE.
  PERFORM header_detail.
*&      Form  BANK_DETAIL
      text
FORM bank_detail.
*To get the duplicate bank account.
  SELECT  lfbk~bankn COUNT( * ) INTO (bank, number)
                   FROM lfbk
                   INNER JOIN lfa1
                   ON lfa1lifnr EQ lfbklifnr
WHERE loevm NE 'X
                                      GROUP BY lfbk~bankn.
    IF sy-subrc EQ 0.
      IF number > 1.
        MOVE: bank       TO  fi_vendor_dupli-bank_no,
              number     TO  fi_vendor_dupli-no_account.
        APPEND fi_vendor_dupli.
        CLEAR fi_vendor_dupli.
      ENDIF.
    ENDIF.
  ENDSELECT.
*vendor created on higher level
  LOOP AT fi_vendor_dupli.
    SELECT alifnr abanks abankl abankn INTO
                        (vendor,bc_key, b_key, bank)
                        FROM lfbk AS a
                        INNER JOIN lfa1 AS c
                        ON alifnr EQ clifnr
                        WHERE a~bankn EQ fi_vendor_dupli-bank_no
AND c~loevm EQ space.
      IF sy-subrc EQ 0.
        CASE company.
          WHEN 'A1SG'.
            company = a1sg.
          WHEN 'W1SG'.
            company = w1sg.
          WHEN 'N1SG'.
            company = n1sg.
          WHEN 'Q1SG'.
            company = q1sg.
          WHEN 'H1SG'.
            company = h1sg.
          WHEN 'E1SG'.
            company = e1sg.
          WHEN 'P1SG'.
            company = p1sg.
          WHEN 'D1SG'.
            company = d1sg.
          WHEN 'T1SG'.
            company = t1sg.
        ENDCASE.
        MOVE: company    TO fi_vendor_dupli1-bukrs,
              vendor     TO fi_vendor_dupli1-vendor_no,
              bc_key     TO fi_vendor_dupli1-bankc_key,
              b_key      TO fi_vendor_dupli1-bank_key,
              bank       TO fi_vendor_dupli1-bank_no,
              fi_vendor_dupli-no_account TO
                     fi_vendor_dupli1-no_account.
        APPEND fi_vendor_dupli1.
        CLEAR fi_vendor_dupli1.
      ENDIF.
    ENDSELECT.
    CLEAR company.
  ENDLOOP.
*Vendor created under company code level eg. employee group.
  SELECT alifnr bbanks bbankl bbankn
                  INTO (vendor,bc_key, b_key, bank)
                  FROM lfb1 AS a
                  INNER JOIN lfbk AS b
                  ON alifnr EQ blifnr
                  FOR ALL ENTRIES IN fi_vendor_dupli1
                  WHERE a~lifnr EQ fi_vendor_dupli1-vendor_no.
    IF sy-subrc EQ 0.
      IF company NE space.
        MOVE: vendor     TO fi_vendor_dupli1-vendor_no,
              bc_key     TO fi_vendor_dupli1-bankc_key,
              b_key      TO fi_vendor_dupli1-bank_key,
              bank       TO fi_vendor_dupli1-bank_no.
        MODIFY fi_vendor_dupli1.
      ENDIF.
    ENDIF.
  ENDSELECT.
  LOOP AT  fi_vendor_dupli1.
    SELECT name1 ernam erdat ktokk loevm nodel sperr
                 FROM lfa1
                 INTO (name, cre_by, cre_on, ven_group, dele, nodel,
                 sperr)
                   WHERE loevm EQ space
                   AND lifnr = fi_vendor_dupli1-vendor_no.
      MOVE: name   TO fi_vendor_dupli1-name,
            cre_by TO fi_vendor_dupli1-create_n,
            cre_on TO fi_vendor_dupli1-createon,
            ven_group TO fi_vendor_dupli1-acct_group,
            dele      TO fi_vendor_dupli1-deletion,
            nodel   TO fi_vendor_dupli1-nodel,
            sperr  TO fi_vendor_dupli1-sperr.
      DELETE ADJACENT DUPLICATES FROM fi_vendor_dupli1
                          COMPARING vendor_no.
      MODIFY fi_vendor_dupli1 TRANSPORTING name
                                           bukrs
                                           create_n
                                           createon
                                           acct_group
                                           vendor_no
                                           deletion
                                           nodel
                                           sperr.
    ENDSELECT.
  ENDLOOP.
  SORT fi_vendor_dupli1 BY bank_no vendor_no.
  DATA: cnt TYPE i.
  LOOP AT  fi_vendor_dupli1.
    SELECT SINGLE * FROM t077y WHERE ktokk EQ
                              fi_vendor_dupli1-acct_group
                              AND spras EQ 'EN'.
WRITE: /1    fi_vendor_dupli1-bukrs,
        WRITE: /5   fi_vendor_dupli1-vendor_no,
            15   fi_vendor_dupli1-name,
            50    t077y-txt30,
            70   fi_vendor_dupli1-bank_no,
            90   fi_vendor_dupli1-bankc_key,
            95   fi_vendor_dupli1-bank_key,
            105  fi_vendor_dupli1-create_n,
            115  fi_vendor_dupli1-createon,
            128  fi_vendor_dupli1-deletion,
            134 fi_vendor_dupli1-nodel,
            158 fi_vendor_dupli1-sperr.
            ENDLOOP.
  ULINE.
ENDFORM.                    "BANK_DETAIL
*&      Form  HEADER_DETAIL
      text
FORM header_detail.
WRITE: /1 'Company',
  WRITE: /40 sy-title,
          110 'Page',sy-pagno.
  SKIP TO LINE 3.
  WRITE: /5 'Vendor No',
         15 'Vendor Name',
         50 'Acct Group',
         70 'Bank Account',
         87 'Country',
         95 'Bank Key',
         105 'Create By',
         115 'Create on',
         127 'Del.Flag',
         130'Central deletion flag',
         155'Block for Post.'.
  ULINE.
ENDFORM.                    "HEADER_DETAIL
regards
JK

solved

Similar Messages

  • HT201303 Someone uses my apple ID to purchase, I have changed my password but not work . How can I disassociate my bank account with my APPLE ID?

    Someone uses my apple ID to purchase, I have changed my password but not work . How can I disassociate my bank account with my APPLE ID?

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    For non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
     Cheers, Tom

  • I have been sharing my iTunes account with my kids...now they are getting older and want to have their own accounts, how do I share the songs I purchased for them on my account with them on their new accounts?

    I have been sharing my iTunes account with my kids...now they are getting older and want to have their own accounts, how do I share the songs I purchased for them on my account with them on their new accounts?  Is there a way to transer from my main account their new accounts?  And can I share music from my account with them?

    You can't currently transfer content from one account to another account. As long as the tracks are on the computer's iTunes that they use/sync to, and your account is authorised on that iTunes, then they should be able to continue to use them.

  • Is there a update for adobe after effects compatible with the mac os x 10.9.5 ?

    is there a update for adobe after effects compatible with the mac os x 10.9.5 ?

    If you are using After Effects CS6 (11) or After Effects CC (12), then install the updates:
    http://adobe.ly/AE_CC_1201_Mavericks

  • How to Top up Bank account with cash

    Hi Experts,
                    Can you give us a Configuration method to top up the Bank account with cash? i.e., I need to top-up the house bank with some money.
    With Regards
    Siva

    Hi,
    T.code F-02.
    pst key 40       Bank GL account           Amount
    Pst key 50       Cash Account                Amount
    Save
    Regards,
    Raj

  • Vendor's bank account number has 19 digits.

    Dear Friends,
    The user has run the proposal run (T.CodeF110). The  vendor's bank account number didn't captured in full because it contains 19 digits.
    The SAP Note has 96624 has been implemented.As I know, all the 19 digits are not captured in F110.
    Please suggest how to solve the issue?
    Regards
    Sridhar

    Hi,
    You can do the necessary settings in SPRO --> SAP Netweaver --> General settings --> set countries --> set country specific checks.
    Here you can mention 19 as bank account number length
    Dhara D.

  • I recently forgot the password for my iTunes UK account with 100 pounds of credit. I called apple and said no one could help me if I did not know the security questions. Really?

    I recently forgot the password for my iTunes UK account with 100 pounds of credit. I called apple and said no one could help me if I did not know the security questions. Really? This company that pretty much can do anything is not able to tell me what the password is?
    Any help i appreciated!!!! what doe aApple do with all the unclaimed money from lost or forgotten accounts?
    Jeffrey

    For a forgotten password: go to http://iforgot.apple.com and sign in with your iCloud login. A new password will be sent to your associated email address. If this doesn't work you will have to contact Support. Go to https://getsupport.apple.com; click' See all products and services', then 'More Products and Services, then 'Apple ID', then 'Other Apple ID Topics' then 'Lost or forgotten Apple ID password'.
    For forgotten security questions log in at http://appleid.apple.com and click 'Password and Security' in the sidebar. There should be a link in the Security Questions section to send the answers to an email you have specified. Failing this, go to https://getsupport.apple.com click 'See all products and services', then 'More Products and Services, then 'Apple ID', then 'Other Apple ID Topics' then 'Forgotten Apple ID security questions'.

  • HT1998 what is the latest update for Airport Express 802.11n with the Mac OSX10.6.8

    what is the latest update for Airport Express 802.11n with Mac OSX 10.6.8?

    You can find out as follows:
    Open Macintosh HD > Applications > Utilities > AirPort Utility
    Click the AirPort Express
    Click Manual Setup
    Click directly on the word Version (3rd line)
    If there are any updates, you will be notified.
    If there are not any updates, you have already have the latest firmware.

  • IBAN update for vendor bank details using  rfbikr00

    Hello,
    I am trying to update the IBAN details of vendor using standard upload program rfbikr00.While doing the same, the IBAN is not updated to the corresponding bank details line, rather it is creating a new line with IBAN only.
    I am using the below code for the IBAN update
    * IBAN Details.
        PERFORM clear_structure CHANGING s_blfbk_iban.
        MOVE-CORRESPONDING s_blfbk TO s_blfbk_iban.
        s_blfbk_iban-stype = '2'.
        s_blfbk_iban-tbnam = 'BLFBK_IBAN'.
        s_blfbk_iban-iban  = t_input_data-iban.
        MOVE s_blfbk_iban TO t_output_data.
    Can anybody point some inputs, why a new line is created for the IBAN?
    Any kind of help wil be appreciated.
    Thanks
    Mishra

    Did you tried using 'BAPI_IBAN_CHANGE' and 'BAPI_IBAN_CREATE' ?
    Thanks,
    K.Kiran.

  • ReUnable to Update Vendor BP Bank Account

    Hi,
    I am updating a supplier payment terms bank acount details but i am getting the following error. It used to get upated, but for some reason getting this error now.
    This entry already exist in the following table 'BP - Bank Account' ORCB (ODBC-2035)
    any help will be appreciated. The system is 2007 PL49

    Hi,
    You may check:
    Re: DTW - IMPORT BP BANK DETAILS
    payment report error
    Thanks,
    Gordon

  • System should allow to post to bank account with the available cash for cash account in fbl3n

    Hi Friends,
    User is posting Bank account Dr to
                           Cash account Cr
    If cash account balance is 40000 in FBL3N, and if user posting more than that amount, then system should not allow to post
    in F-02 and FB50 transactions.
    Pl help me out
    Thanks,

    Hi Mahesh,
    I think we cannot go for cash Journal, because for the below entry i should make the cash account
    settings as post automatically only in FS00 transaction.
    Bank account Dr to
    Cash account Cr
    If that is the case then we cannot post manually to the cash account.
    I think we need to go for some exit in validation.
    correct me if iam wrong.
    Thanks

  • Loading bank accounts with invoices using Payables Open Interface Import

    Dear Gurus,
    We are on 11.5.10.2.
    We create invoices in the 3rd party system, then load them into oracle using payables open interface import process.
    When users create invoices, they choose Vendor and Site first. If the Vendor Site has multiple bank accounts assigned, users may select the one that is non-primary.
    When we load the invoices into Oracle, it finds the PRIMARY account for the particular vendor site, and assigns it to the invoice.
    Is it possible to load bank accounts assigned to invoices into Oracle AP?
    Many Thanks,
    Iana

    Hi,
    No issues for me on Payables Open Invoice Interface with 12.0.6 - and yes make sure you match up the invoice_id on invoice, lines interface tables.
    Regards,
    Gareth

  • AUtomatic Payment Program - Unable to make payment to Foreign Vendor having bank account in home country and home currency

    Hi
    We have company code in India. Payment method C is configured. Now we have a requirement that we have to make a payment to a vendor in Bangladesh who is having Bank account in India in INR. Already I have ticked the foreign payments as shown below
    Now when we have to make a payment to bangladeshi Vendor , I am unable to generate any payment.
    Please Find the error detail as shown below:
    >            Payment method selection additional log
    > Payment method selection for items due now to the amount of INR          100,00-
    > Payment method "C" is being checked
    > Street or P.O. box entry is missing
    > No permitted payment method exists
    Information re. vendor 9021121 / paying company code 1021 ...
    ... payment not possible because of reported error
    End of log
    Step 002 started (program SAPFPAYM_SCHEDULE, variant &0000000001176,
    Step 003 started (program RFFOEDI1, variant &0000000000398,
    Program RFFOEDI1: No records selected
    Step 004 started (program RFFOUS_C, variant &0000000000784,
    Program RFFOUS_C: No records selected
    Job finished
    Anybody having any idea. Please Help

    Hi Raj,
    Please check the following things once.
    1. Check the vendor pyt method in XK03. Vendor should not be blocked at any level.
    2. Also check - FBZP - Pyt methods under country level - what are the mandatory parameters ? - Street, P.O. BOX or box pst code or bank acc.no, swift code, IBAN No.- check those parameters are maintained or not? If no, pls maintain the same.
    3. Doc currency - You have to maintain the INR currency in invoice. Also maintain the entry for INR currency in FBZP - Bank determination- ranking order & bank accounts. Else not psbl to make payment in foreign currency.
    I hope it clears else revert us with your issue.
    Thanks & Regards,
    Lakshmi S

  • Profit-center determination of bank subaccounts and bank accounts ; with new GL.

    The question here-under has been asked a number of times on forums, though never answered really to my knowledge. Let me try to get it formulated once more :
    - When a customer invoice is posted, the receivable is properly split per profit-center thanks to the active splitting solution.
    - When the customer invoice is paid through a bank transfer, the following happens generally :
         The bank statement posts a first area 'debit' bank and 'credit' bank sub-account on a default profit-center (this posting needs to happen first because SAP aims to have the 'bank' posted as quickly as possible 'in the morning' leaving the manual clearing activities 'in the afternoon').
         The bank statement posts a second area 'debit' bank sub-account and 'credit' + 'clearing' receivable. There, the combination of passive splitting and inheritence makes sure that the profit center of the invoice receivable line items is also used for this entire posting.
    - Manually or through automatic clearing, the bank sub-account gets cleared. Since the 2 sides have different profit-centers, the systems posts adjustment lines to the zero balance clearing account.
    My question : for companies that want to achieve an entire balance sheet per profit-center, it is a problem that the bank account debit and bank sub-account credit are still with a default profit-center. I understand that the splitting solution in new GL does not offer a way to solve that. One needs to adjust the profit-center on the bank account and bank-subacccount with an allocation cycle in EC-PCA. Is my understanding correct or is there a better solution available in New GL  ?
    Thanks for your replies.
    José Beghein 

    Hello Ronghua,
    Many thanks for your reply. This note is extremely interesting and gives a lot of technical information on the differences between classic PCA and new GL PCA.
    I nevertheless did not find clearly what is considered the best practice towards splitting bank account positions.
    Kind regards.
    José Beghein

  • Vendor Master Bank Account Number Changes

    Hi,
    Where are the changes of bank account number (New and the Old one) in vendor master data Reflected , is there any Table.??
    Regards,
    Archit

    You can see the bank account before and after values in vendor master display or change.  Call up the vendor master (XK02 or XK03), go to the Vendor: Payment transaction screen, and then select the menu path Environment -> Account Changes -> All Fields.  The bank account changes will be listed under the change screen heading "Vendor Master (Bank Details)".  You may need to click the button "Entries" to see the Vendor Master (Bank Details).  Double-click that line and you will see the before and after values for ever bank number change.
    Example:
    Entry Vendor Master (Bank Details)
    Date                          Chgd By              Co Bank Number    Acct/IBAN
    11/30/09         ??????????       US 043318092      987654321     NEW
    11/30/09         ??????????       US 043318092      123456789     OLD
    Hope this helps.

Maybe you are looking for