Hi Regarding Printing values in same window in case of Scripts

Hi Smart Guys ,
                      Really this could be a challenging for all smart guys who were experts in scripts and smart-forms .
i am using 3 windows 1.Mainwindow and other 2 are secondary-windows
i am printing line items through external-subroutines
my secondary-windows can hold each one 15.
but the problem is i am printing 15 values in one secondary window
from 16 on wards i need to print in another secondary window
i am not getting values in my another secondary window from 16 on wards
i am using two individual sub-routines for each secondary window
pleas solve this one .
definitely 100% points awarded.
This is sub-routine what iam using ..................
*& Subroutine Pool   ZCHQ
PROGRAM  zchq.
TABLES: payr,reguh,regup,bsik,bsak,bkpf.
DATA:v_date TYPE bsik-budat,
       str2(10) TYPE c,
       v_vblnr LIKE reguh-vblnr,
       v_rebzg LIKE bsik-rebzg,
       v_belnr LIKE bsik-belnr,
      v_augbl LIKE bsak-augbl,
       v_zuonr LIKE bsik-zuonr,
        v_amt LIKE bsik-dmbtr,
        v_temp(20),
        v_temp1(20),
        v_str(20),
        v_total(20),
        str TYPE string,
        v_amnt TYPE bsik-wrbtr,
        v_shkzg TYPE bsik-shkzg,
        v_amt1(20),
        v_amt2(20),
        str1 TYPE string,
        str5 TYPE string,
        v_dat(10),
        v_dat1(10),
        wrk_index LIKE sy-tabix    VALUE  '0',
        wrk_index1 TYPE sy-tabix VALUE 0.
TYPES:BEGIN OF st_tab,
      name(130),
      value(255),
      dmbtr TYPE pc207-betrg,
      END OF st_tab.
DATA:it_tab TYPE TABLE OF st_tab,
       wa_tab LIKE LINE OF it_tab.
*&      Form  get_data
      text
     -->INTAB      text
     -->OUTTAB     text
FORM get_data TABLES intab STRUCTURE itcsy
                     outtab STRUCTURE itcsy.
  DATA : v_vblnr LIKE reguh-vblnr,
         v_text LIKE regup-sgtxt,
         wv_rwbtr TYPE payr-rwbtr,
         str TYPE p DECIMALS 2,
         v_rwbtr(20),
         v_qbshb(20),
          c_qbshb TYPE p DECIMALS 2.
  DATA: BEGIN OF wa_bsak ,
        belnr LIKE bsak-belnr,
        shkzg LIKE bsak-shkzg,
        budat LIKE bsak-budat,
        dmbtr LIKE bsak-dmbtr,
        qbshb LIKE bsak-qbshb,
        augbl LIKE bsak-augbl,
        END OF wa_bsak.
  READ TABLE intab INDEX 1.
  v_vblnr = intab-value.
  CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
      input  = v_vblnr
    IMPORTING
      output = v_vblnr.
  SELECT SINGLE sgtxt
                INTO v_text
                FROM regup
                WHERE vblnr = v_vblnr.
  CLEAR wv_rwbtr.
  SELECT SINGLE rwbtr
                INTO wv_rwbtr
                FROM payr
                WHERE vblnr = v_vblnr.
  CLEAR v_rwbtr.
  IF wv_rwbtr < 0.
    str = ( wv_rwbtr * -1 ).
    v_rwbtr = str.
  ELSE.
    str = wv_rwbtr.
    v_rwbtr = str.
  ENDIF.
  READ TABLE outtab INDEX 1.
  IF sy-subrc = 0.
    outtab-value = v_text.
    MODIFY outtab INDEX 1.
    CLEAR outtab.
  ENDIF.
  READ TABLE outtab INDEX 2.
  IF sy-subrc = 0.
    outtab-value = v_rwbtr.
    MODIFY outtab INDEX 2.
    CLEAR outtab.
  ENDIF.
  CLEAR v_qbshb.
  CLEAR c_qbshb.  "*"
  CLEAR wa_bsak.
  SELECT belnr shkzg dmbtr qbshb augbl
  FROM bsak
  INTO CORRESPONDING FIELDS OF wa_bsak
  WHERE augbl = v_vblnr.
    IF wa_bsak-shkzg = 'H'.
     v_qbshb = v_qbshb + wa_bsak-qbshb.
      c_qbshb = c_qbshb + wa_bsak-qbshb.
      v_qbshb = c_qbshb.
    ELSE.
      IF wa_bsak-augbl NE wa_bsak-belnr.
       v_qbshb = v_qbshb + wa_bsak-dmbtr.
        c_qbshb = c_qbshb + wa_bsak-dmbtr.
        v_qbshb = c_qbshb.
      ENDIF.
    ENDIF.
    CLEAR wa_bsak.
  ENDSELECT.
  READ TABLE outtab INDEX 3.
  IF sy-subrc = 0.
    IF NOT v_qbshb IS INITIAL.
      outtab-value = v_qbshb.
    ENDIF.
    MODIFY outtab INDEX 3.
    CLEAR outtab.
  ENDIF.
  CLEAR : outtab.
  DATA: BEGIN OF wa_bsak1 ,
        belnr LIKE bsak-belnr,
        gjahr LIKE bsak-gjahr,
        budat LIKE bsak-budat,
        rebzg LIKE bsak-rebzg,
        rebzj LIKE bsak-rebzj,
        shkzg LIKE bsak-shkzg,
        dmbtr LIKE bsak-dmbtr,
        qbshb LIKE bsak-qbshb,
        str4  TYPE string,
        str5 TYPE string,
        v_amt3(20),
        augbl LIKE bsak-augbl,
        v_total LIKE bsak-dmbtr,
        END OF wa_bsak1.
  DATA: it_bsak LIKE  TABLE OF wa_bsak1 WITH HEADER LINE.
  DATA: BEGIN OF wa_bsik,
        belnr LIKE bsik-belnr,
        budat LIKE bsik-budat,
        shkzg LIKE bsik-shkzg,
        dmbtr LIKE bsik-dmbtr,
        zuonr LIKE bsik-zuonr,
        str1 TYPE string,
        str2 TYPE string,
        str3 TYPE string,
        v_amt1(20),
        v_amt2(20),
        v_dat(10),
         END OF wa_bsik.
  DATA: wrk_str1 TYPE string,
        wrk_str2 TYPE string,
        wrk_str3 TYPE string,
        strtmp(20),
        v_sumamt(20),
        c_sumamt TYPE p DECIMALS 2.
  DATA: v_dmbtr LIKE bsik-dmbtr,
        dmbtr LIKE bsik-dmbtr.
  DATA: it_bsik LIKE TABLE OF wa_bsik WITH HEADER LINE.
