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

data transfer

Former Member
0 Likes
531

Hi experts,

I have uploaded flatfile into itab.I have splitted itab-record at comma and populated itab1. This itab has quantity field of type char13. This itab is to be passed to bapi_requisition_create.Instead of itab,I am passing itab1, which has quantity field of type p. For this, I am doing like this,

wa_itab1-quantity (type p) = wa_itab-quantity ( type char13).

The error is , type p cannot access the subfield. How can one pass the char field to quantity field.

Please suggest.

Rgds,

khadeer.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
504

REPLACE ',' with '.' into variable. it will accept the .(dot) then pass it.

or

REPLACE ',' with '' into varible .

CONDENSE varivale NO-GAPS.

3 REPLIES 3
Read only

former_member156446
Active Contributor
0 Likes
504

Check this code:

*DATA: char TYPE char16 VALUE '449,00',
*      p(13) TYPE p DECIMALS 2.
*
*REPLACE ALL OCCURRENCES OF ',' IN char WITH space.
*
*p = char.
*
*p = p / 100.  " now use this value to pass to BAPI
*
*WRITE: p.

Read only

Former Member
0 Likes
504

Hello,

I think you are passing data to the tables parameter REQUISITION_ITEMS which is associated with type BAPIEBANC.

Now the QUANTITY field in it is of data type QUAN.

So I think you need to convert your quantity field in your internal table to type QUAN.

Regards

Arindam

Read only

Former Member
0 Likes
505

REPLACE ',' with '.' into variable. it will accept the .(dot) then pass it.

or

REPLACE ',' with '' into varible .

CONDENSE varivale NO-GAPS.