Application Development and Automation 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: 
Read only

scripts..

Former Member
0 Likes
802

Hi All,

i got a requirement to add some feilds to the the existing layout and remove some of them.

can any body explain me in detail how to do the necessary changes.

very urgent plzz...

Message was edited by:

ram g

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
777

1st know the location of the fields to be printed...

add those fields in the respectife window and under respective element...

e.g. * &fld1&

the value should be fetched (in fld1) in the main report before calling the element that prints fld1.

to remove the fields.. check if any other field is getting printed after that.. in same line.. then align the other field to get printed in usual location...

if some fields are getting printed in next line..then give one line space after deletinf the field.. to maintain previous spacings of fields...

7 REPLIES 7
Read only

Former Member
0 Likes
778

1st know the location of the fields to be printed...

add those fields in the respectife window and under respective element...

e.g. * &fld1&

the value should be fetched (in fld1) in the main report before calling the element that prints fld1.

to remove the fields.. check if any other field is getting printed after that.. in same line.. then align the other field to get printed in usual location...

if some fields are getting printed in next line..then give one line space after deletinf the field.. to maintain previous spacings of fields...

Read only

0 Likes
777

Hi sharayu

can you please give me an example code for that

Read only

0 Likes
777

how to know the exact location where we are going to insert the feild

Read only

0 Likes
777

hi all,

can any body help me i am struck with this.....

Read only

Former Member
0 Likes
777

Hi,

You need to debug and check all the fields & the values in each window.If you find the required fields you want to display, display only those fields in the appropriate window, comment all other fields.

(use Utilities-> Activate Debugger)

addind fields similarly you can add yourself by checking out the position in the layout.

Rewards if useful.

kavitha

Read only

0 Likes
777

Not yet got the correct help regarding the addition of feilds in scripts

Read only

0 Likes
777

1st look into the final print...

then as per the location of the field that you want to remove...

search for the window in the SAP Script..

you need to do some guess work.. otherwise... search for all the windows with similar structure...

In the Graphical form painter you can get the structure and spacing of all the windows...

still you dont fintd the desired field debug the script...

go to SE71.. in Utilities -> Activate debugger

now execute your TCODE which calls this SAPScript...

there you'l get SAPScript Debug window...

here do F5 to proceed like normal debugging...

you'l get your desired field somewhere in the debugging...

there note down the element and window name of the field..

and remove the field from the respective window element