read table intab
with key name = 'REGUH-VBLNR'
transporting value.
if sy-subrc = 0.
   v_vblnr = intab-value.
endif.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
   EXPORTING
     input  = v_vblnr
   IMPORTING
     output = v_vblnr.
CLEAR v_shkzg.
SELECT SINGLE shkzg
INTO v_shkzg
FROM bsik
WHERE belnr = v_vblnr
AND shkzg = 'S'.
IF v_shkzg = 'S'.
   SELECT belnr rebzg rebzj dmbtr
   INTO (wa_bsak1-belnr,wa_bsak1-rebzg,wa_bsak1-rebzj,wa_bsak1-dmbtr)
   FROM bsik
   WHERE belnr = v_vblnr.
     SELECT SINGLE budat
     INTO wa_bsak1-budat
     FROM bkpf
     WHERE belnr = wa_bsak1-rebzg
     AND gjahr = wa_bsak1-rebzj.
     CLEAR str5.
     MOVE wa_bsak1-dmbtr TO str5.
     str5 = str5 + wa_bsak-dmbtr.
     MOVE str5 TO wa_bsak1-v_amt3.
     CLEAR v_dat1.
     APPEND wa_bsak1 TO it_bsak.
     CLEAR wa_bsak1.
   ENDSELECT.
ENDIF.
  SELECT belnr gjahr shkzg dmbtr qbshb augbl
  FROM bsak
  INTO CORRESPONDING FIELDS OF wa_bsak1
  WHERE augbl = v_vblnr
  AND shkzg = 'H'.
    IF sy-subrc = 0.
      SELECT SINGLE budat
      INTO wa_bsak1-budat
      FROM bkpf
      WHERE belnr = wa_bsak1-belnr
      AND gjahr =  wa_bsak1-gjahr.
      CLEAR str5.
      str5 = wa_bsak1-dmbtr + wa_bsak1-qbshb.
      wa_bsak1-v_amt3 = str5.
      APPEND wa_bsak1 TO it_bsak.
      CLEAR wa_bsak1.
    ENDIF.
  ENDSELECT.
  LOOP AT it_bsak.
    strtmp = it_bsak-v_amt3.
   v_sumamt = v_sumamt + strtmp.
    c_sumamt = c_sumamt + strtmp.
    v_sumamt = c_sumamt.
  ENDLOOP.
  READ TABLE outtab INDEX 4.
  outtab-value = v_sumamt.
  MODIFY outtab INDEX 4.
  CLEAR outtab.
  CLEAR: intab,
         outtab.
ENDFORM.                    "get_data
*&      Form  GET_AMT
      text
     -->INTAB      text
     -->OUTTAB     text
FORM get_amt TABLES intab STRUCTURE itcsy
                    outtab STRUCTURE itcsy.
  CLEAR : outtab.
  DATA: BEGIN OF wa_bsak ,
        belnr LIKE bsak-belnr,
        gjahr LIKE bsak-gjahr,
        budat LIKE bsak-budat,
        rebzg LIKE bsak-rebzg,
        rebzj LIKE bsak-rebzj,
        shkzg LIKE bsak-shkzg,
        dmbtr LIKE bsak-dmbtr,
        qbshb LIKE bsak-qbshb,
        str4  TYPE string,
        str5 TYPE string,
        v_amt3(20),
        augbl LIKE bsak-augbl,
        v_total LIKE bsak-dmbtr,
        END OF wa_bsak.
  DATA: it_bsak LIKE  TABLE OF wa_bsak WITH HEADER LINE.
  DATA: BEGIN OF wa_bsik,
        belnr LIKE bsik-belnr,
        budat LIKE bsik-budat,
        shkzg LIKE bsik-shkzg,
        dmbtr LIKE bsik-dmbtr,
        zuonr LIKE bsik-zuonr,
        str1 TYPE string,
        str2 TYPE string,
        str3 TYPE string,
        v_amt1(20),
        v_amt2(20),
        v_dat(10),
         END OF wa_bsik.
  DATA: wrk_str1 TYPE string,
        wrk_str2 TYPE string,
        wrk_str3(20).
  DATA: v_dmbtr LIKE bsik-dmbtr,
        dmbtr LIKE bsik-dmbtr.
  DATA: it_bsik LIKE TABLE OF wa_bsik WITH HEADER LINE.
  READ TABLE intab
  WITH KEY name = 'REGUH-VBLNR'
  TRANSPORTING value.
  IF sy-subrc = 0.
    v_vblnr = intab-value.
  ENDIF.
  CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
      input  = v_vblnr
    IMPORTING
      output = v_vblnr.
  CLEAR v_shkzg.
  SELECT SINGLE shkzg
  INTO v_shkzg
  FROM bsik
  WHERE belnr = v_vblnr
  AND shkzg = 'S'.
  IF v_shkzg = 'S'.
    SELECT belnr rebzg rebzj dmbtr
    INTO (wa_bsak-belnr, wa_bsak-rebzg, wa_bsak-rebzj, wa_bsak-dmbtr)
    FROM bsik
    WHERE belnr = v_vblnr.
      SELECT SINGLE budat
      INTO wa_bsak-budat
      FROM bkpf
      WHERE belnr = wa_bsak-rebzg
      AND gjahr = wa_bsak-rebzj.
      CLEAR str5.
      MOVE wa_bsak-dmbtr TO str5.
      MOVE str5 TO wa_bsak-v_amt3.
     MOVE wa_bsak-dmbtr TO str5.
     str5 = str5 + wa_bsak-dmbtr.
     MOVE str5 TO wa_bsak-v_amt3.
      CLEAR v_dat1.
      CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
        EXPORTING
          date_internal            = wa_bsak-budat
        IMPORTING
          date_external            = v_dat1
        EXCEPTIONS
          date_internal_is_invalid = 1
          OTHERS                   = 2.
      IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      wa_bsak-str4 = v_dat1.
      APPEND wa_bsak TO it_bsak.
      CLEAR wa_bsak.
    ENDSELECT.
    ADD 1 TO wrk_index.
    READ TABLE it_bsak
    INDEX wrk_index.
    MOVE it_bsak-belnr TO wrk_str1.
    CONDENSE wrk_str1.
    MOVE it_bsak-str4 TO wrk_str2.
    CONDENSE wrk_str2.
    MOVE it_bsak-v_amt3 TO wrk_str3.
   CONDENSE wrk_str3.
    CLEAR it_bsak.
    IF wrk_index LE 15.
      MOVE wrk_str1 TO outtab-value.
     SHIFT outtab-value LEFT.
      MODIFY outtab TRANSPORTING value WHERE name = 'STEXT1'.
      CLEAR outtab.
      MOVE wrk_str2 TO outtab-value.
     SHIFT outtab-value LEFT.
      MODIFY outtab TRANSPORTING value WHERE name = 'STEXT2'.
      CLEAR outtab.
      MOVE wrk_str3 TO outtab-value.
     SHIFT outtab-value LEFT.
      MODIFY outtab TRANSPORTING value WHERE name = 'STEXT3'.
      CLEAR outtab.
    ELSE.
      MOVE wrk_str1 TO outtab-value.
     SHIFT outtab-value LEFT.
      MODIFY outtab TRANSPORTING value WHERE name = 'STEXT4'.
      CLEAR outtab.
      MOVE wrk_str2 TO outtab-value.
     SHIFT outtab-value LEFT.
      MODIFY outtab TRANSPORTING value WHERE name = 'STEXT5'.
      CLEAR outtab.
      MOVE wrk_str3 TO outtab-value.
     SHIFT outtab-value LEFT.
      MODIFY outtab TRANSPORTING value WHERE name = 'STEXT6'.
      CLEAR outtab.
    ENDIF.
    CLEAR: intab,
           outtab.
    CLEAR it_bsak.
    REFRESH it_bsak.
  ENDIF.
  CLEAR it_bsak.
  CLEAR wa_bsak.
  SELECT belnr gjahr shkzg dmbtr qbshb augbl
  FROM bsak
  INTO CORRESPONDING FIELDS OF wa_bsak
  WHERE augbl = v_vblnr
  AND shkzg = 'H'.
    IF sy-subrc = 0.
      SELECT SINGLE budat
      INTO wa_bsak-budat
      FROM bkpf
      WHERE belnr = wa_bsak-belnr
      AND gjahr =  wa_bsak-gjahr.
      CLEAR str5.
      str5 = wa_bsak-dmbtr + wa_bsak-qbshb.
      wa_bsak-v_amt3 = str5.
      CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
       EXPORTING
         date_internal                  = wa_bsak-budat
       IMPORTING
         date_external                  = v_dat1
