Skip to Content
avatar image
Former Member

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

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.

Add comment
10|10000 characters needed characters exceeded

  • 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.

  • 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.

  • 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,

  • Get RSS Feed

1 Answer

  • Best Answer
    Jan 04 at 08: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.

    Add comment
    10|10000 characters needed characters exceeded