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: 

scripts..

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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...

0 Kudos

Hi sharayu

can you please give me an example code for that

0 Kudos

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

0 Kudos

hi all,

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

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

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