Fk02 Transaction .

hi ,
                 In FK02 Transaction . i need to change With Hold Tax Type automatically .This can be done only BDC/BAPI. please tell me the BAPI which updates the LFBW Table or If it is BDC do tell me how to position  the cursor using BDC.

Hi..,
Try this BDC code to upload with holding tax code of vendors. In this code, ITAB is the internal table which having structure as follows --
DATA: BEGIN OF ITAB OCCURS 0,
              LIFNR  LIKE LFB1-LIFNR,  "Vendor
              BUKRS  LIKE LFB1-BUKRS,  "Company Code
              EKORG LIKE LFM1-EKORG,"Purchase org
              QSSKZ LIKE LFB1-QSSKZ, "W.tax type
              QSREC LIKE LFB1-QSREC, "Recipient type
           END OF ITAB.
IF TEMP_BUKRS <> ITAB-BUKRS OR TEMP_LIFNR <> ITAB-LIFNR.
   IF FLAG EQ 'X'.
    PERFORM BDC_FIELD1       USING 'BDC_OKCODE'
                                   '=UPDA'.
    PERFORM BDC_TRANSACTION USING 'XK02'.
    CLEAR FLAG.
    CLEAR V_NO.
  ENDIF.
  PERFORM BDC_DYNPRO1      USING 'SAPMF02K' '0101'.
  PERFORM BDC_FIELD1       USING 'BDC_CURSOR'
                                 'RF02K-D0610'.
  PERFORM BDC_FIELD1       USING 'BDC_OKCODE'
                                 '/00'.
  PERFORM BDC_FIELD1       USING 'RF02K-LIFNR'
                                  ITAB-LIFNR.
  PERFORM BDC_FIELD1       USING 'RF02K-BUKRS'
                                  ITAB-BUKRS.
  PERFORM BDC_FIELD1       USING 'RF02K-D0610'
                                 'X'.
  PERFORM BDC_DYNPRO1      USING 'SAPMF02K' '0610'.
  PERFORM BDC_FIELD1       USING 'BDC_CURSOR'
                                'LFBW-WT_EXDF(01)'.
  PERFORM BDC_FIELD1       USING 'LFBW-WITHT(01)'
                                  ITAB-QSSKZ.
  PERFORM BDC_FIELD1       USING 'LFBW-WT_WITHCD(01)'
                                  ITAB-QSSKZ.
  PERFORM BDC_FIELD1       USING 'LFBW-QSREC(01)'
                                   ITAB-QSREC.
     FLAG = 'X'.
     ADD 2 TO V_NO.
ELSE.
IF V_NO NE 6.
CONCATENATE 'LFBW-WT_EXDF(' V_NO ')' INTO V_FLD.
CONDENSE V_FLD.
  PERFORM BDC_FIELD1       USING 'BDC_CURSOR'
                                  V_FLD.
CONCATENATE 'LFBW-WITHT(' V_NO ')' INTO V_FLD.
CONDENSE V_FLD.
  PERFORM BDC_FIELD1       USING  V_FLD
                                ITAB-QSSKZ.
CONCATENATE 'LFBW-WT_WITHCD(' V_NO ')' INTO V_FLD.
CONDENSE V_FLD.
  PERFORM BDC_FIELD1       USING  V_FLD
                                ITAB-QSSKZ.
CONCATENATE 'LFBW-QSREC(' V_NO ')' INTO V_FLD.
CONDENSE V_FLD.
  PERFORM BDC_FIELD1       USING    V_FLD
                                  ITAB-QSREC.
  ADD 1 TO V_NO.
ELSE.
CONCATENATE 'LFBW-WT_EXDF(' V_NO ')' INTO V_FLD.
CONDENSE V_FLD.
  PERFORM BDC_FIELD1       USING 'BDC_CURSOR'
                                  V_FLD.
CONCATENATE 'LFBW-WITHT(' V_NO ')' INTO V_FLD.
CONDENSE V_FLD.
  PERFORM BDC_FIELD1       USING  V_FLD
                                ITAB-QSSKZ.
CONCATENATE 'LFBW-WT_WITHCD(' V_NO ')' INTO V_FLD.
CONDENSE V_FLD.
  PERFORM BDC_FIELD1       USING  V_FLD
                                ITAB-QSSKZ.
