Skip to Content
author's profile photo Former Member
Former Member

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

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?

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 17, 2007 at 06:05 AM

    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..

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 17, 2007 at 07:01 AM

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

    Regards

    prabhu

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 17, 2007 at 07:03 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.