Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3523

THE TYPE OF DATABASE TABLE AND WORK AREA (OR INTERNAL TABLE) "IT_ZBANK" ARE NOT UNICODE CONVERTIBLE

$
0
0

Hi Experts,

 

I just created database table(zbank)  with these fields

ACC_NO 

CUST_NAME

CUST_CITY

AND also I just created module pool program in  layout options I designed  above table fields and ONE PUSH BUTTON   when ever I click on PUSH BUTTON  data should be saved in database table

 

the code be following........

 

 

DATA: IP1 TYPE I,      {    IP1 , IP2 , IP3  are the  input fields in module pool  layout        }
      IP2 TYPE C,
      IP3 TYPE C.

 

TYPES : BEGIN OF TY_ZBANK,                   {   these fields are database fields (zbank)
  ACC_NO TYPE I,
CUST_NAME(15) TYPE C ,                                                                                                      }
CUST_CITY(15) TYPE C,
END OF TY_ZBANK.

 

DATA : IT_ZBANK TYPE TABLE OF TY_ZBANK,
        WA_ZBANK LIKE LINE OF IT_ZBANK.
*&---------------------------------------------------------------------*
*&      Module  STATUS_0100  OUTPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE STATUS_0100 OUTPUT.
  SET PF-STATUS 'STATUS'.
*  SET TITLEBAR 'xxx'.

 

ENDMODULE.                 " STATUS_0100  OUTPUT
*&---------------------------------------------------------------------*
*&      Module  USER_COMMAND_0100  INPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE USER_COMMAND_0100 INPUT.

 

CASE SY-UCOMM.

 

    WHEN 'BACK'.

 

    LEAVE PROGRAM.

 

    WHEN 'SAVE'.

 

      WA_ZBANK-ACC_NO =  IP1 .
      WA_ZBANK-CUST_NAME  =   IP2.
      WA_ZBANK-CUST_CITY  =   IP3.

 

    INSERT ZBANK FROM TABLE IT_ZBANK .

 


ENDCASE.

 

ENDMODULE.                 " USER_COMMAND_0100  INPUT

 

please help experts  ..I am getting error is   " THE TYPE OF DATABASE TABLE AND WORK AREA (OR INTERNAL TABLE) "IT_ZBANK" ARE NOT UNICODE CONVERTIBLE  "


Viewing all articles
Browse latest Browse all 3523

Trending Articles