02-27-2007 4:59 AM
hi
i am adding code in standard program J_1IEWT_CERT. in that there is include
J_1IEWT_CERT_F01.
there is standard prog internal table printtab.
i am trying to pass printtab data into wa_printtab, but it not going into wa_printtab.
i writing following code:
loop at PRINTTAB into itab_printtab.
move ITAB_BKTXT-BKTXT to itab_PRINTTAB-cheque_no.
modify printtab from itab_printtab index 1.
endloop.
first data is not going into itab_printtab by loop syntax and it is not modifying as well.
pl help me as soon as possible.
thanx
rocky
02-27-2007 5:09 AM
Hi,
You are modifying the same itab printtab using the index and the work area
tryto change the code for the same and write the code according to your requirement
Regards
Shiva
02-27-2007 5:12 AM
hi,
try rewriting the code as:
loop at PRINTTAB.
move PRINTTAB to itab_printtab.
move ITAB_BKTXT-BKTXT to itab_PRINTTAB-cheque_no.
append itab_printtab.
clear itab_printtab.
endloop.
02-27-2007 5:18 AM
Hi ,
Can you please tell me in which FORM in the include J_1IEWT_CERT_F01
you have wriiten your code.
02-27-2007 5:18 AM
move ITAB_BKTXT-BKTXT
this has value or not?
itab_printtab is a work area or internal table?
PRINTTAB is an internal table with header line or not?
Specify the types over here so taht it will be helpful to solve ur query.
02-27-2007 5:29 AM
hi
everything is there but value is not moving from itab_printtab to printtab now.
itab_printtab is an internal table
printtab is an internal table.
i am getting value in printtab also but it gets blank once it get out of loop.
02-27-2007 5:30 AM
Hi,
try this its working for me.
REPORT ZKEERTHITEST.
tables: mara.
DATA: BEGIN OF IT_MARA occurs 0,
MATNR TYPE MARA-MATNR,
ERSDA TYPE MARA-ERSDA,
ERNAM TYPE MARA-ERNAM,
MTART TYPE MARA-MTART,
END OF IT_MARA.
data: wa_mara like line of it_mara.
select matnr ersda ernam into corresponding
fields of table it_mara up to 5 rows from mara.
loop at it_mara into wa_mara.
wa_mara-mtart = 'FERT'.
modify it_mara from wa_mara index 1.
endloop.
regards,
keerthi
02-27-2007 5:42 AM
Hi
Try to copy the standard program to the Z version along with the Includes in the standard program to the Z includes.
Now in the Z Includes or Z programs you can add your own functionality.
Regards,
kumar