12-21-2006 3:58 AM
Hi,
I written the code as below in that i have the data in the ITAB15 but in the write statement i cant get the output only for matnr,maktx,meins and soq fields iam getting the data for the rest i have the data in the ITAB15 but it is displaying.pls check my code and solve my problem.
LOOP AT ITAB15.
WA = ITAB15.
FORMAT color COL_TOTAL.
WRITE:/ WA-MATNR(18),20 WA-MAKTX(40),61 WA-MEINS(3),66 WA-AVGDM(7),76 WA-LABST(7),86 WA-AVAIL(7),97 WA-DEFIN1(7),107 WA-DEFIN2(7),117 WA-DEFIN3(7),127 WA-DEFIN4(7),137 WA-OTHERS(7),147 WA-TOTAL(7),157 WA-SOQ(7).
FORMAT RESET.
ENDAT.
ENDLOOP.
Thanks,
Regards,
Rajendra.
12-21-2006 4:21 AM
THEN I THINK YOU HAVE SPECIFIED THE POSITION THAT IS MERGING IN SOME CASE JUST TRY TO USE WITHOUT GIVING ANY POSITION. THEN CHECK WHETHER IT IS COMING OR NOT.
REGARDS
SHIBA DUTTA
12-21-2006 4:02 AM
Hi,
loop at itab15.
write : / itab-matnr, itab-maktx, itab-meins, itab-soq.
endloop.
If you are getting the output for the above code,the position you used may be the problem.check that.Otherwise,no data in the itab15 for those fields.
12-21-2006 4:07 AM
Hi,
I am getting the data in ITAB15. and you told me about the position and pls detail about that.
Thanks,
Rajendra.
12-21-2006 4:05 AM
Hi,
Check ur internal table , i believe there is no data for the remaining fields .
12-21-2006 4:09 AM
Hi ,
Please check if you have value in MATNR , MAKTX and MEINS in the work area WA.
If there is a value , please try printing these fields only and see , if they are displayed.
Regards
Arun
12-21-2006 4:09 AM
hi
first of all i am sorry i cannot see any AT statement for which you have written endat.
after wa-matnr(18) it will automatic take how much length you have specified in internal table so no need of (18) after wa-matnr.
if you want to specify legyh of output then use it in front.
i.e. write : /1(18) wa-matnr.....like this....
check your internal table also whether it contains data or not.
regards
shiba dutta
12-21-2006 4:18 AM
Hi Shiba Dutta,
Sorry that endat is commented,i have the data in the internal table itab15 aswell as in WA also.even when i click that wa-total i can see the data in the dedugg mode.dut when i execute and see i cant see the output in the screen.
Thanks,
Rajendra.
12-21-2006 4:21 AM
THEN I THINK YOU HAVE SPECIFIED THE POSITION THAT IS MERGING IN SOME CASE JUST TRY TO USE WITHOUT GIVING ANY POSITION. THEN CHECK WHETHER IT IS COMING OR NOT.
REGARDS
SHIBA DUTTA
12-21-2006 4:26 AM
Hi,
You are correct it is merging,but how to set as per the measurment.i want to display the data under as i decleare the header.
Thanks,
Rajendra.
12-21-2006 4:25 AM
hi
good
debug the program and checak wheather data is coming to the fields of work area or not.you must have already defined the work area in the top than i dont think there is any use of write
WA = ITAB15.
check this and try again.otherwise i think your code is ok.
thanks
mrutyun^