cancel
Showing results for 
Search instead for 
Did you mean: 

SAPscript problem with ABAP Objects

Former Member
0 Kudos

Hi,

Is there some problem between ABAP Objects and SAPscript?

I'm trying to print a form from inside a method, but it seems like the WRITE_FORM function is not transfering the data. The form is printed but the variables not.

The same code inside a executable program (report) is working. I debugged the method and the variables are with the correct values.

Any hint?

Best regards,

Charles

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Check the variables, it should be a global variables if you want the sapscript to read it.

aidan_black
Active Contributor
0 Kudos

Hi Charles,

Can you check if the code correction of SAP note '1243485:Unprinted variables and lines of a SAPscript form' resolves this problem?

Regards,

Aidan

Former Member
0 Kudos

No. Thank you!

che_eky
Active Contributor
0 Kudos

Hi,

How are the variables declared in the method? They should be globals, that is what is expected when using a regular print program. If they are declared as locals within the method then they may not be accessible within the SAPscript.

Che.

Former Member
0 Kudos

Hi, global where?

I'm talking about a class (SE24) method called direct from transaction. Where is the global scope in this scenario?

I think it's not possible. Read the Rich Heilman conclusion at this thread:

Thank you!