Skip to Content
0
Jan 29, 2008 at 08:59 AM

HOW TO SOLVE THIS????

214 Views

HI,

I HAVE WRITTEN THIS CODE, BUT FOR THE FIELD DMBTR IM NOT ABLE TO INPUT VALUE,I THINK FOR CURRENCY FEILD ITS NOT ALLOWING FIELD, BUT I NEED A AMOUNT FIELD FOR INPUT. SO HOW TO DO IT?

DATA: LIT_FIELDS LIKE SVAL OCCURS 0 WITH HEADER LINE.

DATA: LC_KURSF(10) TYPE C.

LIT_FIELDS-TABNAME = 'BSEG'.
LIT_FIELDS-FIELDNAME = 'VBELN'.
APPEND LIT_FIELDS.

LIT_FIELDS-TABNAME = 'BKPF'.
LIT_FIELDS-FIELDNAME = 'KURSF'.
APPEND LIT_FIELDS.


LIT_FIELDS-TABNAME = 'BSEG'.
LIT_FIELDS-FIELDNAME = 'DMBTR'.
APPEND LIT_FIELDS.

CALL FUNCTION 'POPUP_GET_VALUES'
 EXPORTING
   POPUP_TITLE           = 'Enter Details'
  START_COLUMN          = '50'
  START_ROW             = '05'
*   IMPORTING
*     RETURNCODE            =
 TABLES
   FIELDS                = LIT_FIELDS
EXCEPTIONS
  ERROR_IN_FIELDS       = 2
  OTHERS                = 3 .

CLEAR: LC_KURSF.