cancel
Showing results for 
Search instead for 
Did you mean: 

Variable has a value at runtime in print program but not in layout set?

Former Member
0 Kudos
181

Hi,

I have renamed FBCJ to ZFBCJ so that I can split between Cash and Cheque datat output on the deposit slip.

Before the WRITE_FORM subroutine the variables have values in them, but in the layout set debugger these fields are empty?

Usually this means that the variables aren't declared in global data. However, in this case they are, I have copied FBCJ as is to ZFBCJ and renamed all objects therein to Z*.

<u>Code portion:</u>

febsca-schnr = itcj_check_postings-check_number. "Check no 13

febsca-ausst = itcj_check_postings-check_issuer. "Issuer

febsca-bnklz = itcj_check_postings-bank_key. "Bank Key

febsca-bankl = itcj_check_postings-bank_key. "Bank Key

PERFORM write_formu_list.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

window = 'MAIN'

element = '501'

EXCEPTIONS

element = 1.

regards,

Warren.

Accepted Solutions (0)

Answers (2)

Answers (2)

Sandeep_Kumar
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Warren,

make sure that u have passed the variables correctly to the script and also check for clea and refresh conditions.

Hope this h elps.

Former Member
0 Kudos

Hi,

Thanks for your suggestions.

I have debugged the script... this is where I see that the variables are now empty!

I am not doing any 'clear' or 'refresh' as I have copied FBCJ to ZFBCJ exactly as is. I have also copied the layout set to a Z* name.

Ravindranath is you can assist my email warrenbjorkman@yahoo.co.uk

Thank you.

Regards,

Warren.

Former Member
0 Kudos

Then Debug ur script and see.I think the varibles are being cleared in the script.

Steps to Debug a script,

Goto SE71

Give script name and then

Utilities -> Activate Debugger

Try debugging and let me know if u face any problem.

Give me ur mail id so that we can have detailed discussion on this.

Regards