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: 

hi adding code in standard prog

Former Member
0 Kudos

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

7 REPLIES 7

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi ,

Can you please tell me in which FORM in the include J_1IEWT_CERT_F01

you have wriiten your code.

Former Member
0 Kudos
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.

0 Kudos

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.

Former Member
0 Kudos

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

sreeramkumar_madisetty
Active Contributor
0 Kudos

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