Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Issue in the Script

Former Member
0 Likes
684

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
655

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.

5 REPLIES 5
Read only

FredericGirod
Active Contributor
0 Likes
655

CHANGING &TEXT1&

CHANGING &TEXT2&

CHANGING &TEXT3&

and you put the 3 texts in the good order in your page

regards

Fred

Read only

arindam_m
Active Contributor
0 Likes
655

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

Read only

Former Member
0 Likes
656

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.

Read only

Former Member
0 Likes
655

HI,

  Check the window width. i think the the 180 characters are not fitting in the window.

Regards,

PRudhvi.

Read only

Former Member
0 Likes
655

Thanks for Yours Replies,

I Got the Solution.

Thnks

Swaroopa K