cancel
Showing results for 
Search instead for 
Did you mean: 

Field empty in layout set yet it has a value in print program

Former Member
0 Kudos

In the print program I have a variable which has been assigned a value. Straight after that I use the 'write_form'. However when it gets to the layout set this field is empty? When I debug it the field has a value in it until it goes into the sapscript debugger where it is then empty?

The program:

...

...

fbank-amount = '1000.00'.

PERFORM write_formu_list.

FORM write_formu_list.

  • debugging here and the field has a value of '1000.00'.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

window = 'MAIN'

element = '501'

EXCEPTIONS

element = 1.

ENDFORM.

The sapscript is as follows:

/E 501

T0 &fbank-amount& "debugging here the value is empty?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi ,

<b>Instead of T0 give the paragraph format as / to check whether the problem is in u r text elements. </b>

This is only for testing where the problem is occuring

Former Member
0 Kudos

Hi All,

Thank you for the help. Found the problem.

In the 'OPEN_FORM' routine where I was passing the program name i.e. itcpo-tdprogram the 20 character name had 1 character incorrect.

Former Member
0 Kudos

check - Are u are Clearing the Memory anywhere in Program ?

Regards

prabhu

Former Member
0 Kudos

pass the value <b>fbank</b> into the perform.

PERFORM write_formu_list using fbank.

FORM write_formu_list using fbank type xxxx

endform

i hope it works..

Former Member
0 Kudos

Hi Naresh,

Unfortunately that didn't work. The values exist correctly in the subroutine anyway... only when it goes to the layout set is it missing.