Bdc for fb60 tcode

Hi,
can any one send me a sample code for posting document through fb60 tcode
thanks

Hi Bobby,
try SHDB with FB60 and generate a Report.
Here a Example:
report ZTEST
       no standard page heading line-size 255.
include bdcrecx1.
start-of-selection.
perform open_group.
perform bdc_dynpro      using 'SAPMF05A' '1100'.
perform bdc_field       using 'BDC_OKCODE'
                              '=DUMMY'.
perform bdc_field       using 'RF05A-BUSCS'
                              'R'.
perform bdc_field       using 'BDC_CURSOR'
                              'INVFO-XMWST'.
perform bdc_field       using 'INVFO-ACCNT'
                              '4711'. "LIFNR
perform bdc_field       using 'INVFO-BUDAT'
                              '07.07.2006'.
perform bdc_field       using 'INVFO-WRBTR'
                              '1000'.
perform bdc_field       using 'INVFO-WAERS'
                              'EUR'.
perform bdc_field       using 'INVFO-XMWST'
                              'X'.
perform bdc_field       using 'INVFO-MWSKZ'
                              'V4'.
perform bdc_dynpro      using 'SAPMF05A' '1100'.
perform bdc_field       using 'BDC_OKCODE'
                              '=BU'.
perform bdc_field       using 'RF05A-BUSCS'
                              'R'.
perform bdc_field       using 'BDC_CURSOR'
                              'INVFO-XBLNR'.
perform bdc_field       using 'INVFO-ACCNT'
                              '4711'. "LIFNR
perform bdc_field       using 'INVFO-XBLNR'
                              'test'.
perform bdc_field       using 'INVFO-WRBTR'
                              '1.000,00'.
perform bdc_field       using 'INVFO-XMWST'
                              'X'.
perform bdc_field       using 'INVFO-MWSKZ'
                              'V4'.
perform bdc_dynpro      using 'SAPMF05A' '1100'.
perform bdc_field       using 'INVFO-BLDAT'
                              '07062006'.
perform bdc_field       using 'INVFO-XBLNR'
                              'TEST'.
perform bdc_field       using 'ACGL_ITEM-HKONT(01)'
                              '467000'.
perform bdc_field       using 'ACGL_ITEM-WRBTR(01)'
                              '             1000'.
perform bdc_field       using 'ACGL_ITEM-KOSTL(01)'
                              '1000'.
perform bdc_transaction using 'FB60'.
perform close_group.
Regards, Dieter

