Xk01 upload

Hiii Gems
im trying to upload Vendor Master Data using Tcode XK01
i have line items for with holding taxes
what fields should i take in the Header
what fields should i take in the Item
can anybody send me the complete logic
points will be rewarded
regards
Jaipal

Hy Jaipal,
Look at the documentation in the report RFBIKR00. It's the standard report for loading vendors.  In the documentation it explains how to use. It's simple and works very well

Similar Messages

  • Hi regarding material master and vendor master (mm01,xk01) upload using BDC

    hi can any one tell me how to upload material maste and vendor master using BDC.
    will the views capture by shdb when i use recording.

    Hey i suggest you to go to LSMW direct input program method. That's the best option.
    Material Master:
    Object               0020   Material master
    Method               0000
    Program Name         RMDATIND
    Program Type         D   Direct Input
    Vendor Master:
    Object               0040   Vendor master
    Method               0001   Standard
    Program Name         RFBIKR00
    Program Type         B   Batch Input

  • XK01 Uploading thru LSMW

    while uploading Vendor master thru LSMW, if we will create one record to get the field name when i tried that the screen is looking different in the template which i have collected from client is having 2 columns for address.
    Street 2, street 3
    Now in the LSMW screen i am seeing  only one field street 2 for address..
    i deleted the street 3 what i had in the flat file and i have successfully completed my uploading, now i need to upload the street 3 also
    Pls guide me...

    Hi,
    It is risky job to add new field u201Cstreet 3u201D but can be done & care must be taken as LSMW already done for specific job. As you are using recording method with LSMW, then can add an extra field ( But you should know the screen field name of the field) in maintain object attribute segment (in change mode) by clicking Add Screen field (no4 icon from left side in application toolbar).But you must be careful for adding new field with a logic of sequence ( Like street 1 , street 2 & then street 3) and should be placed properly.
    Regards,
    Biju K

  • Upload vendor master data from legacy system to internal table tcode xk01

    through batch input program how to upload vendor master data from legacy system to internal table and then to SAP R/3 database(transaction XK01) by using recording method.

    By learning the basics of BDC recording and the use of GUI_UPLOAD

  • Problem while uploading bank details in Vendor Master - XK01

    Hello Experts,
    I am encountering a problem while uploading Vebndor Master Details in Quality server . The bank details for a given bank (Eg : BankABC and Bank Key IN) throws an error saying BANK IN BANKABC DOES NOT EXIST . But , with the same details i am able to upload in Sandbox and Development Servers. Pls suggest on the same.

    Hello again,
    Thank you for the inputs.
    Venkat,
    All the required fields are active. Please give some more input.
    Rob,
    Bank is supposed to be created during the upload. The bank details which already exists in the sytem are not throwing the error. Please give suggestions for this scenario.
    Regards,
    Trishna

  • How to upload a text in the customer master?

    hiall,
    in vd02 u go to extras->texts.
    Now I have to upload a text there..
    so i passed the text objetct-knvv
                                   name-kunnrvkorgvtweg+spart
                                   id-the rewuired agains which i have to upload
                                   lang-en
    i used fm save_text in badi method read_add_on_data in prog sapmvf02d.
    though the fm is working but when i am executing vd02 again the text is not appearing in vd02..Can u help me with this..

    Hi,
            Upload Program for Xk01 ..
    REPORT Y730_BDC5 .
    DATA : BEGIN OF IT_DUMMY OCCURS 0,
           DUMMY(100) TYPE C,
           END OF IT_DUMMY.
    DATA : BEGIN OF IT_XK01 OCCURS 0,
           LIFNR(10) TYPE C,
           BUKRS(4)  TYPE C,
           EKORG(4)  TYPE C,
           KTOKK(4)  TYPE C,
           NAME1(30) TYPE C,
           SORTL(10) TYPE C,
           LAND1(3)  TYPE C,
           SPRAS(2)  TYPE C,
           AKONT(6)  TYPE C,
           FDGRV(2)  TYPE C,
           WAERS(3)  TYPE C,
           END OF IT_XK01,
           BEGIN OF IT_BANK OCCURS 0,
           BANKS(3)  TYPE C,
           BANKL(10) TYPE C,
           BANKN(10) TYPE C,
           KOINH(30) TYPE C,
           LIFNR(10) TYPE C,
           END OF IT_BANK.
    DATA : IT_BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE,
           IT_BDCMSGCOLL LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
       FILENAME                      = 'C:\VENDOR.TXT'
       FILETYPE                      = 'ASC'
    TABLES
       DATA_TAB                      = IT_DUMMY.
    LOOP AT IT_DUMMY.
      IF IT_DUMMY-DUMMY+0(2) = '11'.
        IT_XK01-LIFNR = IT_DUMMY-DUMMY+2(10).
        IT_XK01-BUKRS = IT_DUMMY-DUMMY+12(4).
        IT_XK01-EKORG = IT_DUMMY-DUMMY+16(4).
        IT_XK01-KTOKK = IT_DUMMY-DUMMY+20(4).
        IT_XK01-NAME1 = IT_DUMMY-DUMMY+24(30).
        IT_XK01-SORTL = IT_DUMMY-DUMMY+54(10).
        IT_XK01-LAND1 = IT_DUMMY-DUMMY+64(3).
        IT_XK01-SPRAS = IT_DUMMY-DUMMY+67(2).
        IT_XK01-AKONT = IT_DUMMY-DUMMY+69(6).
        IT_XK01-FDGRV = IT_DUMMY-DUMMY+75(2).
        IT_XK01-WAERS = IT_DUMMY-DUMMY+77(3).
        APPEND IT_XK01.
      ELSE.
        IT_BANK-BANKS = IT_DUMMY-DUMMY+2(3).
        IT_BANK-BANKL = IT_DUMMY-DUMMY+5(10).
        IT_BANK-BANKN = IT_DUMMY-DUMMY+15(10).
        IT_BANK-KOINH = IT_DUMMY-DUMMY+25(30).
        IT_BANK-LIFNR = IT_DUMMY-DUMMY+55(10).
        APPEND IT_BANK.
      ENDIF.
    ENDLOOP.
    LOOP AT IT_XK01.
    REFRESH IT_BDCDATA.
    perform bdc_dynpro      using 'SAPMF02K' '0100'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RF02K-REF_LIFNR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'RF02K-LIFNR'
                                  IT_XK01-LIFNR.
    perform bdc_field       using 'RF02K-BUKRS'
                                  IT_XK01-BUKRS.
    perform bdc_field       using 'RF02K-EKORG'
                                  IT_XK01-EKORG.
    perform bdc_field       using 'RF02K-KTOKK'
                                  IT_XK01-KTOKK.
    perform bdc_dynpro      using 'SAPMF02K' '0110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFA1-TELX1'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'LFA1-NAME1'
                                  IT_XK01-NAME1.
    perform bdc_field       using 'LFA1-SORTL'
                                  IT_XK01-SORTL.
    perform bdc_field       using 'LFA1-LAND1'
                                  IT_XK01-LAND1.
    perform bdc_field       using 'LFA1-SPRAS'
                                  IT_XK01-SPRAS.
    perform bdc_dynpro      using 'SAPMF02K' '0120'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFA1-KUNNR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_dynpro      using 'SAPMF02K' '0130'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFBK-KOINH(02)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    DATA : FNAM(20) TYPE C,
           IDX      TYPE C.
      MOVE 1 TO IDX.
    LOOP AT IT_BANK WHERE LIFNR = IT_XK01-LIFNR.
      CONCATENATE 'LFBK-BANKS(' IDX ')' INTO FNAM.
      perform bdc_field       using FNAM
                                    IT_BANK-BANKS.
      CONCATENATE 'LFBK-BANKL(' IDX ')' INTO FNAM.
      perform bdc_field       using FNAM
                                    IT_BANK-BANKL.
      CONCATENATE 'LFBK-BANKN(' IDX ')' INTO FNAM.
      perform bdc_field       using FNAM
                                    IT_BANK-BANKN.
      CONCATENATE 'LFBK-KOINH(' IDX ')' INTO FNAM.
      perform bdc_field       using FNAM
                                    IT_BANK-KOINH.
      IDX = IDX + 1.
    ENDLOOP.
    perform bdc_dynpro      using 'SAPMF02K' '0130'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFBK-BANKS(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    perform bdc_dynpro      using 'SAPMF02K' '0210'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFB1-FDGRV'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'LFB1-AKONT'
                                  IT_XK01-AKONT.
    perform bdc_field       using 'LFB1-FDGRV'
                                  IT_XK01-FDGRV.
    perform bdc_dynpro      using 'SAPMF02K' '0215'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFB1-ZTERM'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_dynpro      using 'SAPMF02K' '0220'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFB5-MAHNA'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_dynpro      using 'SAPMF02K' '0310'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'LFM1-WAERS'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'LFM1-WAERS'
                                  IT_XK01-WAERS.
    perform bdc_dynpro      using 'SAPMF02K' '0320'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'WYT3-PARVW(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    perform bdc_dynpro      using 'SAPLSPO1' '0300'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=YES'.
    CALL TRANSACTION 'XK01' USING IT_BDCDATA
                            MODE  'A'
                           UPDATE 'S'
                         MESSAGES INTO IT_BDCMSGCOLL.
    ENDLOOP.
    FORM BDC_DYNPRO USING PROG SCR.
      CLEAR IT_BDCDATA.
      IT_BDCDATA-PROGRAM = PROG.
      IT_BDCDATA-DYNPRO  = SCR.
      IT_BDCDATA-DYNBEGIN = 'X'.
      APPEND IT_BDCDATA.
    ENDFORM.
    FORM BDC_FIELD USING FNAM FVAL.
      CLEAR IT_BDCDATA.
      IT_BDCDATA-FNAM = FNAM.
      IT_BDCDATA-FVAL  = FVAL.
      APPEND IT_BDCDATA.
    ENDFORM.
    Regards

  • Problem with a view in XK01 transaction

    Hi All,
    I am working on upload conversion for Vendor Master. While doing conversion, i am getting a problem with a Contact person view in XK01 transaction. In contact person view the telephone field column sometimes allowing to add data ,sometimes it's not allowing data which results an error in conversion program saying that the telephone field in not an input field. I don't know why the view is showing the telephone field like that.
    Can any one suggest the solution for this problem. I know this is configuration problem with a view but i posted in ABAP forums.
    Thanks

    Hi Ben,
    I assume that you are writing a BDC program to upload contact person information. If so, you are trying to populate a table control here. Please check to see if you are calculating the index to assign values to the correct rows.
    if you are calculating index in your program then i think it should be configuration problem as you said.
    Thanks,
    Ganesh.

  • Vendor Master- CIN details Upload

    Hello Experts
    I want to upload the CIN details of the vendors. We are working on implementation of CIN, so please suggest what all things should be taken care.
    We are planing to go with LSMW, recording method.
    But when i tried that in ides, the pop up window for cin details was not coming in XK02 transaction. What can be the issue?
    Also, is the concept of small scale industries still maintained in india?
    Also there is a field 'type of vendor' in the excise duty tab in the CIn details. whats its significance?
    Regards

    hi,
    go to
    spro - logistics-general - material master - Configuring the Material Master - Maintain User Settings
    here you need to put the SAP user ID. Only these people can view the CIN data at Vendor Master (XK01, 02, 03). For them, the CIN Data button will be displayed.
    You can upload the data by LSMW, but you need to do the above mentioned setting in each and every client. For LSMW the screen should be identical in all clients.
    You need to use the SAP ID for which you have given access of the CIN Data Tab.
    I am sure this will help you. I have used it in my earlier projects.
    Regards,
    Anand

  • LSMW-Vendor master data and Vendor Open items Upload

    Dear Experts,
    I need help on the following
    Do you have any docs with you where I can familiarize myself with the AP upload programs in LSMW?
    sample template for me  to test the upload via LSMW? sample template and the programs used to upload the vendor master and Vendor open items.how to use the program for example like some instruction docs step by step doc etc.
    Thanks n Regards
    Rena.

    hi
    there are 14 steps u have to go through while uploading...
    first u create Project and Sub Projects...
    1 Maintain Object Attributes
       select Batch Input Recording.
               click on Overview.
       enter Recording
    Then it wil ask for the Transaction code there u enter XK01 for creation
    u enter all The details Which are Given to u in Excel by ur CTM Members.
    note: Dont use Mouse while Entering the data.Use Only Key Board.
    After Entering all the required details  click on  Save...
    select Default All
    System-> List -> Save -> Local File
    Convert Excel to Text File(Text Tab Limited)
      2 Maintain Source Structures
         Create Source Structure.
    3 Maintain Source Fields
         click on Copy Fields
         Select From Data File
         Select Max Len
         save + back
      4 Maintain Structure Relations
         save+back
       5 Maintain Field Mapping and Conversion Rules
          Extras -> Auto Field Mapping
          select Edit All Target Fields
          save + Back
       7 Specify Files
         Click on Execute Button or press F8.Select u201CSPECIFY FILESu201D click on Execute or press ctrl+F8.
         then double click on the u201CLEGACY DATA FILEu201D and select the text file to be uploaded
         Then select u201CTABULATORu201D and u201CFIELDS NAMES AT START OF FILEu201D
        8 Assign Files
           SAVE AND CLICK ON BACK
         9 Read Data
             Execute + back
        10 Display Read Data
             Back
        11 Convert Data
              Execute + back
        12 Display Converted Data
             back
        13 Create Batch Input Session
             Select u201CKeep Batch Input Folderu201D click on Execute.
         14 Run Batch Input Session
              Select Processing mode
               1)     Process in Foreground: Executes Each Step.
                2)     Display Errors Only: Displays only the Errors.
              3)     Background: Skips The Errors.
    Select Extended Log and Click on Process as shown in Screen Shot.
    Edited by: Smitha KB on Feb 24, 2009 10:32 AM

  • LSMW Vendor XK01 Session Failed to create

    Hi all,
    I am trying to upload vendor data using LSMW using direct batch program RFBIKR00 . Would like to store Compnay code level details also. I did have Compnay code 0001  in FIle..I checked Converted data also, but getting below error ....
    FB012                    Session 1 : Special character for 'empty field' is /
    FB007                    Session 1 session name VENDR_BTCH_I was opened
    FB105                    Trans. 6 XK01 : CoCde not entered; company code area not being edited
    FB125                    ... Data in table BLFB1 cannot be processed
    FB016                    ... Last header record ...
    FB014                    ... BLF00-STYPE 1
    FB014                    ... BLF00-TCODE XK01
    FB014                    ... BLF00-LIFNR /
    FB014                    ... BLF00-BUKRS
    FB014                    ... BLF00-EKORG
    FB014                    ... BLF00-KTOKK
    FB017                    ... Last data record ...
    FB014                    ... BLFB1-STYPE 2
    FB014                    ... BLFB1-TBNAM BLFB1
    FB014                    ... BLFB1-AKONT
    FB014                    ... BLFB1-ZUAWA
    FB014                    ... BLFB1-LNRZE /
    FB014                    ... BLFB1-BLNKZ /
    FB014                    ... BLFB1-XDEZV /
    FB014                    ... BLFB1-FDGRV /
    FB014                    ... BLFB1-BEGRU /
    FB014                    ... BLFB1-VZSKZ /
    FB014                    ... BLFB1-ZINDT /
    FB014                    ... BLFB1-ZINRT /
    FB014                    ... BLFB1-DATLZ /
    FB014                    ... BLFB1-QSSKZ /
    FB014                    ... BLFB1-QSZNR /
    FB014                    ... BLFB1-QSZDT /
    FB014                    ... BLFB1-ZTERM
    FB014                    ... BLFB1-TOGRU /
    FB014                    ... BLFB1-KULTG /
    FB014                    ... BLFB1-REPRF
    FB014                    ... BLFB1-ZWELS
    FB014                    ... BLFB1-ZAHLS /
    FB014                    ... BLFB1-LNRZB /
    FB014                    ... BLFB1-HBKID /
    FB014                    ... BLFB1-XPORE /
    FB014                    ... BLFB1-WEBTR /
    FB014                    ... BLFB1-XVERR /
    FB014                    ... BLFB1-BUSAB /
    FB014                    ... BLFB1-EIKTO
    FB014                    ... BLFB1-ZSABE /
    FB014                    ... BLFB1-KVERM /
    FB014                    ... BLFB1-LOEVM /
    FB014                    ... BLFB1-SPERR /
    FB014                    ... BLFB1-MINDK /
    FB014                    ... BLFB1-ALTKN /
    FB014                    ... BLFB1-ZGRUP /
    FB014                    ... BLFB1-MGRUP /
    FB014                    ... BLFB1-UZAWE /
    FB014                    ... BLFB1-QSREC /
    FB014                    ... BLFB1-QSBGR /
    FB014                    ... BLFB1-QLAND /
    FB014                    ... BLFB1-XEDIP /
    FB014                    ... BLFB1-FRGRP /
    FB014                    ... BLFB1-PERNR /
    FB014                    ... BLFB1-TLFXS /
    FB014                    ... BLFB1-TOGRR /
    FB014                    ... BLFB1-INTAD /
    FB014                    ... BLFB1-GUZTE /
    FB014                    ... BLFB1-GRICD /
    FB014                    ... BLFB1-GRIDT /
    FB014                    ... BLFB1-XAUSZ /
    FB014                    ... BLFB1-CERDT /
    FB014                    ... BLFB1-NODEL /
    FB014                    ... BLFB1-TLFNS /
    FB014                    ... BLFB1-GMVKZK /
    FB014                    ... BLFB1-PREPAY_RELEVANT /
    FB014                    ... BLFB1-ASSIGN_TEST /
    FB014                    ... BLFB1-SENDE /
    FB013                    ....Editing was terminated
    Thanks,
    sri

    solved myself...empty records at the end of  text fille lead to empty company code ...

  • Problem in LSMW - Vendor master upload

    Hello Experts,
    I am doing vendor upload using LSMW direct input (RFBIKR00) program. I am uploading files in LFA1, LFB1, LFBK, LFM1 and MAIN - total 5 files, MAIN file has all the key fields which is in(BLF00) structure. Other files has same table structure as its names are.
    Now When I run the batch input session. It works for the first vendor, but if there is record for the same vendor with other company code, then it gives error as no data available for screen 102.
    for eg. MAIN file has records as below
    KTOKK,EKORG,BUKRS,LIFNR,TCODE
    LIEF, 0990, US01, 0001234567, XK01
    LIEF, , CH01, 0001234567, XK01
    In above records, same vendor has 2 company codes, so for the 2nd record, I think Accounting Information screen should come directly, but when I saw session run in foreground, it takes all the fiels blank , and then gives error as no data available for the screen, and it does not create record for CH01.
    Please suggest If I have to do something else for it, or am I doing anything wrong!?!
    Regards,
    bh_hir

    HI,
    In step 12, I see both the records, but in the 2nd record - I also see LFA1 and LFM1 structure filled with LFB1.
    so I think for 2nd record It should just fill LFB1 and header(BLF00) right?
    But dont know how to achieve this...
    please suggest.
    Thanks,
    bh_hir

  • Vendor Master Upload Program

    Check this code to upload vendor master through SHDB transaction.
    report ZVEND_MST no standard page heading line-size
    255.
    *include bdcrecx1.
    *parameters: dataset(132) lower case default
    'c:\vend.mst'.
       DO NOT CHANGE - the generated data section - DO
    NOT CHANGE    ***
      If it is nessesary to change the data section use
    the rules:
      1.) Each definition of a field exists of two lines
      2.) The first line shows exactly the comment
          '* data element: ' followed with the data
    element
          which describes the field.
          If you don't have a data element use the
          comment without a data element name
      3.) The second line shows the fieldname of the
          structure, the fieldname must consist of
          a fieldname and optional the character '_' and
          three numbers and the field length in brackets
      4.) Each field must be type C.
    Generated data section with specific formatting -
    DO NOT CHANGE  ***
    data: begin of record,
    data element: LIF16
            LIFNR_001(016),
    data element: BUKRS
            BUKRS_002(004),
    data element: EKORG
            EKORG_003(004),
    data element: KTOKK
            KTOKK_004(004),
    data element: NAME1_GP
            NAME1_005(035),
    data element: SORTL
            SORTL_006(010),
    data element: LAND1_GP
            LAND1_007(003),
    data element: SPRAS
            SPRAS_008(002),
    data element: BSTWA
            WAERS_009(005),
          end of record.
    End generated data section ***
    DATA : ITAB TABLE OF RECORD WITH HEADER LINE.
    start-of-selection.
    *perform open_dataset using dataset.
    *perform open_group.
    *do.
    *read dataset dataset into record.
    *if sy-subrc <> 0. exit. endif.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      = 'C:\VENDOR.TXT'  
    "TEXT FILE
       FILETYPE                      = 'ASC'
       HAS_FIELD_SEPARATOR           = 'X'
      TABLES
        DATA_TAB                      = ITAB
    EXCEPTIONS
       FILE_OPEN_ERROR               = 1
       FILE_READ_ERROR               = 2
       NO_BATCH                      = 3
       GUI_REFUSE_FILETRANSFER       = 4
       INVALID_TYPE                  = 5
       NO_AUTHORITY                  = 6
       UNKNOWN_ERROR                 = 7
       BAD_DATA_FORMAT               = 8
       HEADER_NOT_ALLOWED            = 9
       SEPARATOR_NOT_ALLOWED         = 10
       HEADER_TOO_LONG               = 11
       UNKNOWN_DP_ERROR              = 12
       ACCESS_DENIED                 = 13
       DP_OUT_OF_MEMORY              = 14
       DISK_FULL                     = 15
       DP_TIMEOUT                    = 16
       OTHERS                        = 17
    IF SY-SUBRC <> 0.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT ITAB.
    *In Loop Change Record With ITAB
    like record-lifnr_001 with itab-lifnr_001 
      perform bdc_dynpro      using 'SAPMF02K' '0100'.
      perform bdc_field       using 'BDC_CURSOR'
                                  'RF02K-KTOKK'.
      perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
      perform bdc_field       using 'RF02K-LIFNR'
                                  record-LIFNR_001.
      perform bdc_field       using 'RF02K-BUKRS'
                                  record-BUKRS_002.
      perform bdc_field       using 'RF02K-EKORG'
                                  record-EKORG_003.
      perform bdc_field       using 'RF02K-KTOKK'
                                  record-KTOKK_004.
      perform bdc_dynpro      using 'SAPMF02K' '0110'.
      perform bdc_field       using 'BDC_CURSOR'
                                  'LFA1-SPRAS'.
      perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
      perform bdc_field       using 'LFA1-NAME1'
                                  record-NAME1_005.
      perform bdc_field       using 'LFA1-SORTL'
                                  record-SORTL_006.
      perform bdc_field       using 'LFA1-LAND1'
                                  record-LAND1_007.
      perform bdc_field       using 'LFA1-SPRAS'
                                  record-SPRAS_008.
      perform bdc_dynpro      using 'SAPMF02K' '0120'.
      perform bdc_field       using 'BDC_CURSOR'
                                  'LFA1-KUNNR'.
      perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
      perform bdc_dynpro      using 'SAPMF02K' '0130'.
      perform bdc_field       using 'BDC_CURSOR'
                                  'LFBK-BANKS(01)'.
      perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
      perform bdc_dynpro      using 'SAPMF02K' '0210'.
      perform bdc_field       using 'BDC_CURSOR'
                                    'LFB1-AKONT'.
      perform bdc_field       using 'BDC_OKCODE'
                                    '/00'.
      perform bdc_dynpro      using 'SAPMF02K' '0215'.
      perform bdc_field       using 'BDC_CURSOR'
                                    'LFB1-ZTERM'.
      perform bdc_field       using 'BDC_OKCODE'
                                    '/00'.
      perform bdc_dynpro      using 'SAPMF02K' '0220'.
      perform bdc_field       using 'BDC_CURSOR'
                                    'LFB5-MAHNA'.
      perform bdc_field       using 'BDC_OKCODE'
                                    '/00'.
      perform bdc_dynpro      using 'SAPMF02K' '0310'.
      perform bdc_field       using 'BDC_CURSOR'
                                    'LFM1-WAERS'.
      perform bdc_field       using 'BDC_OKCODE'
                                    '/00'.
      perform bdc_field       using 'LFM1-WAERS'
                                    record-WAERS_009.
      perform bdc_dynpro      using 'SAPMF02K' '0320'.
      perform bdc_field       using 'BDC_CURSOR'
                                    'RF02K-LIFNR'.
      perform bdc_field       using 'BDC_OKCODE'
                                    '=ENTR'.
      perform bdc_dynpro      using 'SAPLSPO1' '0300'.
      perform bdc_field       using 'BDC_OKCODE'
                                    '=YES'.
      perform bdc_transaction using 'XK01'.
    endLOOP..
    Check It, Activate it and process in SM35.

    HI
    What is the problem in you coding it is working fine. What is ur requirement
    Regards
    Pavan

  • AR/ AP Upload Urgent

    Could anyone please help any documentation for Accounts Receivables and Accounts Payable from legacy to SAP. AR and AP open items will be provided by Excel and need to know what common fields I need to covert and upload to SAP.
    Its very urgent and your help is appreciated if explained step by step. Let me know if needed any further information.
    Thanks
    Mohan
    Edited by: Mohan on Feb 22, 2008 11:46 PM

    Hi Mohan,
                     Follwoing are the steps for Data Migration from legacy system to SAP.......
    LSMW steps
    LSMW Steps For Data Migration
    Example for xk01 (create vendor)
    Initially there will be 20 steps but after processing 1 step it will reduced to 14 for session method.
    1. TCode : LSMW.
    2. Enter Project name, sub project name and object name.
        Execute.
    3. Maintain object attributes.
        Execute
        select Batch Input recording 
        goto->Recording overview
        create
        recording name.
        enter transaction code.
        start recording
        do recording as per ur choice.
        save + back.
        enter recording name in lsmw screen.
        save + back
    Now there will be 14 steps.
    2. MAINTAIN SOURCE STRUCTURES.
        Here you have  to enter the name of internal table.
        display change
        create 
        save + back
    3. MAINTAIN SOURCE FIELDS.
        display change
        select structure
        source_fields->copy fields.
        a dialogue window will come .
        select -> from data file
        apply source fields
        enter No. of fields 
        length of fields
        attach file
        save + back
    4. MAINTAIN STRUCTURE RELATIONS
        display change
        save + back
    5. MAINTAN FIELD MAPPING & CONVERSION RULE
        display change
        click on source field, select exact field from structue and enter
        repeat these steps for all fields.
        save+back
    6. MAINTAIN FIXED VALUES, TRANSACTION, USER DEFINED
        execute 
        save + back
    7. SPECIFY FILES.
        display change
        click on legacy data
        attah flat file
        give description
        select tabulatore 
        enter
        save + back
    8. ASSIGN FILE 
        execute 
        display  change
        save + back
    9. IMPORT DATA.
        execute 
        display  change
        save + back
    10. DISPLAY IMPORTED DATA
          enter ok, it willl show records only.
          back
    11. CONVERT DATA
          execute 
          display  change
          save + back
    12. DISPLAY CONVERTED DATA
          execute 
          display  change
          save + back
    13. CREATE BATCH INPUT SESSION
          tick keep batch input folder 
          F8
          back
    14. RUN BATCH INPUT SESSION.
          sm35 will come
          Object name will be shown here 
    Assign Points If help ful....
    Regards,
    Sandeep.ch

  • Upload Of Vendor Create Data using LSMW

    Hi,
    I am trying to upload the vendor data for more than 1000 records from flat file structure to sap using LSMW (standard batch/ direct input) for XK01 transaction code. For uploading the house and street address i have created additional fields STR_SUPPL1 and STR_SUPPL2 in addition to STRAS. But in "Maintain Field Mapping and Conversion Rules" I am not able to locate the fields for mapping STR_SUPPL1 and STR_SUPPL2. Can any one please suggest me how to go about it. Thanks in advance.
    Regards,
    Sangram

    Hi
      As per your requirements when you r uploading the data in the  "Maintain Field Mapping and Conversion Rules" it will display your field and some additional fields,and there you have to select for which field you r going to upload the data.
    You have mentioned that you have created some two extra field as STR_SUPPL1 and STR_SUPPL2.Can you plz clarify me where you have declared those fields and how.
    If you have done it in   "Maintain Object Attributes" than it should display in the Field Mapping or you check it with " Maintain Source Fields" part,wheather you have enter all the fields appropriately or not.
    I hope this will help you to solve your problem.
    Thanks
    Mrutyunjaya Tripathy

  • Upload time data using bdc

    hi hr gurus,
    plz help
    we have 3 shifts like 6-2,2-10,10-6.
    while uploading time data to sap from third party system.
    do we need to take care of the shifts times in BDC?
    or do we need to manage it in configurations
    if you have any code please send me
    regards

    Hi,
    As above said was the also procedure to do the BDC recording.Hope you understand the precedure in detail else have a look @ this.
    1.Goto transaction shdb for recording.
    2.There give the recording name starting with Z or Y letter.
    3.Click "New Recording" button in the left extreme Application tool bar.
    4.You will get a new pop up window Create Recording there give Recording Name"Z r Y" and give the transaction code that you going to record for e.g (PA30,XK01).
    5.Leave the Mode as it  is and click "Start Recording".
    6.Here you will get the transaction code window for e.g if you are  giving PA30 it will call the corresponding transaction.
    7.Start recording by entering the values which you want to record.
    8.After recording save the recording and give back.
    9.There you find the list of process which is done.
    10.Enter your recording name and press enter you will get the program name.
    11.Select the program name and press "program" button in the application tool bar.It will ask abt the prgm name and give read from file.
    12.You will get the coding in se38 for recording.
    13.Edit your program for uploading the flat file from you legacy system to application server by using CALL FUNCTION "GUI_UPLOAD".
    14.Get the flat file and fill it in internal table and pass the internal table values by giving "loop at internal table" after READ DATASET statement.
    15.Select the call transaction for small no. of data for large no. of data we have to use session method.(Refer some links for difference between session and call transaction).
    16.There by executing the program we will get the output which record are created.
    Thanks,
    Sakthi.C
    *Rewards if usefull--*

Maybe you are looking for

  • Does something like this exist for mac somewhere?

    http://www.bitboost.com/pawsense/ I've recently gotten a cat that loves my desk and keyboard. I've had to resort to unplugging my keyboard whenever i'm not by it. While it isn't a big deal, i'd prefer it if i didn't have to. Is there something simila

  • S-video / composite output

    Hey all I'm eagerly awaiting my local apple store to get in more macbook pros (i just keep missing them!) and while I am waiting a thought struck me, with the new mini display port, how do we output to s-video or composite? I know it's an old output

  • My G5 will not boot up or recognize the monitor!!! What to do?

    While messing around with entourage, my powermac G5 froze. I forced a shutdown. But when I tried to turn the comp. back on the following happens: 1. A whirrr (usually followed by the sound of OSX booting, but not in this case). 2. The indicator light

  • Links in emails borked

    The links in emails for 'reply/view' this thread, as well as 'you can't start a new thread over email' are both broken.

  • Cancel PO Line using API, Dont want reapproval to be initiated

    All, We have the following requirement: Based on certain conditions, I want to cancel few PO Lines. While doing it using "PO_Document_Control_PUB.control_document" API(This is the one being used by summary form(am I correct)), it is internally initia