EXCEPTIONS
  DATE_INTERNAL_IS_INVALID       = 1
  OTHERS                         = 2
     IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
     ENDIF.
      wa_bsak-str4 = v_dat1.
      APPEND wa_bsak TO it_bsak.
      CLEAR wa_bsak.
    ENDIF.
  ENDSELECT.
  CLEAR: it_bsak.
  IF it_bsak[] IS NOT INITIAL.
    ADD 1 TO wrk_index.
    READ TABLE it_bsak
    INDEX wrk_index .
    MOVE it_bsak-belnr TO wrk_str1.
    CONDENSE wrk_str1.
    MOVE it_bsak-str4 TO wrk_str2.
    CONDENSE wrk_str2.
    MOVE it_bsak-v_amt3 TO wrk_str3.
   CONDENSE wrk_str3.
    CLEAR it_bsak.
    IF wrk_index LE 15.
      MOVE wrk_str1 TO outtab-value.
      MODIFY outtab TRANSPORTING value WHERE name = 'STEXT1'.
      CLEAR outtab.
      MOVE wrk_str2 TO outtab-value.
      MODIFY outtab TRANSPORTING value WHERE name = 'STEXT2'.
      CLEAR outtab.
      MOVE wrk_str3 TO outtab-value.
      MODIFY outtab TRANSPORTING value WHERE name = 'STEXT3'.
      CLEAR outtab.
    ELSE.
      MOVE wrk_str1 TO outtab-value.
      MODIFY outtab TRANSPORTING value WHERE name = 'STEXT4'.
      CLEAR outtab.
      MOVE wrk_str2 TO outtab-value.
      MODIFY outtab TRANSPORTING value WHERE name = 'STEXT5'.
      CLEAR outtab.
      MOVE wrk_str3 TO outtab-value.
      MODIFY outtab TRANSPORTING value WHERE name = 'STEXT6'.
      CLEAR outtab.
    ENDIF.
    CLEAR: intab,
           outtab.
  ENDIF.
ENDFORM.                    "GET_AMT
*&      Form  GET_AMT2
      text
     -->INTAB      text
     -->OUTTAB     text
