cancel
Showing results for 
Search instead for 
Did you mean: 

Sciprt - Repeat Column headings for Item details in Main Window.

former_member242255
Active Contributor
0 Kudos

Hi,

I have to repeat the column headings for each line item in main window.How can this be done.

For example:

ItemNo material Quantity

0001 100-100 99.00

ItemNo material Quantity

0002 100-300 99.00

ItemNo material Quantity

0003 100-300 99.00

This i need to do in the main window while printing the item details.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

It is very much possible..

Follow the steps..

1. In your print program Put write_form function module in a Loop.. pass the element as Item_line (whatever in your case)..

and the window as Main..

2. Put the below code in script editor:

/E  ITEM_LINE
  /:  &zzItemNo&,, &zzmaterial&,, &zzQuantity&
  /:  &W_value-item&,, &w_value-MATNR&,, &w_value-MENGE&

One more thing for you.. There is a table calles TTDTG.. here you can maintain some user defined variables... Like zzmaterial.. maintain its text as Material Number.. and then you can use this ZZMATERIAL in sap script editor to diplay output as Material Number (On the layout)

I hope you got it....

Regs,

Lokesh.

Edited by: Lokesh Tarey on May 7, 2010 9:00 AM

Former Member
0 Kudos

HI,



/E  Elm

/*   ItemNo material Quantity

/* your items.

What i mean to say is write your header inside element.

Regards and Best wishes.

former_member242255
Active Contributor
0 Kudos

Thanks.But i have to get the shading(intensity) to the header box which is not happening.

Former Member
0 Kudos

for this you need to use Character format..

<B>&ZZITEM&</>,, <B>&ZZMATERIAL&</>

I am not able to print the code fully.. Dont know y.. But are you getting..

Here you need to create a Character format as B. B means Bold...

regs,

Lokesh.

Edited by: Lokesh Tarey on May 7, 2010 9:11 AM

former_member242255
Active Contributor
0 Kudos

Hi,

I need to get the box with shading for the column part.

item

quantity

material

The above should be in BOX and totally shaded with intensity.

Former Member
0 Kudos

Hello Sravan,

If you can add the logic in the driver program, then it canbe done as you required.

Please try to call the header data element for every item data element.

If suppose it is not possible, then you can put the header in the item data element so that it will be called every time. but here you can provide the character format (make it bold or italic ....) but the background shading may be possible but it seems difficult.

Regards,

Selva K.

Edited by: Selvakumar Krishnan on May 7, 2010 9:29 AM

Former Member
0 Kudos

Hi,

It is also possible to braw a box..

/: BOX XPOS 1 CM YPOS 2 CM WIDTH 3 CM HEIGHT 4 CM FRAME 10 TW INTENSITY 10

Please have a look on below link.. everything is given..

[http://help.sap.com/saphelp_45b/helpdata/en/65/897415dc4ad111950d0060b03c6b76/content.htm]

Put the header data in that..

Regs,

Lokesh.