Application Development 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: 

Display report problem

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

9 REPLIES 9

jayanthi_jayaraman
Active Contributor
0 Kudos

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.

0 Kudos

Hi,

I am getting the data in ITAB15. and you told me about the position and pls detail about that.

Thanks,

Rajendra.

Sandeep_Kumar
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Check ur internal table , i believe there is no data for the remaining fields .

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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.

Former Member
0 Kudos

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

0 Kudos

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.

Former Member
0 Kudos

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^