cancel
Showing results for 
Search instead for 
Did you mean: 

Hi Experts, copy text elements from txt file to sapscript window?

Former Member
0 Kudos

Hi Experts,

I have a .txt file which contains the following code, how can I copy the content to the sapscript window at one time? thanks in advance! because the following is not all that I have in the .txt file, there is much more than the following, so I need to copy all at one time.

/* This is an example of an inspection instruction.
/* You can change this layout set to meet your requirements. This layout
/* set is based on the driver program RQEEAS20 which defines the text
/* elements for the layout set.
/* The layout set in this example contains all the possible text elements.
/* In some cases, however, there are no outputs available in the element.
/*

/* Header information


/* (printed on each page above the main section)



/E HEADER


U1 Inspection Instruction


KO ,,Page &page&


ST


/* Indication, if inspection instruction has already been printed:


/* IF &REPRINT& = 'X'


/* R e p r i n t


/


/ ENDIF


/: IF &QALS-MATNR& NE &SPACE&


/* Material,,&qals-matnr&,,


/* ,,&qals-ktextmat&


MP Material,,&qals-matnr&,,,,Printed &date&


MP ,,&qals-ktextmat&,,,,Created &qals-enstehdat&


LN &uline(75)&


/: ENDIF

Kind regards

Dawson

Accepted Solutions (0)

Answers (1)

Answers (1)

kesavadas_thekkillath
Active Contributor
0 Kudos

What is you scenario,

Are you copying this in same client or different client .

I hope im correct try this method

i think you have used program RSTXSCRP to download the script.

You should use the same program and select the radio button style,standard text respectively

and then upload these files.

Former Member
0 Kudos

I don't want to copy line by line in the text file to the sapscript window, in my text file there is the following:

/E FOOTER

/* comment gsu-276 original paragraph FU

/* SAP AG, Walldorf

/: PERFORM GET_FOOTER_INFO IN PROGRAM ZQM_INSP_INSTR

/: USING &QALS-WERK&

/: CHANGING &LV_NAME1&

/: CHANGING &LV_NAME2&

/: CHANGING &LV_STRAS&

/: CHANGING &LV_PSTLZ&

/: CHANGING &LV_ORT01&

/: ENDPERFORM

/*

/: BOTTOM

/* ADDRESS PARAGRAPH FU

/* NAME &LV_NAME1&, &LV_NAME2&

/* STREET &LV_STRAS&

/* POSTCODE &LV_PSTLZ&

/* CITY &LV_ORT01&

/* ENDADDRESS

FU &LV_NAME1& &LV_NAME2&

FU &LV_STRAS&

FU &LV_PSTLZ&

FU &LV_ORT01&

/: ENDBOTTOM

/* Main section:

/* General data for the inspection lot:

/E INSPECTION_LOT_COMMENTED

/: IF &QALS-STAT19& NE &SPACE&

U1 Documentation required for inspection lot

/: ENDIF

/*

/* Output short text only if no long text is available:

/: IF &QALS-LTEXTKZ& = &SPACE&

/*

/* Only if short text is actually available:

/: IF &QALS-KTEXTLOS& NE &SPACE&

ST Insp.lot text:,,&qals-ktextlos&

/: ENDIF

/*

/: ELSE

ST Insp.lot text:

/* Long text for inspection lot:

/: PROTECT

/: INCLUDE &TEXT_LOT& OBJECT QPRUEFLOS ID QALS LANGUAGE &QALS-SPRACHE& PARAGRAPH ST

/: ENDPROTECT

/*

/: ENDIF

ST

/*

/* Batch data, if available:

/: IF &QALS-XCHPF& = 'X'

ST Batch,,&qals-charg&,,&' keep until 'qals-vfdat&

/: ENDIF