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: 

Displaying a Dynamic table after a Dynamic Standard text in SAP Script

0 Kudos

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.

1 ACCEPTED SOLUTION

Jelena
Active Contributor

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.

6 REPLIES 6

Jelena
Active Contributor
0 Kudos

What is the question? And what have you tried so far?

0 Kudos

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.

0 Kudos

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.

0 Kudos

Any other suggestions?. If this is already asked please send me the link as i'm not able to find it myself.

Thanks,

Jelena
Active Contributor

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.

0 Kudos

Thank You for the factual information Jelena Perfiljeva. 🙂