Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

Issue in the Script

$
0
0

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


Viewing all articles
Browse latest Browse all 8332

Trending Articles