cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with output type--urgent

Former Member
0 Kudos

Hi experts,

My requirement is i need to post a vendor lkiability. For that we create a output type 'ZALV'. We also created a report program . In nace we attached the program and output type with medium '8'. we call the same subroutine Entry which available in standard program (CMSR_OUTPUT_ENTRY whcich is attched to medium 8 and o/p type:CMSF). Up to this one my output type works fine and processed successfully.In that Entry some function modules called.

When i added my own code in report program it gives a error

saying that ' POSTING_ILLEGAL_STATEMENT".

Statement "CALL SCREEN" is not allowed in this form.

There is probably an error in the program

"SAPLTAX1".

This program is triggered in the update task. There,

following ABAP/4 statements are not allowed:

- CALL SCREEN

- CALL DIALOG

- CALL TRANSACTION

- SUBMIT

In my code i am not used these statements also.

The error in code is:PERFORM skftabn_ergaenzen.

xbset-first = 1.

xkzinc = space.

IF bkpf-xmwst = 'X'.

ok-code = 'CALC'.

IF bkpf-xsnet = space.

xkzinc = 'X'.

ENDIF.

ELSE.

ok-code = 'PRUF'.

ENDIF.

IF i_xsimu NE 'S'.

xnodia = 'X'.

ELSE.

xnodia = space.

ok-code = 'SHOW'.

ENDIF.

-


Bild dunkel prozessieren -


evtl. veraenderte Steuern merken

IF xusvr = 'X'.

PERFORM ustaxes_detail USING i_bkpf.

ELSE.

IF sy-tcode(1) = 'M'

or bkpf-tcode(1) = 'M'.

OR bkpf-tcode(1) = 'M' OR NOT dynpro_501 IS INITIAL.

CALL SCREEN 301.

ELSE.

CALL SCREEN 300.

ENDIF.

ENDIF.

ok-code = space.

Please give me a solution --- It is very urgent.

Regards

Pratap.M

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi ,

Use this one . These are standarrd includes you need to include.

INCLUDE riprid01. " General DATA and TABLE struct.

INCLUDE riprif01. " General PRINT routines

PERFORM print_paper.

  • Main Form which is called.

FORM print_paper.

  • Import Data ---Copied From SAP Program

PERFORM data_import. * This you have to copy from standard SAP program

*&-- Populate internal table for header part of form.

PERFORM data_population.

  • Your scrpit printing logic will be done in this.

*&--Script printing.

PERFORM main_print. " Print the PAPER now

Do reward.

Thanks,

Madhura

Former Member
0 Kudos

Hi,

I think you can fnd the solution in the OASIS note 842156.

Please check the Note 381060 also

*Reward points if helpful

Regards,

KK