‎2007 Aug 29 10:30 AM
Its a need to modify a standard SAP program. I have a curreycy field(QBSHB) in a standard structure. Now i have to make that variable a type integer for roundinf off which is a CURR field in that structure.
Now at end of this loop i have a MODIFY statement. So before that i have a apply my logic for rounding off that particular CURR field.My question is how can i assign it to an type I ?or in the loop how can i define a workarea of type I?
some part of loop is given?
I_WITH_ITEM-WT_QBSHB = I_WITH_ITEM-WT_QBSHH *
i_with_item-wt_qbshb = refe0 *
h_kursteiler / h_kursfaktor.
i_with_item-wt_qbsh2 = i_with_item-wt_qbshb *
h_kursfaktor2 / h_kursteiler2.
i_with_item-wt_qbsh3 = i_with_item-wt_qbshb *
h_kursfaktor3 / h_kursteiler3.
i_with_item-wt_qbshb = i_with_item-wt_qbuihb *
i_with_item-wt_qbshh / i_with_item-wt_qbuihh.
‎2007 Aug 29 10:32 AM
amke a zcopy of report and modify.its not advisable to modify standard report even if u get access key....
reward points if it helps
‎2007 Aug 29 10:33 AM
‎2007 Aug 29 10:37 AM
den make a zcopy of dis report..and add ur code dere...dont make changes in da standard....
‎2007 Aug 29 10:42 AM
U R not coming to the point. Its decided that it will be modified? Can u tell me the logic for my problem???
‎2007 Aug 29 10:48 AM
go to definition of internal table and change type of ur variable as p decimals 0.
‎2007 Aug 29 10:51 AM
the internal table is defined as SAP standard structure which i cant modify.So what to do????
‎2007 Aug 29 11:00 AM
declare ur own internal table in program, keeping all feilds same as sap standard structure and changing only the type of ur required field.
types begin of it1,
.
.
.,
endof it1.
data <name of internal table used in program> type table of it1 with header line.
‎2007 Aug 29 11:26 AM
Thanks for ur suggession ,,,but i have found my own solution by me....
‎2007 Aug 29 11:27 AM