VBAP error

Dear ABAPers,
Getting a error in the code
SELECT *
     INTO   TABLE GT_VBAP
     FROM   VBAP AS S1 INNER JOIN VBUP AS S2 ON S1VBELN EQ S2VBELN
                                            AND S1POSNR EQ S2POSNR
            FOR ALL ENTRIES IN GT_VBAK
     WHERE    S1~VBELN EQ GT_VBAK-VBELN AND
              S1~WERKS IN S_WERKS AND
              S1~MATNR IN S_MATNR AND
S1~PSTYV IN S_PSTYV AND
S1~PRODH IN S_PRODH AND
              S1~VSTEL IN S_VSTEL AND
              S2~LFSTA IN S_LFSTA AND
              S1~ABGRU EQ SPACE.
The type of the database table and work area (or internal table)          
"GT_VBAP" are not Unicode-convertible . . . . . . . . . .          
Please suggest an appropriate solution for it

Hi,
The syntax post unicode conversion in ECC 6.0 is pretty strict as compared to old versions.
Declare the internal table as follows :-
Data : gt_vbap type standard table of vbap.
Thanks,
Best regards,
Prashant

Similar Messages

  • Issues during upgrade - SPDD

    Hi,
    We are doing the upgrade from SAP R3 4.6C to ERP 6.0, during SPDD phase we are getting errors while adjusting table VBAP. If you go to tcode SE14 there it is not allowing us to activate and adjust database. While activating the table it throws the error message as "Table VBAP could not be activated - E- Table VBAP ( error adjusting the database)"
    Thanks in advnace.

    Hi,
    Have you compared as what changes were made to the VBAP in 4.6C.
    Also can you tell what is the long text of the message.
    regards,
    Atish

  • Issues during SPDD - Urejent

    Hi,
    We are doing the upgrade from SAP R3 4.6C to ERP 6.0, during SPDD phase we are getting errors while adjusting table VBAP. If you go to tcode SE14 there it is not allowing us to activate and adjust database. While activating the table it throws the error message as "Table VBAP could not be activated - E- Table VBAP ( error adjusting the database)"
    Thanks in advnace.

    You will need to find out, why it can´t be activated, you will get lots of subsequent errors if you ignore that.
    Markus

  • Amend Structure with error, Reference field VBAP-KZWI1 for ZSMINI44_D4-PO_A

    Hi,
    i try to amend a structure but there is such an error that the Reference field VBAP-KZWI1 for ZSMINI44_D4-PO_AMT has incorrect type...
    but the data elements are the same.
    Please kindly advice.

    Dear Sally,
    Please use VBAP-WAERK  as your Reference Field instead od VBAP-KZWI1 for your structure field ZSMINI44_D4-PO_AMT.
    Hope this resolves your problem.
    Encourage others to answer your queries by suitably rewarding them
    Thanks
    Venugopal

  • Error during update of Table VBAP (RC= 4, Key= 5096672)

    Hello experts,
    i am getting error as
    Update was terminated
    System ID....   Q70
    Client.......   999
    User.....   HPROLLSD
    Transaction..   VA02
    Update key...   4EF9258A885201B1E10080000A140014
    Generated....   28.12.2011, 18:08:25
    Completed....   28.12.2011, 18:08:25
    Error Info...   Error during update of Table VBAP (RC= 4, Key= 5096672)
    Please help me on this issue.
    Regards
    Narendra

    Hi,
    Relevant issue,go through the link it could be help you.
    Express document "Update was terminated" received from author
    Ram

  • Error in assigning *VBAP to a field-symbol...

    Hello Experts,
    I am currently writing my code in a given user-exit in VA01. My problem is,
    I want to assign the value '*VBAP' to a given field-symbol which has a type of
    ANY. The problem is, it says that the value must be a C,N. etc.
    Hope you can help me guys. Thank you and take care!

    can you please paste the piece of code here ...

  • Error while creating Billing doc using VF01 for Debit memo req. from RRB

    Hi,
    I am creating billing doc for my Debit memo req. which is created using RRB(DP90, DP95).
    Error message - Item 000010 does not exist.
    When I debugged and looked into code it seems following lines are causing problem.
    Program
    LV60AA28
    Line u2013 734
      IF  vbap-vkgru EQ vkgru_dyn_posten.
        IF vbap-aufnr IS INITIAL .
    set AUBEL because it was overwritten by VBAP-VBELN
          vbrp-aubel = vbap-vgbel.
          vbrp-aupos = vbap-vgpos.
          vbrp-autyp = vbap-vgtyp.
    This code was not in 4.6 system.
    We have just migrating from 4.6 to 6.0 and facing this issue while testing.

    First of all you should try to learn how to express in a public forum like this. 
    On your comments
    Do some ground work from your end
    why should I ??  if you want you can do ground work or any work.  If you post a question, you have to hear patiently all suggestions and dont scribble whatever you want.
    You should have some basic
       understanding of SAP ABAP.
    You should have posted this question ABAP forum !!!!   Why without any sense you have posted in sales forum ??

  • Error while generating the Infoset

    Dear SD Experts,
    I get the Error While Generating the Infoset.
    I am actually trying to write a Query.
    the tables i have inserted are VBAK, VBAP, VBEP, LIKP, LIPS
    below is the List.
    1)Differences in field TEXT_VBAP_CHARG
    2)Differences in field TEXT_VBEP_ETENR
    3)Differences in field TEXT_VBEP_ETENE
    4)Differences in field TEXT_VBEP_PLNUM
    5)Differences in field TEXT_LIPS_CHARG
    6)Differences in field TEXT_LIPS_LGPLA
    Thanks in Advance.
    Regards,
    Santa Khattri.

    Hi ,
    From what you are saying, i am guessing there could be difference in field types used and in dictionary.
    Try this.
    1.Go to SQ02
    2.Change query area (Standard / Global) in Environment --> Query areas depending on where your infoset is.
    3. Select your Infoset.
    4. Goto --> More functions --> Check and generate / consistency check --> Adjust.
    or Try this.
    1. Select your infoset.
    2. Change
    3. Goto --> Global properties --> see if "no automatic text recognition" is checked in options tab.
    If you still having problems, give me more detail on how have you joined tables, have you used any extra fields, or have you done any coding in Infoset, I may be able to help you.
    Thank you.
    Regards,
    Subin John.

  • Error in : Purchase order Creation using BAPI_PO_CREATE1

    Hell  guys,
    I am trying to create a PO using a BAPI - BAPI_PO_CREATE1
    I want the new PO to have all the characteristics of an existing PO. whose PO # is  stored in wa_order_split_create-docnr and for the new PO, i want the quantity from wa_order_split_create-qty_acptd and the delivery data to be wa_order_split_create-dly_date. But this process and code below gives a short dump in the std FM - MEPO_DOC_ITEM_GET . It raises an exception of failure. I am trying to create many new PO's in the loop below. If there is just one row, sometimes, it creates the PO even with the exception failure ( which is pretty weird).
    Am i making any mistake while filling the header or item or schedule lines for the BAPI_PO_CREATE1 ? Any tips or clues why I am getting a dump ?
    DATA: i_insert,
            i_create_order,
            i_cycle     TYPE cycle,
            i_qty_acpt  TYPE dzmeng,
            i_dly_date  TYPE vbak-vdatu,
            i_item      TYPE roijnomiio .
      DATA: i_order TYPE symsgv,
            i_return TYPE swd_return .
      DATA: i_vbak      TYPE vbak,
            i_vbap      TYPE vbap,
            i_ekko      TYPE ekko,
            i_ekpo      TYPE ekpo,
            i_bsoh      TYPE bapisdhd1,
            i_bsohx     TYPE bapisdhd1x,
            i_bpoh      TYPE bapimepoheader,
            i_bpohx     TYPE bapimepoheaderx,
            i_vbeln     TYPE vbeln_va,
            i_posnr     TYPE posnr_va,
            i_contr     TYPE vbeln_va,
            i_conit     TYPE posnr_va,
            i_ebeln     TYPE ebeln,
            i_ebelp     TYPE ebelp,
            i_pargr     TYPE pargr,
            i_thead     TYPE thead,
            i_line      TYPE tline,
            i_note      TYPE txw_note,
            i_new_vbeln TYPE vbeln_va,
            i_new_ebeln TYPE ebeln,
            i_wa_bsoi   TYPE bapisditm,
            i_wa_bsoix  TYPE bapisditmx,
            i_wa_bsop   TYPE bapiparnr,
            i_wa_bsos   TYPE bapischdl,
            i_wa_bsosx  TYPE bapischdlx,
            i_wa_vbpa   TYPE vbpa,
            i_wa_vbkd   TYPE vbkd,
            i_wa_bpoi   TYPE bapimepoitem,
            i_wa_bpoix  TYPE bapimepoitemx,
            i_wa_bpos   TYPE bapimeposchedule,
            i_wa_bposx  TYPE bapimeposchedulx,
            i_wa_bpop   TYPE bapiekkop,
            i_wa_ekpa   TYPE ekpa,
            i_message   TYPE char72,
            i_bapiretn  TYPE bapiret2,
            i_bapiret2  TYPE TABLE OF bapiret2 INITIAL SIZE 1,
            i_vbpa      TYPE TABLE OF vbpa INITIAL SIZE 1,
            i_vbkd      TYPE TABLE OF vbkd INITIAL SIZE 1,
            i_ekpa      TYPE TABLE OF ekpa INITIAL SIZE 1,
            i_bsoi      TYPE TABLE OF bapisditm INITIAL SIZE 1,
            i_bsoix     TYPE TABLE OF bapisditmx INITIAL SIZE 1,
            i_bsos      TYPE TABLE OF bapischdl INITIAL SIZE 1,
            i_bsosx     TYPE TABLE OF bapischdlx INITIAL SIZE 1,
            i_bsop      TYPE TABLE OF bapiparnr INITIAL SIZE 1,
            i_bpoi      TYPE TABLE OF bapimepoitem INITIAL SIZE 1,
            i_bpoix     TYPE TABLE OF bapimepoitemx INITIAL SIZE 1,
            i_bpos      TYPE TABLE OF bapimeposchedule INITIAL SIZE 1,
            i_bposx     TYPE TABLE OF bapimeposchedulx INITIAL SIZE 1,
            i_bpop      TYPE TABLE OF bapiekkop INITIAL SIZE 1,
            i_text_tab  TYPE TABLE OF tline INITIAL SIZE 1,
            i_line_tab  TYPE TABLE OF tline INITIAL SIZE 1,
            i_txw_note  TYPE TABLE OF txw_note INITIAL SIZE 1,
            i_oij_el_doc_mot TYPE oij_el_doc_mot .
      CONSTANTS: c_char_c VALUE 'C',
                 c_char_e VALUE 'E',
                 c_char_p VALUE 'P',
                 c_char_g VALUE 'G',
                 c_char_i VALUE 'I',
                 c_char_s VALUE 'S',
                 c_char_x VALUE 'X',
                 c_zsw(3) VALUE 'ZSW',
                 c_nomit_stat(4) VALUE 'ZDNY' .
      DATA : lv_nomtk_split        TYPE oij_nomtk.
      DATA : i_order_split_create  TYPE TABLE OF zsws_order_split.
      DATA : wa_order_split_create TYPE zsws_order_split.
      LOOP AT i_order_split_create INTO wa_order_split_create.
        IF NOT i_create_order IS INITIAL .
          CLEAR: i_create_order .
              MOVE: wa_order_split_create-docnr  TO i_ebeln,
                    wa_order_split_create-docitm TO i_ebelp .
              CALL FUNCTION 'ME_EKKO_SINGLE_READ'
                   EXPORTING
                        pi_ebeln         = i_ebeln
                   IMPORTING
                        po_ekko          = i_ekko
                   EXCEPTIONS
                        no_records_found = 1
                        OTHERS           = 2.
              IF sy-subrc <> 0 .
              ENDIF .
    * Fill PO Header
              i_bpoh-comp_code   = i_ekko-bukrs .
              i_bpoh-doc_type    = i_ekko-bsart .
              i_bpoh-vendor      = i_ekko-lifnr .
              i_bpoh-langu       = i_ekko-spras .
              i_bpoh-pmnttrms    = i_ekko-zterm .
              i_bpoh-purch_org   = i_ekko-ekorg .
              i_bpoh-pur_group   = i_ekko-ekgrp .
              i_bpoh-currency    = i_ekko-waers .
              i_bpoh-agreement   = i_ekko-konnr .
              i_bpoh-incoterms1  = i_ekko-inco1 .
              i_bpoh-incoterms2  = i_ekko-inco2 .
    * Fill PO update indicator 'X'
              i_bpohx-comp_code  = c_char_x .
              i_bpohx-doc_type   = c_char_x .
              i_bpohx-vendor     = c_char_x .
              i_bpohx-langu      = c_char_x .
              i_bpohx-pmnttrms   = c_char_x .
              i_bpohx-purch_org  = c_char_x .
              i_bpohx-pur_group  = c_char_x .
              i_bpohx-currency   = c_char_x .
              i_bpohx-agreement  = c_char_x .
              i_bpohx-incoterms1 = c_char_x .
              i_bpohx-incoterms2 = c_char_x .
              CALL FUNCTION 'ME_EKPO_SINGLE_READ'
                   EXPORTING
                        pi_ebeln         = i_ebeln
                        pi_ebelp         = i_ebelp
                   IMPORTING
                        po_ekpo          = i_ekpo
                   EXCEPTIONS
                        no_records_found = 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 .
    * Fill PO Item
              i_wa_bpoi-po_item    = i_ekpo-ebelp .
              i_wa_bpoi-material   = i_ekpo-matnr .
              i_wa_bpoi-plant      = i_ekpo-werks .
              i_wa_bpoi-stge_loc   = i_ekpo-lgort .
              i_wa_bpoi-quantity   = wa_order_split_create-qty_acptd .
              i_wa_bpoi-po_unit    = i_ekpo-meins .
              i_wa_bpoi-tax_code   = i_ekpo-mwskz .
              i_wa_bpoi-val_type   = i_ekpo-bwtar .
              i_wa_bpoi-item_cat   = i_ekpo-pstyp .
              i_wa_bpoi-acctasscat = i_ekpo-knttp .
              i_wa_bpoi-agreement  = i_ekpo-konnr .
              i_wa_bpoi-agmt_item  = i_ekpo-ktpnr .
              APPEND i_wa_bpoi TO i_bpoi .
    * Fill PO Item update indicator 'X'
              i_wa_bpoix-po_item    = i_ekpo-ebelp .
              i_wa_bpoix-po_itemx   = c_char_x .
              i_wa_bpoix-material   = c_char_x .
              i_wa_bpoix-plant      = c_char_x .
              i_wa_bpoix-stge_loc   = c_char_x .
              i_wa_bpoix-quantity   = c_char_x .
              i_wa_bpoix-po_unit    = c_char_x .
              i_wa_bpoix-tax_code   = c_char_x .
              i_wa_bpoix-val_type   = c_char_x .
              i_wa_bpoix-item_cat   = c_char_x .
              i_wa_bpoix-acctasscat = c_char_x .
              i_wa_bpoix-agreement  = c_char_x .
              i_wa_bpoix-agmt_item  = c_char_x .
              APPEND i_wa_bpoix TO i_bpoix .
    * Fill PO Item Schedule
              i_wa_bpos-po_item       = i_ekpo-ebelp .
              i_wa_bpos-sched_line    = '0001' .
              i_wa_bpos-delivery_date = wa_order_split_create-dly_date .
              i_wa_bpos-quantity      = wa_order_split_create-qty_acptd .
              APPEND i_wa_bpos TO i_bpos .
    * Fill PO Item schedule update indicator 'X'
              i_wa_bposx-po_item       = i_ekpo-ebelp .
              i_wa_bposx-sched_line    = '0001' .
              i_wa_bposx-delivery_date = c_char_x .
              i_wa_bposx-quantity      = c_char_x .
              APPEND i_wa_bposx TO i_bposx .
              CLEAR: i_pargr .
              SELECT SINGLE pargr
                INTO i_pargr
                FROM t161
               WHERE bstyp = i_ekko-bstyp
                 AND bsart = i_ekko-bsart .
              CLEAR i_ekpa[].
              CALL FUNCTION 'MM_READ_PARTNERS'
                   EXPORTING
                        application = c_char_p
                        ebeln       = i_ebeln
                        bstyp       = i_ekko-bstyp
                        pargr       = i_pargr
                   TABLES
                        x_ekpa      = i_ekpa[].
              LOOP AT i_ekpa INTO i_wa_ekpa .
                i_wa_bpop-partnerdesc = i_wa_ekpa-parvw .
                i_wa_bpop-langu = sy-langu .
                IF NOT i_wa_ekpa-lifn2 IS INITIAL .
                  i_wa_bpop-buspartno = i_wa_ekpa-lifn2 .
                ELSE .
                  i_wa_bpop-buspartno = i_wa_ekpa-parnr .
                ENDIF .
                APPEND i_wa_bpop TO i_bpop .
                CLEAR: i_wa_ekpa, i_wa_bpop .
              ENDLOOP .
              CALL FUNCTION 'DIALOG_SET_NO_DIALOG'.
              CALL FUNCTION 'BAPI_PO_CREATE1'
                   EXPORTING
                        poheader         = i_bpoh
                        poheaderx        = i_bpohx
                   IMPORTING
                        exppurchaseorder = i_new_ebeln
                   TABLES
                        return           = i_bapiret2
                        poitem           = i_bpoi[]
                        poitemx          = i_bpoix[]
                        poschedule       = i_bpos[]
                        poschedulex      = i_bposx[].
              i_order = i_new_ebeln .
              SHIFT i_order LEFT DELETING LEADING '0' .
              i_return-errortype = c_char_i .
              i_return-workarea  = c_zsw .
              i_return-message   = '064' .
              i_return-variable1 = i_order .
            loop at i_bapiret2 into i_bapiretn where type ca 'EAX' .
            append i_bapiretn to t_bapi_return .
          endloop .
          if t_bapi_return[] is initial .
             i_create_order = c_char_x .
               CALL FUNCTION 'SWD_POPUP_MESSAGE_SEND'
                   EXPORTING
                        act_return = i_return. "Popup with new PO no.
          ENDCASE .                                     " Docind
        ENDIF .
      ENDLOOP.

    Hi Shareen,
    I think in the following parts of the code,
              CALL FUNCTION 'MM_READ_PARTNERS'
                   EXPORTING
                        application = c_char_p
                        ebeln       = i_ebeln
                        bstyp       = i_ekko-bstyp
                        pargr       = i_pargr
                   TABLES
                        x_ekpa      = i_ekpa[].
    Error in : Purchase order Creation using BAPI_PO_CREATE1
    Posted: Mar 20, 2006 7:39 PM      Reply      E-mail this post 
    Hell guys,
    I am trying to create a PO using a BAPI - BAPI_PO_CREATE1
    I want the new PO to have all the characteristics of an existing PO. whose PO # is stored in wa_order_split_create-docnr and for the new PO, i want the quantity from wa_order_split_create-qty_acptd and the delivery data to be wa_order_split_create-dly_date. But this process and code below gives a short dump in the std FM - MEPO_DOC_ITEM_GET . It raises an exception of failure. I am trying to create many new PO's in the loop below. If there is just one row, sometimes, it creates the PO even with the exception failure ( which is pretty weird).
    Am i making any mistake while filling the header or item or schedule lines for the BAPI_PO_CREATE1 ? Any tips or clues why I am getting a dump ?
    DATA: i_insert,
            i_create_order,
            i_cycle     TYPE cycle,
            i_qty_acpt  TYPE dzmeng,
            i_dly_date  TYPE vbak-vdatu,
            i_item      TYPE roijnomiio .
      DATA: i_order TYPE symsgv,
            i_return TYPE swd_return .
      DATA: i_vbak      TYPE vbak,
            i_vbap      TYPE vbap,
            i_ekko      TYPE ekko,
            i_ekpo      TYPE ekpo,
            i_bsoh      TYPE bapisdhd1,
            i_bsohx     TYPE bapisdhd1x,
            i_bpoh      TYPE bapimepoheader,
            i_bpohx     TYPE bapimepoheaderx,
            i_vbeln     TYPE vbeln_va,
            i_posnr     TYPE posnr_va,
            i_contr     TYPE vbeln_va,
            i_conit     TYPE posnr_va,
            i_ebeln     TYPE ebeln,
            i_ebelp     TYPE ebelp,
            i_pargr     TYPE pargr,
            i_thead     TYPE thead,
            i_line      TYPE tline,
            i_note      TYPE txw_note,
            i_new_vbeln TYPE vbeln_va,
            i_new_ebeln TYPE ebeln,
            i_wa_bsoi   TYPE bapisditm,
            i_wa_bsoix  TYPE bapisditmx,
            i_wa_bsop   TYPE bapiparnr,
            i_wa_bsos   TYPE bapischdl,
            i_wa_bsosx  TYPE bapischdlx,
            i_wa_vbpa   TYPE vbpa,
            i_wa_vbkd   TYPE vbkd,
            i_wa_bpoi   TYPE bapimepoitem,
            i_wa_bpoix  TYPE bapimepoitemx,
            i_wa_bpos   TYPE bapimeposchedule,
            i_wa_bposx  TYPE bapimeposchedulx,
            i_wa_bpop   TYPE bapiekkop,
            i_wa_ekpa   TYPE ekpa,
            i_message   TYPE char72,
            i_bapiretn  TYPE bapiret2,
            i_bapiret2  TYPE TABLE OF bapiret2 INITIAL SIZE 1,
            i_vbpa      TYPE TABLE OF vbpa INITIAL SIZE 1,
            i_vbkd      TYPE TABLE OF vbkd INITIAL SIZE 1,
            i_ekpa      TYPE TABLE OF ekpa INITIAL SIZE 1,
            i_bsoi      TYPE TABLE OF bapisditm INITIAL SIZE 1,
            i_bsoix     TYPE TABLE OF bapisditmx INITIAL SIZE 1,
            i_bsos      TYPE TABLE OF bapischdl INITIAL SIZE 1,
            i_bsosx     TYPE TABLE OF bapischdlx INITIAL SIZE 1,
            i_bsop      TYPE TABLE OF bapiparnr INITIAL SIZE 1,
            i_bpoi      TYPE TABLE OF bapimepoitem INITIAL SIZE 1,
            i_bpoix     TYPE TABLE OF bapimepoitemx INITIAL SIZE 1,
            i_bpos      TYPE TABLE OF bapimeposchedule INITIAL SIZE 1,
            i_bposx     TYPE TABLE OF bapimeposchedulx INITIAL SIZE 1,
            i_bpop      TYPE TABLE OF bapiekkop INITIAL SIZE 1,
            i_text_tab  TYPE TABLE OF tline INITIAL SIZE 1,
            i_line_tab  TYPE TABLE OF tline INITIAL SIZE 1,
            i_txw_note  TYPE TABLE OF txw_note INITIAL SIZE 1,
            i_oij_el_doc_mot TYPE oij_el_doc_mot .
      CONSTANTS: c_char_c VALUE 'C',
                 c_char_e VALUE 'E',
                 c_char_p VALUE 'P',
                 c_char_g VALUE 'G',
                 c_char_i VALUE 'I',
                 c_char_s VALUE 'S',
                 c_char_x VALUE 'X',
                 c_zsw(3) VALUE 'ZSW',
                 c_nomit_stat(4) VALUE 'ZDNY' .
      DATA : lv_nomtk_split        TYPE oij_nomtk.
      DATA : i_order_split_create  TYPE TABLE OF zsws_order_split.
      DATA : wa_order_split_create TYPE zsws_order_split.
      LOOP AT i_order_split_create INTO wa_order_split_create.
        IF NOT i_create_order IS INITIAL .
          CLEAR: i_create_order .
              MOVE: wa_order_split_create-docnr  TO i_ebeln,
                    wa_order_split_create-docitm TO i_ebelp .
              CALL FUNCTION 'ME_EKKO_SINGLE_READ'
                   EXPORTING
                        pi_ebeln         = i_ebeln
                   IMPORTING
                        po_ekko          = i_ekko
                   EXCEPTIONS
                        no_records_found = 1
                        OTHERS           = 2.
              IF sy-subrc <> 0 .
              ENDIF .
    Fill PO Header
              i_bpoh-comp_code   = i_ekko-bukrs .
              i_bpoh-doc_type    = i_ekko-bsart .
              i_bpoh-vendor      = i_ekko-lifnr .
              i_bpoh-langu       = i_ekko-spras .
              i_bpoh-pmnttrms    = i_ekko-zterm .
              i_bpoh-purch_org   = i_ekko-ekorg .
              i_bpoh-pur_group   = i_ekko-ekgrp .
              i_bpoh-currency    = i_ekko-waers .
              i_bpoh-agreement   = i_ekko-konnr .
              i_bpoh-incoterms1  = i_ekko-inco1 .
              i_bpoh-incoterms2  = i_ekko-inco2 .
    Fill PO update indicator 'X'
              i_bpohx-comp_code  = c_char_x .
              i_bpohx-doc_type   = c_char_x .
              i_bpohx-vendor     = c_char_x .
              i_bpohx-langu      = c_char_x .
              i_bpohx-pmnttrms   = c_char_x .
              i_bpohx-purch_org  = c_char_x .
              i_bpohx-pur_group  = c_char_x .
              i_bpohx-currency   = c_char_x .
              i_bpohx-agreement  = c_char_x .
              i_bpohx-incoterms1 = c_char_x .
              i_bpohx-incoterms2 = c_char_x .
              CALL FUNCTION 'ME_EKPO_SINGLE_READ'
                   EXPORTING
                        pi_ebeln         = i_ebeln
                        pi_ebelp         = i_ebelp
                   IMPORTING
                        po_ekpo          = i_ekpo
                   EXCEPTIONS
                        no_records_found = 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 .
    Fill PO Item
              i_wa_bpoi-po_item    = i_ekpo-ebelp .
              i_wa_bpoi-material   = i_ekpo-matnr .
              i_wa_bpoi-plant      = i_ekpo-werks .
              i_wa_bpoi-stge_loc   = i_ekpo-lgort .
              i_wa_bpoi-quantity   = wa_order_split_create-qty_acptd .
              i_wa_bpoi-po_unit    = i_ekpo-meins .
              i_wa_bpoi-tax_code   = i_ekpo-mwskz .
              i_wa_bpoi-val_type   = i_ekpo-bwtar .
              i_wa_bpoi-item_cat   = i_ekpo-pstyp .
              i_wa_bpoi-acctasscat = i_ekpo-knttp .
              i_wa_bpoi-agreement  = i_ekpo-konnr .
              i_wa_bpoi-agmt_item  = i_ekpo-ktpnr .
              APPEND i_wa_bpoi TO i_bpoi .
    Fill PO Item update indicator 'X'
              i_wa_bpoix-po_item    = i_ekpo-ebelp .
              i_wa_bpoix-po_itemx   = c_char_x .
              i_wa_bpoix-material   = c_char_x .
              i_wa_bpoix-plant      = c_char_x .
              i_wa_bpoix-stge_loc   = c_char_x .
              i_wa_bpoix-quantity   = c_char_x .
              i_wa_bpoix-po_unit    = c_char_x .
              i_wa_bpoix-tax_code   = c_char_x .
              i_wa_bpoix-val_type   = c_char_x .
              i_wa_bpoix-item_cat   = c_char_x .
              i_wa_bpoix-acctasscat = c_char_x .
              i_wa_bpoix-agreement  = c_char_x .
              i_wa_bpoix-agmt_item  = c_char_x .
              APPEND i_wa_bpoix TO i_bpoix .
    Fill PO Item Schedule
              i_wa_bpos-po_item       = i_ekpo-ebelp .
              i_wa_bpos-sched_line    = '0001' .
              i_wa_bpos-delivery_date = wa_order_split_create-dly_date .
              i_wa_bpos-quantity      = wa_order_split_create-qty_acptd .
              APPEND i_wa_bpos TO i_bpos .
    Fill PO Item schedule update indicator 'X'
              i_wa_bposx-po_item       = i_ekpo-ebelp .
              i_wa_bposx-sched_line    = '0001' .
              i_wa_bposx-delivery_date = c_char_x .
              i_wa_bposx-quantity      = c_char_x .
              APPEND i_wa_bposx TO i_bposx .
              CLEAR: i_pargr .
              SELECT SINGLE pargr
                INTO i_pargr
                FROM t161
               WHERE bstyp = i_ekko-bstyp
                 AND bsart = i_ekko-bsart .
              CLEAR i_ekpa[].
              CALL FUNCTION 'MM_READ_PARTNERS'
                   EXPORTING
                        application = c_char_p
                        ebeln       = i_ebeln
                        bstyp       = i_ekko-bstyp
                        pargr       = i_pargr
                   TABLES
                        x_ekpa      = <b>i_ekpa[].</b>
              LOOP AT i_ekpa INTO i_wa_ekpa .
                i_wa_bpop-partnerdesc = i_wa_ekpa-parvw .
                i_wa_bpop-langu = sy-langu .
                IF NOT i_wa_ekpa-lifn2 IS INITIAL .
                  i_wa_bpop-buspartno = i_wa_ekpa-lifn2 .
                ELSE .
                  i_wa_bpop-buspartno = i_wa_ekpa-parnr .
                ENDIF .
                APPEND i_wa_bpop TO i_bpop .
                CLEAR: i_wa_ekpa, i_wa_bpop .
              ENDLOOP .
              CALL FUNCTION 'DIALOG_SET_NO_DIALOG'.
              CALL FUNCTION 'BAPI_PO_CREATE1'
                   EXPORTING
                        poheader         = i_bpoh
                        poheaderx        = i_bpohx
                   IMPORTING
                        exppurchaseorder = i_new_ebeln
                   TABLES
                        return           = i_bapiret2
                    <b>    poitem           = i_bpoi[]
                        poitemx          = i_bpoix[]
                        poschedule       = i_bpos[]
                        poschedulex      = i_bposx[].</b>
    it should be only i_bpoi, i_bpoix, i_bpos, i_bposx but not  i_bpoi[], i_bpoix[], i_bpos[], i_bposx[].
    CHange the code as follows:
    DATA: i_insert,
            i_create_order,
            i_cycle     TYPE cycle,
            i_qty_acpt  TYPE dzmeng,
            i_dly_date  TYPE vbak-vdatu,
            i_item      TYPE roijnomiio .
      DATA: i_order TYPE symsgv,
            i_return TYPE swd_return .
      DATA: i_vbak      TYPE vbak,
            i_vbap      TYPE vbap,
            i_ekko      TYPE ekko,
            i_ekpo      TYPE ekpo,
            i_bsoh      TYPE bapisdhd1,
            i_bsohx     TYPE bapisdhd1x,
            i_bpoh      TYPE bapimepoheader,
            i_bpohx     TYPE bapimepoheaderx,
            i_vbeln     TYPE vbeln_va,
            i_posnr     TYPE posnr_va,
            i_contr     TYPE vbeln_va,
            i_conit     TYPE posnr_va,
            i_ebeln     TYPE ebeln,
            i_ebelp     TYPE ebelp,
            i_pargr     TYPE pargr,
            i_thead     TYPE thead,
            i_line      TYPE tline,
            i_note      TYPE txw_note,
            i_new_vbeln TYPE vbeln_va,
            i_new_ebeln TYPE ebeln,
            i_wa_bsoi   TYPE bapisditm,
            i_wa_bsoix  TYPE bapisditmx,
            i_wa_bsop   TYPE bapiparnr,
            i_wa_bsos   TYPE bapischdl,
            i_wa_bsosx  TYPE bapischdlx,
            i_wa_vbpa   TYPE vbpa,
            i_wa_vbkd   TYPE vbkd,
            i_wa_bpoi   TYPE bapimepoitem,
            i_wa_bpoix  TYPE bapimepoitemx,
            i_wa_bpos   TYPE bapimeposchedule,
            i_wa_bposx  TYPE bapimeposchedulx,
            i_wa_bpop   TYPE bapiekkop,
            i_wa_ekpa   TYPE ekpa,
            i_message   TYPE char72,
            i_bapiretn  TYPE bapiret2,
            i_bapiret2  TYPE TABLE OF bapiret2 INITIAL SIZE 1,
            i_vbpa      TYPE TABLE OF vbpa INITIAL SIZE 1,
            i_vbkd      TYPE TABLE OF vbkd INITIAL SIZE 1,
            i_ekpa      TYPE TABLE OF ekpa INITIAL SIZE 1,
            i_bsoi      TYPE TABLE OF bapisditm INITIAL SIZE 1,
            i_bsoix     TYPE TABLE OF bapisditmx INITIAL SIZE 1,
            i_bsos      TYPE TABLE OF bapischdl INITIAL SIZE 1,
            i_bsosx     TYPE TABLE OF bapischdlx INITIAL SIZE 1,
            i_bsop      TYPE TABLE OF bapiparnr INITIAL SIZE 1,
            i_bpoi      TYPE TABLE OF bapimepoitem INITIAL SIZE 1,
            i_bpoix     TYPE TABLE OF bapimepoitemx INITIAL SIZE 1,
            i_bpos      TYPE TABLE OF bapimeposchedule INITIAL SIZE 1,
            i_bposx     TYPE TABLE OF bapimeposchedulx INITIAL SIZE 1,
            i_bpop      TYPE TABLE OF bapiekkop INITIAL SIZE 1,
            i_text_tab  TYPE TABLE OF tline INITIAL SIZE 1,
            i_line_tab  TYPE TABLE OF tline INITIAL SIZE 1,
            i_txw_note  TYPE TABLE OF txw_note INITIAL SIZE 1,
            i_oij_el_doc_mot TYPE oij_el_doc_mot .
      CONSTANTS: c_char_c VALUE 'C',
                 c_char_e VALUE 'E',
                 c_char_p VALUE 'P',
                 c_char_g VALUE 'G',
                 c_char_i VALUE 'I',
                 c_char_s VALUE 'S',
                 c_char_x VALUE 'X',
                 c_zsw(3) VALUE 'ZSW',
                 c_nomit_stat(4) VALUE 'ZDNY' .
      DATA : lv_nomtk_split        TYPE oij_nomtk.
      DATA : i_order_split_create  TYPE TABLE OF zsws_order_split.
      DATA : wa_order_split_create TYPE zsws_order_split.
      LOOP AT i_order_split_create INTO wa_order_split_create.
        IF NOT i_create_order IS INITIAL .
          CLEAR: i_create_order .
              MOVE: wa_order_split_create-docnr  TO i_ebeln,
                    wa_order_split_create-docitm TO i_ebelp .
              CALL FUNCTION 'ME_EKKO_SINGLE_READ'
                   EXPORTING
                        pi_ebeln         = i_ebeln
                   IMPORTING
                        po_ekko          = i_ekko
                   EXCEPTIONS
                        no_records_found = 1
                        OTHERS           = 2.
              IF sy-subrc <> 0 .
              ENDIF .
    Fill PO Header
              i_bpoh-comp_code   = i_ekko-bukrs .
              i_bpoh-doc_type    = i_ekko-bsart .
              i_bpoh-vendor      = i_ekko-lifnr .
              i_bpoh-langu       = i_ekko-spras .
              i_bpoh-pmnttrms    = i_ekko-zterm .
              i_bpoh-purch_org   = i_ekko-ekorg .
              i_bpoh-pur_group   = i_ekko-ekgrp .
              i_bpoh-currency    = i_ekko-waers .
              i_bpoh-agreement   = i_ekko-konnr .
              i_bpoh-incoterms1  = i_ekko-inco1 .
              i_bpoh-incoterms2  = i_ekko-inco2 .
    Fill PO update indicator 'X'
              i_bpohx-comp_code  = c_char_x .
              i_bpohx-doc_type   = c_char_x .
              i_bpohx-vendor     = c_char_x .
              i_bpohx-langu      = c_char_x .
              i_bpohx-pmnttrms   = c_char_x .
              i_bpohx-purch_org  = c_char_x .
              i_bpohx-pur_group  = c_char_x .
              i_bpohx-currency   = c_char_x .
              i_bpohx-agreement  = c_char_x .
              i_bpohx-incoterms1 = c_char_x .
              i_bpohx-incoterms2 = c_char_x .
              CALL FUNCTION 'ME_EKPO_SINGLE_READ'
                   EXPORTING
                        pi_ebeln         = i_ebeln
                        pi_ebelp         = i_ebelp
                   IMPORTING
                        po_ekpo          = i_ekpo
                   EXCEPTIONS
                        no_records_found = 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 .
    Fill PO Item
              i_wa_bpoi-po_item    = i_ekpo-ebelp .
              i_wa_bpoi-material   = i_ekpo-matnr .
              i_wa_bpoi-plant      = i_ekpo-werks .
              i_wa_bpoi-stge_loc   = i_ekpo-lgort .
              i_wa_bpoi-quantity   = wa_order_split_create-qty_acptd .
              i_wa_bpoi-po_unit    = i_ekpo-meins .
              i_wa_bpoi-tax_code   = i_ekpo-mwskz .
              i_wa_bpoi-val_type   = i_ekpo-bwtar .
              i_wa_bpoi-item_cat   = i_ekpo-pstyp .
              i_wa_bpoi-acctasscat = i_ekpo-knttp .
              i_wa_bpoi-agreement  = i_ekpo-konnr .
              i_wa_bpoi-agmt_item  = i_ekpo-ktpnr .
              APPEND i_wa_bpoi TO i_bpoi .
    Fill PO Item update indicator 'X'
              i_wa_bpoix-po_item    = i_ekpo-ebelp .
              i_wa_bpoix-po_itemx   = c_char_x .
              i_wa_bpoix-material   = c_char_x .
              i_wa_bpoix-plant      = c_char_x .
              i_wa_bpoix-stge_loc   = c_char_x .
              i_wa_bpoix-quantity   = c_char_x .
              i_wa_bpoix-po_unit    = c_char_x .
              i_wa_bpoix-tax_code   = c_char_x .
              i_wa_bpoix-val_type   = c_char_x .
              i_wa_bpoix-item_cat   = c_char_x .
              i_wa_bpoix-acctasscat = c_char_x .
              i_wa_bpoix-agreement  = c_char_x .
              i_wa_bpoix-agmt_item  = c_char_x .
              APPEND i_wa_bpoix TO i_bpoix .
    Fill PO Item Schedule
              i_wa_bpos-po_item       = i_ekpo-ebelp .
              i_wa_bpos-sched_line    = '0001' .
              i_wa_bpos-delivery_date = wa_order_split_create-dly_date .
              i_wa_bpos-quantity      = wa_order_split_create-qty_acptd .
              APPEND i_wa_bpos TO i_bpos .
    Fill PO Item schedule update indicator 'X'
              i_wa_bposx-po_item       = i_ekpo-ebelp .
              i_wa_bposx-sched_line    = '0001' .
              i_wa_bposx-delivery_date = c_char_x .
              i_wa_bposx-quantity      = c_char_x .
              APPEND i_wa_bposx TO i_bposx .
              CLEAR: i_pargr .
              SELECT SINGLE pargr
                INTO i_pargr
                FROM t161
               WHERE bstyp = i_ekko-bstyp
                 AND bsart = i_ekko-bsart .
              CLEAR i_ekpa[].
              CALL FUNCTION 'MM_READ_PARTNERS'
                   EXPORTING
                        application = c_char_p
                        ebeln       = i_ebeln
                        bstyp       = i_ekko-bstyp
                        pargr       = i_pargr
                   TABLES
                        x_ekpa      = i_ekpa.
              LOOP AT i_ekpa INTO i_wa_ekpa .
                i_wa_bpop-partnerdesc = i_wa_ekpa-parvw .
                i_wa_bpop-langu = sy-langu .
                IF NOT i_wa_ekpa-lifn2 IS INITIAL .
                  i_wa_bpop-buspartno = i_wa_ekpa-lifn2 .
                ELSE .
                  i_wa_bpop-buspartno = i_wa_ekpa-parnr .
                ENDIF .
                APPEND i_wa_bpop TO i_bpop .
                CLEAR: i_wa_ekpa, i_wa_bpop .
              ENDLOOP .
              CALL FUNCTION 'DIALOG_SET_NO_DIALOG'.
              CALL FUNCTION 'BAPI_PO_CREATE1'
                   EXPORTING
                        poheader         = i_bpoh
                        poheaderx        = i_bpohx
                   IMPORTING
                        exppurchaseorder = i_new_ebeln
                   TABLES
                        return           = i_bapiret2
                        poitem           = i_bpoi
                        poitemx          = i_bpoix
                        poschedule       = i_bpos
                        poschedulex      = i_bposx.
              i_order = i_new_ebeln .
              SHIFT i_order LEFT DELETING LEADING '0' .
              i_return-errortype = c_char_i .
              i_return-workarea  = c_zsw .
              i_return-message   = '064' .
              i_return-variable1 = i_order .
            loop at i_bapiret2 into i_bapiretn where type ca 'EAX' .
            append i_bapiretn to t_bapi_return .
          endloop .
          if t_bapi_return[] is initial .
             i_create_order = c_char_x .
               CALL FUNCTION 'SWD_POPUP_MESSAGE_SEND'
                   EXPORTING
                        act_return = i_return. "Popup with new PO no.
          ENDCASE .                                     " Docind
        ENDIF .
      ENDLOOP.

  • Account determination error in sales order

    Dear all,
    Please help. Trying to release a billing document to accounting. Getting the error:
    Document 90000004 saved (error in account determination)
    Message no. VF051
    While analysing: going to Environment - Accnt determination analysis - Revenue accounts :- no condition types are coming under the procedure KOFI000. Checked settings in vkoa. All G/L accounts are mapped. There are invoices of the same document type, with the same condition types in production with correct account determination.
    On further analysis, found that  no condition types are coming  not determined in the sales orders. Yet there is no incompletion log. Quite baffled. The users are punching in cut over sales orders into production. Please help me rectify the situation.
    Thanks,
    Kasturi

    I hope you have incompletion log (OVA2) maintain for WBS element in your sales order.
    Like
    Table
    Fld Name
    Desc
    Screen
    Status
    VBAK
    PS_PSP_PNR
    WBS Element
    KKNT
    Based your requirement , say, 01
    VBAP
    PS_PSP_PNR
    WBS Element
    PKNT
    Based your requirement , say, 06
    Regards
    JP

  • Runtime error in abap report

    error analysis as in ST22 TRANSACTION:
    AN EXCEPTION OCCURED THE EXCEPTION ASSIGNED TO CLASS CX_SY_CONVERSION_NO_NUMBER WAS NOT CAUGHT WHICH LED TO AN ERROR. THE REASON FOR THIS EXCEPTION IS :
    THE PROGRAM TRIED TO INTERPRET VALUE ':4' AS NUMBER SINCE THE VALUE CONTRAVENES THE CORRECT NUMBER FORMAT THIS WAS NOT POSSIBLE.
    ATTACHED IS MY PROGRAM
    REPORT ZVXR0303
          LINE-COUNT 60(3)
          LINE-SIZE 132
           MESSAGE-ID VN.
    Tables: VBEP, VBAP, NAST.
    DATA: BEGIN OF HEADER,
          ORDER(15) VALUE  'ORDER',
           LINE(5)  VALUE  'LINE',
      MATERIAL(14)  VALUE  'MATERIAL',
           DUE(15)  VALUE  'DUE (MAD)',
       CREATED(10)  VALUE  'CREATED',
           QTY(10)  VALUE  'QUANTITY',
            KEY(5)  VALUE  'KEY',
           TYPE(5)  VALUE  'TYPE',
           END OF HEADER.
    DATA: Begin of IDAT OCCURS 0,
      VBELN         LIKE VBAP-VBELN,
      POSNR         LIKE VBAP-POSNR,
      werks         LIKE VBAP-WERKS,
      cuobj         LIKE vbap-CUOBJ,
      MBDAT         LIKE vbep-mbdat,
      ERDAT         LIKE VBAP-ERDAT,
      MATNR         LIKE VBAP-MATNR,
      KWMENG        LIKE VBAP-KWMENG,
      QTY           TYPE I,
      END of IDAT.
    class cl_abap_char_utilities definition load.
    constants: tab type c value cl_abap_char_utilities=>HORIZONTAL_TAB.
    DATA: t_record(1000) TYPE C.
    DATA: C_KWMENG(20)   TYPE C.
    data: OUTFILE(50) value '/usr/users/ftpsapfi/locks_540318'.
    DATA: BEGIN OF TKOMCON OCCURS 50.
            INCLUDE STRUCTURE CONF_OUT.
    DATA: END   OF TKOMCON.
    DATA: iKEY         TYPE I,
          offset       TYPE I,
          KeyTypeLOC   TYPE I,
          KeyNumberLOC TYPE I,
          type(15)     TYPE C.
        select-options: sVBELN FOR VBEP-VBELN obligatory,
                        sMAD FOR VBEP-MBDAT obligatory,
                        sERDAT FOR VBAP-ERDAT,
                        sMATNR FOR VBAP-MATNR,
                        sWERKS FOR VBAP-WERKS,
                        sKWMENG FOR VBAP-KWMENG.
    SELECT
      vbap~vbeln
      vbap~POSNR
      vbap~werks
      vbap~cuobj
      VBEP~MBDAT
      VBAP~ERDAT
      VBAP~MATNR
      VBAP~KWMENG
    INTO CORRESPONDING FIELDS of IDAT
    FROM ( VBEP INNER JOIN VBAP ON vbepvbeln = vbapvbeln
    AND vbepposnr = vbapposnr )
    WHERE BMENG > 0
    AND vbep~MBDAT IN sMAD
    AND VBEP~VBELN in sVBELN
    AND VBAP~werks IN sWERKS
    AND VBAP~ERDAT IN sERDAT
    AND VBAP~MATNR IN sMATNR
    AND VBAP~KWMENG IN sKWMENG
    AND VBAP~ABGRU = SPACE.
      APPEND IDAT.
    ENDSELECT.
    PERFORM TOP-OF-PAGE.
    if sy-batch = 'x'.
    OPEN DATASET OUTFILE FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    TRANSFER t_record  TO OUTFILE.
    endif.
    IF SY-SUBRC = 0.
      LOOP at IDAT.
       write IDAT-KWMENG DECIMALS 0 TO C_KWMENG.
        REFRESH TKOMCON.
        CALL FUNCTION 'VC_I_GET_CONFIGURATION'
             EXPORTING
                  INSTANCE      = idat-cuobj
                  LANGUAGE      = NAST-SPRAS
             TABLES
                  CONFIGURATION = TKOMCON
             EXCEPTIONS
                  OTHERS        = 4.
        LOOP AT TKOMCON
          WHERE ATNAM = 'S_SK_SPEC_KEY' OR ATNAM = 'S_MK_SPEC_KEY'
          OR ATNAM = 'S_SK_CONSC_KEY' OR ATNAM = 'S_MK_CONSC_KEY'.
          IF TKOMCON-ATNAM = 'S_SK_CONSC_KEY'
          OR TKOMCON-ATNAM = 'S_MK_CONSC_KEY'.
            KeyTYPELOC = 0.
            keynumberloc = 2.
            TRANSLATE TKOMCON-ATWRT+KeyNumberLOC(4) USING ': '.
            IF TKOMCON-ATWRT+KeyNumberLOC(4) CO '0123456789 '.
              iKey = TKOMCON-ATWRT+KeyNumberLOC(4).
              IF ( TKOMCON-ATWRT+KeyTypeLOC(2) = 'FR' AND iKey >= 454 )
              OR ( TKOMCON-ATWRT+KeyTypeLOC(2) = 'XF' AND iKey >= 1150 ).
                PERFORM OUT-OF-RANGE-FOUND.
              ENDIF.
            ENDIF.
          Else.
            Offset = 0.
            DO.
              IF offset <= 9.
                offset = offset + 1.
                If TKOMCON-ATWRT+Offset(1) = ':'.
                  KeyTypeLOC = Offset + 1.
                  KeyNumberLOC = Offset + 3.
                  EXIT.
                ENDIF.
              ELSE.
                EXIT.
              ENDIF.
            ENDDO.
            TRANSLATE TKOMCON-ATWRT+KeyNumberLOC(4) USING ': '.
            IF TKOMCON-ATWRT+KeyNumberLOC(4) CO '0123456789 '.
              iKey = TKOMCON-ATWRT+KeyNumberLOC(4).
              IF ( TKOMCON-ATWRT+KeyTypeLOC(2) = 'FR' AND iKey >= 454 )
              OR ( TKOMCON-ATWRT+KeyTypeLOC(2) = 'XF' AND iKey >= 1150 ).
                IDAT-KWMENG = TKOMCON-ATWRT(3).
                PERFORM OUT-OF-RANGE-FOUND.
              ENDIF.
            ENDIF.
          ENDIF.
        ENDLOOP.
      ENDLOOP.
    ENDIF.
    CLOSE DATASET OUTFILE.
          FORM OUT-OF-RANGE-FOUND                                       *
    FORM OUT-OF-RANGE-FOUND.
      WRITE: / IDAT-VBELN.
      WRITE: 10 IDAT-POSNR.
      WRITE: 20 IDAT-MATNR.
      WRITE: 35 IDAT-MBDAT.
      WRITE: 50 IDAT-ERDAT.
      WRITE: 65(3) IDAT-KWMENG DECIMALS 0.
      WRITE: 75 TKOMCON-ATWRT+KeyTypeLOC(6).
      IF TKOMCON-ATNAM = 'S_SK_CONSC_KEY'
         OR TKOMCON-ATNAM = 'S_MK_CONSC_KEY'.
        WRITE: 85 'Consecutive'.
      ELSE.
        WRITE: 85 'Specific'.
      ENDIF.
      IF TKOMCON-ATNAM = 'S_SK_CONSC_KEY'
         OR TKOMCON-ATNAM = 'S_MK_CONSC_KEY'.
        TYPE = 'Consecutive'.
      ELSE.
        TYPE = 'Specific'.
      ENDIF.
    * PREPARING A RECORD TO BE SENT TO FILE
      CONCATENATE
      IDAT-VBELN
      IDAT-POSNR
      IDAT-MATNR
      IDAT-MBDAT
      IDAT-ERDAT
      C_KWMENG
      TKOMCON-ATWRT+KeyTypeLOC(6)
      TYPE
      INTO t_record SEPARATED BY tab.
      if sy-batch = 'x'.
      TRANSFER t_record  TO OUTFILE.
      endif.
    ENDFORM.
          FORM TOP-OF-PAGE                                              *
    FORM TOP-OF-PAGE.
      WRITE: / 'ORDER'.
      WRITE: 10 'LINE'.
      WRITE: 20 'MATERIAL'.
      WRITE: 35 'DUE (MAD)'.
      WRITE: 50 'CREATED'.
      WRITE: 65 'QTY'.
      WRITE: 75 'KEY'.
      WRITE: 85 'TYPE'.
    PREPARING A RECORD TO BE SENT TO FILE
      CONCATENATE
      header-ORDER
      header-LINE
      header-MATERIAL
      header-DUE
      header-CREATED
      header-QTY
      header-KEY
      header-TYPE
      INTO t_record SEPARATED BY tab.
    ENDFORM.
    THIS IS WORKING FINE WITH DIFFERENT RANGES BUT WHEN I USE RANGE
    Sales Order 1250000 TO 2250000
    MAD 01/18/2005 TO 03/02/2005
    Material LOCK9250FR TO LOCK9250XF
    PLANT 4500
    IT GIVES THE RUNTIME ERROR I MENTIONED ABOVE
    ANY HELP WOULD BE GREATLY APPRECIATED
    THANKS.

    HI ROB YOUR REPLY LOOKS TO BE VERY CLOSE OTHER GUYS SAID IT MIGHT BE PROBLEM WITH VARIABLE C_KWMENG BUT I REMOVED THAT PIECE OF CODE WITH C_KWMENG BUT STILL I WAS GETTING THE ERROR ATTACHED IS THE COMPLETE ERROR DETAILS FROM ST22
    Runtime Errors         CONVT_NO_NUMBER              
    Exception              CX_SY_CONVERSION_NO_NUMBER
           Occurred on     09/29/2005 at 14:33:21
    Unable to interpret "04:" as a number.                                        
    What happened?
    Error in ABAP application program.                                                                               
    The current ABAP program "ZVXR0303" had to be terminated because one of the              
    statements could not be executed.                                                                               
    This is probably due to an error in the ABAP program.                                    
    What can you do?
    Print out the error message (using the "Print" function)                                 
    and make a note of the actions and input that caused the                                 
    error.                                                                               
    To resolve the problem, contact your SAP system administrator.                           
    You can use transaction ST22 (ABAP Dump Analysis) to view and administer                 
    termination messages, especially those beyond their normal deletion                     
    date.                                                                               
    Error analysis
    An exception occurred. This exception will be dealt with in more detail                  
    below. The exception, assigned to the class 'CX_SY_CONVERSION_NO_NUMBER', was            
    not caught, which                                                                       
    led to a runtime error. The reason for this exception is:                               
    The program attempted to interpret the value "04:" as a number, but                      
    since the value contravenes the rules for correct number formats,                        
    this was not possible.                                                                               
    How to correct the error
    Integers are represented in ABAP using a sequence of digits and, in some                 
    cases, a preceding sign.                                                                
    The system offers the following options for displaying floating point                    
    numbers:                                                                               
    [mantissa]E[sign][exponent]                                                      
      [whole number part].[fractional part]                                            
    e.g. -12E+34, +12E-34, 12E34, 12.34                                                                               
    If the error occurred in one of your own programs or in an SAP program                   
    that you modified, try to correct it yourself.                                                                               
    You may able to find an interim solution to the problem                                  
    in the SAP note system. If you have access to the note system yourself,                  
    use the following search criteria:                                                                               
    "CONVT_NO_NUMBER" CX_SY_CONVERSION_NO_NUMBERC                                            
    "ZVXR0303" or "ZVXR0303"                                                                 
    "START-OF-SELECTION"                                                                     
    If you cannot solve the problem yourself, please send the                                
    following documents to SAP:                                                                               
    1. A hard copy print describing the problem.                                             
       To obtain this, select the "Print" function on the current screen.                    
                                                                                    2. A suitable hardcopy prinout of the system log.                                        
       To obtain this, call the system log with Transaction SM21                             
       and select the "Print" function to print out the relevant                             
       part.                                                                               
    3. If the programs are your own programs or modified SAP programs,                       
       supply the source code.                                                               
       To do this, you can either use the "PRINT" command in the editor or                   
       print the programs using the report RSINCL00.                                                                               
    4. Details regarding the conditions under which the error occurred                       
       or which actions and input led to the error.                                          
    System environment
    SAP Release.............. "620"                                                                               
    Application server....... "grrsap54"                                                     
    Network address.......... "10.80.96.102"                                                 
    Operating system......... "HP-UX"                                                        
    Release.................. "B.11.11"                                                      
    Hardware type............ "9000/800"                                                     
    Character length......... 8 Bits                                                         
    Pointer length........... 64 Bits                                                        
    Work process number...... 3                                                              
    Short dump setting....... "full"                                                                               
    Database server.......... "grrsap54"                                                     
    Database type............ "ORACLE"                                                       
    Database name............ "D01"                                                          
    Database owner........... "SAPR3"                                                                               
    Character set............ "en_US.iso88591"                                                                               
    SAP kernel............... "640"                                                          
    Created on............... "Aug 28 2005 20:25:49"                                         
    Created in............... "HP-UX B.11.00 A 9000/800"                                     
    Database version......... "OCI_920 "                                                                               
    Patch level.............. "88"                                                           
    Patch text............... " "                                                                               
    Supported environment....                                                                
    Database................. "ORACLE 8.1.7.., ORACLE 9.2.0.., ORACLE                    
    10.1.0.."                                                                             
    SAP database version..... "640"                                                          
    Operating system......... "HP-UX B.11"                                                   
    User, transaction...
    Client.............. 050                                                                 
    User................ "NSHAKER"                                                           
    Language key........ "E"                                                                 
    Transaction......... "SE38 "                                                             
    Program............. "ZVXR0303"                                                          
    Screen.............. "SAPMSSY0 1000"                                                     
    Screen line......... 6                                                                   
    Information on where terminated
    The termination occurred in the ABAP program "ZVXR0303" in                               
    "START-OF-SELECTION".                                                                   
    The main program was "ZVXR0303 ".                                                                               
    The termination occurred in line 156 of the source code of the (Include)                 
    program "ZVXR0303"                                                                      
    of the source code of program "ZVXR0303" (when calling the editor 1560).                 
    Source code extract
    Caution: Program has changed            
    Caution: At time of termination,  Active source code no longer available
    001260 ?         TRANSLATE TKOMCON-ATWRT+KeyNumberLOC(4) USING ': '.            
    001270 ?         IF TKOMCON-ATWRT+KeyNumberLOC(4) CO '0123456789 '.             
    001280 ?           iKey = TKOMCON-ATWRT+KeyNumberLOC(4).                        
    001290 ?                                                                        
    001300 ?           IF ( TKOMCON-ATWRT+KeyTypeLOC(2) = 'FR' AND iKey >= 454 )    
    001310 ?           OR ( TKOMCON-ATWRT+KeyTypeLOC(2) = 'XF' AND iKey >= 1150 ).  
    001320 ?             PERFORM OUT-OF-RANGE-FOUND.                                
    001330 ?           ENDIF.                                                       
    001340 ?         ENDIF.                                                         
    001350 ?       Else.                                                            
    001360 ?         Offset = 0.                                                    
    001370 ?         DO.                                                            
    001380 ?           IF offset <= 9.                                              
    001390 ?             offset = offset + 1.                                       
    001400 ?             If TKOMCON-ATWRT+Offset(1) = ':'.                          
    001410 ?               KeyTypeLOC = Offset + 1.                                 
    001420 ?               KeyNumberLOC = Offset + 3.                               
    001430 ?               EXIT.                                                    
    001440 ?             ENDIF.                                                     
    001450 ?           ELSE.                                                        
    001460 ?             EXIT.                                                      
    001470 ?           ENDIF.                                                       
    001480 ?         ENDDO.                                                         
    001490 ?                                                                        
    001500 ?         TRANSLATE TKOMCON-ATWRT+KeyNumberLOC(4) USING ': '.            
    001510 ?                                                                        
    001520 ?         IF TKOMCON-ATWRT+KeyNumberLOC(4) CO '0123456789 '.             
    001530 ?           iKey = TKOMCON-ATWRT+KeyNumberLOC(4).                        
    001540 ?           IF ( TKOMCON-ATWRT+KeyTypeLOC(2) = 'FR' AND iKey >= 454 )    
    001550 ?           OR ( TKOMCON-ATWRT+KeyTypeLOC(2) = 'XF' AND iKey >= 1150 ).  
    ?             IDAT-KWMENG = TKOMCON-ATWRT(3).                            
    001570 ?             PERFORM OUT-OF-RANGE-FOUND.                                
    001580 ?           ENDIF.                                                       
    001590 ?         ENDIF.                                                         
    001600 ?       ENDIF.                                                           
    001610 ?     ENDLOOP.                                                           
    001620 ?   ENDLOOP.                                                             
    001630 ? ENDIF.                                                                 
    001640 ? CLOSE DATASET OUTFILE.                                                 
    001650 ?                                                                        
    001660 ? *----
    001670 ? *       FORM OUT-OF-RANGE-FOUND                                       *
    001680 ? *----
    001690 ? *       ........                                                      *
    001700 ? *----
    001710 ? FORM OUT-OF-RANGE-FOUND.                                               
    001720 ?                                                                        
    001730 ?   WRITE: / IDAT-VBELN.                                                 
    001740 ?   WRITE: 10 IDAT-POSNR.                                                
    001750 ?   WRITE: 20 IDAT-MATNR.                                                
    Contents of system fields
    SY field contents..................... SY field contents.....................
    SY-SUBRC 0                             SY-INDEX 44                           
    SY-TABIX 7                             SY-DBCNT 1                            
    SY-FDPOS 4                             SY-LSIND 0                            
    SY-PAGNO 2                             SY-LINNO 18                           
    SY-COLNO 94                            SY-PFKEY                              
    SY-UCOMM                               SY-TITLE Out of Range Keys            
    SY-MSGTY I                             SY-MSGID SF                           
    SY-MSGNO 616                           SY-MSGV1                              
    SY-MSGV2                               SY-MSGV3                              
    SY-MSGV4                              
    Active calls / events
    No.... Type........ Name..........................
           Program                                
           Include                                  Line    
           Class                                  
         1 EVENT        START-OF-SELECTION                                          
           ZVXR0303                               
           ZVXR0303                                   156
    Chosen variables
         1 EVENT        START-OF-SELECTION                                          
           ZVXR0303                               
           ZVXR0303                                   156
    %_SPACE                                                                               
    2                                      
                                   0                                      
    SY-REPID                       ZVXR0303                               
                                   5555333322222222222222222222222222222222
                                   A682030300000000000000000000000000000000
    TKOMCON-ATWRT                  04:XF1260                              
                                   333543333222222222222222222222         
                                   04A861260000000000000000000000         
    KEYNUMBERLOC                   5                                      
                                   0000                                   
                                   0005                                   
    SYST-REPID                     ZVXR0303                               
                                   5555333322222222222222222222222222222222
                                   A682030300000000000000000000000000000000
    SY-LDBPG                       SAPDB__S                               
                                   5454455522222222222222222222222222222222
                                   31042FF300000000000000000000000000000000
    IKEY                           1260                                   
                                   000E                                   
                                   004C                                   
    KEYTYPELOC                     3                                      
                                   0000                                   
                                   0003                                   
    SY                             ###,####################################
                                   0002000000000001000000000000000000000000
                                   000C00020007000E00000001000A000000000000
    ... +  40                      ###########^###<########################
                                   0000000000050003000100080000000000000009
                                   00010004000E000C000200040000000000000000
    ... +  80                      ########################################
                                   0000000000000000000000000000000000000000
                                   0000000000000000000A00000000000000000000
    ... + 120                      #######################################_
                                   0000000000000000000000000000000000010005
                                   00000000000000000000000000000000000A000F
    ... + 160                      ############ÿÿ¹°XC#############   E2  X1
                                   000000000000FFBB540000000000000222432253
                                   0000000A0000FF90830040000C0000C000520081
    ... + 200                      000         ####__S                 050
                                   3332222222220000555222222222222222223332
                                   0000000000000000FF3000000000000000000500
    ... + 240                           00                                
                                   222223322222222                        
                                   000000000000000                        
    SVBELN                         IBT00012500000002250000                
                                   44533333333333333333333                
                                   92400012500000002250000                
    IDAT-KWMENG                    ########                               
                                   00000000                               
                                   0000000C                               
    TKOMCON-ATWRT+0(3)             04:                                    
                                   333                                    
                                   04A                                    
    SYST                           ###,####################################
                                   0002000000000001000000000000000000000000
                                   000C00020007000E00000001000A000000000000
    ... +  40                      ###########^###<########################
                                   0000000000050003000100080000000000000009
                                   00010004000E000C000200040000000000000000
    ... +  80                      ########################################
                                   0000000000000000000000000000000000000000
                                   0000000000000000000A00000000000000000000
    ... + 120                      #######################################_
                                   0000000000000000000000000000000000010005
                                   00000000000000000000000000000000000A000F
    ... + 160                      ############ÿÿ¹°XC#############   E2  X1
                                   000000000000FFBB540000000000000222432253
                                   0000000A0000FF90830040000C0000C000520081
    ... + 200                      000         ####__S                 050
                                   3332222222220000555222222222222222223332
                                   0000000000000000FF3000000000000000000500
    ... + 240                           00                                
                                   222223322222222                        
                                   000000000000000                        
    OUTFILE                        /usr/users/ftpsapfi/locks_540318       
                                   2777277677267776766266667533333322222222
                                   F532F53523F64031069FCF3B3F54031800000000
    ... +  40                                                                               
    2222222222                             
                                   0000000000                             
    Application Calls
    No dump information available                    
    Application Information
    No dump information available                    
    Internal notes
    The termination occurred in the function "ab_Move" of the SAP                            
    Basis System, specifically in line 529 of the module                                     
    "//bas/640_REL/src/krn/runt/abmove1.c#6".                                               
    The internal operation just processed is "MOVE".                                         
    The internal session was started at 20050929142552.                                      
    Active calls in SAP kernel
    ( 0)  0x4000000001751924   CTrcStack2 + 0x2bc  dw.sapD01_DVEBMGS00                    
    ( 1)  0x4000000001751658   CTrcStack + 0x18  dw.sapD01_DVEBMGS00                      
    ( 2)  0x4000000001db7478   rabax_CStackSave__Fv + 0x100  dw.sapD01_DVEBMGS00          
    ( 3)  0x4000000001dc3abc   ab_rabax + 0x1e1c  dw.sapD01_DVEBMGS00                     
    ( 4)  0x4000000001b44cb4   ab_cnverr__FiPcPCvN21T2 + 0x18c  dw.sapD01_DVEBMGS00       
    ( 5)  0x40000000016c96f8   ab_Move + 0x1910  dw.sapD01_DVEBMGS00                      
    ( 6)  0x40000000016d4434   ab_jmove__Fv + 0x384  dw.sapD01_DVEBMGS00                  
    ( 7)  0x4000000001022348   ab_extri__Fv + 0x17a0  dw.sapD01_DVEBMGS00                 
    ( 8)  0x4000000001726dc8   ab_xevent__FPCc + 0x38  dw.sapD01_DVEBMGS00                
    ( 9)  0x40000000019f7efc   ab_trigg__Fv + 0x94  dw.sapD01_DVEBMGS00                   
    (10)  0x40000000019dc9ec   ab_run + 0xc4  dw.sapD01_DVEBMGS00                         
    (11)  0x4000000000f65e0c   N_ab_run + 0x14  dw.sapD01_DVEBMGS00                       
    (12)  0x4000000000f5fa88   dynpmcal + 0x198  dw.sapD01_DVEBMGS00                      
    (13)  0x4000000000f5d500   dynppai0 + 0x830  dw.sapD01_DVEBMGS00                      
    (14)  0x4000000000f5b8b4   dynprctl + 0x43c  dw.sapD01_DVEBMGS00                      
    (15)  0x4000000000f56728   dynpen00 + 0x2118  dw.sapD01_DVEBMGS00                     
    (16)  0x400000000102f1b4   Thdynpen00 + 0x69c  dw.sapD01_DVEBMGS00                    
    (17)  0x400000000102e1e4   TskhLoop + 0x523c  dw.sapD01_DVEBMGS00                     
    (18)  0x4000000001022f50   tskhstart + 0x1e0  dw.sapD01_DVEBMGS00                     
    (19)  0x4000000000dce3c4   DpMain + 0x484  dw.sapD01_DVEBMGS00                        
    (20)  0x40000000022784cc   nlsui_main + 0x14  dw.sapD01_DVEBMGS00                     
    (21)  0x4000000000a39534   main + 0x14  dw.sapD01_DVEBMGS00                           
    (22)  0xc00000000000a588   $START$ + 0xa0  /usr/lib/pa20_64/dld.sl                    
    List of ABAP programs affected
    Type  Program                            Gen. Date  Time       Load Size 
    Prg   ZVXR0303                           09/29/2005 14:25:42       39936 
    Prg   SAPMSSY0                           05/01/2005 00:21:19       66560 
    Prg   SAPMSSYD                           06/05/2002 17:09:33       16384 
    Prg   SAPFSYSCALLS                       02/14/2002 14:22:47        6144 
    Prg   RSDBRUNT                           06/13/2004 00:43:20      226304 
    Typ   RSSCR                                /  /       : m:15        5120 
    Prg   RSDBSPBL                           01/07/2003 18:47:02       59392 
    Prg   SAPDB__S                           02/14/2002 14:22:47       15360 
    Typ   VARID                              05/12/1997 16:51:30        4096 
    Prg   %_CSYDB0                           02/14/2002 14:22:46       28672 
    Prg   RSDBSPVA                           09/06/2005 22:54:22      112640 
    Prg   SAPLSVAR                           09/06/2005 22:57:28      625664 
    Typ   VARIS                              05/12/1997 15:27:21        2048 
    Typ   RSVAMEMKEY                         05/07/1997 13:07:49        2048 
    Prg   RSDBSPMC                           06/05/2002 17:09:26       66560 
    Typ   DDSHDESCR                          09/03/1997 03:05:16        3072 
    Typ   SPPARAMS                           05/07/1997 13:10:38        2048 
    Typ   SPPARAMS                           05/07/1997 13:10:38        2048 
    Typ   RSSELINT                           04/04/1995 16:12:37        2048 
    Prg   SAPLICON                           03/12/2004 06:57:52       23552 
    Prg   %_CICON                            02/14/2002 14:22:46       65536 
    Prg   SAPLSABE                           02/14/2002 14:22:47       11264 
    Prg   SAPLSECU                           05/23/2005 14:04:05       64512 
    Typ   RSSUBINFO                          10/14/1999 22:01:03        3072 
    Prg   %_CRSDS                            02/14/2002 14:22:46        8192 
    Typ   RSDSEXPR                           08/20/1998 10:57:18        2048 
    Prg   SAPLDSYA                           02/14/2002 14:22:47       39936 
    Prg   SAPFSDS1                           01/07/2003 18:32:17       47104 
    Typ   TDCLD                              11/02/1998 09:51:35        5120 
    Prg   SAPLSDOD                           04/30/2005 22:53:50       39936 
    Typ   DOKIL                              05/12/1997 16:46:17        3072 
    Prg   SAPCNVE                            02/14/2002 14:22:47        6144 
    Prg   SAPLLANG                           02/14/2002 14:22:47        8192 
    Typ   T002                               02/14/1998 10:24:58        2048 
    Typ   RSEXFCODE                          08/13/1997 12:52:57        1024 
    Prg   SAPFSPOR                           03/13/2004 19:20:44       12288 
    Prg   SAPLOMCV                           05/01/2005 00:14:10       16384 
    Prg   CL_EXITHANDLER================CP   06/13/2004 00:40:58       26624 
    Prg   SAPLSEXV                           09/06/2005 22:55:26      107520 
    Prg   CL_BADI_FLT_DATA_TRANS_AND_DB=CP   05/01/2005 00:21:35       33792 
    Typ   SXS_ATTR                           08/20/2001 12:23:27        4096 
    Typ   V_EXT_ACT                          11/09/2000 14:27:05        2048 
    Typ   SXC_EXIT                           11/09/2000 14:23:43        2048 
    Prg   CL_EX_BADI_MATN1==============CP   05/01/2005 00:14:04       22528 
    Prg   IF_EX_BADI_MATN1==============IP   06/13/2004 00:48:55        4096 
    Typ   TMCNV                              02/24/1999 03:33:25        3072 
    Prg   SAPLSCNT                           02/14/2002 14:22:47       24576 
    Typ   DYCBOX                             08/20/1998 11:16:53        2048 
    Prg   SAPLSVSM                           01/07/2003 18:35:45       22528 
    Prg   SAPLSGUI                           01/09/2003 17:15:12       31744 
    Prg   SAPLSTTM                           05/01/2005 00:24:04       75776 
    Prg   SAPLSBDC                           05/23/2005 14:05:19       38912 
    Prg   CL_DATAPROVIDER===============CP   02/14/2002 14:22:46       40960 
    Prg   %_CCNTL                            02/14/2002 14:22:46       13312 
    Typ   OBJ_RECORD                         02/14/1998 08:30:43        2048 
    Prg   SAPLSTUP                           05/23/2005 14:03:46       65536 
    Prg   SAPLCNDP                           05/23/2005 14:05:47      167936 
    Prg   SAPFGUICNTL                        01/09/2003 17:18:52       20480 
    Prg   SAPLOLEA                           05/23/2005 14:03:56       79872 
    Prg   SAPLSFES                           09/06/2005 22:53:55      191488 
    Prg   SAPLSPLUGIN                        02/14/2002 14:22:48        6144 
    Typ   ARFCRDATA                          11/09/2000 14:04:16        6144 
    Prg   SAPLGRFC                           02/14/2002 14:22:47       13312 
    Typ   SWCBCONT                           11/15/2000 17:55:11        3072 
    Typ   OLE_VERBS                          04/04/1995 16:02:20        2048 
    Typ   OLE_PA                             04/04/1995 16:02:19        2048 
    Prg   SAPSHDTV                           03/12/2004 06:40:27       28672 
    Typ   SSCRTEXTS                          09/03/1997 03:12:33        3072 
    Typ   SSCRFIELDS                         05/13/1997 12:54:26        4096 
    Prg   CL_GUI_PROPS_CONSUMER=========CP   01/07/2003 18:26:56       26624 
    Prg   SAPLTHFB                           09/06/2005 22:52:48      306176 
    Prg   CL_DYNAMIC_GUI_EXTENSIONS=====CP   02/14/2002 14:22:46       33792 
    Prg   CL_GUI_DATAMANAGER============CP   05/01/2005 00:20:36       70656 
    Prg   CL_ABAP_CHAR_UTILITIES========CP   05/01/2005 00:14:49       11264 
    Prg   RSDBSPVD                           05/01/2005 00:15:44       73728 
    Typ   RVARI                              03/30/1998 09:40:50        4096 
    Typ   RSVARIVDAT                         04/04/1995 16:12:54        2048 
    Typ   VBEP                               01/27/2003 16:50:17       10240 
    Typ   VBAP                               09/15/2005 11:15:36       44032 
    Prg   SAPLCEI0                           09/22/2005 14:34:40      936960 
    Typ   API_VALUE                          02/20/1998 08:46:47        2048 
    Prg   SAPLCUEV                           06/07/2001 18:26:56       10240 
    Prg   SAPLSUNI                           06/13/2004 00:42:30      131072 
    Typ   TFDIR                              07/29/1998 19:49:08        3072 
    Prg   %_CIBCO2                           03/13/2004 14:32:13       12288 
    Typ   IBINCOM                            06/01/1999 11:56:27        3072 
    Typ   IBINCONF                           06/01/1999 11:56:27        2048 
    Typ   IBSTCONF                           06/01/1999 11:56:28        1024 
    Prg   SAPLCUCB                           05/23/2005 15:20:17      192512 
    Typ   TCUIBSPECIAL                       06/07/2001 17:50:37        1024 
    Prg   %_CIBXX                            03/13/2004 14:38:45       49152 
    Typ   BAL_S_MSG                          12/04/2000 13:04:01        6144 
    Prg   CX_CBASE_ERROR================CP   01/27/2003 16:58:10       10240 
    Typ   SCX_SRCPOS                         11/09/2000 14:12:15        2048 
    Typ   BAL_S_CONT                         11/02/1998 09:43:07        2048 
    Typ   BAL_S_PARM                         12/04/2000 12:45:14        3072 
    Typ   BAL_S_CLBK                         11/02/1998 09:43:07        2048 
    Prg   CX_STATIC_CHECK===============CP   02/14/2002 14:22:47        8192 
    Prg   CX_ROOT=======================CP   02/14/2002 14:22:47        9216 
    Prg   CL_CBASE======================CP   05/23/2005 15:19:44       87040 
    Typ   T371G                              04/29/1998 10:42:48        2048 
    Prg   SAPLIBCO                           03/13/2004 15:32:40      269312 
    Prg   %_CIBCO                            03/13/2004 14:38:45       11264 
    Prg   SAPLIBXX                           03/13/2004 14:38:46       11264 
    Prg   SAPLIBIBF                          03/13/2004 14:38:46      179200 
    Prg   %_CIBIB                            03/13/2004 14:38:45       18432 
    Prg   SAPLIBINF                          06/12/2004 22:20:22      415744 
    Prg   %_CIBIN                            03/13/2004 15:32:40       48128 
    Prg   CL_IBASE_STRUC================CP   06/07/2001 19:59:10      106496 
    Prg   %_CIBST                            03/13/2004 14:38:45       37888 
    Prg   CL_IBASE_STRUC_BUF============CP   06/07/2001 19:59:10       89088 
    Prg   CL_IBASE_STRUC_STAT===========CP   06/07/2001 19:59:10        8192 
    Prg   CL_IBASE_STRUC_BUF_IBSTREF====CP   06/07/2001 19:59:10       35840 
    Prg   %_CIBCO1                           03/13/2004 14:38:45       14336 
    Typ   IBINVAL                            09/18/2001 10:02:52        2048 
    Prg   SAPLIBCU                           03/13/2004 14:38:46       12288 
    Prg   SAPLIBCUT                          06/07/2001 18:27:19       12288 
    Typ   T371B                              05/14/1998 22:58:43        2048 
    Typ   V_IBINR                            03/13/2004 15:32:40        5120 
    Typ   V_IBINR_CM                         03/13/2004 15:32:40        5120 
    Prg   CL_IBASE_SERVICE==============CP   06/07/2001 19:59:10       13312 
    Prg   CL_IBASE_T371D_BUF============CP   06/07/2001 19:59:10       12288 
    Typ   T371D                              08/27/1999 18:19:44        2048 
    Prg   CL_IBASE_R3_MATERIAL==========CP   05/23/2005 15:08:24       59392 
    Typ   MARA                               05/23/2005 15:08:18       22528 
    Typ   MAKT                               08/28/1997 08:52:19        2048 
    Typ   ICON                               01/03/1996 15:34:02        3072 
    Prg   CL_ABAP_TYPEDESCR=============CP   05/01/2005 00:20:10       21504 
    Prg   CL_ABAP_ELEMDESCR=============CP   05/01/2005 00:20:33       20480 
    Prg   CL_ABAP_DATADESCR=============CP   03/12/2004 07:16:33       14336 
    Prg   CL_ABAP_REFDESCR==============CP   03/12/2004 07:17:23       16384 
    Prg   CL_ABAP_STRUCTDESCR===========CP   05/01/2005 00:20:33       20480 
    Prg   CL_ABAP_COMPLEXDESCR==========CP   03/12/2004 07:16:33       13312 
    Prg   CL_ABAP_TABLEDESCR============CP   03/12/2004 07:17:23       17408 
    Prg   CL_ABAP_CLASSDESCR============CP   03/12/2004 07:17:23       23552 
    Prg   CL_ABAP_OBJECTDESCR===========CP   03/12/2004 07:17:23       25600 
    Prg   CL_ABAP_INTFDESCR=============CP   03/12/2004 07:16:33       19456 
    Prg   CL_ABAP_SOFT_REFERENCE========CP   03/29/2001 16:42:12        7168 
    Prg   CL_ABAP_REFERENCE=============CP   02/14/2002 14:22:46        6144 
    Prg   IF_EX_CM_BADI_VERSION=========IP   01/07/2002 16:09:04        3072 
    Prg   %_CABAP                            01/07/2003 18:31:23       23552 
    Typ   SXS_INTER                          11/30/1998 15:55:16        2048 
    Prg   CL_EX_CM_BADI_VERSION=========CP   05/01/2005 00:14:04       13312 
    Prg   %_CSXRT                            06/13/2004 00:40:55       11264 
    Prg   CL_EXIT_MASTER================CP   06/13/2004 00:40:58       13312 
    Typ   V_EXT_IMP                          11/09/2000 14:27:05        2048 
    Typ   V_EXT_IMP                          11/09/2000 14:27:05        2048 
    Typ   SXC_IMPSWH                         11/09/2000 14:23:44        2048 
    Prg   CL_IM_CM_BADI_VERSION_DEF=====CP   04/17/2002 11:01:00        6144 
    Prg   SAPLASTAT_TRIG                     02/14/2002 14:22:47       11264 
    Typ   ASTAT_TYP2                         11/10/1998 05:35:18        2048 
    Prg   IF_CM_BASELINE================IP   05/23/2005 15:08:24        9216 
    Prg   IF_IBASE_IBOF_TREE_OBJECT=====IP   05/23/2005 15:08:24        5120 
    Prg   IF_IBASE_INSTALL==============IP   06/07/2001 20:08:54        4096 
    Prg   IF_IBASE_MATERIAL=============IP   06/07/2001 20:08:54        3072 
    Prg   IF_IBASE_OBJECT===============IP   06/07/2001 20:08:54        4096 
    Prg   SAPLBOMA                           02/14/2002 14:15:40       10240 
    Typ   IONRA                              03/12/2004 02:09:40       23552 
    Typ   IBIBCOM                            08/30/2001 17:56:57        4096 
    Typ   IBIB                               03/13/2004 14:32:13        5120 
    Prg   CL_IBASE_STRUC_SERVICE========CP   06/07/2001 19:59:10       17408 
    Prg   CL_CU_CBASE_ENQUEUE_CORE======CP   06/07/2001 19:58:59       11264 
    Prg   CL_CU_CBASE_ENQUEUE===========CP   06/07/2001 19:58:59       16384 
    Typ   T371F                              06/01/1999 12:00:49        2048 
    Typ   V_IBIN_SYVAL                       03/13/2004 15:32:41        4096 
    Typ   IBIN                               09/18/2001 10:02:52        6144 
    Typ   IBINOWN                            02/01/2000 14:56:07        2048 
    Prg   CL_IBASE_T371F_BUF============CP   06/07/2001 19:59:11        8192 
    Prg   CL_IBASE_STRUC_FILT_02========CP   06/07/2001 19:59:10       11264 
    Prg   CL_IBASE_STRUC_FILT===========CP   06/07/2001 19:59:10       10240 
    Typ   IBST                               09/18/2001 10:02:52        4096 
    Typ   IBST                               09/18/2001 10:02:52        4096 
    Typ   IBSTREF                            04/15/1998 00:20:43        2048 
    Typ   IBSTREF                            04/15/1998 00:20:43        2048 
    Prg   IF_CBASE_E====================IP   06/07/2001 20:08:25        3072 
    Prg   %_CCXTAB                           02/14/2002 14:22:46        6144 
    Prg   SAPLCUCQ                           09/15/2005 11:15:38       79872 
    Typ   CUCO                               09/18/2001 10:02:34       18432 
    Typ   CUCO_OBJ                           09/18/2001 10:02:34       18432 
    Prg   SAPLCLCA                           09/06/2005 23:33:29       68608 
    Typ   TCLA                               03/13/2004 14:10:20        5120 
    Typ   TCLAO                              08/13/1997 13:57:22        4096 
    Prg   SAPLCUOB                           05/23/2005 14:31:35       31744 
    Typ   INOB                               09/03/1997 03:20:02        4096 
    Prg   SAPLCLSE                           05/23/2005 14:32:26      167936 
    Prg   %_CCC01                            05/01/2005 00:34:57       53248 
    Typ   TABLEKEY                           07/06/1998 21:01:06        2048 
    Typ   KSSK                               09/18/2001 10:02:58        3072 
    Prg   SAPLCLEF                  

  • Not able to find the Error in code !

    please help me to find the error in my code. When I Added x1~kondm its not giving anything i.e
    *join t178t as x1
    *on   p1kondm = x1kondm
    in the SQL part !
    REPORT YINTERACTIVEPROGRAM01.
    TABLES:VBAP,
           VBPA,
           VBRP,
           VBRK,
           KNA1,
           ADRC,
           TPAR,
           TVKGG,
           TVM1T,
           TVM2T,
           TVM3T,
           TVM4T,
           VBKD,
           SZA1_D0100,
           T178T.
    TYPES:BEGIN OF TY_TAB,
             VBELN LIKE VBAK-VBELN,
             VKORG LIKE VBAK-VKORG,
             ERDAT LIKE VBAK-ERDAT,
             AUGRU LIKE VBAK-AUGRU,
             BSTDK LIKE VBKD-BSTDK,
             BSTDK_E LIKE VBKD-BSTDK_E,
             spart like vbap-spart,
             kondm like vbap-kondm,
             waerk like vbap-waerk,
             netwr like vbap-netwr,
             kwmeng like vbap-kwmeng,
             vkaus like vbap-vkaus,
             land1 like vbpa-land1,
             nrart like tpar-nrart,
           vtext like tpar-vtext,
             parvw like tpar-parvw,
             name1 like adrc-name1,
             name2 like adrc-name2,
             name3 like adrc-name3,
             name4 like adrc-name4,
             ort01 like kna1-ort01,
             pstlz like kna1-pstlz,
             vtext like t178t-vtext,
          END  OF TY_TAB.
    DATA: ITAB TYPE STANDARD TABLE OF TY_TAB WITH HEADER LINE.
    parameters:salesno like itab-vbeln.
    select s1~vbeln
           s1~vkorg
           s1~erdat
           s1~augru
           k1~BSTDK
           k1~BSTDK_E
           p1~spart
           p1~kondm
           p1~waerk
           p1~netwr
           p1~kwmeng
           p1~vkaus
           r1~land1
           t1~nrart
          t1~vtext
           t1~parvw
           n1~name1
           n1~name2
           n1~name3
           n1~name4
           c1~ort01
           c1~pstlz
           x1~vtext
    into corresponding fields of table itab
    from  vbak as s1
    join  VBKD as k1
    on   s1vbeln = k1VBELN
    join vbap as p1
    on   k1vbeln = p1vbeln
    *join t178t as x1
    *on   p1kondm = x1kondm
    join vbpa as r1
    on   p1vbeln = r1vbeln
    join tpar as t1
    on   r1parvw = t1parvw
    join ADRC as n1
    on   r1adrnr = n1addrnumber
    join kna1 as c1
    on   r1land1 = c1land1
    where k1vbeln = salesno and  s1vbeln = salesno and p1~vbeln = salesno
    and  r1~vbeln = salesno.
    loop AT ITAB.
      WRITE : /(30)'VBELN: ',  ITAB-VBELN,
              /(30)'VKORG: ',  ITAB-VKORG,
              /(30)'ERDAT: ',  ITAB-ERDAT,
              /(30)'AUGRU: ',  ITAB-AUGRU,
              /(30)'BSTDK: ',  ITAB-BSTDK,
              /(30)'BSTDK_E:', ITAB-BSTDK_E,
              /(30)'SPART: ',  itab-spart,
              /(30)'KONDM: ',  itab-kondm,
              /(30)'WAERK: ',  itab-waerk,
              /(18)'NETWR: ' , itab-netwr,
              /(18)'KWMENG: ', itab-kwmeng,
              /(10)'VKAUS:',   itab-vkaus,
              /(30)'LAND1:',   itab-land1,
              /(30)'NRART:',   itab-nrart,
              /(30)'PARVW:',   itab-parvw,
              /(30)'ADDR1:',   itab-name1,
              /(30)'ADDR2:',   itab-name2,
              /(30)'ADDR3:',   itab-name3,
              /(30)'ADDR4:',   itab-name4,
              /(30)'PSTLZ:',   itab-pstlz,
              /(30)'ORT01:',   itab-ort01,
              /(30)'Compiler desc:',   itab-vtext.
               uline.
    ENDLOOP.
                if sy-subrc <> 0.
                write : / 'No data found'.
                endif.

    hi,
      u failed to check relationship between tables and as well as mandatory fields need to be checked, i noticed following
    from vbak as s1
    join VBKD as k1
    on s1vbeln = k1VBELN
    join vbap as p1
    on k1vbeln = p1vbeln and k1posnr = p1posnr
    *join t178t as x1
    *on p1kondm = x1kondm
    join vbpa as r1
    on p1vbeln = r1vbeln   <b>and p1posnt = r1posnr </b> join tpar as t1
    on r1parvw = t1parvw
    join ADRC as n1
    on r1adrnr = n1addrnumber     <b> * No relation between these two tables/b]     
    join kna1 as c1
    on r1land1 = c1land1 <b>and r1kunnr = c1kunnr</b> <i>'here u need to check mandatory fields also</i>
    where k1vbeln = salesno and s1vbeln = salesno and p1~vbeln = salesno
    and r1~vbeln = salesno.
    anyway, in performance point of view, writeing code with this much joins is not acceptable.
    comeback if you need any further help
    regards,
    pavan
    Message was edited by:
            pavan kumar pisipati

  • Incompletion log Field VBAP POSEX is not defind in incompltion procedure ZA

    Hi Friends,
    Need some help on this issue.
    We have some orders created in production, and when ever we go to VA02-> enter-> it pops up with the below error  message." Field VBAP POSEX is not defined in incompletion procedure ZA ".
    I already checked the incompletion procuredue and the field VBAP-POSEX (Purchase order item) was not at all defiend.
    It gives the incompletion log for only certain line items in the sales order and not for all. There are already few items delivered and we cannot reject the order to create a new one.
    I reveiwed this note "1497255 - Incompletion for PO item number (vbap-posex)" but it states it is for specifically for intercompnay orders.
    Our case is standard trade order. It woud be really great anyone has come across the same situation so that i can seek for help..
    Thank you so much!!
    Best Regards,
    Ram

    Hi Lakshmipathi,
    Firstly, thanks for the response.
    Yes.. I did checked... the field VBAP-POSEX was not maintained at item level though.
    The same item in other order does not have this problem and it is still open.
    This is specific to only very few orders, namely 4 or 5 orders but not with others.
    Moreover, these materils  are widely used among other company codes or sales org but no issues what so ever.
    This one appears to be a peculiar case. Thanks for your time and suggestions for looking it over.
    Thank you..
    Best Regards,
    Ram

  • Dump run time error "dbif_rsql_sql_error"

    Hi guru's,
    I have a genric data source with function module which feeds data to a genric ods in bw.
    But at time of data upload i see quality status in manage of ods green saying (0 of 0 records extracted) but it asks me to check dump in st22 which is as follows
    Runtime Errors     DBIF_RSQL_SQL_ERROR
    Exception     CX_SY_OPEN_SQL_DB
           Occurred on     21.11.2006 at 23:57:48     
    An SQL error occurred when accessing a table.
    What happened?
    What can you do?
    Make a note of the actions and input which caused the error.
    To resolve the problem, contact your SAP system administrator.
    You can use transaction ST22 (ABAP Dump Analysis) to view and administer
    termination messages, especially those beyond their normal deletion
    date.
    Error analysis
    An exception occurred. This exception is dealt with in more detail below
    . The exception, which is assigned to the class 'CX_SY_OPEN_SQL_DB', was
    neither
    caught nor passed along using a RAISING clause, in the procedure
    "ZL3_BW_SALES_ORDER_ITEM" "(FUNCTION)"
    Since the caller of the procedure could not have expected this exception
    to occur, the running program was terminated.
    The reason for the exception is:
    How to correct the error
    The exception must either be prevented, caught within the procedure
    "ZL3_BW_SALES_ORDER_ITEM"
    "(FUNCTION)", or declared in the procedure's RAISING clause.
    To prevent the exception, note the following:
    Database error text........: "ORA-01555: snapshot too old: rollback segment
    number 222 with name "_SYSSMU222$" too small"
    Internal call code.........: "[RSQL/FTCH/VBAP ]"
    Please check the entries in the system log (Transaction SM21).
    You may able to find an interim solution to the problem
    in the SAP note system. If you have access to the note system yourself,
    use the following search criteria:
    "DBIF_RSQL_SQL_ERROR" CX_SY_OPEN_SQL_DBC     
    "SAPLZL3_BW_VARIANT" or "LZL3_BW_VARIANTU03"
    "ZL3_BW_SALES_ORDER_ITEM"     
    If you cannot solve the problem yourself, please send the     
    following documents to SAP:
    1. A hard copy print describing the problem.
       To obtain this, select the "Print" function on the current screen.
    2. A suitable hardcopy prinout of the system log.
       To obtain this, call the system log with Transaction SM21
       and select the "Print" function to print out the relevant
       part.
    3. If the programs are your own programs or modified SAP programs,
       supply the source code.
       To do this, you can either use the "PRINT" command in the editor or
       print the programs using the report RSINCL00.
    4. Details regarding the conditions under which the error occurred
       or which actions and input led to the error.
    System environment
    SAP Release.............. "620"
    Application server....... "wieap053"
    Network address.......... "10.50.197.53"
    Operating system......... "HP-UX"
    Release.................. "B.11.23"
    Hardware type............ "ia64"
    Character length......... 8 Bits
    Pointer length........... 64 Bits
    Work process number...... 1
    Short dump setting....... "full"
    Database server.......... "wieap007"
    Database type............ "ORACLE"
    Database name............ "P00"
    Database owner........... "SAPR3"
    Character set............ "en_US.iso88591"
    SAP kernel............... "640"
    Created on............... "May 21 2006 20:37:10"
    Created in............... "HP-UX B.11.23 U ia64"
    Database version......... "OCI_920 "
    Patch level.............. "129"
    Patch text............... " "
    Supported environment....
    Database................. "ORACLE 9.2.0.., ORACLE 10.1.0.., ORACLE
    10.2.0.."
    SAP database version..... "640"
    Operating system......... "HP-UX B.11"
    User, transaction...
    Client.............. 001
    User................ "RFC_P92"
    Language key........ "E"
    Transaction......... " "
    Program............. "SAPLZL3_BW_VARIANT"
    Screen.............. "SAPMSSY0 1000"
    Screen line......... 6
    Information on where termination occurred
    The termination occurred in the ABAP program "SAPLZL3_BW_VARIANT" in
    "ZL3_BW_SALES_ORDER_ITEM".
    The main program was "SBIE0001 ".
    The termination occurred in line 240 of the source code of the (Include)
    program "LZL3_BW_VARIANTU03"
    of the source code of program "LZL3_BW_VARIANTU03" (when calling the editor
    2400).
    The program "SAPLZL3_BW_VARIANT" was started as a background job.
    Processing was terminated because the exception "CX_SY_OPEN_SQL_DB" occurred in
    the
    procedure "ZL3_BW_SALES_ORDER_ITEM" "(FUNCTION)" but was not handled locally,
    not declared in the
    RAISING clause of the procedure.
    The procedure is in the program "SAPLZL3_BW_VARIANT ". Its source code starts
    in line 5
    of the (Include) program "LZL3_BW_VARIANT$03 ".
    Source code extract
    002100                  a~werks
    002110                  c~edatu
    002120                  a~aedat
    002130                  a~erdat
    002140           FROM  ( vbap AS a
    002150                   INNER JOIN vbak AS b
    002160                     ON  a~vbeln = b~vbeln
    002170                     AND b~vbtyp = 'W'                      "C0006-R2
    002180                   INNER JOIN vbep AS c
    002190                     ON  a~vbeln = c~vbeln
    002200                     AND a~posnr = c~posnr
    002210                     AND c~etenr = '1' )
    002220           WHERE  a~vbeln IN
    002230                ( SELECT objectid
    002240                  FROM   cdhdr
    002250                  WHERE  objectclas = 'VERKBELEG'
    002260     *               AND    tcode      = 'VA02'
    002270                  AND    udate     IN l_r_aedat )
    002280           OR     a~erdat IN l_r_aedat.
    002290
    002300         ENDIF.                          "Full or Delta ?
    002310       ENDIF.                             "First data package ?
    002320
    002330     * Fetch records into e_t_data
    002340
    002350         FETCH NEXT CURSOR s_cursor
    002360                    INTO CORRESPONDING FIELDS
    002370                    OF TABLE l_t_data
    002380                    PACKAGE SIZE s_s_if-maxsize.
    002390
         >       IF sy-subrc <> 0.
    00241     0
    002420         CLOSE CURSOR s_cursor.
    002430
    002440     ** Do not insert the upload date in the timestamp table when testing on
    002450     ** the R/3 system
    002460     *      IF  SY-TCODE <> 'RSA3'
    002470     *      AND SY-TCODE <> 'RSO2'
    002480     *      AND SY-TCODE <> 'SE37'
    002490     *      AND I_READ_ONLY IS INITIAL.
    002500     *
    002510     *        ls_zl3_bw_timest-upload_date = sy-datum.
    002520     *        ls_zl3_bw_timest-oltpsource  = s_s_if-dsource.
    002530     *
    002540     *        INSERT INTO zl3_bw_timest VALUES ls_zl3_bw_timest.
    002550     *
    002560     *      ENDIF.
    002570
    002580         RAISE no_more_data.
    002590       ENDIF.
    Contents of system fields
    SY field          contents.....................          SY field          contents.....................
    SY-SUBRC          0          SY-INDEX          1     
    SY-TABIX      1     SY-DBCNT      1
    SY-FDPOS      0     SY-LSIND      0
    SY-PAGNO      0     SY-LINNO      1
    SY-COLNO      1     SY-PFKEY     
    SY-UCOMM     
    SY-TITLE      Data extraction using SUBMIT_JOB as batch process
    SY-MSGTY      E     SY-MSGID      BM
    SY-MSGNO      026     SY-MSGV1     
    SY-MSGV2          SY-MSGV3     
    SY-MSGV4     
    Active calls / events
    No.... Type........ Name..........................
           Program
           Include                                  Line
           Class
         9 FUNCTION     ZL3_BW_SALES_ORDER_ITEM     
           SAPLZL3_BW_VARIANT
           LZL3_BW_VARIANTU03                         240
         8 FUNCTION     RSA3_GET_DATA_SIMPLE
           SAPLRSA3
           LRSA3U06                                    74
         7 FORM         EXTRACTOR_FETCH
           %_T002T1
           ???                                          0
         6 FORM         EXTRACT_EAPI_INTO_QUEUE
           %_T002T1
           ???                                          0
         5 FUNCTION     RSC1_DELTA_BIW_GET
           SAPLRSC1
           LRSC1U03                                   390
         4 FORM         DATA_TRANSFER
           GP3Z7WZZ1QZLIWHNBB8PBL5TTS7
           GP3Z7WZZ1QZLIWHNBB8PBL5TTS7                128
         3 FUNCTION     RSAP_DATA_TRANSFER
           SAPLRSAP
           LRSAPU06                                   137
         2 FUNCTION     RSAP_PERFORM_EXTRACTION
           SAPLRSAP
           LRSAPU19                                   135
         1 EVENT        START-OF-SELECTION
           SBIE0001
           SBIE0001                                    60
    Chosen variables
         9 FUNCTION     ZL3_BW_SALES_ORDER_ITEM
           SAPLZL3_BW_VARIANT
           LZL3_BW_VARIANTU03                         240
    I_DSOURCE          ZL3_BW_SALES_ORDER_ITEM     
                                   543545554445545445545442222222
                                   AC3F27F31C53FF2452F945D0000000
    I_INITFLAG          
                                   2
                                   0
    I_MAXSIZE          050000
                                   333333
                                   050000
    I_READ_ONLY          
                                   2
                                   0
    I_REQUNR          REQU_43VWUSBH207E5H8W64KGNKSPN
                                   545553355554433343435334444554
                                   2515F436753282075588764B7EB30E
    E_T_DATA[]          Table IT_1937[0x103]
    I_T_FIELDS[]          Table IT_1917[13x30]
    I_T_SELECT[]          Table IT_1916[1x123]
    <%_TABLE_CDHDR>          ???
    %_DUMMY$$          
                                   2222
                                   0000
    SY-REPID          SAPLZL3_BW_VARIANT
                                   5454543545554544452222222222222222222222
                                   310CAC3F27F61291E40000000000000000000000
    SYST-REPID          SAPLZL3_BW_VARIANT
                                   5454543545554544452222222222222222222222
                                   310CAC3F27F61291E40000000000000000000000
    <%_TABLE_ZL3_VARIANT_CONF>          ???
    L_R_AEDAT[]          Table IT_1938[1x19]
    %_SPACE          
                                   2
                                   0
    S_S_IF-MAXSIZE          050000
                                   333333
                                   050000
    S_CURSOR          20
                                   0001
                                   0004
    L_T_DATA[]          Table IT_1939[0x111]
    SY-SUBRC          0
                                   0000
                                   0000
    SY-UZEIT          220930
                                   333333
                                   220930
    L_T_DATA                    00000000000000              ##
                                   2222222222333333333333332222222222222200
                                   0000000000000000000000000000000000000000
    ... +           40          ######
                                   0000002222222222222222222222222222222222
                                   00000C0000000000000000000000000000000000
    ... +           80                 000000000000000000000000
                                   2222222333333333333333333333333
                                   0000000000000000000000000000000
    %_PRINT              001SBIE0001_RFC
                                   2222333544433335544222222222222222222222
                                   000000132950001F263000000000000000000000
    ... +           40          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +           80                   X8 ###A###PX_PAPER          DRF
                                   2222222225320004000555545452222222222454
                                   000000000880000100008F010520000000000426
    ... +          120          C_P92                             LIST1S
                                   4553322222222222222222222222222222445535
                                   3F09200000000000000000000000000000C93413
    ... +          160          TEXT        1 5D              2 ###Y
                                   545522222222323422222222222222320015
                                   4584000000001054000000000000002000E9
    L_T_DATA-AEDAT          00000000
                                   33333333
                                   00000000
         8 FUNCTION     RSA3_GET_DATA_SIMPLE
           SAPLRSA3
           LRSA3U06                                    74
    I_CHABASNM               
                                   222222222222222222222222222222
                                   000000000000000000000000000000
    I_DATAPAKID          000000
                                   333333
                                   000000
    I_INITFLAG          
                                   2
                                   0
    I_ISOURCE          
                                   222222222222222222222222222222
                                   000000000000000000000000000000
    I_MAXSIZE          000000
                                   333333
                                   000000
    I_REQUNR          REQU_43VWUSBH207E5H8W64KGNKSPN
                                   545553355554433343435334444554
                                   2515F436753282075588764B7EB30E
    I_RLOGSYS          
                                   2222222222
                                   0000000000
    I_UPDMODE          
                                   22
                                   00
    E_T_DATA[]          Table IT_1937[0x103]
    I_T_FIELDS[]          Table[initial]
    I_T_SELECT[]          Table[initial]
    SY          ########################################
                                   0000000000000000000000000000000000000000
                                   000100000001000100000000000A000000000000
    ... +           40          ###############A#######P################
                                   0000000000000004000000050000000000000001
                                   0001000000010001000100000000000000000003
    ... +           80          ###################g####################
                                   0000000000000000000600000000000000000000
                                   0000000000000000000700000000000000000000
    ... +          120          #######################################T
                                   0000000000000000000000000000000000010005
                                   0000000000000000000000000000000000060004
    ... +          160          ################ u#############   E0X X1
                                   0000000000000001270000000000000222435253
                                   00000000000000E0050020000C0000C000508081
    ... +          200          000         ####__S                 001
                                   3332222222220000555222222222222222223332
                                   0000000000000000FF3000000000000000000010
    ... +          240               80
                                   222223322222222
                                   000008000000000
    S_S_IF_SIMPLE-T_FIELDS          Table IT_1917[13x30]
    S_S_IF_SIMPLE-T_SELECT          Table IT_1916[1x123]
    G_T_FIELDS          Table[initial]
    %_DUMMY$$          
                                   2222
                                   0000
    G_S_RODCHABAS          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +           40          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +           80          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +          120          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +          160          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +          200          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +          240          
                                   22222222222222
                                   00000000000000
    SY-REPID          SAPLRSA3
                                   5454554322222222222222222222222222222222
                                   310C231300000000000000000000000000000000
    RSAL_S_LOGPARMS-MSGV2          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +           40          
                                   2222222222
                                   0000000000
    G_T_LANGU          Table[initial]
    E_T_DATA                    00000000000000              ##
                                   2222222222333333333333332222222222222200
                                   0000000000000000000000000000000000000000
    ... +           40          ######
                                   0000002222222222222222222222222222222222
                                   00000C0000000000000000000000000000000000
    ... +           80                 0000000000000000
                                   22222223333333333333333
                                   00000000000000000000000
    S_S_IF_SIMPLE-INITFLAG          
                                   2
                                   0
    S_FNAME          ZL3_BW_SALES_ORDER_ITEM
                                   543545554445545445545442222222
                                   AC3F27F31C53FF2452F945D0000000
    S_S_IF_SIMPLE-DSOURCE          ZL3_BW_SALES_ORDER_ITEM
                                   543545554445545445545442222222
                                   AC3F27F31C53FF2452F945D0000000
    SY-XFORM          CONVERSION_EXIT
                                   444545544454545222222222222222
                                   3FE65239FEF5894000000000000000
    SY-XPROG          SAPCNVE
                                   5454454222222222222222222222222222222222
                                   3103E65000000000000000000000000000000000
    S_S_IF_SIMPLE-MAXSIZE          050000
                                   333333
                                   050000
    %_ARCHIVE          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +           40          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +           80          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +          120          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +          160          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +          200          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +          240          
                                   222222222222222
                                   000000000000000
    S_S_IF_SIMPLE-REQUNR          REQU_43VWUSBH207E5H8W64KGNKSPN
                                   545553355554433343435334444554
                                   2515F436753282075588764B7EB30E
    %_PRINT              001SBIE0001_RFC
                                   2222333544433335544222222222222222222222
                                   000000132950001F263000000000000000000000
    ... +           40          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +           80                   X8 ###A###PX_PAPER          DRF
                                   2222222225320004000555545452222222222454
                                   000000000880000100008F010520000000000426
    ... +          120          C_P92                             LIST1S
                                   4553322222222222222222222222222222445535
                                   3F09200000000000000000000000000000C93413
    ... +          160          TEXT        1 5D              2 ###Y
                                   545522222222323422222222222222320015
                                   4584000000001054000000000000002000E9
    G_S_INTERFACE          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +           40          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +           80                    000000   000000
                                   2222222222333333222333333
                                   0000000000000000000000000
    SYST-REPID          SAPLRSA3
                                   5454554322222222222222222222222222222222
                                   310C231300000000000000000000000000000000
         7 FORM         EXTRACTOR_FETCH
           %_T002T1
           ???                                          0
    SYST-REPID          %_T002T1     
                                   2553335322222222222222222222222222222222
                                   5F40024100000000000000000000000000000000
    E_T_DATA          Table IT_1937[0x103]
    SY-SUBRC          0
                                   0000
                                   0000
    I_REQUNR          REQU_43VWUSBH207E5H8W64KGNKSPN
                                   545553355554433343435334444554
                                   2515F436753282075588764B7EB30E
    SY-MSGV2          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +           40          
                                   2222222222
                                   0000000000
    SY-MSGNO          026
                                   333
                                   026
    %_DUMMY$$          
                                   2222
                                   0000
    SY-REPID          %_T002T1
                                   2553335322222222222222222222222222222222
                                   5F40024100000000000000000000000000000000
         6 FORM         EXTRACT_EAPI_INTO_QUEUE
           %_T002T1
           ???                                          0
    G_TABIX          1     
                                   0000
                                   0001
    SY          ########################################
                                   0000000000000000000000000000000000000000
                                   000100000001000100000000000A000000000000
    ... +           40          ###############A#######P################
                                   0000000000000004000000050000000000000001
                                   0001000000010001000100000000000000000003
    ... +           80          ###################g####################
                                   0000000000000000000600000000000000000000
                                   0000000000000000000700000000000000000000
    ... +          120          #######################################T
                                   0000000000000000000000000000000000010005
                                   0000000000000000000000000000000000060004
    ... +          160          ################ u#############   E0X X1
                                   0000000000000001270000000000000222435253
                                   00000000000000E0050020000C0000C000508081
    ... +          200          000         ####__S                 001
                                   3332222222220000555222222222222222223332
                                   0000000000000000FF3000000000000000000010
    ... +          240               80
                                   222223322222222
                                   000008000000000
    I_REQUNR          REQU_43VWUSBH207E5H8W64KGNKSPN
                                   545553355554433343435334444554
                                   2515F436753282075588764B7EB30E
    L_T_DATA          Table IT_1937[0x103]
    C_SUBRC          0
                                   0000
                                   0000
    I_OSOURCE          ZL3_BW_SALES_ORDER_ITEM
                                   543545554445545445545442222222
                                   AC3F27F31C53FF2452F945D0000000
    %_ARCHIVE          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +           40          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +           80          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +          120          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +          160          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +          200          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +          240          
                                   222222222222222
                                   000000000000000
         5 FUNCTION     RSC1_DELTA_BIW_GET
           SAPLRSC1
           LRSC1U03                                   390
    I_CHABASNM               
                                   222222222222222222222222222222
                                   000000000000000000000000000000
    I_DATAPAKID          000000
                                   333333
                                   000000
    I_INITFLAG          
                                   2
                                   0
    I_ISOURCE          
                                   222222222222222222222222222222
                                   000000000000000000000000000000
    I_MAXSIZE          000000
                                   333333
                                   000000
    I_PRIVATE_MODE          
                                   2222
                                   0000
    I_READ_ONLY          
                                   2
                                   0
    I_REQUNR          REQU_43VWUSBH207E5H8W64KGNKSPN
                                   545553355554433343435334444554
                                   2515F436753282075588764B7EB30E
    I_RLOGSYS          
                                   2222222222
                                   0000000000
    I_UPDMODE          
                                   22
                                   00
    E_T_DATA[]          Table IT_1926[0x103]
    I_T_FIELDS[]          Table[initial]
    I_T_SELECT[]          Table[initial]
    SBIWA_C_FLAG_OFF          
                                   2
                                   0
    L_PROGNAME          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    L_FUNCTION          /BIC/QIZL3_BW_SALES_ORD__10001
                                   244425454354555444554545533333
                                   F293F19AC3F27F31C53FF24FF10001
    L_T_QRFCRCV          Table IT_1936[1x56]
    L_SUBRC          0
                                   0000
                                   0000
    S_READ_ONLY          
                                   2
                                   0
    L_DELTA_TYPE          E
                                   4222
                                   5000
    RSAOT_C_DELTA-OWN          E
                                   4222
                                   5000
    SYST-REPID          SAPLRSC1
                                   5454554322222222222222222222222222222222
                                   310C233100000000000000000000000000000000
    RSAOT_C_DELTA-ALE          A
                                   4222
                                   1000
    L_NO_MORE_DATA          
                                   2
                                   0
    L_UPDMODE          D
                                   42
                                   40
    SBIWA_C_UPDMODE_DELTA          D
                                   42
                                   40
    RSAL_SAVE_SUBRC          0
                                   0000
                                   0000
    L_POOLNAME          %_T002T1
                                   2553335322222222222222222222222222222222
                                   5F40024100000000000000000000000000000000
    S_S_ROIS-ISOURCE          ZL3_BW_SALES_ORDER_ITEM
                                   543545554445545445545442222222
                                   AC3F27F31C53FF2452F945D0000000
    G_FLAG_INTERFACE_INITIALIZED          X
                                   5
                                   8
    <%_TABLE_ROOSPRMSC>          ???
    %_SPACE          
                                   2
                                   0
    SYST          ########################################
                                   0000000000000000000000000000000000000000
                                   000100000001000100000000000A000000000000
    ... +           40          ###############A#######P################
                                   0000000000000004000000050000000000000001
                                   0001000000010001000100000000000000000003
    ... +           80          ###################g####################
                                   0000000000000000000600000000000000000000
                                   0000000000000000000700000000000000000000
    ... +          120          #######################################T
                                   0000000000000000000000000000000000010005
                                   0000000000000000000000000000000000060004
    ... +          160          ################ u#############   E0X X1
                                   0000000000000001270000000000000222435253
                                   00000000000000E0050020000C0000C000508081
    ... +          200          000         ####__S                 001
                                   3332222222220000555222222222222222223332
                                   0000000000000000FF3000000000000000000010
    ... +          240               80
                                   222223322222222
                                   000008000000000
    SBIW_C_TRUE          X
                                   5
                                   8
    SY-REPID          SAPLRSC1
                                   5454554322222222222222222222222222222222
                                   310C233100000000000000000000000000000000
    QS_NOSENDS          NOSENDS
                                   44544452
                                   EF35E430
         4 FORM         DATA_TRANSFER
           GP3Z7WZZ1QZLIWHNBB8PBL5TTS7
           GP3Z7WZZ1QZLIWHNBB8PBL5TTS7                128
    SY-SUBRC          0     
                                   0000
                                   0000
    SY-REPID          GP3Z7WZZ1QZLIWHNBB8PBL5TTS7
                                   4535355535544544443544355532222222222222
                                   703A77AA11AC978E22802C544370000000000000
    SPACE          
                                   2
                                   0
    SYST-REPID          GP3Z7WZZ1QZLIWHNBB8PBL5TTS7
                                   4535355535544544443544355532222222222222
                                   703A77AA11AC978E22802C544370000000000000
    %_DUMMY$$          
                                   2222
                                   0000
    P_S_REQUEST-UPDMODE          D
                                   42
                                   40
    SBIWA_C_UPDMODE_DELTA          D
                                   42
                                   40
    SBIWA_C_UPDMODE_REPEAT          R
                                   52
                                   20
    SRSC_C_UPDMODE_INITSIMU          S
                                   52
                                   30
    SBIWA_C_UPDMODE_DELTAINIT          C
                                   42
                                   30
    %_ARCHIVE          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +           40          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +           80          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +          120          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +          160          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +          200          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +          240          
                                   222222222222222
                                   000000000000000
    L_FNAME          RSC1_DELTA_BIW_GET
                                   554354445454455445222222222222
                                   2331F45C41F297F754000000000000
    P_S_REQUEST-REQUNR          REQU_43VWUSBH207E5H8W64KGNKSPN
                                   545553355554433343435334444554
                                   2515F436753282075588764B7EB30E
    RODKYF          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +           40          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +           80          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +          120          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +          160          
                                   22222222
                                   00000000
    L_T_ZL3_SALES          Table IT_1926[0x103]
    ROISGEN          ZL3_BW_SALES_ORDER_ITEM       PHD00
                                   5435455544455454455454422222225443322222
                                   AC3F27F31C53FF2452F945D00000000840000000
    ... +           40          PBW82     T                           /B
                                   5453322222522222222222222222222222222224
                                   02782000004000000000000000000000000000F2
    ... +           80          IC/CCPB0000000766           3Z7WZZ1QZLIW
                                   4424454333333333322222222222353555355445
                                   93F33020000000766000000000003A77AA11AC97
    ... +          120          HNBB8PBL5TTS7
                                   4444354435553222222222222222222222222222
                                   8E22802C54437000000000000000000000000000
    ... +          160                                           RFC_P92
                                   2222222222222222222222222222222225445533
                                   000000000000000000000000000000000263F092
    ... +          200               20060322161543            000000000
                                   2222233333333333333222222222222333333333
                                   0000020060322161543000000000000000000000
    ... +          240          00000
                                   33333
                                   00000
    ROIST          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +           40          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +           80          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +          120          
                                   2222222222222222222222222222222
                                   0000000000000000000000000000000
    %_PRINT              001SBIE0001_RFC
                                   2222333544433335544222222222222222222222
                                   000000132950001F263000000000000000000000
    ... +           40          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +           80                   X8 ###A###PX_PAPER          DRF
                                   2222222225320004000555545452222222222454
                                   000000000880000100008F010520000000000426
    ... +          120          C_P92                             LIST1S
                                   4553322222222222222222222222222222445535
                                   3F09200000000000000000000000000000C93413
    ... +          160          TEXT        1 5D              2 ###Y
                                   545522222222323422222222222222320015
                                   4584000000001054000000000000002000E9
         3 FUNCTION     RSAP_DATA_TRANSFER
           SAPLRSAP
           LRSAPU06                                   137
    I_ISOURCE          ZL3_BW_SALES_ORDER_ITEM     
                                   543545554445545445545442222222
                                   AC3F27F31C53FF2452F945D0000000
    I_S_REQUEST          REQU_43VWUSBH207E5H8W64KGNKSPNDZL3_BW_SA
                                   5455533555544333434353344445544543545554
                                   2515F436753282075588764B7EB30E4AC3F27F31
    ... +           40          LES_ORDER_ITEM       20061121210928RFC_B
                                   4455454455454422222223333333333333354454
                                   C53FF2452F945D000000020061121210928263F2
    ... +           80          W      PHD00     PBW82     000000D T  X
                                   5222222544332222254533222223333334252252
                                   7000000084000000002782000000000004040080
    ... +          120          X
                                   5
                                   8
    I_T_SELECT          Table IT_57[0x123]
    RODIOBJCMP                                        0000
                                   2222222222222222222222222222223333222222
                                   0000000000000000000000000000000000000000
    ... +           40          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +           80          
                                   22222222222222
                                   00000000000000
    L_S_LOGPARMS-MSGV3          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +           40          
                                   2222222222
                                   0000000000
    RODCHA          
                                   2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +           40          
                                   2222222222222222222222222

    Tell your basis guys
    "ORA-01555: snapshot too old: rollback segment"
    ie the job took too long for the current settings you have for rollbacks
    They will adjust the settings

  • Table in smartform throwing errors

    Hi,
    I was trying to create a table in a smartform. I have to display 5 colums from the table vbap based on certain conditions. I have created a table and a line type. And based on this line type I have created 5 cells under the header with text elements having the name of the columns. I then created the same 5 cells in main area with the text elements having the value within &.. I have added a loop also in the data tab of the table. However when i test the smart for it throws an error "No other column available". Is this the right procedure to create a table?

    I got it..thanks..

Maybe you are looking for