‎2010 Feb 17 1:43 PM
Hi all,
I am unable to create dynamic box in sap script.
Because the printing lines in the main window changing from one customer to another customer.
So could you please guide me how to create a dynamic box in sap script and also how to know the printing line nunber in main window.
Advance thanks for your suggestion
Regards,
Sudhakar.
‎2010 Feb 17 2:22 PM
‎2010 Feb 17 2:56 PM
Hi ,
how will provide the values of height and width dynamically.
Regards
Sudhakar
‎2010 Feb 18 6:33 AM
‎2010 Feb 22 12:15 PM
In script form u can write following code
/: DEFINE &MY_XPOS& = ' '
/: DEFINE &MY_YPOS& = ' '
/: DEFINE &MY_HEIGHT& = ' '
/: DEFINE &MY_WIDTH& = ' '
/: PERFORM GET_BOX_SIZE IN PROGRAM Z_MY_PROG
/: CHANGING &MY_XPOS&
/: CHANGING &MY_YPOS&
/: CHANGING &MY_HEIGHT&
/: CHANGING &MY_WIDTH&
/: BOX XPOS '&MY_XPOS' MM YPOS '&MY_YPOS' MM HEIGHT '&MY_HEIGHT' MM WIDTH '&MY_WIDTH' MM INTENSITY 10 FRAME 0 TW
In report u can write following code
Form Get_Box_Size TABLES IN_PAR STRUCTURE ITCSY
OUT_PAR STRUCTURE ITCSY.
Loop at Out_Par.
Case Out_Par-Name.
When 'MY_XPOS'.
Out_Par-Value = 100.
When 'MY_YPOS'.
Out_Par-Value = 57.
When 'MY_HEIGHT'.
Out_Par-Value = 300.
When 'MY_WIDTH'.
Out_Par-Value = 'Does it matter?'.
EndCase.
Modify Out_Par.
EndLoop.
EndForm.