‎2009 Mar 23 3:48 PM
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.
‎2009 Mar 24 7:33 AM
REPLACE ',' with '.' into variable. it will accept the .(dot) then pass it.
or
REPLACE ',' with '' into varible .
CONDENSE varivale NO-GAPS.
‎2009 Mar 23 8:21 PM
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.
‎2009 Mar 24 3:37 AM
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
‎2009 Mar 24 7:33 AM
REPLACE ',' with '.' into variable. it will accept the .(dot) then pass it.
or
REPLACE ',' with '' into varible .
CONDENSE varivale NO-GAPS.