cancel
Showing results for 
Search instead for 
Did you mean: 

Display of multiple rows of long text in sap script

Former Member
0 Kudos

Hello Abapers,

Is it possible to have a loop inside a sapscript?

Can you give me a sample code?

I have tried it on my sapscript but it only shows the last row

of my internal table.

This is my source code :

/: DEFINE &WF_EBELN& = &EKPO-EBELN&

/: DEFINE &WF_EBELP& = &EKPO-EBELP&

/: PERFORM GET_ITEM_TEXT IN PROGRAM ZMPU_PO_ORDER

/: USING &WF_EBELN&

/: USING &WF_EBELP&

/: CHANGING &WF_TEXT&

/: ENDPERFORM

/: LOOP AT &WF_TEXT&

as &WF_TEXT&

/: endloop

in the zmpu_po_order, the WF_TEXT has 12 lines of data,

but when sapscript is displayed it only has one line.

I hope you can help me. Thanks in advance...

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

It is not possible using loops in sap text editor .

YOU CAN USE IN PROGRAM OF FORM.

reward points