cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Box Formatting in Scripts

Former Member
0 Kudos

Hi,

My requirement is ,

This is regarding to SAPScripts.

I should populate some data in a box.

The box should adjust depending upon the data.( Whether the data is 2 lines or 10 lines).

Help me out.

<REMOVED BY MODERATOR>

Edited by: Alvaro Tejada Galindo on Jul 8, 2008 11:21 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Manjunath,

Here is the code which can help you get the dynamic box's from the script.

Here the element is TAB.

There is a loop for this element in the driver program.

Here the code works this way the YORIGIN is incremented by 0.6CM each time it is in the loop thus drawing tables dynamically.

/E TAB

/: POSITION XORIGIN '0.9' CM YORIGIN '+0.6' CM

/: SIZE WIDTH '3.0' CM HEIGHT '0.6' CM

/: BOX FRAME 10 TW.

/: POSITION XORIGIN '3.9' CM

/: SIZE WIDTH '7.3' CM HEIGHT '0.6' CM

/: BOX FRAME 10 TW.

/: POSITION XORIGIN '11.2' CM

/: SIZE WIDTH '2.8' CM HEIGHT '0.6' CM

/: BOX FRAME 10 TW.

/: POSITION XORIGIN '14' CM

/: SIZE WIDTH '2.6' CM HEIGHT '0.6' CM

/: BOX FRAME 10 TW.

/: POSITION XORIGIN '16.6' CM

/: SIZE WIDTH '3.2' CM HEIGHT '0.6' CM

/: BOX FRAME 10 TW

P4 &X_VBAP-KWMENG(C)&,,&X_VBAP- ARKTX&,,&V_TOTALa&,,&V_TOTALb&,,&V_TOTALc&

Hope this Solves your Problem in dynamic Table drawings.

<REMOVED BY MODERATOR>

Thanks,

Tej..

Edited by: Alvaro Tejada Galindo on Jul 8, 2008 11:21 AM

Answers (0)