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

unit test and program

Hi all,

I created Ztable and i created table maintenance generator and Tcode for Ztable .

Now my query is I want to create program for ztable to test the data.

plz provide me the program and unit test plan for ztable.its urgent.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 12, 2007 at 05:33 AM

    HI,

    Your requirement is too high. It is you who has to code as you want the program to perform.

    Or get the actual requirement from the users, and start coding using selection-screens or through dialog module.

    Regards

    Subramanian

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 12, 2007 at 07:13 AM

    types: begin of ty_data.

    include structure ztable. "your ztable name

    types: end of ty_data.

    data: it_data type standard table of ty_data with header line.

    insert the data into internal table as per the requirement and insert the values from internal table to ztable.

    like.

    INSERT ztable FROM TABLE it_data.

    COMMIT WORK.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 12, 2007 at 08:38 AM

    Hi,

    Please check if this helps.

    MODIFY s076 FROM TABLE i_final2.

    IF sy-subrc = 0.

    MESSAGE s900 WITH text-007."Data inserted into table S076

    ENDIF.

    ELSE.

    MESSAGE s900 WITH text-012."Data not inserted into table S076

    ENDIF.

    You can display such messages in your program output screen after the datas are inserted into the ztable.

    regards,

    Priya.

    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.