FORM get_amt2 TABLES intab STRUCTURE itcsy
                    outtab STRUCTURE itcsy.
  CLEAR : outtab.
  DATA: BEGIN OF wa_bsak ,
        belnr LIKE bsak-belnr,
        gjahr LIKE bsak-gjahr,
        budat LIKE bsak-budat,
        rebzg LIKE bsak-rebzg,
        rebzj LIKE bsak-rebzj,
        shkzg LIKE bsak-shkzg,
        dmbtr LIKE bsak-dmbtr,
        qbshb LIKE bsak-qbshb,
        str4  TYPE string,
        str5 TYPE string,
        v_amt3(20),
        augbl LIKE bsak-augbl,
        v_total LIKE bsak-dmbtr,
        END OF wa_bsak.
  DATA: it_bsak LIKE  TABLE OF wa_bsak WITH HEADER LINE.
  DATA: BEGIN OF wa_bsik,
        belnr LIKE bsik-belnr,
        budat LIKE bsik-budat,
        shkzg LIKE bsik-shkzg,
        dmbtr LIKE bsik-dmbtr,
        zuonr LIKE bsik-zuonr,
        str1 TYPE string,
        str2 TYPE string,
        str3 TYPE string,
        v_amt1(20),
        v_amt2(20),
        v_dat(10),
         END OF wa_bsik.
  DATA: wrk_str1 TYPE string,
        wrk_str2 TYPE string,
        wrk_str3(15),
        v_tmp(15),
        v_sumamt(20),
        wv_strlen TYPE i.
  DATA: v_dmbtr LIKE bsik-dmbtr,
        dmbtr LIKE bsik-dmbtr.
  DATA: it_bsik LIKE TABLE OF wa_bsik WITH HEADER LINE.
  READ TABLE intab
  WITH KEY name = 'REGUH-VBLNR'
  TRANSPORTING value.
  IF sy-subrc = 0.
    v_vblnr = intab-value.
  ENDIF.
  CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
      input  = v_vblnr
    IMPORTING
      output = v_vblnr.
  CLEAR v_shkzg.
  SELECT SINGLE shkzg
  INTO v_shkzg
  FROM bsik
  WHERE belnr = v_vblnr
  AND shkzg = 'S'.
  IF v_shkzg = 'S'.
    SELECT belnr rebzg rebzj dmbtr
    INTO (wa_bsak-belnr,wa_bsak-rebzg,wa_bsak-rebzj,wa_bsak-dmbtr)
    FROM bsik
    WHERE belnr = v_vblnr.
      SELECT SINGLE budat
      INTO wa_bsak-budat
      FROM bkpf
      WHERE belnr = wa_bsak-rebzg
      AND gjahr = wa_bsak-rebzj.
      CLEAR str5.
      MOVE wa_bsak-dmbtr TO str5.
      MOVE str5 TO wa_bsak-v_amt3.
      CLEAR v_dat1.
      CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
        EXPORTING
          date_internal            = wa_bsak-budat
        IMPORTING
          date_external            = v_dat1
        EXCEPTIONS
          date_internal_is_invalid = 1
          OTHERS                   = 2.
      IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      wa_bsak-str4 = v_dat1.
      APPEND wa_bsak TO it_bsak.
      CLEAR wa_bsak.
    ENDSELECT.
    ADD 1 TO wrk_index1.
    READ TABLE it_bsak
    INDEX wrk_index1 .
    MOVE it_bsak-belnr TO wrk_str1.
    CONDENSE wrk_str1.
    MOVE it_bsak-str4 TO wrk_str2.
    CONDENSE wrk_str2.
    MOVE it_bsak-v_amt3 TO wrk_str3.
   CONDENSE wrk_str3.
    CLEAR it_bsak.
    IF wrk_index1 LE 15.
      MOVE wrk_str1 TO outtab-value.
      MODIFY outtab TRANSPORTING value WHERE name = 'S_TEXT1'.
      CLEAR outtab.
      MOVE wrk_str2 TO outtab-value.
      MODIFY outtab TRANSPORTING value WHERE name = 'S_TEXT2'.
      CLEAR outtab.
     MOVE wrk_str3 TO outtab-value.
     SHIFT outtab-value RIGHT DELETING TRAILING space.
     MODIFY outtab TRANSPORTING value WHERE name = 'S_TEXT3'.
     CLEAR outtab.
      READ TABLE outtab INDEX 3.
      outtab-value = wrk_str3.
      MODIFY outtab INDEX 3.
      CLEAR outtab.
    ELSE.
      MOVE wrk_str1 TO outtab-value.
      MODIFY outtab TRANSPORTING value WHERE name = 'S_TEXT4'.
      CLEAR outtab.
      MOVE wrk_str2 TO outtab-value.
      MODIFY outtab TRANSPORTING value WHERE name = 'S_TEXT5'.
      CLEAR outtab.
      MOVE wrk_str3 TO outtab-value.
     SHIFT outtab-value RIGHT  DELETING TRAILING space.
      MODIFY outtab TRANSPORTING value WHERE name = 'S_TEXT6'.
      CLEAR outtab.
    ENDIF.
    CLEAR: intab,
           outtab.
    CLEAR it_bsak.
    REFRESH it_bsak.
  ENDIF.
  CLEAR it_bsak.
  CLEAR wa_bsak.
  SELECT belnr gjahr shkzg dmbtr qbshb augbl
  FROM bsak
  INTO CORRESPONDING FIELDS OF wa_bsak
  WHERE augbl = v_vblnr
  AND shkzg = 'H'.
    IF sy-subrc = 0.
      SELECT SINGLE budat
      INTO wa_bsak-budat
      FROM bkpf
      WHERE belnr = wa_bsak-belnr
      AND gjahr =  wa_bsak-gjahr.
      CLEAR str5.
      str5 = wa_bsak-dmbtr + wa_bsak-qbshb.
      wa_bsak-v_amt3 = str5.
      CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
        EXPORTING
          date_internal = wa_bsak-budat
        IMPORTING
          date_external = v_dat1.
EXCEPTIONS
  DATE_INTERNAL_IS_INVALID       = 1
  OTHERS                         = 2
     IF sy-subrc <> 0.    "#EC
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
     ENDIF.
      wa_bsak-str4 = v_dat1.
      APPEND wa_bsak TO it_bsak.
      CLEAR wa_bsak.
    ENDIF.
  ENDSELECT.
  CLEAR: it_bsak.
  IF it_bsak[] IS NOT INITIAL.
    ADD 1 TO wrk_index1.
    READ TABLE it_bsak
    INDEX wrk_index1 .
    MOVE it_bsak-belnr TO wrk_str1.
    CONDENSE wrk_str1.
    MOVE it_bsak-str4 TO wrk_str2.
    CONDENSE wrk_str2.
    MOVE it_bsak-v_amt3 TO wrk_str3.
   CONDENSE wrk_str3.
    CLEAR it_bsak.
    IF wrk_index1 LE 15.
      MOVE wrk_str1 TO outtab-value.
      MODIFY outtab TRANSPORTING value WHERE name = 'S_TEXT1'.
      CLEAR outtab.
      MOVE wrk_str2 TO outtab-value.
      MODIFY outtab TRANSPORTING value WHERE name = 'S_TEXT2'.
      CLEAR outtab.
     write wrk_str3 to outtab-value right-justified.
     MOVE wrk_str3 TO outtab-value.
     MODIFY outtab TRANSPORTING value WHERE name = 'S_TEXT3'.
     CLEAR : outtab, v_tmp.
     CLEAR wv_strlen.
     wv_strlen = STRLEN( wrk_str3 ).
     wv_strlen = 15 - wv_strlen.
     DO wv_strlen TIMES.
       CONCATENATE '0' wrk_str3
       INTO wrk_str3.
     ENDDO.
     IF wrk_str3 IS NOT INITIAL.
       WRITE wrk_str3+0(wv_strlen) TO v_tmp RIGHT-JUSTIFIED.
     ENDIF.
      MOVE wrk_str3 TO outtab-value.
      CONDENSE outtab-value.
      MODIFY outtab TRANSPORTING value WHERE name = 'S_TEXT3'.
      CLEAR outtab.
     READ TABLE outtab INDEX 3.
     outtab-value = wrk_str3.
     MODIFY outtab INDEX 3.
     CLEAR outtab.
    ELSE.
      MOVE wrk_str1 TO outtab-value.
      MODIFY outtab TRANSPORTING value WHERE name = 'S_TEXT4'.
      CLEAR outtab.
      MOVE wrk_str2 TO outtab-value.
      MODIFY outtab TRANSPORTING value WHERE name = 'S_TEXT5'.
      CLEAR outtab.
      MOVE wrk_str3 TO outtab-value.
      MODIFY outtab TRANSPORTING value WHERE name = 'S_TEXT6'.
      CLEAR: outtab, v_tmp.
    ENDIF.
    CLEAR: intab,
           outtab.
  ENDIF.
ENDFORM.                    "GET_AMT
*&      Form  GET_ACNAME
      text
