STRANGE PROBLEM WITH TABLE CONTROL

Hi all,
I am having a strange problem.
I have a table control in which i have a sort button .WHEN I PLACE THE CURSOR AND CLICK SORT BUTTON,IT WOULD SORT THE RECORDS IN ASCENDING BASED ON THAT COLUMN.
THE PROBLEM IS THAT WHEN I SCROLL DOWN THE WINDOW USING MY MOUSE ,IAM LOSING THE SORT AND THE RECORDS COME TO ORGINAL WAY THAT ARE BEING READ FROM DATABASE.i WANTED TO MAINTAIN THE RECORDS IN THE SORTED WAY EVEN THOUGH I SCROLL DOWN THROUGH MY MOUSE .
PLEASE TELL ME IF I MISS ANY TRICK

Hello,
You may get your data again in the PBO section. So, get all your data before the PBO .
regards,
Naimesh

Similar Messages

  • Problem with Table control lines

    Hi Friends,
    This is the problem with table control lines:
    I have screen with table control and I would like change the table control lines dynamicaly.
    Exp:
    In my PBO the Internal table which I am using to loop the TC is havig 7 records and its displayed with 7 records, now I have added one more record into my ITAB and now ITAB is having 8 records, when I am looping this ITAB with TC its taking the TC lines 7 only.
    here is the code:
    Initial values in gt_scr400 = 8
    Initial values in tc_scr400 = 8
    Now added one more recor into gt_scr400 , now gt_scr400  = 9.
      LOOP AT   gt_scr400
           INTO wa_scr400
           WITH CONTROL tc_scr400
           CURSOR tc_scr400-current_line.
      ENDLOOP.
    I have used this logic :
      DESCRIBE TABLE gt_scr400 LINES g_rec_300 .
      tc_scr300-lines = g_rec_300.
    but its not modifying the lines in my table control.
    How to change the TC lines based on ITAB total records.
    Thanks,
    Sridhar

    there is a field in TableViewName-xxx
    don't remember the exact field name for (total no of records)
    you can check it in debug.  when you add records in Internal table, u need to modify this field which is set at the first time when table control is populated.

  • Strange issue with table control in dialog programming! Please help!

    Hello everyone:
                I have a table control on screen painter and I have atleast 10 rows on display when user calls the screen. If I have 15 columns then ofcourse user has to scroll down to see extra rows. I have line selection set to "single" for table control so that user can select only one row at a time. This works fine when user does not have to scroll to see extra rows. It is tough for me to explain i.e., if the table control displays 10 rows when the screen opens up then they can only select single row at a time (rows 1 -10). For example user selected row 7 and now they scroll down to see extra rows (for example 13) then it lets them select row 13 also even though I set line selection to "single" in the properties for table control! They should be able to select only one row at a time. Is this some limitation with table control in SAP? Please give me any information you have.
    Thanks.
    Mithun

    Hi,
    As you suspected, this is a limitation in the table control.  You need to take care of the single-selection functionality yourself except for the rows that are actually being displayed.  See [Note 588284|https://service.sap.com/sap/support/notes/588284] for the official SAP explanation.
    Regards,
    Jamie

  • Problem with table control

    Hi all,
    I am able to loop two items for the sales order using table control.But I am not able to populate more than 2 items. Can anybody explain what exactly is the problem.
    I am including my code below.
    DATA: BEGIN OF ITAB OCCURS 0,
          KUNNR(255) TYPE C,
       END OF ITAB.
    DATA :BEGIN OF ITAB1 OCCURS 0,
          KUNNR1(10) TYPE C,
          KUNNR2(10) TYPE C,
          KETDAT(8) TYPE C,
          DWERK(4) TYPE C,
          ZTERM(4) TYPE C,
          INCO1(3) TYPE C,
          INCO2(16) TYPE C,
          AUDAT(8) TYPE C,
          VKBUR(4) TYPE C,
          BZIRK(3) TYPE C,
          END OF ITAB1.
    DATA : BEGIN OF ITAB2 OCCURS 0,
           KUNNR1(10) TYPE C,
           MABNR(8) TYPE C,
           KWMENG(1) TYPE C,
          END OF ITAB2.
    include bdcrecx1.
    PARAMETERS PATH(128) DEFAULT 'C:\SALES1.TXT'.
    DATA : FNAM(20) TYPE C,
           IDX      TYPE C.
    start-of-selection.
      CALL FUNCTION 'WS_UPLOAD'
       EXPORTING
         FILENAME                      = PATH
         FILETYPE                      = 'ASC'
      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.
       itab1-kunnr1 = itab2-kunnr1.
        ITAB1-KUNNR1 = ITAB-KUNNR+0(10).
        ITAB1-KUNNR2 = ITAB-KUNNR+10(10).
        ITAB1-KETDAT = ITAB-KUNNR+20(8).
        ITAB1-DWERK = ITAB-KUNNR+28(4).
        ITAB1-ZTERM = ITAB-KUNNR+32(4).
        ITAB1-INCO1 = ITAB-KUNNR+36(3).
        ITAB1-INCO2 = ITAB-KUNNR+39(16).
        ITAB1-AUDAT = ITAB-KUNNR+55(8).
        ITAB1-VKBUR = ITAB-KUNNR+63(4).
        ITAB1-BZIRK = ITAB-KUNNR+67(3).
       ITAB2-KUNNR1 = ITAB-KUNNR+0(10).
        ITAB2-MABNR = ITAB-KUNNR+70(8).
        ITAB2-KWMENG = ITAB-KUNNR+78(1).
        APPEND ITAB1.
        CLEAR ITAB1.
        APPEND ITAB2.
        CLEAR ITAB2.
      ENDLOOP.
      perform open_group.
      loop at itab1.
        perform bdc_dynpro      using 'SAPMV45A' '0101'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'VBAK-AUART'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '/00'.
        perform bdc_field       using 'VBAK-AUART'
                                      'ZOR'.
        perform bdc_field       using 'VBAK-VKORG'
                                      '1000'.
        perform bdc_field       using 'VBAK-VTWEG'
                                      '10'.
        perform bdc_field       using 'VBAK-SPART'
                                      '10'.
        perform bdc_dynpro      using 'SAPMV45A' '4001'.
        perform bdc_field       using 'BDC_OKCODE'
                                      'KKAU'.
        perform bdc_field       using 'KUAGV-KUNNR'
                                       itab1-kunnr1.
        perform bdc_field       using 'KUWEV-KUNNR'
                                      itab1-kunnr2.
        perform bdc_field       using 'RV45A-KETDAT'
                                      itab1-ketdat.
        perform bdc_field       using 'RV45A-KPRGBZ'
                                      'D'.
        perform bdc_field       using 'VBKD-PRSDT'
                                      '11/21/2005'.
        perform bdc_field       using 'VBKD-ZTERM'
                                      itab1-zterm.
        perform bdc_field       using 'VBKD-INCO1'
                                      ITAB1-INCO1.
        perform bdc_field       using 'VBKD-INCO2'
                                      ITAB1-INCO2.
        perform bdc_dynpro      using 'SAPMV45A' '4002'.
        perform bdc_field       using 'BDC_OKCODE'
                                         '=T\05'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'VBKD-BZIRK'.
        perform bdc_field       using 'VBAK-AUDAT'
                                      ITAB1-AUDAT.
        perform bdc_field       using 'VBAK-VKBUR'
                                      ITAB1-VKBUR.
        perform bdc_field       using 'VBAK-WAERK'
                                      'USD'.
        perform bdc_field       using 'VBKD-PRSDT'
                                      '11/21/2005'.
        perform bdc_field       using 'VBKD-BZIRK'
                                      ITAB1-BZIRK.
        perform bdc_dynpro     using 'SAPLV60F' '4001'.
        perform bdc_field       using 'BDC_OKCODE'
                                     '=T\06'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'FPLT-AFDAT(05)'.
        perform bdc_field       using 'FPLA-BEDAT'
                                      '11/21/2005'.
        perform bdc_field       using 'FPLA-BEDAR'
                                      '01'.
        perform bdc_field       using 'FPLA-RFPLN'
                                      '0000000042'.
        perform bdc_field       using 'FPLT-AFDAT(01)'
                                      '11/21/2005'.
        perform bdc_field       using 'FPLT-AFDAT(02)'
                                      '11/21/2005'.
        perform bdc_field       using 'FPLT-AFDAT(03)'
                                      '11/21/2005'.
        perform bdc_field       using 'FPLT-AFDAT(04)'
                                      '11/21/2005'.
        perform bdc_field       using 'FPLT-AFDAT(05)'
                                      '11/21/2005'.
        perform bdc_dynpro      using 'SAPMV45A' '4002'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=T\09'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'VBKD-ZLSCH'.
        perform bdc_field       using 'VBKD-KTGRD'
                                      '01'.
        perform bdc_field       using 'VBKD-ZLSCH'
                                      'C'.
        perform bdc_field       using 'VBAK-ZUONR'
                                     'Open Sales order'.
        perform bdc_dynpro      using 'SAPMV45A' '4002'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=T\11'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'GVS_TC_DATA-REC-PARTNER(05)'.
        perform bdc_field       using 'GV_FILTER'
                                      'PARALL'.
        perform bdc_field       using 'GVS_TC_DATA-REC-PARTNER(05)'
                                      '3838'.
        perform bdc_dynpro      using 'SAPMV45A' '4002'.
        perform bdc_field       using 'BDC_OKCODE'
                                       '=T\14'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'VBKD-BSARK'.
        perform bdc_field       using 'VBKD-BSARK'
                                      'CU01'.
        perform bdc_field       using 'VBKD-IHREZ'
                                       '12134'.
        perform bdc_dynpro      using 'SAPMV45A' '4002'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '/EBACK'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'VBAK-ZZLEAT'.
        perform bdc_field       using 'VBAK-ZZWARR'
                                      '12346C'.
        perform bdc_field       using 'VBAK-ZZFABW'
                                      'F14689'.
        perform bdc_field       using 'VBAK-ZZWARX'
                                      '12012005'.
        perform bdc_field       using 'VBAK-ZZLEAT'
                                      'CGUYFIU'.
        perform bdc_dynpro      using 'SAPMV45A' '4001'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=PKO1'.
        perform bdc_field       using 'KUAGV-KUNNR'
                                      itab1-kunnr1.
        perform bdc_field       using 'KUWEV-KUNNR'
                                      itab1-kunnr2.
        perform bdc_field       using 'RV45A-KETDAT'
                                      itab1-ketdat.
        perform bdc_field       using 'RV45A-KPRGBZ'
                                      'D'.
        perform bdc_field       using 'VBKD-PRSDT'
                                      '11/21/2005'.
        perform bdc_field       using 'VBKD-ZTERM'
                                      itab1-zterm.
        perform bdc_field       using 'VBKD-INCO1'
                                      ITAB1-INCO1.
        perform bdc_field       using 'VBKD-INCO2'
                                      ITAB1-INCO2.
    perform bdc_field       using 'BDC_CURSOR'
                                      'RV45A-ccode(idx)'.
      MOVE 1 TO IDX.
        LOOP AT ITAB2 WHERE KUNNR1 = ITAB2-KUNNR1.
          CONCATENATE 'RV45A-MABNR(' IDX ')' INTO FNAM.
          perform bdc_field       using FNAM
                                  ITAB2-MABNR.
          CONCATENATE 'RV45A-KWMENG(' IDX ')' INTO FNAM.
          perform bdc_field       using FNAM
                                  ITAB2-KWMENG.
          IDX = IDX + 1.
    ENDLOOP.
        perform bdc_dynpro      using 'SAPMV45A' '4001'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=PKO1'.
        perform bdc_field       using 'KUAGV-KUNNR'
                                      itab1-kunnr1.
        perform bdc_field       using 'KUWEV-KUNNR'
                                      itab1-kunnr2.
        perform bdc_field       using 'RV45A-KETDAT'
                                      itab1-ketdat.
        perform bdc_field       using 'RV45A-KPRGBZ'
                                      'D'.
        perform bdc_field       using 'VBKD-PRSDT'
                                      '11/21/2005'.
        perform bdc_field       using 'VBKD-ZTERM'
                                      itab1-zterm.
        perform bdc_field       using 'VBKD-INCO1'
                                      ITAB1-INCO1.
        perform bdc_field       using 'VBKD-INCO2'
                                      ITAB1-INCO2.
        perform bdc_field       using 'RV45A-VBAP_SELKZ(01)'
                                      'X'.
        perform bdc_dynpro      using 'SAPMV45A' '5003'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '/EBACK'.
        perform bdc_dynpro      using 'SAPMV45A' '4001'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=SICH'.
        perform bdc_field       using 'KUAGV-KUNNR'
                                      itab1-kunnr1.
        perform bdc_field       using 'KUWEV-KUNNR'
                                      itab1-kunnr2.
        perform bdc_field       using 'RV45A-KETDAT'
                                      ITAB1-KETDAT.
        perform bdc_field       using 'RV45A-KPRGBZ'
                                      'D'.
        perform bdc_field       using 'VBKD-PRSDT'
                                      '11/21/2005'.
        perform bdc_field       using 'VBKD-ZTERM'
                                      ITAB1-ZTERM.
        perform bdc_field       using 'VBKD-INCO1'
                                       ITAB1-INCO1.
        perform bdc_field       using 'VBKD-INCO2'
                                      ITAB1-INCO2.
        perform bdc_field       using 'BDC_CURSOR'
                                        'RV45A-MABNR(idx)'.
        perform bdc_transaction using 'VA01'.
      endloop.
      Perform close_group.

    Answered the other post. 
    <i>
    I think i see the problem,
    LOOP AT ITAB2 WHERE KUNNR1 = <b>ITAB2</b>-KUNNR1.
    CONCATENATE 'RV45A-MABNR(' IDX ')' INTO FNAM.
    perform bdc_field using FNAM
    ITAB2-MABNR.
    CONCATENATE 'RV45A-KWMENG(' IDX ')' INTO FNAM.
    perform bdc_field using FNAM
    ITAB2-KWMENG.
    IDX = IDX + 1.
    ENDLOOP.
    I think that it should be .....
    LOOP AT ITAB2 WHERE KUNNR1 = <b>ITAB1</b>-KUNNR1.
    </i>
    Regards,
    Rich Heilman

  • Problem with Table control & i/o field

    hi experts,
    i have a problem with both table control and i/o field.
    2 i/o fields and 1 table control.
    i/o field are common for table control data.
    when i am inserting ata from here to database table, table control data are inserted successfully, but from i/o field data are not inserted.
    kind regards,
    debendra

    Hi
    You must create data objects in your ABAP code having same name as your screen i/o fields. Now these objects will contain the data entered in your screen. Use these objects to insert data in your db table.
    Hope this helps
    Regards,
    Jayanthi.K

  • Problem with table controle

    hai experts
    how should i implement a table control in LSMW please send me u r seggassions and code also
    Message was edited by:
            venkat rathnam

    hai experts my question has not been answered yet please send me answer

  • Problem with Table control in BDC

    Hi Experts,
    I have dought regarding Table control i.e How to handle Table control in BDC? i need explanation for handling TC and senario for using T C in BDC?
      regards,
    Sudha.

    Hello,
    This is the bdc to update the XK01 transaction code (Vendor Creation).
    Here we will use table controls for bankings. Here Iam sending the coding and text files.
    Coding
    REPORT zprataptable2
           NO STANDARD PAGE HEADING LINE-SIZE 255.
    DATA : BEGIN OF itab OCCURS 0,
            i1 TYPE i,
            lifnr LIKE   rf02k-lifnr,
            bukrs LIKE   rf02k-bukrs,
            ekorg LIKE   rf02k-ekorg,
            ktokk LIKE   rf02k-ktokk,
            anred LIKE lfa1-anred,
            name1 LIKE lfa1-name1,
            sortl LIKE lfa1-sortl,
            land1 LIKE lfa1-land1,
            akont LIKE lfb1-akont,
            fdgrv LIKE lfb1-fdgrv,
             waers LIKE lfm1-waers,
            END OF itab.
    DATA : BEGIN OF jtab OCCURS 0,
            j1 TYPE i,
            banks LIKE lfbk-banks,
            bankl LIKE lfbk-bankl,
            bankn LIKE lfbk-bankn,
             END OF jtab.
    DATA : cnt(4) TYPE n.
    DATA : fdt(20) TYPE c.
    DATA : c TYPE i.
    INCLUDE bdcrecx1.
    START-OF-SELECTION.
      CALL FUNCTION 'WS_UPLOAD'
        EXPORTING
          filename = 'C:\first1.txt'
          filetype = 'DAT'
        TABLES
          data_tab = itab.
      CALL FUNCTION 'WS_UPLOAD'
       EXPORTING
         filename                      = 'C:\second.txt'
         filetype                      = 'DAT'
        TABLES
          data_tab                      = jtab.
      LOOP AT itab.
        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'
                                      itab-lifnr.
        PERFORM bdc_field       USING 'RF02K-BUKRS'
                                      itab-bukrs.
        PERFORM bdc_field       USING 'RF02K-EKORG'
                                       itab-ekorg.
        PERFORM bdc_field       USING 'RF02K-KTOKK'
                                       itab-ktokk.
        PERFORM bdc_dynpro      USING 'SAPMF02K' '0110'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'LFA1-LAND1'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '/00'.
        PERFORM bdc_field       USING 'LFA1-ANRED'
                                      itab-anred.
        PERFORM bdc_field       USING 'LFA1-NAME1'
                                      itab-name1.
        PERFORM bdc_field       USING 'LFA1-SORTL'
                                      itab-sortl.
        PERFORM bdc_field       USING 'LFA1-LAND1'
                                      itab-land1.
        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-BANKN(01)'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=ENTR'.
        cnt = 0.
        LOOP AT jtab WHERE j1 = itab-i1.
          cnt = cnt + 1.
          CONCATENATE 'LFBK-BANKS(' cnt ')' INTO fdt.
          PERFORM bdc_field  USING fdt jtab-banks.
          CONCATENATE 'LFBK-BANKL(' cnt ')' INTO fdt.
          PERFORM bdc_field USING fdt jtab-bankl.
          CONCATENATE 'LFBK-BANKN(' cnt ')' INTO fdt.
          PERFORM bdc_field   USING fdt jtab-bankn.
          IF cnt = 5.
            cnt = 0.
            PERFORM bdc_dynpro      USING 'SAPMF02K' '0130'.
            PERFORM bdc_field       USING 'BDC_CURSOR'
                                          'LFBK-BANKS(01)'.
            PERFORM bdc_field       USING 'BDC_OKCODE'
                                          '=P+'.
            PERFORM bdc_dynpro      USING 'SAPMF02K' '0130'.
            PERFORM bdc_field       USING 'BDC_CURSOR'
                                          'LFBK-BANKN(02)'.
            PERFORM bdc_field       USING 'BDC_OKCODE'
                                          '=ENTR'.
          ENDIF.
        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'
                                      itab-akont.
        PERFORM bdc_field       USING 'LFB1-FDGRV'
                                      itab-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'
                                      itab-waers.
        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.
      PERFORM close_group.
    Intial screen data file.
    1     63190      0001     0001     0001     mr     bal188     b     in     31000     a1     inr
    2     63191      0001     0001     0001     mr     bal189     b     in     31000     a1     inr
    Table control Data:
    1     in     sb     11000
    1     in     sb     12000
    1     in     sb     13000
    1     in     sb     14000
    1     in     sb     15000
    1     in     sb     16000
    1     in     sb     17000
    1     in     sb     18000
    1     in     sb     19000
    1     in     sb     20000
    1     in     sb     21000
    1     in     sb     22000
    2     in     sb     21000
    2     in     sb     22000
    Thanks,
    Vasanth

  • Problem with table control adding new line

    Dear friends,
    i am working with the VA01 upload program.
    when i am uploading the multiple line items i am getting the error.
    i resoved the error and successfully upload the data for 3 line items.
    when i am upload the data for 10line items it was showing the error as the screen field doesn't exists.
    here i am attaching the logic
    DATA: V_MABNR(20) TYPE C,
          V_KWMENG(20) TYPE C,
          V_KBETR(20) TYPE C,
          VAL(03) TYPE N VALUE 01.
    include bdcrecx1.
    start-of-selection.
    perform open_group.
    LOOP AT IT_FINAL INTO WA_FINAL.
    perform bdc_dynpro      using 'SAPMV45A' '0101'.
    perform bdc_field       using 'BDC_CURSOR'                              'VBAK-AUART'.
    perform bdc_field       using 'BDC_OKCODE'                              '/00'.
    perform bdc_field       using 'VBAK-AUART'                              WA_FINAL-AUART."'OR'.
    perform bdc_field       using 'VBAK-VKORG'                              WA_FINAL-VKORG."'1000'.
    perform bdc_field       using 'VBAK-VTWEG'                              WA_FINAL-VTWEG."'12'.
    perform bdc_field       using 'VBAK-SPART'                              WA_FINAL-SPART."'00'.
    perform bdc_dynpro      using 'SAPMV45A' '4001'.
    perform bdc_field       using 'BDC_OKCODE'                              '/00'.
    perform bdc_field       using 'BDC_CURSOR'                              'VBKD-BSTDK'.
    perform bdc_field       using 'VBKD-BSTKD'                              WA_FINAL-BSTKD."'PO TEST'.
    perform bdc_field       using 'VBKD-BSTDK'                              WA_FINAL-BSTDK."'03.02.2012'.
    perform bdc_field       using 'KUAGV-KUNNR'                             WA_FINAL-KUNAG." '1033'.
    perform bdc_field       using 'KUWEV-KUNNR'                             WA_FINAL-KUNWE." '1033'.
    LOOP AT IT_FINAL1 INTO WA_FINAL1.
    CONCATENATE 'RV45A-MABNR(' '0' VAL ')' INTO V_MABNR.
    CONCATENATE 'RV45A-KWMENG(' '0' VAL ')' INTO V_KWMENG.
    CONCATENATE 'KOMV-KBETR(' '0' VAL ')' INTO V_KBETR.
    perform bdc_field using 'BDC_CURSOR'                                    V_KBETR."v_kwmeng.
    perform bdc_field using v_mabnr                                         WA_FINAL1-MATNR."wa_item-matnr.
    perform bdc_field using v_kwmeng                                        WA_FINAL1-KWMENG."wa_item-kwmeng.
    perform bdc_field using v_kbetr                                         WA_FINAL1-KBETR."wa_item-kwmeng.
    perform bdc_dynpro using 'SAPMV45A' '4001'.
    perform bdc_field using 'BDC_OKCODE'                                    '/00'.
    VAL = VAL + 1.
    endloop.
    *VAL = 01.
    perform bdc_dynpro using 'SAPMV45A' '4001'.
    perform bdc_field using 'BDC_OKCODE'                                    '=SICH'.
    ENDLOOP.
    perform bdc_transaction using 'VA01'.
    perform close_group.
    i searched in SDN i found a lot of links but i can't find the proper document.
    can any one explain me clearly about adding the N line items and screen resolution logic.
    Thanks,
    karunakar

    Hi,
    For screen resolution logic, you can pass the value 'X' into the variable CTU_PARAMS-DEFSIZE in the OPTIONS parameter of CALL TRANSACTION using BDC DATA.
          CALL TRANSACTION TCODE USING BDCDATA
                                                         MODE   CTUMODE
                                                         UPDATE CUPDATE
                                                         OPTIONS FROM OPT
                                                         MESSAGES INTO MESSTAB.
    DEFSIZE - Selects whether the screens of the called transaction are displayed in the standard screen size. Values: "X" (standard size), " " (current size).

  • ABAP HR How to create infotype with table control in it like Infotype 0008

    Hi Experts.
    I need help from u guys. My client requirement is to create custom infotype just like 0008 infotype which contain table control to save amount and wage types. I try to create infotype with table control using PM01, but that table control is in display mode only, i almost search every where to create custom infotype with table control but what ever threads in forum all are they unanswered and most of the threads for creating infotype. But i already done with infotype , but my main problem is table control.
    If any one have some suggestion for this please share with me.
    <removed by moderator> i am looking for positive reply.
    Edited by: Thomas Zloch on Aug 30, 2011 12:54 PM

    Hi
    I've created several infotypes with a Table Control and it is always the same story. You have to create a custom Z table to store the Table Control data (if you can have unlimited records), so in the PSXXXX structure you need to add a TABNR field to link the PAXXXX table and the Z one, just like the type table OM infotypes.
    Then in your code you have to control every possible operation, INS, MOD, DEL... and update the Z table accordingly (the standard code won't do that)
    If your TC fields appear in display mode, take a look at the Groups 1 and 3 in your fields, the must be set with the usual values for a PA infotype.
    If you have more questions, just ask,
    Regards

  • Strange Problem with ARD 2.2 *Please Help*

    Strange Problem with ARD 2.2 (2 problems)
    We have a classroom lab with 14 G5 PPC's running 10.4.11 with ARD 2.2 clients installed.
    We controlled all the G5's from a PPC Mac Mini running 10.4.11 with ARD 2.2, this was our Admin machine in our server room.
    We then added a teachers machine in the lab, an iMac PPC running 10.4.11 and ARD 2.2 also with admin status.
    Everything was working fine!
    We then upgraded the iMac PPC to an iMac Intel with 10.4.11. We installed ARD 2.2 admin and did the intel intergration.
    Everything worked fine.
    The iMac PPC was moved to another location, ARD was removed following instructions on the Apple website telling us to delete the application then run some terminal commands to remove pref's.
    Then our Intel iMac screen broke, we had the "lines" problem so bad only half the screen was visible. Long story short Apple wanted to charge us almost half the cost of the machine (no Applecare as it was a donated machine) to repair the screen!
    So we moved the PPC iMac back into the lab, re-install ARD 2.2.
    Now here is the problem, I can control, observe and run almost any command but cannot share with any computer!
    2nd,the Mac Mini Tech computer is running fine but cannot control or observe the PPC iMac teacher machine (we were able to do this before) I can even share the Mac Mini with the iMac but cannot observe or control!!
    Any ideas?

    "With ARD you have to enable option to control a Mac which has ARD running on it as opposed to remotely controlling normal client Mac."
    I'm not sure I understand, do you mean in System Pref's under sharing? Or is there somewhere else I need to enable to control?
    Seems like a hassle to reinstall the entire OS just to fix this problem, I am able to do everything else, except observe from one admin to another, and control from 1 admin to clients.
    thanks

  • Problem with table paging [PDK for NET]

    Hi All,
    I have a problem with table paging in PDK for .NET (ver 2).
    The Table has 14 visible rows.
    The lead selection is set to "SINGLE"
    When the user selects a row I can use
    Table1.SelectedKeys(0) Mod Table1.VisibleRowCount
    in order to get the info of the selected row.
    If I will page using the "Prev/Next" page of the Table UI element it will also work.
    However, when I press "Prev/Next" item and then select a row it chooses the wrong row.
    (See picture: http://img509.imageshack.us/img509/3882/table5tq.jpg)
    What can I do in order to solve the problem?
    Thanks,
    Omri

    Hi Omri,
    how are you doing ?
    The SAPTable is similar to a DataGrid control and need to be bound to the datasource on every postback
    a good idea is to keep the dataset available in the page or on the server ( so that you dont need to keep making expensive fetch operations
    The selected row is affected by the recordset (dataset) and needs additional programming
    A work around for the selected row issue is to save it in a server side hidden variable (or anything that will persist) and read and set the value in the page / next button handler
    with respect,
    amit

  • Who else has a problem with parental controls enabled not being able to run Firefox on the Mac?

    Who else has a problem with parental controls enabled not being able to run Firefox on the Mac? (Any solutions?) (BTW. Chrome doesn't work either)

    Although FF4 is so nice I'm almost ready to ditch iGoogle!
    Please fix what appears to be an RSS/iGoogle issue with FF4...
    Gmail is fine, but titles dont show in most RSS feed gadgets and no stories, strangely, apart from this one:
    http://www.google.com.au/ig/directory?hl=en&url=www.google.com/ig/modules/builtin_news_technology.xml
    Which if you enter the last part of the url reports that
    "<Content type="html">
    This is a builtin module, so the UserPrefs and Content are ignored."
    Any ideas?

  • Strange problem with desktop

    Hi, I have a very strange problem with desktops and dashboards something else. For example, when I am on desktop 2 and i go to desktop 1, when I click with the mouse on it, it goes again to desktop 2. or when I am on desktop 1 and I go to ddashboard, it returns again to desktop 1 when i click to something in the dashboard.
    but, if i am on desktop 3, and i go to desktop 1 throguh desktop 2, there is no problem. the same if i go from desktop 2 to dashboard.
    I hope i've been clear enough to let you understand this... explanation =P
    Anyone can help?

    My system has started "freezing". Actually, usually when I'm browsing the net, Chromium stops loading pages. Conky stops updating, and usually I can't switch to another programs. I can't start xkill from menu, menu opens but nothing starts. If I run "ls" etc in Terminal, nothing happens
    I can however control+alt+F1 to CLI, but if I try to login nothing happens.If doesn't help even if I kill X (I started it with startx). And if I don't kill X, I can't go back from CLI with control+alt+F7, there's just a black screen.
    I'm using Nvidia drivers also, and XFCE4. This started happening some time ago, I think I was using Gnome2 back then. And I have updated my system, and this has happened at least with 3 kernel versions. There's nothing on logs. Well, actually, there's "TCP: Possible SYN flooding on port 6881. Sending cookies" errors on everything.log. But those don't happen when system freezes. And sometimes Chromium stops loading pages but other programs don't freeze, I think it's a problem with cache or something.
    Not really sure if this everything happens because of Chromium. I think I'm gonna switch back to Firefox and see what happens. Usually I'm running Chromium, Opera (use it just for a couple of pages), couple of Terminals and Kaffeine.

  • Strange problem with my build JAR

    Hiii everybody... I'm having a strange problem with my build (JAR file)... when I work with the Eclipse and I click in the table that returns the clients stored in my PostGre database it works fine, but when I build my application and it generates my JAR file and I open it and click in the same table to return the objects that I have.. it does not appears anymore.. just show when I work with eclipse... and the database is the same for both.
    I already checked the database path in my properties file... and the application recognize the database because I can login and there isn't any runtime exception...
    In that application I work with Hibernate and Spring... for me it is very strange because the application works fine when I run by eclipse... but does not return the database data when I click on my Jar file to open the application..
    Someone can help me with that?
    I dont know if the problem is in the Spring, Hibernate, Libraries...
    thanks in advance...

    So what's the error then? Are there any error messages? Have you checked the console? Or are you just clicking on the jar and you wouldn't even see the errors if there are any?
    What do the logs say?
    You're not giving a lot to work on here.

  • Strange Problem with tableView:didSelectRowAtIndexPath:

    Hi,
    I have a strange problem with selecting rows in a table view (iPhone OS 3.0):
    I select a row in the table view and the method tableView:didSelectRowAtIndexPath: doesn't get called. After that I select another row in the same table view and the method gets called, but with the indexPath of the first selected row. When I select a third cell in the table the method tableView:didSelectRowAtIndexPath: gets called with the Index Path of the second selected row and so on
    When I click on the same row for example n times in succession, tableView:didSelectRowAtIndexPath: doesn't get called, but when I select another row the method gets called n times with the index path of the first row.
    I'm using different table views in my app and in only one of them I have this problem. Unfortunately I have no clue whats the cause for that behavior. (the problematic table view is created and used like the other ones).
    I hope anybody has a hint for me.
    Thanks,
    Thomas

    Hi,
    since I didn't found a reason for the problem I recreated the ViewController class with the table view from scratch and the problem disappeared ...

Maybe you are looking for

  • In i-Book Author my illustration does not show in "Intro Media" when I preview. Help?

    I do not see "insert image" in Intro Media. How do I add my illustration in Intro Media in iBook Author?  Not sure here about (camera icon)? Thank you.

  • Dvd caddy and drive replaced...error results

    i have a powerbook g3 pismo...dvd caddy broke...i ordered a whole new module...in a new caddy...when i try to put it in computer it says "there was an initialization error a valid dvd drive could not be found (-70012)" i have os x 10.9.3....400 mhz,

  • Workflow Notification truncated in outlook

    Dear Team, We have designed a Smartform for workflow Notification.The Notification in SAP inbox appears fine.but when it comes to outlook inbox ,its truncated. Apperciate,if anyone can help me in sorting out this. Your valuable inputs are highly Appe

  • Doubt Regarding IDOC generation

    IDocs are used for asynchronous transactions: each IDoc generated exists as a self-contained text file that can then be transmitted to the requesting workstation without connecting to the central database. where can i see the generated IDOC's in R/3.

  • Roles and permissions

    I have a couple of questions. 1. How would I go about fitting a custom permission resolver for SOA suite ? 2. Is there a way to print the roles,users and permissions to debug ? My roles could be in LDAP or a database but permissions are in system-jaz