Similar Messages

  • BDCs for Multiple tcodes

    Hi Gurus,
    I am struck with BDCs for multiple tcodes.
    I know that multiple tcodes can be done only using session method.
    Please help how to proceed.
    Regards,
    V S L Bharathi K

    Hi,
    Loop at itab1.
    *fill BDCDATA table
    call transaction 'XXXX' using mode l_mode
                                messages in mess_tab
    *"Chk if any Error/Abort message in mess_tab
    * get the value for next processing.
    read table message_tab with key type ='S'
                              msg_class = 'XX'
                              msg_no     = 'NNN'.
    l_par = mess_tab-msg_v1.
    refresh BDCDATA.
    *again fill BDCDATA table
    call transaction 'YYYY' using mode l_mode
                                messages in mess_tab
    endloop.
    Hope this helps.

  • Problem in BDC for FB60

    I am performing BDC Call Transaction for FB60 Transaction.
    When running in mode 'A', the Inputs are going perfectly fine into the respective fields but the processing stops in the Long Text Field(sgtxt). Even if I enter the details manually the processing does not proceed any further.
    Please let me know how should I remove this.

    Hi,
    Could you please tell me what is happening when you enter the long text (sgtxt)? Is it showing any kind of blocking message ?
    or nothing is happening afterwards.
    For the information, I had a similar kind of issue. I had a validation (OB28) where I were checking the initial condition of the long text. But when I ran it in debug mode, it is understood as the field is not getting populated at this particular point even though it is entered in the TCODE (FB60).
    Hope, it will be helpful for you.
    Regards,
    Selva K.

  • How to supress a warning message in BDC for ME11 Tcode

    Hi Expert,
    I am doing a BDC report for ME11 Tcode and some of warning is ignorable for this transaction code,how can we suppress these warning through BDC program, is it possible or will have to make some changes changes in TCODE(ME11) itself.

    hi,
    if the warning message coming in a pop-up window then it can be supressed in the following way.
    1. comment the lines of the code of bdc recording of that pop-up screen along with the perform of bdc ok code  '=ENTE".
    2. use the structure ctu_params and fill the correspondings fiels, particularly the field nobinpt = 'X' and then use this structure in the call transcation statement as
    call transcation 'ME11'
                            using bdcdata
                            options from opt ( structure of ctu_params )
    3. At the time of recording use the option of check box " no batch input session ".
    regards,
    Alok

  • BDC for CM25 tcode or a function module to dispatch planned orders

    Please suggest a way for BDC of CM25 tcode as the selection of planned/process order in the tcode is not captured in recording.
    or provide FM/BAPI for dispatch of planned orders.
    Moderator message - Cross post locked
    Edited by: Rob Burbank on Oct 23, 2009 11:27 AM

    reposting it

  • BDC for VBO2 Tcode

    Dear All,
       I am trying to write a bdc for tcode VBO2 (Agreement). in this i have ti give agreement number and then on second screen i have to select the PAY push button for clearing the amount.
    In this i am not able to catch the pay table control as to on which index i have to pass my records.
    Regards
    Amit

    Dear,
       I know this but teh problem is i have 2 tables in my bdc one is xkonp where i get the value i.e. mpwrt whereever i get this value means i have to update the same value in bzwrt field. but in xkonp i have all the data. but in PAy tab when we go table control fills up from knopd table where as i also have xvake table in my program where the index is not updated. so means in xkonp wherever i get mpwrt take knumh of that row and check in xvake table you will get the exact row of table control where that value needs to be updated in bdc. in xvake i am not getting the indexes. any help on this.
    Regards
    Amit

  • Problem in BDC for IA05 tcode.

    Hi,
    I am facing a problem while uploading data for IA05 t.code using BDC call transaction method.
    when I an running thru BDC, in the operational overview, when i select an operational line item, and go for inspection characteristics overview and provide inspection characteristics, sampling procedure, version and press enter, an window is popping up which is asking for inspection method, plant for inspection method and inspection method version number.
    but when I am running the tcode normally, this inspection window is not popping up and details are not being asked. these inspection method details are not neccessary for my business logic. how can I by-pass this popup window which  i don't want even when I run thru BDC.
    Thanks and Regards,
    Krishna.

    Hi Krishna
    This is not the right forum to post this question. Post this to proper forum in order to get quick response.
    Regards
    Vaishali

  • Posting More than 900 lines not allowing uploading using BDC for FB60

    Hi,
    When i am upload vendor invoices with  More than 900 lineitems using BDC program it is giving the fallowing error .
    1          You are entering line item 900 , a maximum of 999 line items are defined
    As per i know it will allow 999 line items for one document posting . But i am getting error when i am posting more than  900.
    If any body know the solution please share with me .
    Thanks
    SriHari

    I vaguely remember that SAP reserves lines for automatically created items e.g. for taxes, you might have run into that limit. Check in that direction with a functional expert, the limit might be configurable.
    Thomas
    Edit: now I did what you could have done and checked the where-used-list for message F5 138, the 900 is hard coded, and it is just a warning, seemingly to alert the user of the brick wall he is about to hit very soon.

  • Creating BDC for VB12 tcode

    Hi experts,
    I have a problem here. The requirment is like, we have a test data file in which in a particular record if there exists a deletion flag 'L' I need to delete this record from system by calling tcode VB12m, unless i need to create a record by calling tcode VB11.
    The problem here is for already created records which are being displayed in VB12.First I need to check whether this entry exists in VB11 or not and then select the checked and then click to delete button in TCode VB12.
    But how, shud i check the records from VB11 tcode whether it exists or not?These are coming in display mode in Tcode.......
    Plz if anyone has faced this problem earlier suggest me how to proceed further.
    Thanks in advance.

    Hi,
    Please use the following format for your upload file template
    DocDate1    ComCd1    Currency1    pstky1
    DocDate1    ComCd1    Currency1    pstky2
    DocDate1    ComCd1    Currency1    pstky3
    DocDate2    ComCd2    Currency2    pstky1
    DocDate2    ComCd2    Currency2    pstky2
    Then use the following logic.
    At New Currency1
    add the header data
    DocDate1    ComCd1    Currency1
    Thus this code will run only once for every new Header
    and remain in the screen till posting key are entered.
    Regards,
    Lokesh
    Edited by: Lokesh Tibbani on Sep 5, 2008 12:17 PM

  • BDC for Me22 Tcode-Version Management

    Hi ,
    I want to add the version management in for exiting BDC in ME22 Transaction in ECC6.0
    How can i go for that.
    please help me .
    regards,
    Ajay
    Edited by: Ajay reddy on Sep 16, 2009 3:26 PM
    Edited by: Ajay reddy on Sep 16, 2009 3:38 PM

    Hi,
    Thanks for attempt the Question.
    Me22-> Enter Order number-> Go to HEADER> VERSION.
    Can I handle the Menu option in recording..... Please help me in this.
    regards,
    Ajay
    Edited by: Ajay reddy on Sep 16, 2009 3:47 PM
    Edited by: Ajay reddy on Sep 16, 2009 3:50 PM
    Edited by: Ajay reddy on Sep 16, 2009 6:52 PM

  • Wnat to maintain Substitution rule for VF60 tcode.

    Hi  All,
       I wanted to know that how do i define substitution rulr for FB60 tcode
       after enetr the data of costcenter. It would be trigered after ost center in the
       line item.  does any one knows abt the same and how do we configured this
      one.  I copied standard SAP program 'RGGBS001'  to maintain this suitation.
      does any one know abt the same please answer ASAP.. it seems to be urgent.
    thx
    rao..

    Transaction Code - FB60                     Enter Incoming Invoices
    Exit Name           Description
    RFAVIS01            Customer Exit for Changing Payment Advice Segment Text
    RFEPOS00            Line item display: Checking of selection conditions
    RFKORIEX            Automatic correspondence
    SAPLF051            Workflow for FI (pre-capture, release for payment)
    F050S001            FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment
    F050S002            FIDCC1: Change IDoc/do not send
    F050S003            FIDCC2: Change IDoc/do not send
    F050S004            FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send
    F050S005            FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document
    F050S006            FI Outgoing IDoc: Reset Clearing in FI Document
    F050S007            FIDCCH Outbound: Influence on IDoc for Document Change
    F180A001            Balance Sheet Adjustment
    FARC0002            Additional Checks for Archiving MM Vendor Master Data
    FEDI0001            Function Exits for EDI in FI
    No of Exits:         14
    USER EXIT
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    http://www.sap-img.com/ab038.htm
    http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
    Rewards if useful.........
    Minal

  • Issue with MB25 BDC for Dynamic Selection Screen

    Hi Experts,
    I recorded one BDC for MB25 Tcode regarding to determine Open Reservation(s) in E Mode (Display Mode). I am passing 3 parameters.
    1. Plant,
    2. Requirement Date
    3. Multiple Reservation Numbers i.e. RSNUM from Dynamic Selection i.e. 2nd Button -> Header Data for Reservation -> Reservation -> Multiple Selection Icon.
    But while executing that BDC, I need to manually click every time on 'Header Data for Reservation' Tree and then Multiple Selection for Reservation Icon.
    I want below steps automatically while executing:
    - Open 'Header Data for Reservation' Tree
    - Click Reservation
    - Open Popup for 'Multiple Selection'.
    So no need to click every time on Dynamic Selection Screen i.e. Header Data for Reservation -> Reservation -> Multiple Selection Icon.
    Please find attached screen shot for your reference.
    Please guide.
    Thanks and Regards,
    Emon Master

    Hello Jainam,
    submit (sy-repid) with selection-table v_sp
                             with free selections EXPRESSIONS
                             via selection-screen.
    Without going through the details, dont you think this will cause an inifinite loop as the calling & the called programs are the same.
    Please enlighten me !!
    BR,
    Suhas

  • Problem while doing bdc for fv60

    Hi frends,
       I got problem while doing BDC for fv60 tcode.i have given
    header items:
    vendor number
    invoice date
    posting date
    amount
    item data:
    g/l acc no: 100000
    amount 1000 whatever
    these are all given in recording
    in recording after all giving this data if we click on park it is telling "parking not possibe duiring batch input".
    can any body tell me the process for recording shdb and after that in bdc how can we give multiple line items for fv60
    thanks,
    naveen.

    I don't think you can use FV60 in batch input. Your options are to use transaction FBV1 or bapi BAPI_INCOMINGINVOICE_PARK.
    Rob

  • Problem in BDC for MM02

    Hi,
    I am working on a BDC for the tcode MM02 in which i have to insert the Inspection Type in the Quality Managment View of materials. i had executed the code which was working fine,but when i executed it ,it remains on the same screen where the after specifying on the file path. I dont know why it is happening ,plzz provide me guidelines for solving this problem.

    report ZMM02 no standard page heading line-size 255.
    include bdcrecx1.
    DATA: BEGIN OF ZVBM OCCURS 0,
           MATNR(18) TYPE C,
           BRGEW(16) TYPE C,
           NTGEW(16) TYPE C,
    END OF ZVBM.
    start-of-selection.
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
      CODEPAGE                      = ' '
       FILENAME                      = 'c:\vijay.txt'
       FILETYPE                      = 'DAT'
      HEADLEN                       = ' '
      LINE_EXIT                     = ' '
      TRUNCLEN                      = ' '
      USER_FORM                     = ' '
      USER_PROG                     = ' '
      DAT_D_FORMAT                  = ' '
    IMPORTING
      FILELENGTH                    =
      TABLES
        DATA_TAB                      = ZVBM
    EXCEPTIONS
      CONVERSION_ERROR              = 1
      FILE_OPEN_ERROR               = 2
      FILE_READ_ERROR               = 3
      INVALID_TYPE                  = 4
      NO_BATCH                      = 5
      UNKNOWN_ERROR                 = 6
      INVALID_TABLE_WIDTH           = 7
      GUI_REFUSE_FILETRANSFER       = 8
      CUSTOMER_ERROR                = 9
      OTHERS                        = 10
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    perform open_group.
    LOOP AT ZVBM.
    perform bdc_dynpro      using 'SAPLMGMM' '0060'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RMMG1-MATNR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'RMMG1-MATNR'
                                  zvbm-matnr.
    perform bdc_dynpro      using 'SAPLMGMM' '0070'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MSICHTAUSW-DYTXT(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    perform bdc_field       using 'MSICHTAUSW-KZSEL(01)'
                                  'X'.
    perform bdc_dynpro      using 'SAPLMGMM' '4004'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=BU'.
    perform bdc_field       using 'MAKT-MAKTX'
                                  'VIJAY3'.
    perform bdc_field       using 'MARA-MEINS'
                                  'KG'.
    perform bdc_field       using 'MARA-MATKL'
                                  '01'.
    perform bdc_field       using 'MARA-SPART'
                                  '01'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MARA-NTGEW'.
    perform bdc_field       using 'MARA-BRGEW'
                                  zvbm-brgew.
    perform bdc_field       using 'MARA-GEWEI'
                                  'KG'.
    perform bdc_field       using 'MARA-NTGEW'
                                  zvbm-ntgew.
    perform bdc_transaction using 'MM02'.
    ENDLOOP.
    perform close_group.

  • BDC for every 80 records

    Dear All,
    I have one typical BDC problem.
    If the number of records in file are crossing 80,my bdc is giving problem. So I need to split total records into sets of 80 and submit them.
    So I need to create the session name dynamically, pass the data dynamically.
    IF you can send some example code for the above it will be great help for me.
    Many Thanks,
    Ranjan

    Please find my code..
    This info may be useful..
    I'm doing BDC for KB31N tcode,where i have two items in header(doc date, posting date).Multiple line items(each line item should consists of 4 fields namely cost center,statistical key figure,total qty,text).
    When i'm sending more than 80 rec records i'm being populated an error message "BDC_Close_group, session not opened"
    Kindly advice me how to handle this
    *& Report  ZCO_I025_WSKAZNIKI_STAT_DEV                                 *
    *& Interfejs wczytywania wskaŸników statystycznych                     *
    REPORT  zco_i025_wskazniki_stat_dev                                 .
    TYPES: BEGIN OF l_tab_dane,
        indic LIKE rk23f-stagr,
        quant LIKE rk23f-mbgbtr,
        mpk LIKE rk23f-ekostl,
        order LIKE rk23f-eaufnr,
        text LIKE rk23f-sgtxt,
      END OF l_tab_dane.
    DATA: it_excel TYPE TABLE OF alsmex_tabline,
      wa_excel TYPE alsmex_tabline,
      it_data TYPE TABLE OF l_tab_dane,
      wa_data TYPE l_tab_dane,
      error  TYPE C,
      msg TYPE string.
    DATA:iv_pole TYPE string,
      ddatum(10),
      kdatum(10),
    *Inserted By  Developer
       filelist    TYPE filetable,
            rc          TYPE i.
    DATA: BEGIN OF bdctab OCCURS 5.
            INCLUDE STRUCTURE bdcdata.
    DATA: END OF bdctab.
    SELECTION-SCREEN BEGIN OF BLOCK p1 WITH FRAME TITLE text-001.
    PARAMETERS:
      p_zakla LIKE tka01-kokrs DEFAULT '1000',
      p_ddate LIKE sy-datum DEFAULT sy-datum,
      p_kdate LIKE sy-datum DEFAULT sy-datum.
    SELECTION-SCREEN ULINE.
    PARAMETERS:
      p_fname LIKE rlgrap-filename.  " DEFAULT 'd:dane.xls'.
    SELECTION-SCREEN END OF BLOCK p1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_fname.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          file_filter       = cl_gui_frontend_services=>filetype_excel
         multiselection    = 'X'
        CHANGING
          file_table        = filelist
          rc                = rc.
      IF LINES( filelist ) IS INITIAL.
        EXIT.
      ENDIF.
      READ TABLE filelist INDEX 1 INTO p_fname.
    START-OF-SELECTION.
    AUTHORITY-CHECK OBJECT 'TKA01'
      ID 'KOKRS' FIELD p_zakla.
    CONCATENATE p_ddate6(2) '.' p_ddate4(2) '.' p_ddate(4) INTO ddatum.
    CONCATENATE p_kdate6(2) '.' p_kdate4(2) '.' p_kdate(4) INTO kdatum.
    error = '0'.
    PERFORM wczytaj_dane.
    IF error = '0'.
      PERFORM utworz_sesje.
      PERFORM wprowadz_dane.
        PERFORM zamknij_sesje.   "comment by prav
    ENDIF.
    PERFORM zamknij_sesje.        "add by prav
    IF error = '1'.
      WRITE: msg, /.
    ENDIF.
    WRITE: 'Wykonano', /.
    *&      Form  wczytaj_dane
          text
    FORM wczytaj_dane.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          filename                = p_fname
          i_begin_col             = 1
          i_begin_row             = 1
          i_end_col               = 8
          i_end_row               = 65000
        TABLES
          intern                  = it_excel
        EXCEPTIONS
          inconsistent_parameters = 1
          upload_ole              = 2
          OTHERS                  = 3.
      IF sy-subrc <> 0.
        WRITE: / 'B³ad importu pliku wejsciowego: ', p_fname, ' - ',
        sy-subrc.
      ELSE.
        SORT it_excel BY row col.
        LOOP AT it_excel INTO wa_excel.
          IF wa_excel-row = 1.
            CONTINUE.
          ENDIF.
          iv_pole = wa_excel-value.
          CASE wa_excel-col.
            WHEN 1. wa_data-indic = iv_pole.
            WHEN 2.
              REPLACE ',' WITH '.' INTO iv_pole.
              wa_data-quant = iv_pole.
            WHEN 3. wa_data-mpk = iv_pole.
            WHEN 4. wa_data-order = iv_pole.
            WHEN 5. wa_data-text = iv_pole.
          ENDCASE.
          AT END OF row.
            IF wa_data-mpk IS INITIAL AND wa_data-order IS INITIAL.
              error = '1'.
              WRITE:
    'Musi byæ podane Stanowisko kosztów lub Zlecenie wewnêtrzne. Rekord: ',
              wa_excel-row, /.
              EXIT.
            ENDIF.
            IF wa_data-mpk IS NOT INITIAL AND wa_data-order IS NOT INITIAL.
              error = '1'.
              WRITE:
    'Musi byæ podane Stanowisko kosztów lub Zlecenie wewnêtrzne. Rekord: ',
              wa_excel-row, /.
              EXIT.
            ENDIF.
            IF wa_data-indic IS INITIAL.
              error = '1'.
              WRITE: 'Brak identyfikatora wskaŸnika. Rekord: ', wa_excel-row
              EXIT.
            ENDIF.
            IF wa_data-quant IS INITIAL.
              error = '1'.
              WRITE: 'Brak informacji o iloœci. Rekord: ', wa_excel-row, /.
              EXIT.
            ENDIF.
            APPEND wa_data TO it_data.
            CLEAR wa_data.
          ENDAT.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    "wczytaj_dane
    *&      Form  wprowadz_dane
          text
    FORM wprowadz_dane.
      DATA:licznik TYPE i,
        l_txt TYPE string,
        pole(30) TYPE c,
        liczba(15) TYPE c.
      PERFORM bdc_dynpro      USING 'SAPLSPO4' '0300'.
      PERFORM bdc_field       USING 'BDC_CURSOR' 'SVALD-VALUE(01)'.
      PERFORM bdc_field       USING 'BDC_OKCODE' '=FURT'.
      PERFORM bdc_field       USING 'SVALD-VALUE(01)' p_zakla.
      PERFORM bdc_dynpro      USING 'SAPLK23F1' '1200'.
      PERFORM bdc_field       USING 'BDC_OKCODE' '/00'.
      PERFORM bdc_field       USING 'COHEADER-SEND_REC_REL' '03SAP'.
      PERFORM bdc_field       USING 'RK23F-STATUS' 'L'.
      PERFORM bdc_field       USING 'COHEADER-BLDAT' ddatum.
      PERFORM bdc_field       USING 'COHEADER-BUDAT' kdatum.
      PERFORM bdc_field       USING 'BDC_CURSOR' 'EKOSTL(1)'.
      licznik = 0.
      LOOP AT it_data into wa_data.
        ADD 1 TO licznik.
        l_txt = licznik.
        CONCATENATE 'EL4(' l_txt ')' INTO pole.
        condense pole no-gaps.
        PERFORM bdc_field USING pole wa_data-indic.
        CONCATENATE 'ELR1(' l_txt ')' INTO pole.
           condense pole no-gaps.
          liczba = wa_data-quant.
          if liczba <  0.
              shift liczba circular  left up to '-'.
          endif.
            condense liczba no-gaps.
        PERFORM bdc_field USING pole liczba.
        IF NOT wa_data-mpk IS INITIAL.
          CONCATENATE 'EL2(' l_txt ')' INTO pole.
             condense pole no-gaps.
          PERFORM bdc_field USING pole wa_data-mpk.
        ENDIF.
        IF NOT wa_data-order IS INITIAL.
          CONCATENATE 'EL3(' l_txt ')' INTO pole.
             condense pole no-gaps.
          PERFORM bdc_field USING pole wa_data-order.
        ENDIF.
        CONCATENATE 'EL8(' l_txt ')' INTO pole.
           condense pole no-gaps.
        PERFORM bdc_field USING pole wa_data-text.
      ENDLOOP.
      CALL FUNCTION 'BDC_INSERT'
        EXPORTING
          tcode            = 'KB31N'
        TABLES
          dynprotab        = bdctab
        EXCEPTIONS
          internal_error   = 1
          not_open         = 2
          queue_error      = 3
          tcode_invalid    = 4
          printing_invalid = 5
          posting_invalid  = 6
          OTHERS           = 7.
      IF sy-subrc <> 0.
        WRITE: / text-010 .
      ENDIF.
      REFRESH bdctab.
    clear:bdctab.        "by praveen
    ENDFORM.                    "wprowadz_dane
    *&      Form  bdc_dynpro
          text
         -->PROGRAM    text
         -->DYNPRO     text
    FORM bdc_dynpro USING program dynpro.
      CLEAR bdctab.
      MOVE:
        program   TO bdctab-program,
        dynpro    TO bdctab-dynpro,
        'X'       TO bdctab-dynbegin.
      APPEND bdctab.
    ENDFORM.                    "bdc_dynpro
    *&      Form  bdc_field
          text
         -->POLE       text
         -->WARTOSC    text
    FORM bdc_field USING pole wartosc.
      CLEAR bdctab.
      MOVE:
        pole     TO bdctab-fnam,
        wartosc  TO bdctab-fval.
      APPEND bdctab.
    ENDFORM.                    "bdc_field
    *&      Form  utworz_sesje
          text
    FORM utworz_sesje.
      CALL FUNCTION 'BDC_OPEN_GROUP'
        EXPORTING
          client = sy-mandt
          group  = 'WSKASTAT'
          user   = sy-uname
          keep   = 'X'.
    ENDFORM.                    "utworz_sesje
    *&      Form  zamknij_sesje
          text
    FORM zamknij_sesje.
      CALL FUNCTION 'BDC_CLOSE_GROUP'.
      IF sy-subrc NE 0.
        WRITE: /, 'B³ad podczas zamykania sesji'.
        EXIT.
      ENDIF.
    ENDFORM.                    "zamknij_sesje

Maybe you are looking for

  • Feature Request: Better dimensional meta data displayed

    Aside from every other problem with how Bridge lets the user display, sort and interact with meta data (aside from the actual metadata palette), it would be way more useful to have the Dimension meta data displayed under an image shown in 'real world

  • Sharepoint Designer - Two step List Workflow task item is not changing the status from not started to Complete

    Hi  Using SPD i am creating list workflow. Scenario: Employee submits a request . Task assign to manager. Manager can either approve/ reject. If approve then change the state column to "done". If rejected the state column to "Rejected". Problem is "A

  • How do I add alt text to images set as background in my asset list?

    I have designed a site in Muse but for some reason all the images are set as background images in the asset list and I can't optimise them for seo as I can't add alt text. How can I change this?? Thanks

  • An error has occurred in the script on this page.

    When I start the computer, and get to the Windows page, before I open any other programs, I am getting this error message in a box: An error has occurred in the script on this page. Line:  1 Char: 1 Error:  Unable to open registry key             "HK

  • Legal casting in generics

    I'm migrating from 1.4 to 1.5 and have a question about when casting is legal (and workable) in generics. After reading various literature, it seems that erasure removes type information at run time. Yet casting does seem to work. Here is the source