Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

problem in sending an internal table data to application layer

Former Member
0 Likes
895

i have an internal table

DATA : BEGIN OF I_DPAYH OCCURS 0,

ECS_TCODE TYPE char2 VALUE '66',

ZBKON TYPE DPAYH-ZBKON,

LEDGER_FOLIO TYPE Char3 ,

ZBNKN TYPE DPAYH-ZBNKN,

ZNME1 TYPE DPAYH-ZNME1,

MICR TYPE char9 VALUE '40021102',

USER_NO TYPE char7 VALUE '4009175',

DESP TYPE char20 VALUE 'MAHANAGAR GAS LTD',

MASTR TYPE DPAYH-MASTR,

RBETR TYPE DPAYH-RBETR, -


> "

LAUFI TYPE DPAYH-LAUFI,

ORIGN TYPE DPAYH-ORIGN,

END OF I_DPAYH.

the arrow mark field is of currency data type and the problem

is that in application server on character data type it accept

thats why i have changed all the fields as character data type

except RBETR field all the data is transfferd except this field

regards

sarfaraz

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
868

Hi,

In the file transfering to the application server we can pass only char type field so u need to convert the field into char and send it is taking .

PLzz reward points if it helps.

i have an internal table

DATA : BEGIN OF I_DPAYH OCCURS 0,

ECS_TCODE TYPE char2 VALUE '66',

ZBKON TYPE DPAYH-ZBKON,

LEDGER_FOLIO TYPE Char3 ,

ZBNKN TYPE DPAYH-ZBNKN,

ZNME1 TYPE DPAYH-ZNME1,

MICR TYPE char9 VALUE '40021102',

USER_NO TYPE char7 VALUE '4009175',

DESP TYPE char20 VALUE 'MAHANAGAR GAS LTD',

MASTR TYPE DPAYH-MASTR,

RBETR TYPE DPAYH-RBETR, -


> "

LAUFI TYPE DPAYH-LAUFI,

ORIGN TYPE DPAYH-ORIGN,

END OF I_DPAYH.

the arrow mark field is of currency data type and the problem

is that in application server on character data type it accept

thats why i have changed all the fields as character data type

except RBETR field all the data is transfferd except this field

regards

sarfaraz

6 REPLIES 6
Read only

Former Member
0 Likes
869

Hi,

In the file transfering to the application server we can pass only char type field so u need to convert the field into char and send it is taking .

PLzz reward points if it helps.

Read only

0 Likes
868

how can i convert currency data type into character

DATA :BEGIN OF ITAB OCCURS 0,

ZNME1 TYPE DPAYH-ZNME1,

MICR TYPE char9 VALUE '40021102',

USER_NO TYPE char7 VALUE '4009175',

DESP TYPE char20 VALUE 'MAHANAGAR GAS LTD',

MASTR TYPE DPAYH-MASTR,

RBETR TYPE DPAYH-RBETR,------->

END OF ITAB.

RBETR IS CURRENCY DATA TYPE

Read only

0 Likes
868

Hi,

Define RBETR as char variable and assing currency value directly to it.

Data: RBETR type char13.

Read only

0 Likes
868

Hi Shaik

Within your ITAB declaration, declare RBETR as character data type something like CHAR 17.

Kind Regards

Eswar

Read only

0 Likes
868

when iam doing converting currency into char

Data: RBETR type char13

writing

SELECT RBETR

FROM DPAYH INTO CORRESPONDING FIELDS OF

I_DPAYH .

it is giving error when transffering in application server

and giving the error

( The current statement is only defined for character-type data objects.)

Read only

Former Member
0 Likes
868

Hi Sarfraz,

we have decalre that filed like this ok..

RBETR LIKE VBAP-NETPR.

Here NETPR is a filed of type CURR.

Reward points if helpful.

Kiran Kumar.G.A

Have a Nice Day..