cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in printing internal table data in Sapscript!

Himayatullah
Active Participant
0 Kudos

Hi All,

Am trying to print internal table data into main window of sapscript.

This is what I have written.

loop at it_final INTO wa_final.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

window = 'MAIN'

ELEMENT = '670'

TYPE = 'BODY'

FUNCTION = 'APPEND'

EXCEPTIONS

window = 1

element = 2.

IF sy-subrc <> 0.

ENDIF.

ENDLOOP.

IN Sapscript :

/E 670

IT &wa_final-vbeln&,,&wa_final-vbelv&,,&wa_final-payment&

= &wa_final-rundate&,,&wa_final-waers&,,&wa_final-creditcard&

= &wa_final-augru&,,&wa_final-dmbtr&

Pls let me know if am missing anything.

Thanks & Regards

Himayat

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Check if your Programm is called at the Sapscript level.

Are you calling the programm from the Sapscript using the PERFORM command? or are these Programm and Sapscript set in customizing?

Using SE16 check the Message Type and see if Sapscript and the programm are connected at all.

Former Member
0 Kudos

Hi,

Check the data is coming into script or not(in debug mode). if data is there means it wil display.

call the function module as it is, dont change the parameters up and down while calling function module.

Himayatullah
Active Participant
0 Kudos

HI,

Data is n't coming indebug mode at sapscript level.

Former Member
0 Kudos

HI,

Are these internal table and work area (it_final and wa_final) are defined at global level ? if not define at global level

Regards,

Madhukar Shetty

nabheetscn
Active Contributor
0 Kudos

Please declare you work area at global level not at local level.

Thanks

Nabheet