cancel
Showing results for 
Search instead for 
Did you mean: 

regarding script

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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