FORM get_acname TABLES intab STRUCTURE itcsy
                      outtab STRUCTURE itcsy.
  DATA: v_lifnr TYPE reguh-lifnr,
        v_lnrza TYPE lfa1-lnrza,
        v_name1 TYPE lfa1-name1,
        v_name2 TYPE reguh-zanre,
        v_name  TYPE string .
  READ TABLE intab INDEX 1.
  v_lifnr = intab-value.
  READ TABLE intab INDEX 2.
  v_name2 = intab-value.
  CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
      input  = v_lifnr
    IMPORTING
      output = v_lifnr.
  CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
      input  = v_name2
    IMPORTING
      output = v_name2.
  SELECT SINGLE lnrza
                INTO v_lnrza
                FROM lfa1
                WHERE lifnr = v_lifnr.
  SELECT SINGLE name1
                INTO v_name1
                FROM lfa1
                WHERE lifnr = v_lnrza.
CONCATENATE v_name1 v_name2 INTO v_name.
  IF sy-subrc = 0.
    READ TABLE outtab INDEX 1.
    outtab-value = v_name1.
    MODIFY outtab INDEX 1.
    CLEAR outtab.
  ENDIF.
ENDFORM.                    "GET_ACNAME
**&      Form  GET_AMT1
      text
     -->INTAB      text
     -->OUTTAB     text
*FORM get_amt1 TABLES intab STRUCTURE itcsy
                   outtab STRUCTURE itcsy.
CLEAR : outtab.
DATA: BEGIN OF wa_bsak ,
       belnr LIKE bsak-belnr,
       budat LIKE bsak-budat,
       shkzg LIKE bsak-shkzg,
       dmbtr LIKE bsak-dmbtr,
       str4  TYPE string,
       str5 TYPE string,
       v_amt3(20),
       augbl LIKE bsak-augbl,
       v_total LIKE bsak-dmbtr,
       END OF wa_bsak.
DATA: it_bsak LIKE  TABLE OF wa_bsak WITH HEADER LINE.
DATA: BEGIN OF wa_bsik,
       belnr LIKE bsik-belnr,
       budat LIKE bsik-budat,
       shkzg LIKE bsik-shkzg,
       dmbtr LIKE bsik-dmbtr,
       zuonr LIKE bsik-zuonr,
       str1 TYPE string,
       str2 TYPE string,
       str3 TYPE string,
       v_amt1(20),
       v_amt2(20),
       v_dat(10),
        END OF wa_bsik.
DATA: wrk_str1 TYPE string,
       wrk_str2 TYPE string,
       wrk_str3 TYPE string.
DATA: v_dmbtr LIKE bsik-dmbtr,
       dmbtr LIKE bsik-dmbtr.
DATA: it_bsik LIKE TABLE OF wa_bsik WITH HEADER LINE.
READ TABLE intab WITH KEY name = 'REGUH-VBLNR' TRANSPORTING value.
IF sy-subrc = 0.
   v_vblnr = intab-value.
ENDIF.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
   EXPORTING
     input  = v_vblnr
   IMPORTING
     output = v_vblnr.
SELECT shkzg INTO v_shkzg FROM bsik WHERE belnr = v_vblnr.
ENDSELECT.
IF v_shkzg = 'S'.
   SELECT belnr budat dmbtr
               INTO (wa_bsak-belnr, wa_bsak-budat, wa_bsak-dmbtr )
               FROM bsik
               WHERE belnr = v_vblnr.
     MOVE wa_bsak-dmbtr TO str5.
     MOVE str5 TO wa_bsak-v_amt3.
     CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
       EXPORTING
         date_internal            = wa_bsak-budat
       IMPORTING
         date_external            = v_dat1
       EXCEPTIONS
         date_internal_is_invalid = 1
         OTHERS                   = 2.
     IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
     ENDIF.
     wa_bsak-str4 = v_dat1.
     APPEND wa_bsak TO it_bsak.
     CLEAR wa_bsak.
   ENDSELECT.
   ADD 1 TO wrk_index.
   READ TABLE it_bsak INDEX wrk_index .
   MOVE it_bsak-belnr TO wrk_str1.
   CONDENSE wrk_str1.
   CLEAR it_bsak.
   READ TABLE it_bsak INDEX wrk_index.
   MOVE it_bsak-str4 TO wrk_str2.
   CONDENSE wrk_str2.
   CLEAR it_bsak.
   READ TABLE it_bsak INDEX wrk_index.
   MOVE it_bsak-v_amt3 TO wrk_str3.
   CONDENSE wrk_str3.
   CLEAR it_bsak.
   MOVE wrk_str1 TO outtab-value.
   MODIFY outtab TRANSPORTING value WHERE name = 'STEXT1'.
   CLEAR outtab.
   MOVE wrk_str2 TO outtab-value.
   MODIFY outtab TRANSPORTING value WHERE name = 'STEXT2'.
   CLEAR outtab.
   MOVE wrk_str3 TO outtab-value.
   MODIFY outtab TRANSPORTING value WHERE name = 'STEXT3'.
   CLEAR outtab.
   CLEAR: intab,
          outtab.
   CLEAR it_bsak.
   REFRESH it_bsak.
ELSE .
   SELECT dmbtr FROM bsik
         INTO  dmbtr
         WHERE belnr = v_vblnr.
   ENDSELECT.
   v_temp = dmbtr.
ENDIF.
CLEAR it_bsak.
SELECT belnr
        budat
        shkzg
        dmbtr
        augbl
        FROM bsak
        INTO  it_bsak
        WHERE augbl = v_vblnr AND shkzg = 'H'.
   it_bsak-str5 = it_bsak-dmbtr.
   it_bsak-v_amt3 = it_bsak-str5.
   MODIFY TABLE it_bsak TRANSPORTING v_amt3.
   CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
    EXPORTING
      date_internal                  = it_bsak-budat
    IMPORTING
      date_external                  = v_dat1
EXCEPTIONS
  DATE_INTERNAL_IS_INVALID       = 1
  OTHERS                         = 2
   IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
   ENDIF.
   it_bsak-str4 = v_dat1.
   MODIFY TABLE it_bsak TRANSPORTING str4.
   SELECT SINGLE * FROM
             bsik
             WHERE zuonr = it_bsak-belnr.
   IF sy-subrc = 0.
     v_temp1 = it_bsak-dmbtr .
     it_bsak-v_amt3 = v_temp1 - v_temp.
     it_bsak-str5 = it_bsak-dmbtr - v_temp.
     it_bsak-v_amt3 = it_bsak-str5.
     MODIFY TABLE it_bsak TRANSPORTING v_amt3.
     APPEND it_bsak.
   ELSE.
     v_total = it_bsak-dmbtr.
     APPEND  it_bsak.
     CLEAR it_bsak.
   ENDIF.
