cancel
Showing results for 
Search instead for 
Did you mean: 

Layout changes when see preview in SP01 through Call transaction

Former Member
0 Kudos

Hi Gurus,

I have to show Spool preview from my program I am doing this by call transaction SP01 with spool no. and mode E.

But the preview which comes is very simple, It does not have graphics and other formatting.

If i check the spool directly from SP01 , its coming fine.

Please help me on this Issue.

Regrads,

Sowmen Das

Accepted Solutions (0)

Answers (1)

Answers (1)

Sandra_Rossi
Active Contributor
0 Kudos

I guess you mean CALL TRANSACTION 'SP01' USING lt_bdcdata MODE 'E' (so that to remain on the last screen of the BDC data).

Probably SP01 identifies that it is called using CALL TRANSACTION and reacts differently. One possibility is that it tests SY-BINPT which is 'X' when CALL TRANSACTION is used (opposed to space when SP01 is called directly). You may use CALL TRANSACTION ... OPTIONS FROM xx, where xx-nobinpt should be initialized to 'X' (don't forget to set xx-dismode to 'E' also), so that SY-BINPT won't change.

Note: why don't you use the print preview as we do usually? (TDPREVIEW output option)