Skip to Content
avatar image
Former Member

SAPScript: Formatting INCLUDE Texts without TDFORMAT

I am using the following command to include a text in a SAPSCRIPT form (MEDRUCK copy)

INCLUDE &V_NAME& OBJECT &V_OBJECT& ID &V_ID& LANGUAGE &EKKO-SPRAS& PARAGRAPH YT

YT is a new Paragraph I created to format and set the limits of Left and Right margins.

This works well, but we found some texts that does not have the TDFORMAT filled. And looks like for this reason the long text does not get formatted as desired in the PARAGRAPH YT

How to make this text to accept the PARAGRAPH format?

Add comment
10|10000 characters needed characters exceeded

  • Hi,

    You can use WRITE_FORM_LINES FM in your print(calling) program.

    1. Use READ_TEXT to read the lines and modify the TDFORMAT with 'YT'.
    2. Call WRITE_FORM_LINES by passing your table LINES.

    Regards,

    Priyanka.

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 19, 2017 at 01:55 AM

    I can't modify these texts as they are stored in a PO.

    But I have found a solution that is to print a blank line with the paragraph YT just before the INCLUDE clause.

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 01, 2017 at 07:26 AM

    The PARAGRAPH clause is only operational on paragraphs that have a '*' format. Personally I would write a short program using READ_TEXT to scan the texts and identify possible candidates where the paragraph type for the first line is blank and output the text name. Then I would modify these texts.

    Add comment
    10|10000 characters needed characters exceeded

  • Dear All,

    I have a just question below, ( script to excel )

    i used SAP Script to recode for my work, but i have a problem , exp : i want to input box ” other informaiton ” is “VN-…” for frist ( before input , it is empty ) , below is after i input it, i want ask next time i run script in this matertial ,plant,batch and input ox ” other informaiton ” is “VN-…” but is was there before , so i want it to notify that “error” in msgbox

    session.findById(“wnd[0]/usr/subSUBSCR_BATCH_MASTER:SAPLCHRG:1111/subSUBSCR_HEADER:SAPLCHRG:1500/ctxtDFBATCH-MATNR”).Text = Range(“A10”).Value ‘Range(“A10″).Value=”VN-20140-16”

    End Sub

    Add comment
    10|10000 characters needed characters exceeded