ENDSELECT.
CLEAR: it_bsak.
LOOP AT it_bsak.
IF it_bsak[] IS NOT INITIAL.
   ADD 1 TO wrk_index.
IF wrk_index GE 11 AND wrk_index LE 20.
   IF wrk_index LT 15.
     READ TABLE it_bsak INDEX wrk_index .
     MOVE it_bsak-belnr TO wrk_str1.
     CONDENSE wrk_str1.
     CLEAR it_bsak.
     READ TABLE it_bsak INDEX wrk_index.
     MOVE it_bsak-str4 TO wrk_str2.
     CONDENSE wrk_str2.
     CLEAR it_bsak.
     READ TABLE it_bsak INDEX wrk_index.
     MOVE it_bsak-v_amt3 TO wrk_str3.
     CONDENSE wrk_str3.
     CLEAR it_bsak.
     MOVE wrk_str1 TO outtab-value.
     MODIFY outtab TRANSPORTING value WHERE name = 'STEXT4'.
     CLEAR outtab.
     MOVE wrk_str2 TO outtab-value.
     MODIFY outtab TRANSPORTING value WHERE name = 'STEXT5'.
     CLEAR outtab.
     MOVE wrk_str3 TO outtab-value.
     MODIFY outtab TRANSPORTING value WHERE name = 'STEXT6'.
     CLEAR outtab.
   append outtab.
   ENDLOOP.
     CLEAR: intab,
            outtab.

I'm assuming there is ENDSELECT statement somewhere further in the program, otherwise you would have gotten a syntax error.
It seems that function 'Z_GROSS_WEIGHT2' contains COMMIT WORK. Therefore, it cannot be called inside SELECT FROM LIPS ... ENDSELECT loop. You need to change SELECT ... ENDSELECT to SELECT INTO TABLE and then call the FM inside LOOP AT <table> ... ENDLOOP.
Actually in the future try to stay away from SELECT ... ENDSELECT altogether. Most of the time they are bad for performance.
Hope this helps.

