Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ERROR WHILE TRANSPORTING SMARTFORM

hi friend,

when i try to transport my smartform it shows the error message like this

1. Object CUAD ZINVOICE_11 is inactiv

2. Object REPT ZINVOICE_11 is inactiv

what are CUAD and REPT .

My Code is.

REPORT ZINVOICE_11.

&----


*& Report Z_INVOICE_PRINT *

&----


*& changes done by : Bhupinder Singh

&----


*REPORT Z_INVOICE_PRINT_FINAL .

constants : sf_name(30) type c value 'ZINVOICE_11'.

parameters : vbeln like vbrk-vbeln .

data : perf type c.

SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME.

PARAMETERS: pre RADIOBUTTON GROUP RAD1 DEFAULT 'X',

post RADIOBUTTON GROUP RAD1.

SELECTION-SCREEN END OF BLOCK B1.

data : form_name type RS38L_FNAM.

data : ivbrk like vbrk occurs 0 with header line.

data : ivbrp1 like vbrp occurs 0 with header line.

data : ivbrpf like vbrp occurs 0 with header line.

data : ivbrp like vbrp occurs 0 with header line.

data : ivbap like vbap occurs 0 with header line.

data : ivbkd like vbkd occurs 0 with header line.

data : ikna1 like kna1 occurs 0 with header line.

data : ikonv like konv occurs 0 with header line.

data : ilips like lips occurs 0 with header line.

data : ivepo like vepo occurs 0 with header line.

data : ivekp like vekp occurs 0 with header line.

data : ikonv1 like konv occurs 0 with header line.

data : ikonv2 like konv occurs 0 with header line.

data : netwt like vekp-ntgew.

data : grwt like vekp-brgew.

select * from vbrp into table ivbrp where vbeln = vbeln.

select * from vbrk into table ivbrk where vbeln = vbeln.

data : vknumv like konv-knumv.

loop at ivbrk.

move ivbrk-knumv to vknumv.

endloop.

loop at ivbrp.

select * from konv into table ikonv1 where knumv = vknumv and kposn = ivbrp-posnr and kschl = 'ZFOB'.

select * from konv into table ikonv2 where knumv = vknumv and kposn = ivbrp-posnr and kschl = 'ZDS3'.

endloop.

data : ins like konv-kbetr.

data : dis like konv-kbetr.

data : fght like KONV-KBETR.

loop at ikonv1.

ins = ins + ikonv1-kbetr.

endloop.

loop at ikonv2.

dis = dis + ikonv2-kbetr.

endloop.

if pre = 'X'.

select * from vbrp into table ivbrp where vbeln = vbeln order by matkl.

loop at ivbrp.

on change of ivbrp-matkl.

clear ivbrp1.

refresh ivbrp1.

move ivbrp-matkl to ivbrp1-arktx.

insert ivbrp1 into ivbrp.

modify ivbrp.

endon.

endloop.

endif.

ivbrpf[] = ivbrp[].

select * from vbrp into table ivbrp where vbeln = vbeln.

select * from vbrk into table ivbrk where vbeln = vbeln.

select * from lips into table ilips for all entries in ivbrp where vbeln = ivbrp-vgbel and posnr = ivbrp-vgpos.

select * from vepo into table ivepo for all entries in ilips where vbeln = ilips-vbeln and posnr = ilips-posnr.

select * from vekp into table ivekp for all entries in ivepo where venum = ivepo-venum.

loop at ivekp.

if ivekp-gewei = 'G'.

ivekp-ntgew = ivekp-ntgew / 1000.

ivekp-brgew = ivekp-brgew / 1000.

endif.

netwt = netwt + ivekp-ntgew.

grwt = grwt + ivekp-brgew.

endloop.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

FORMNAME = sf_name

  • VARIANT = ' '

  • DIRECT_CALL = ' '

IMPORTING

FM_NAME = form_name

  • EXCEPTIONS

  • NO_FORM = 1

  • NO_FUNCTION_MODULE = 2

  • OTHERS = 3

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

CALL FUNCTION form_name

EXPORTING

vbeln = vbeln

perf = perf

pre = pre

post = post

dis = dis

ins = ins

vknumv = vknumv

netwt = netwt

grwt = grwt

fght = fght

  • VECS = VECS

*

TABLES

IVBRK = IVBRK

IVBRP = IVBRP

IVBRPf = IVBRPf

IVBaP = IVBaP

IKna1 = IKna1

Ivbkd = Ivbkd

ivbrp1 = ivbrp1

ikonv = ikonv

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

INCLUDE ZINVOICE_STATUS_0001O01.

INCLUDE ZINVOICE_USER_COMMAND_0001I01.

whaT SHOULD i do to active it and transport it.

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question