Skip to Content
0

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

Dec 19, 2017 at 11:40 AM

81

avatar image
Former Member

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.

10 |10000 characters needed characters left characters exceeded

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

0
Former Member
Jelena Perfiljeva

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
Former Member
Jelena Perfiljeva

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

Thanks,

0
Former Member

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
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Jelena Perfiljeva
Jan 04 at 08:35 PM
1

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.

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Thank You for the factual information Jelena Perfiljeva. :)

0