2013 May 17 3:37 PM
Hai All
I am using perform statement in sap script.
I need take a "Terms of payment" text in a PO, the length of text is 180, but when return the text to script only take the 80 first words.
The ABAP code is:
data: text(255) type c.
call function 'READ_TEXT'
exporting
id = id
language = language "sy-langu
name = name
object = object
tables
lines = tlinetab
exceptions
others = 8.
if sy-subrc = 0.
loop at tlinetab.
concatenate text tlinetab-tdline into text
separated by space.
endloop.
endif.
clear tlinetab.
refresh : tlinetab. clear tlinetab.
read table out_table with key name = 'TEXT'.
ind = sy-tabix.
write text to out_table-value.
out_table-value = out_table-value.
modify out_table index ind.
**********
The Sap Script code is:
/: DEFINE &ZID& = 'F07'
/: DEFINE &ZOBJECT& = 'EKKO'
/: PERFORM TEXTOS IN PROGRAM ZPEDIDO
/: USING &ZOBJECT&
/: USING &ZID&
/: USING &EKKO-EBELN&
/: CHANGING &TEXT&
/: ENDPERFORM
When I´m debugging the ABAP program the value that take the variables text and out_table-value is correct, but in the script is wrong.
How I resolve this problem?
Please Help me
2013 May 18 11:27 AM
Hi Swaroopa,
Check the Data Declarations for ur variables.
for more details please go through the link.
http://scn.sap.com/thread/55501690
thanks
Kranthi.
2013 May 17 7:15 PM
CHANGING &TEXT1&
CHANGING &TEXT2&
CHANGING &TEXT3&
and you put the 3 texts in the good order in your page
regards
Fred
2013 May 18 3:48 AM
Hi,
Check the length of your text that appears in one line of your script. I think the first 80 chars are visible in the window although all the chars are present in the variable. You might have to split and display the value in 2 to 3 lines based on window width.
Cheers,
Arindam
2013 May 18 11:27 AM
Hi Swaroopa,
Check the Data Declarations for ur variables.
for more details please go through the link.
http://scn.sap.com/thread/55501690
thanks
Kranthi.
2013 May 18 1:23 PM
HI,
Check the window width. i think the the 180 characters are not fitting in the window.
Regards,
PRudhvi.
2013 May 20 5:38 AM