Skip to Content
author's profile photo Former Member
Former Member

hi adding code in standard prog

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2007 at 05: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2007 at 05: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2007 at 05:18 AM

    Hi ,

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

    you have wriiten your code.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 27, 2007 at 05: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.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2007 at 05: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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 27, 2007 at 05: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.