01-12-2007 5:26 AM
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.
01-12-2007 5: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
01-12-2007 7:05 AM
01-12-2007 7: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.
01-12-2007 8: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.