CONCATENATE 'LFBW-QSREC(' V_NO ')' INTO V_FLD.
CONDENSE V_FLD.
  PERFORM BDC_FIELD1       USING    V_FLD
                                  ITAB-QSREC.
perform bdc_field       using 'BDC_OKCODE'
                              '=P+'.
perform bdc_dynpro      using 'SAPMF02K' '0610'.
V_NO = 1.
ENDIF.
ENDIF.
TEMP_BUKRS = ITAB-BUKRS.
TEMP_LIFNR = ITAB-LIFNR.
ENDIF.
Hope, it will help you.
Thanks,
Poonam.

Similar Messages

  • ERROR: IN FK02 TRANSACTION ALTER THE FIELD CHANGE REGION

    In FK02 Transaction when I try to alter the field REGION, the field taxjurcode does not change, so the messsage is showed  "The code of residence xxx does not match the address entered".
    Somebody knows what do I have to do?

    In FK02 Transaction when I try to alter the field REGION, the field taxjurcode does not change, so the messsage is showed  "The code of residence xxx does not match the address entered".
    Somebody knows what do I have to do?

  • Adding search help for field in FK02 Transaction

    Dear All,
         How to add a search to a field

    check this. for tehr info google or search in sdn.
    Re: Adding elementry search help to SAP standard Collective Search help
    Reddy

  • Where to add  Pan Number field in FK03/FK02

    Deal All,
                   i am new to FI. I have requirement to add Pan Number field in FK03/FK02 transaction screen for vendor master.
                   In our company we impemeted FI and HR only. Pleae help where is the Pan Number field and how to add to standard FK03/FK02 screen.
                          Thank you.

    Hi,
    in FK03/FK02 above vendor number u can find the CIN detail button. there u can give the PAN number in withholding tax
    or
    you can update the CIN details like excise number vat number, ECC no. and PAN number in Transaction code J1ID
    please assighn the points
    regards
    sai krishna

  • Payment to more than one vendor  Account Number

    Hello Experts,
    I need an urgent help. I need to show the customer an additional dropdown of all the account holders/numbers of the vendor mentioned in the FK02 transaction for Change Vendor: Payment transactions screen. The account holders mentioned here are not vendors by themselves. This should reflect in the F-58 transaction for Payment with printout. I think in the payee field.
    If i just enter values for account holders/numbers in fk02 for a vendor and try to set it in payee field in F-58 while payment, it says "Payee xxx (account holder) not defined in xxx (vendor) for  xxx (company code)"
    Please someone help me out I have been stuck for quite a while now to break through but no help ... Hoping for a quick response if me requirement is clear ...

    Hi Vijay, You are absolutly right, but I am actually not looking for alternate payee ... it was just a thought ...
    I just want to display all the alternate account holders with same bank account as mentioned int the bank details of the vendor, in the payment transaction say F-58. Rite now there is no facility to view it but my customer wants a drp-down so that he can select the account to which he can pay ....
    eg. the vendor is Bharti Airtel, it may have account holders as Airtel India1,Airtel India2,Airtel India3 all having the same bank account. Airtel India1,2,3 are not created as vendors in the vendor master.
    Now this name selected has to printed on the cheque instead of name1 of the vendor.
    I am now stuck whether this is possible or i have to write and enhancement in f-58 to include this and program to include this feature.
    if there is any help i can get on this will be a great favour.
    Regards.

  • Vendor/customer  Master data

    Dear Experts
    If existing vendor inform as with the letter, company name is  change form July 2009 ,what are the steps to be followed in sap
    If i change the Vendor Master from FK02 Transaction code, vendor master data will be changed. If i see the vendor master data /balance for DEC 2008 the vendor master data name is what i changed as of july 2009
    Is their any way to enter the period in master data as we change the cost center ( example:we define period in cost center)
    Does SAP has this Feature, if not any alternate solutions
    Your Responce will be appreciated
    Regards
    Shamulheq

    Hi,
    Vendor Name is stored centrally in the Vendor Master Data only and all the SAP Reports/Transaction would refer to this central information only, and hence if you would change the Name then the new name would only be visible everywhere......but yes the change history would always be available in the Vendor Master data.
    Your required logic can be implemented in a custom developed report by a ABAP programmer but in Standard it is not possible.
    Refer:
    Vendor name Changes

  • BAPI or Function Module to Update Vendor Details

    Hi Friends,
    I need to update Vendor Details (Street) in my program using a BAPI or Function Module. Is there such thing available which can do my job?
    Regards,
    Raju...

    Hi,
    Thanks for the Reply.
    I tried to use the FM Vendor_Update... It updates the adrress field in the table LFA1. But it is not reflected in the transaction FK02.
    So, Is there any thing that I have to do after the FM Vendor_Update is called so that the address field is also get reflected in address field of FK02 transaction.?
    Regards,
    Raju...

  • ECATT - Help help help

    Hi,
    It's 1 month that I try to create an e-catt like old SCAT .. but as you can see I'm not still be able  .....
    I'd like to create a test case related to a SAP transaction, I'd simply like to change the vendor name (FK02), data to be changed should flow to the system from a csv file. 
    This was very simple in old releases ... I used SCAT transaction ... now SCAT become very powerfull ... SECATT is the new name ... I studied all blogs .. all SDN messages .. I made a lot of test .. but .. I'm not able to make a massive change data from a file ...
    I try to explain what I've made ....
    1) Created the test script    
        ZANAGRAFICA_FORNITORI_PERSFIS version 1
       It's a TCD test script related to FK02 transaction
       I've changed the mode from S to I for following data in the
       command view
       - RF02K-BUKRS
       - RF02K-LIFNR
       - RF02K-NAME1
       I inserted parameters Società, fornitore, name1
    2) Configuration test
        ZANAGRAFICA_FORNITORI_PERSFIS
        related to ZANAGRAFICA_FORNITORI_PERSFIS testscript
        I press variants, make the download and the system created
        the example file (like you did in the old SCAT) I stored in it
        all data that I should change (3 vendors)
        I inserted external variants, i put the file name in the
        field but when I execute it, the system doesn't do  
        anything, it seems that the system see only default data.     System doesn't take data from my file!!!
    Anyone could help me? Please .. I'm going MAD!!
    Thanks
    Lara

    Hi Friend,
    Please go through the following link
    http://help.sap.com/saphelp_nw04/helpdata/en/20/e81c3b84e65e7be10000000a11402f/frameset.htm
    Regards,
    Suresh.S

  • How to add a search help to a field  Bank Type in Transaction FK02

    Dear All,
         How to add a search help to a field  Bank Type in Transaction FK02.
         Is there any possibilty of using  exit or searc help or domain to solve this problem.
            Thanks in Advance..
    Thanks,
    Lakhsmi.

    Hi, Tamas,
    I found the reason. The function Z_WEBRFC_READ_DATA_SH had a string concatenation error.
    CONCATENATE '{"results":[{"key": "shlpname", "value": "' l_shlp '"},"key": "fieldname", "value": "' l_field '"}]}' INTO htmldoc-line.
    The correct code is like:
    CONCATENATE '{"results":[{"key": "shlpname", "value": "' l_shlp '"},{"key": "fieldname", "value": "' l_field '"}]}' INTO htmldoc-line.
    Another question is, I can't get any words in Chinese from WebRFC. It returns error when I try it. How can I configure it?
    Xin

  • Mass change in fk02-payment transaction-bank name

    Dear All :
    i want to do mass changes in fk02 - payment transaction tab - bank data tab - bank name field
    table name is BNKA , field name is BANKA
    Please suggest t code for same
    vijay

    As far as i know the Bank name field is non editable and it flows from Bank key which means the name is bank key specific...so you have to change the bank name of the Bank key...for this i think LSMW or BAPI needs to be created for the Bank key change transaction code FI02.
    Regards,
    Indranil

  • Call transaction 'FK02' Swift code not updating

    Hi All,
    I am uploading Bank information into FK02 tcode.
    Here I am uploading LIFNR, BANKS,BANKL,BANKN, IBAN and Swift code.
    Except Swift code, everything is updating correctly into the transaction. Why Swift code is not getting correctly updated?
    Is there any dependency to this field.?
    Regards,
    Chinna

    Hi,
          1) first check the bdc by putting mode as 'A' all screens
          2) and check is there any need for conversion routines i.e conversion_exit_aplpha_input
    Thanks & Regards,
    Sateesh.

  • Payments transactions in t-code FK02

    Hi,
    I would like to allow only one user to change the payment transactions in provider master data but i want to allow all the other users to change data like the address and the name
    Ca i achieve my goal? How can i do that?
                              Best Regards
                                   João Fernandes

    Hi...
    Otherwise ask your BASIS consultant  to create user level role.so based on that it controls field wise inputs data
    once created user level role the system will through  authorization error message...
    I hope it will helps
    regards
    vamsil

  • Improve performance of bdc call transaction

    Hi all,
    I am performing a batch update of tax codes in a BDC call transaction program. This particular code takes about 3 minutes to process 2,600 entries. I have tried almost everything but is there a way to improve / make it run faster?
    I have a feeling it has something to do with the form "do_transaction", but I really don't know anymore.
    Thank you in advance.
    Attached is the code:
    *& Report  ZFI_CHANGEWTAX
    *&  Description: Change Doctors Withholding Tax Code (EI)
    *&  Using BDC Call Transaction Method
    *&  Created by : mpena
    *&  Created on : 07/15/2009
    *&  Modification History
    *&  Seq  Changed on
    *&       Changed by
    *&  001   07/15/2009
    *&        mpena         Initial Development
    *&  002   07/20/2009
    *&        mpena         Logic modification
    *&                      Testing
    *&  003   07/20/2009
    *&        mpena         Call function parameter modification
    *&  004   07/22/2009
    *&        mpena         Report generation
    *&                      Performance improvements
    REPORT zfi_changewtax
           NO STANDARD PAGE HEADING
           MESSAGE-ID zfk02msg.
    TYPES: BEGIN OF t_tax,
           lifnr LIKE lfa1-lifnr,                "account number
           wt_withcd LIKE lfbw-wt_withcd,        "current tax code
           wt_withcd_new LIKE lfbw-wt_withcd,    "new tax code (left blank at default)
           END OF t_tax.
    DATA:  wa_tax TYPE t_tax,
           i_tax TYPE STANDARD TABLE OF t_tax,
           it_bdcdata TYPE bdcdata OCCURS 0 WITH HEADER LINE,
           lin TYPE i.
    -------Selection Screen Design -
    SELECTION-SCREEN:
    SKIP 1,
    BEGIN OF BLOCK blk1 WITH FRAME TITLE aaa.
    PARAMETERS: p_ktokk LIKE lfa1-ktokk DEFAULT 'DOCT' OBLIGATORY,
                p_bukrs LIKE lfbw-bukrs DEFAULT 'SL' OBLIGATORY,
                p_wtax LIKE lfbw-wt_withcd OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK blk1.
    INITIALIZATION.
      aaa = 'Change Tax Code to specified value'.
    TOP-OF-PAGE.
      WRITE:
      / 'Update of taxes successful on:', sy-datum, sy-uzeit,
      / 'Generated by:', sy-uname,
      / 'Company Code:', p_bukrs, 'Vendor Group:', p_ktokk.
      SKIP 1.
      ULINE.
      WRITE:
      / 'Account Number', 20 'Old Withholding Tax Code', 50 'New Withholding Tax Code'.
      ULINE.
    START-OF-SELECTION.
      SELECT lfa1~lifnr
             lfbw~wt_withcd
      INTO TABLE i_tax
      FROM lfa1 INNER JOIN lfbw
        ON lfa1lifnr = lfbwlifnr
        WHERE lfbw~bukrs EQ p_bukrs
        AND lfbw~witht EQ 'EI'.
      IF sy-subrc EQ 0.
        DESCRIBE TABLE i_tax LINES lin.
      ENDIF.
    Update i_tax with new value of wt_witchd, then display for comparison.
    After write: if old and new tax are the same, tax update was not successful for that specific account
    or inputted tax type is the same as the old one.
      LOOP AT i_tax INTO wa_tax.
        wa_tax-wt_withcd_new = p_wtax.
        MODIFY i_tax FROM wa_tax.
        WRITE:
        / wa_tax-lifnr,
        20 wa_tax-wt_withcd,
        50 wa_tax-wt_withcd_new.
        CLEAR wa_tax.
      ENDLOOP.
      PERFORM do_transaction USING p_bukrs p_wtax.
    *&      Form  do_transaction
         Extracted from ZFKO2 recording accessible in shdb.
    FORM do_transaction USING v_bukrs v_wtax.
      MESSAGE i000 WITH lin.
      LOOP AT i_tax INTO wa_tax.
        REFRESH it_bdcdata.
        PERFORM bdc_dynpro      USING 'SAPMF02K' '0106'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'RF02K-D0610'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM bdc_field       USING 'RF02K-LIFNR'
                                      wa_tax-lifnr.
        PERFORM bdc_field       USING 'RF02K-BUKRS'
                                      v_bukrs.
        PERFORM bdc_field       USING 'RF02K-D0610'
                                      'X'.
        PERFORM bdc_dynpro      USING 'SAPMF02K' '0610'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'LFBW-WT_WITHCD(01)'.
        PERFORM bdc_field       USING 'LFB1-QLAND'
                                      'PH'.
        PERFORM bdc_field       USING 'LFBW-WT_WITHCD(01)'
                                      v_wtax.
        PERFORM bdc_dynpro      USING 'SAPMF02K' '0610'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=UPDA'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'LFB1-QLAND'.
        PERFORM bdc_field       USING 'LFB1-QLAND'
                                      'PH'.
        CALL TRANSACTION 'FK02' USING it_bdcdata
                                MODE   'N'
                                UPDATE 'A'.
      ENDLOOP.
      MESSAGE i001.
    ENDFORM.                    "do_transaction
           form for bdc dynpro
    FORM bdc_dynpro USING program
                          dynpro.
      it_bdcdata-program = program.
      it_bdcdata-dynpro = dynpro.
      it_bdcdata-dynbegin = 'X'.
      APPEND it_bdcdata.
      CLEAR it_bdcdata.
    ENDFORM.                    "bdc_dynpro
           form for bdc field
    FORM bdc_field  USING fnam
                          fval.
      it_bdcdata-fnam = fnam.
      it_bdcdata-fval = fval.
      APPEND it_bdcdata.
      CLEAR it_bdcdata.
    ENDFORM.                    "bdc_field

    You might want to try using a BAPI instead of a call transaction.   I believe "BAPI_VENDOR_SAVECHARVALREPLICA" will work for you.  Calling a BAPI is just like calling a function module.   After you call the bapi remember to commit it with the function module "BAPI_TRANSACTION_COMMIT".

  • Vendor Master- Prepayment field on Payment Transaction Accounting

    This field under Invoice verification tab has 4 options- one of which is - leave blank/ space and this will prevent the system from posting Prepayment against this vendor.
    I have left this field blank yet I can post Down payment against this vendor using F-47 and F-48- what am I missing? Does the term Prepayment term means something dofferent than Down payment?
    Need help to understand this
    Thanks
    Raj

    hey
    u have to set vendor pay ment block thru fk02 for vendor and company code combivnation.
    there is a subscreen called automatic payment transaction in which there is payment block option is there u have to select that
    there are blocking keys are there wich can be controlled by OB27 keys are having description like..
    eg ..free for payment, skip for accountm,lock for payment,payment request etc.
    please chk that in yours case.
    KAustubh

  • How to restrict some users from viewing a screen of standard transaction

    Hi All,
    I need to restrict certain user ids from viewing the 'Payment Transactions' screen for the below mentioned transactions.
    FK01, FK02, FK03, MK01, MK02, MK03, XK01, XK02, XK03
    The Basis consultant has tried to configure it. However its not working. So need to find other solution.
    For all transactions other than FK01, MK01, XK01 (create vendor), the BAdi GOS_SRV_SELECT is called before the payment transaction screen appears. But for transactions FK01, MK01and XK0, no such BAdi is there.
    Also I'm not able to figure out how to restrict that particular screen using Badi GOS_SRV_SELECT. What will be the service name for this?
    Please help !!!
    Thanks in advance,
    Radhika

    hi,
    u can do this using user exits.
    identify the appropriate exit for ur transaction and thn put condition like
    if username = ...
    loop at screen.
    hide..
    endloop.
    i was just trying to give u some hint .make it to ur best.
    reward if hlpful.

Maybe you are looking for