12-19-2017 11:40 AM
Hi,
I'm facing an issue with the sapscript that i need to display borders for line items, whose position is Dynamic which is displayed after the Standard text(Varies in length) in main window.
01-04-2018 8:35 PM
Google -> "sapscript dynamic box" -> top post. I agree with the reply there that it's not really feasible in SAPScript and suggest to switch to a Smartform to achieve that.
SAPScript is older than Internet quite literally. It's unreasonable to expect great features from such old technology.
12-19-2017 7:34 PM
12-20-2017 5:09 AM
The requirement is to display the Item table which is to be displayed after the Dynamic standard text, but having an issue displaying the items (table contents) with the BOX. I tried stuffs like -
1. POSITION YORIGIN 'gv_y' CM {"gv_y" a variable i passed to call after the dynamic long text}
2. POSITION YORIGIN '+0.5' CM {Directly passing the +0.5 in y-axis so as to add or grow the table according to the lines required}
3. Kept a separate element for the item and its table, also tried having both in the same element.
4. Tried different combinations by calling the Write_Form for both in various places.
It results in having the content of the table in the right place just as needed but the "Box"(Lines) starts from the starting point of the main window. If the Long text carries to next page and ends by covering half of the window yet the table lines alone starts from the initial point of the main window overwriting on the longtext.
Is there any way to capture the dynamic long text's position or calculate the lines of the longtext ? If yes help me, or with any other option to get the job done.
Thanks in advance.
01-04-2018 6:19 AM
The requirement is to display the Item table which is to be displayed after the Dynamic standard text, but having an issue displaying the items (table contents) with the BOX. I tried stuffs like -
1. POSITION YORIGIN 'gv_y' CM {"gv_y" a variable i passed to call after the dynamic long text}
2. POSITION YORIGIN '+0.5' CM {Directly passing the +0.5 in y-axis so as to add or grow the table according to the lines required}
3. Kept a separate element for the item and its table, also tried having both in the same element.
4. Tried different combinations by calling the Write_Form for both in various places.
It results in having the content of the table in the right place just as needed but the "Box"(Lines) starts from the starting point of the main window. If the Long text carries to next page and ends by covering half of the window yet the table lines alone starts from the initial point of the main window overwriting on the longtext.
Is there any way to capture the dynamic long text's position or calculate the lines of the longtext ? If yes help me, or with any other option to get the job done.
Thanks in advance.
01-04-2018 6:20 AM
Any other suggestions?. If this is already asked please send me the link as i'm not able to find it myself.
Thanks,
01-04-2018 8:35 PM
Google -> "sapscript dynamic box" -> top post. I agree with the reply there that it's not really feasible in SAPScript and suggest to switch to a Smartform to achieve that.
SAPScript is older than Internet quite literally. It's unreasonable to expect great features from such old technology.
01-05-2018 5:16 AM