on 12-23-2007 6:15 AM
hi gurus.
in my main window i have 3 fields.i copied from standard form
qm_insp_result.
ex.
result testmethod uom value spec.limits
1
2
3
i want to add another 2 fields in the main window i.evalue & spec.limits.please help me how to do.
please help me.....
thanks
subhasis
Hi Subhasis,
1st check whether these 2 fields r available in the layout or not.
if not,
create a subroutine-pool program in SE38 say ZNEW.
& from the layout call a subroutine of this program sending the value of the field for which data will be fetched. like
/: PERFORM SUB IN PROGRAM ZNEW
/: USING &fieldname1&
/: USING &fieldname2& " if required
/: CHANGING &EVAL&
/: CHANGING &SPEC&
/: ENDPERFORM
AND add this in ZNEW
FORM SUB TABLES IN_TAB STRUCTURE ITCSY
OUT_TAB STRUCTURE ITCSY.
IN_TAB has 2 columns NAME & VALUE,
NAME contains the filednames u r passing to this subroutine. i.e. fieldname1,fieldname2.
VALUE contains the values of the fields.
use READ statement to get the values & store in some local fields from IN_TAB.
fetch the corresponding value of EVAL, SPEC.
and then update the OUT_TAB that contains the fields to be sent to the layout set.
use MODIFY statement to update OUT_TAB.
ENDFORM.
Reward if useful
Regards
ANUPAM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.