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: 

unit test and program

Former Member
0 Kudos

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.

4 REPLIES 4

Former Member
0 Kudos

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

0 Kudos

hi,

can u plz send me the program for Ztable to load the data.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.