cancel
Showing results for 
Search instead for 
Did you mean: 

Problem printing text on sapscript

dalmocosta
Explorer
0 Kudos

Hi,

I'm having a problem in a SAPSCRIPT.

The form is like this,

-


PERFORM Z_CARREGA_HEADER IN PROGRAM ZUIRQM010

USING &VBDKL-VBELN&

CHANGING &V_LACRES1&

CHANGING &V_LACRES2&

CHANGING &V_LACRES3&

CHANGING &V_LACRES4&

CHANGING &V_LACRES5&

ENDPERFORM

IF &V_LACRES1& <> SPACE

&V_LACRES1&

ENDIF

-


The program like this

-


FORM z_carrega_header TABLES p_t_var1 LIKE t_var1[]

p_t_var2 LIKE t_var1[].

-


In the program i use read_text... have some errors but i already corrected then...

In the debug of the program is going ok, until this char:

"Lacres da Carga: 77222, 77001, 77179, 77155, 77218, 77108, 77186, 77245,77361, 77185, 77163, 77120"

But in the debug of the FORM is going until this char:

"Lacres da Carga: 77222, 77001, 77179, 77155, 77218, 77108, 77186, 77245,77361, 77185, 7716"

The t_var1 is type:

"TYPES: type_var1 TYPE itcsy."

What i'm doing wrong? is there a parameter that i have to define &V_LACRES1& or something like that?

Thanks in advance,

Regards,

Dalmo Costa

Accepted Solutions (1)

Accepted Solutions (1)

dalmocosta
Explorer
0 Kudos

Hi again,

I tried to put &V_LACRES1& like &V_LACRES1(100)&, and nothing. the text symbol is normal, i look everywhhere...

The size of the frame is normal and if i increase that the box just increase not the value on the text symbol.

Please anybody know what i have to do?

Thanks in advance,

Regards

Dalmo

Former Member
0 Kudos

Hello Dalmo,

You only can transport from your program to the form variables of 80 char long, that means that the string needs to be spplited into 2 variables, ie V_LACRES1 and V_LACRES2.

I hope this helps!!

Gabriel P.

Former Member
0 Kudos

Hello agian...

Check this...I took it from the sapscript documentation...

"The values of the SAPscript symbols passed with /: USING... are now stored in the internal table IN_TAB . Note that the system passes the values as character string to the subroutine, since the field Feld VALUE in structure ITCSY has the domain TDSYMVALUE (CHAR 80). See the example below on how to access the variables."

To find more info check:

http://help.sap.com//saphelp_470/helpdata/EN/d1/802d7d454211d189710000e8322d00/frameset.htm

Hope this helps!!

Gabriel P.

dalmocosta
Explorer
0 Kudos

Thanks All, that solved my question...

Regards,

Dalmo

Answers (1)

Answers (1)

Former Member
0 Kudos