Similar Messages

  • Data transfer B/W parent windonw and child window with out java script

    hi ,
    i am using h:outputLink Tag to open child window , i am unable to pass parent window text box value to child window with out java script , Here i am using two different backing beans for parent and child windows . Plz help me .

    Hi -- I pass details between pages regularly. The following has worked for me:
    ApplicationFactory factory = (ApplicationFactory) FactoryFinder.getFactory(FactoryFinder.APPLICATION_FACTORY);
    ValueBinding binding = factory.getApplication().createValueBinding("#{beanName}");
    BeanName beanProperty = (BeanName) binding.getValue(FacesContext.getCurrentInstance());
    ... then set the you can set the values. Can't recall if I need to use SaveStates for the items. Probably if you use request scope beans.

  • I want to print two addresses in same window parallely

    Hi All,
    i want to print two addresses in same window parallely, I tried it with Template but not able to do it .Can any one tell me in detail.
    Thanks in advance.
    Regards,
    Sudhakar Reddy.A

    Hi Sudhakar,
    You can kep two templates side by side. For that:
    Keep vertical alignment for first template as 'Absolute from top' and horizontal alignment as 'Left'.
    Keep vertical alignment for secondary template as 'Absolute from top' and horizontal alignment as 'Right'.
    Provide same height to make them appear side by side. and provide the dimensions based on your requirement.
    Regards,
    Swarna Munukoti.

  • My setup: iMac hardline to Canon i960 printer. Issue: endless printing of the same document. The printer window states that the pinter is in use and there is nothing listed in the Print Queue.  How can I stop printing the document?

    My setup: iMac hardline to Canon i960 printer. Issue: endless printing of the same document. The printer window states that the pinter is in use and there is nothing listed in the Print Queue.  How can I stop printing the document?

    Soution: Delete the printer and add the same printer back in, therefore creating a new print queue.

  • Printing from the main window -- song order is not the same as playlist ??

    iTunes 10.0.1 (22)
    OS 10.6.4
    Let's say you have a album with 18 songs. The songs are in the exact order of the album, from 1 of 18 all the way to 18 of 18. (track numbers are also correct, in order). You view by album (constrain the results window by searching for album title)
    Now, print. Select any option, (I tried both cd jewel as well as song listing -- doesn't matter which you select).
    The ORDER of the printed song list (or jewel case insert) DOES NOT MATCH the order of the songs in the album.
    What good is that?
    I can recreate this with various albums.
    This NEVER happened before version 10.
    Anyone have any info on this?
    PS -- if you create a PLAYLIST and then copy the album into the playlist, it prints just fine. The issue is printing from the main window when in album view mode.
    Thanks,
    J
    Message was edited by: Jeremy Roberts

    Try changing X postion to not equal to zero something else for example.
    /:           POSITION WINDOW
    /:           POSITION XORIGIN '-0.1' CH YORIGIN '+0.4' LN
    /:           SIZE WIDTH +0.7 CH HEIGHT +5.0 LN
    /:           BOX FRAME 7 TW
    /:           BOX HEIGHT '1.1' LN INTENSITY 15
    Nabheet

  • Window.open() will open separated windows even using the same window name?

    Hi, I have below two test html pages as below(could not find a way to insert a attachment, so paste the content below). The reproduce step is as below: (My environment is Win8.1 with IE11)
    1. Open print_test.html page in IE, here we call page1.
    2. Click "File -> New Session" menu from IE menu bar, which will open another new IE window which display another " print_test.html" page, here we call page 2.
    3. Click "Print" hyper-link in page1, and a popup window which display "print_test_open.html" page, counting begins from 1, here we call it page 3.
    4. Click "Print" hyper-link in page2, and another popup window which display "print_test_open.html" page, counting begins from 1, here we call it page 4.
    However, the behavior above is totally different on my Win7 (64 bit) with IE 10, which is in step 4, when I click "Print" hyper-link in page2, instead of open a new popup window, the window for page 3 will be reused and counting will restart from
    1.
    I googled and know from MDN for window.open() and get below information to indicate that in my test pages, I use the same window name, so that the existed window with the same name will be reused is as expected, but however, why IE behave differently in
    Win8.1 with IE 11? Why the existed window could not be reused anymore?
    If a window with the name strWindowName already exists, then, instead of opening a new window, strUrl is loaded into the existing window. In this case the return value of the method is the existing window.
    The behavior in Win8.1 + IE 11 is similar with what Google Chrome does, and Chrome's explanation is that two separated window using separated processes which do no share information, so that even using the same window name. twp separated windows will
    popup.. So I am confused here, IE 10 and IE 11 are both using multi-process mechanism right? I saw from the Windows Task Manager, when using "File -> New Session" to open another print_test.html page in step 2. both IE 10 and IE 11 are opening
    4 iexplore.exe processes, two of them are 64 bit, and two of them are 32 bit. I can't see any configuration difference between these two envs, but why the behavior is so different? 
    Could anyone give some help and clarify here? Great thanks in advance.
    Oh, btw, another colleague can reproduce the issue (open separated windows even using the same window name) in his Win7 64 bit with IE 10 env, but could not reproduce in his Win 32 bit with IE 10 env... Hope this information could also do help.
    ======================== Test pages ===============================
    (1) print_test.html
    <!DOCTYPE html>
    <html>
    <head>
    <title>Print test</title>
    <head>
    <body>
    <h1>Print test</h1>
    <p><a href="javascript:void(0)" onclick='window.open("print_test_open.html", "test");'>Print</a></p>
    <p><a href="javascript:void(0)" onclick='window.open("print_test_open.html", "test"); myWindow.location.reload(true);'>Print (force refresh)</a></p>
    </body>
    </html>
    (2) print_test_open.html
    <!DOCTYPE html>
    <html>
    <head>
    <title>Open</title>
    <head>
    <body>
    <h1>
    <div id="count">Test</div>
    </h1>
    <p>Test</p>
    <script type="text/javascript">
    var e = document.getElementById("count");
    sessionStorage['count'] = 0;
    function timedCount() {
        i = sessionStorage['count'];
        i++;
        sessionStorage['count'] = i;
        e.innerHTML = "Count: " + i;
        setTimeout(function(){timedCount()},100);
    timedCount();
    </script>
    </body>
    </html>

    Hi,
    please try in noAddons mode and with the IE Popup blocker turned off. Also ensure you are using the default IE Security zone settings. Internet Options>Security tab, click "Reset all zones to default"
    To debug your scripts in IE11.
    Tools>Internet Options>Advanced tab, check "Always record developer console messages".
    start your test and display the developer tool console to display suppressed errors and warnings.
    (I don't see where myWindow is assigned).
    "If a window with the name strWindowName already exists, then, instead of opening a new window, strUrl is loaded into the existing window. In this case the return value of the method is the existing window."
    window.open has an optional 'replace' parameter...
    http://msdn.microsoft.com/en-us/library/ie/ms536651(v=vs.85).aspx
    to reuses a tab or window
    window.open({url},[name],[placement],[replace])
    If possible can you please provide a publicly accessible link to your test pages as we need to inspect the response headers to monitor what is cached.
    or
    f12>Networking tab, click 'Start' button, then proceed with your test plan.
    Regards.
    Rob^_^

  • How to get the values from popup window to mainwindow

    HI all,
       I want to get the details from popup window.
          i have three input fields and one search button in my main window. when i click search button it should display popup window.whenever i click on selected row of the popup window table ,values should be visible in my main window input fields.(normal tables)
       now i am able to display popup window with values.How to get the values from popup window now.
       I can anybody explain me clearly.
    Thanks&Regards
    kranthi

    Hi Kranthi,
    Every webdynpro component has a global controller called the component controller which is visible to all other controllers within the component.So whenever you want to share some data in between 2 different views you can just make it a point to use the component controller's context for the same. For your requirement (within your popups view context) you will have have to copy the component controllers context to your view. You then will have to (programmatically) fill this context with your desired data in this popup view. You can then be able to read this context from whichever view you want. I hope that this would have made it clear for you. Am also giving you an [example|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm] which you can go through which would give you a perfect understanding of all this. In this example the user has an input field in the main view. The user enters a customer number & presses on a pushbutton. The corresponding sales orders are then displayed in a popup window for the user. The user can then select any sales order & press on a button in the popup. These values would then get copied to the table in the main view.
    Regards,
    Uday

  • Is there port of "HP Printer Control " app for Windows Phone?

    Are there port of "HP Printer Control " app for Windows Phone? This is at the same time request if there is not.
    Regards.

    Hello Zubru,
    I saw your post, good question! There are no apps at this time available for the windows phone however here is the link to the HP ePrint site to keep an eye out for any possible changes to that.
    Click the KUDOS star on the left to say “thanks” for helping!
    Please mark a reply “Accept as Solution” if it solved your issue so others can find it.
    I work on behalf of HP.
    I worked on behalf of HP.

  • Open a URL in the same window

    Hi,
    My objective is to open a URL when i click on a webdynpro iView in the same window.
    I created a outbound plug in the InterfaceViewController.
    And wrote this piece of code in wdDoBeforeNavigation() in Component controller.
    wdThis.wdGetExternalComponentInterfaceViewController().wdFirePlugGoToUrl(Url);
    Where "Url" is a string variable contaning the value.
    But when i run this piece of sode it gives exception
    "Exit-Plug must no be triggered with an URL when running in portal. Use portal navigation instead to navigate to another application!"
    So what should i do solve this problem
    Regards,
    Paresh

    HI,
    Procudere to create the LogoffURL
    In the Application properties add your URL name.
    LogoffURL = http:
    www.google.com
    1.      Define an exit plug in the interface view of your Web Dynpro component:
                                a.      Enter a name and check the checkbox Exit Plug.
                                b.      Enter the name Url for the parameter and select string as the type.
    This parameter is case-sensitive and must be entered exactly this way.
           2.      In your view, define the action Exit and add the event handler onActionExit().
           3.      In the view layout, define a button and bind its onAction event to the Exit action.
           4.      In your view, define the use of the interface view controller of your Web Dynpro component under Properties.
           5.      Insert the following code in this method of the implementation:
    String logoffURL = wdComponentAPI.getApplication().getApplicationInfo().findInApplicationProperties("sap.logoffURL").getValue();
    wdThis.wdGetTimeCompInterfaceViewController().wdFirePlugExit(logoffURL);
    OR Do u need to generate the URL by using the application?
    Thanks,
    Lohi.

  • Safari 5 don't print jpg images in Windows and prints with problems in Mac

    Hi All,
    When I try to print images in Safari (Windows) it will print blank page.
    This is sample source:
    <html lang="en-US">
    <body>
    <im g src="http://img185.imageshack.us/img185/4651/wefwefwe.jpg">
    </body>
    </html>
    This is ok in Mac.
    Also in Mac When I'm printing image in Landscape it print image in 2 pages.
    Image really fits in landscape mode and there is no need for second page.
    I thought that the problem is margins..., but changing them do smaller values doesn't help.
    Can someone help out?

    Hi, I also have the same problem that cannot print preview on .jpg image.
    When I try to change image to .png , it work.
    It's this safari5 bug?

  • Launching the URL in the same window

    I have a view with some data and couple of buttons. When i click on a button, an url has to be opened in the same window.
    For that, i have defined an exit plug at the window with an optional url parameter and the on action of the button click, i am firing the window exit plug by passing the url value in the parameter.
    When i click on that button i got the exception like " URL parameters specified for an exit or suspend plug, but no URL specified
    Can anyone suggest ?

    Hi,
             If ur launching URL of other Web Dynpro Component,
    U can do this way... For example Comp-A  and Comp-B ( URL)
    Emdeb the Comp-B in Comp-A by using component usages.
    1.In the view of Comp-A..suppose iam having a Button.Place a  View Container in the same View
    2. Create an out bound Plug For View of Comp-A.
    Go To Window OF Comp-A.
    1 . Right Click to Embed,u will find the Comp-B's interface View , embed that one  into View Container of the Comp-A
    2 .Maintain  Navigatin Link From Out-Bound Plug Of the View to Default Plug of the Comp-B's interface View .
    ON Action Of the Button.Fire that out Bound Plug of the view
    Thanks & Regards,
    Naga Prakash

  • How to print values in a HashMap

    Hi
    I am new to Java
    I am using a HashMap where key is a String and the Value is again a HashMap..
    Firstly can I use it this way ...If not could you please suggest an alternative...
    If I can use it ...
    I am unable to print the values in the HashMap..
    Here "map" is a HasMap I am using..
    and I used
    map.put("name",secondMap);
    My code is
    public void printMap(Map map)
              Set keys = map.keySet();
              Iterator keyIter = keys.iterator();
              while (keyIter.hasNext())
                   Object key = keyIter.next();
                   Object value = map.get(key);
    // Here the value is again a HashMap
                   HashMap valuesMap=(HashMap)value;
                   System.out.println("KEY" + key.toString() );
                   if(valuesMap!=null)
                        Set set = valuesMap.keySet();
                        Iterator setit = set.iterator();
                        while (setit.hasNext())
                             Object keyinMap=setit.next();
                             Object valueinMap=valuesMap.get(key);
                             System.out.print("value is"+valueinMap);
    Can anybody help me in this regard.
    Thanks in advance

    Hmm, this looks pretty good to me. What behavior does this give you? For example, do you see "KEYname" printed? Are you sure that "map" is actually the same one you added "secondMap" to?

  • Same set of data should print twice on same page in SAP SCRIPT

    Hi Experts,
    I come across a requirement where I need same set of data in sap script should print twice as it is on same page.
    and if first page overflow, then same scenario should continue till complete data is printed. Basically main window data should print twice in two blocks on same page.
    E.g.
    If I have 10 line item which is to be printed on top window on  first page. Now I want that same 10 lines should be printed in a block below the first block. Data should flow similarly across multiple pages.
    Hope my question is pretty clear. I am expecting suitable answers from experts.
    Thanks in advance.
    Regards,
    Vijay

    Hi
    I had the same request for a check form in Canada. I solved it by writing the line item output into variables and print these variables in a second window. It was ~10 hours of effort, not a real nice technical solution but it worked.
    If you require I can send you a PDF of the sap script form definition. You can contact me at [email protected] Answers can take 1 week or more. 
    Best regards
    JD

  • My win 7 home premium cannot connect the sharing printer (EPSON L1100) in Windows server 2003 it say "Windows cannot connect to the printer. Accses denied"

    in My office there is a win server 2003 R2 computer, i install a printer Epson L1100 in that computer, and it successfull, and i can print using that printer from that computer..
    I already share this printer, but when i try to connect the printer from my laptop using OS Win 7 Home Premium.. it has error
    "Windows cannot connect to the printer. Accses denied"...
    and then i try connect using other computer but same OS (win 7 Home premium) it still has same error...
    i usually connect to the server computer using //(the ip of computer) , for example
    //52.30.20.66 .. that is my IP server..
    and than i right click in shared printer which appears in windows explorer, and i choose
    Connect...  but it contain error "Windows cannot connect to the printer. Accses denied"..
    anyone know the solution from this error???
    i`m sorry if my english is bad.. i`m from indonesia

    Got a local password/username on your Win7 ? Create the same on the 2003R2 as you seem in workgroup
    net user /add useraccountname mypassword
    net localgroup users useraccountname /add  (I think it's users the name, you can validate to be sure) or
    net localgroup administrators useraccountname /add in worst case.
    nb, or add the user guess in the printer share security
    Regards, Philippe

  • Error: 0x80073701 when trying to add Print Services Role in Windows 2012 Standard

    Hello,
    I'm getting an error when trying to add Print Services role in Windows 2012 Standard. I'm getting the same error whether I use the GUI or from PowerShell.
    This is a new server install.
    The PowerShell error follows:
    add-windowsfeature : The request to add or remove features on the specified server failed.
    Installation of one or more roles, role services, or features failed.
    The referenced assembly could not be found. Error: 0x80073701
    At line:1 char:1
    + add-windowsfeature print-services
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (@{Vhd=; Credent...Name=localhost}:PSObject) [Install-WindowsFeature],
        Exception
        + FullyQualifiedErrorId : DISMAPI_Error__Failed_To_Enable_Updates,Microsoft.Windows.ServerManager.Commands.AddWind
       owsFeatureCommand
    Success Restart Needed Exit Code      Feature Result
    False   No             Failed         {}
    Any help with this issue will be greatly appreciated.

    Hi,
    I think you should start with chkdsk C: /F and sfc /scannow.
    Regards.
    Vivian Wang

Maybe you are looking for

  • Placing a PDF in CS5 – was working in CS4!

    Hi Below is an extract from a script that places a PDF in to a frame on a page, it was working in CS4 but it has broke in CS5. It all works up to the placing of the PDF – The error message reads Error: -1708 Error String "insert:File path to the PDF"

  • Spry menu bar in IE

    I have recently put a new website up which checked out fine for compatibility (using Dreamweaver CS4) and performs well in Firefox and Safari. However a colleague viewing it in IE 10 on a PC ( I am Mac based) says that the Spry Horizontal Menu Bar dr

  • Horizontal grid lines color in a spark List

    Hello, How to change horizontal grid lines color in a spark List using css Thanks

  • How to clear recents on menu items?

    When I right click on menu items,such as on pages or numbers, how can I clear recents for that menu?

  • Homogeneous Copy  / Converting Distributed System as Central System.

    CURRENT SAP LANDSCAPE. SAP Production System is installed as a Distributed System: SAP Application Host:_ AIX 5.2 - SAP Application (Central Instance - Central Services) based on NW 7.0 - ERP 2005 SR1. Database Host: AIX 5.2 - Oracle 10G ver 10.2.0.2