cancel
Showing results for 
Search instead for 
Did you mean: 

data is not getting passed from print program to script

Former Member
0 Kudos

Dear friends,

The issue is i am not able to get data into script while the data is available in print program.

Actually we want to print workpapers from IW32 regarding reservations. Earlier we used to print them by executing a custom program .Now we want to print them from IW32. So we assigned the same custom program and the same script in OIDF. In debugging, i am able to see the data in print program where the WRITE_FORM is called but when i debug the script, the data is not getting available there.

Pls help me on this.

Thanks,

Venkat.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI friend,

If its coming in the print program write form then it should be passed to Script. If not so means then either the table in the print program and the Script should miss match else the fields specified in the table would have been changed by some mistake.

Either of this should have happened.

Else debug and see whether the table data is getting cleared before display. So that you will work to see where the table data is getting displayed.

I think this will solve your issue. If you have any queries please revert back to me i will help you.

Thanks,

Sri Hari

Former Member
0 Kudos

Thanks for your reply. May be the below one is the cause.

I am getting this in OIDF where i assigned print program and form.

*********************************

ABAP form routine parameter error

Message no. ID608

Diagnosis

The FORM routine has FORMAL parameters when there should be none.

Procedure

FORMAL parameters:

Check whether FORM routine ENTRY_ZRE1 actually exists in ABAP ZMSC_PP_RES without FORMAL parameters.

The ABAPs are called by INCLUDE LIPRTF02. You can see here exactly how your ABAP is called.

*********************************

But i havent passed any parameters in the form routine.

Thanks,

Venkat.

nabheetscn
Active Contributor
0 Kudos

can you please paster code of ZMSC_PP_RES subroutine ENTRY_ZRE1 with definition.

Nabheet

Former Member
0 Kudos

please find the below code.

REPORT XXXXXX.

****data declarations

****form routine

FORM entry_zre1.

****data selection

****calling script

PERFORM print_good_issue.

endform.

form print_good_issue.

CALL FUNCTION 'OPEN_FORM'

EXPORTING

device = 'PRINTER'

form = t390-form"'ZMSC_MM_SC_RES'

language = sy-langu

EXCEPTIONS

canceled = 1

device = 2

form = 3

OPTIONS = 4

unclosed = 5

OTHERS = 6.

LOOP AT rprint.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

element = 'I_DETAIL'

window = 'MAIN'.

endloop.

endform.

""""""""""""""""""""""""""

there is data in rprint but it is not getting passed to form.

Thanks,

Venkat.

aidan_black
Active Contributor
0 Kudos

Hi,

Try adding the line

ITCPO-TDPROGRAM = SY-REPID.

before the call to function module OPEN_FORM so that the sapscript looks for the symbols in the correct program area.

Regards,

Aidan

Former Member
0 Kudos

Thanks Aidan. I passed SY-REPID and the issue is solved.

Regards,

Venkat.

Answers (0)