‎2008 Apr 15 3:40 AM
Hi
i am getting sy-subrc eq 4 after this stmts
TABLES: VBRP.
types: begin of tab,
posnr like vbrp-posnr,
matnr like vbrp-matnr,
fkimg like vbrp-fkimg,
vrkme like vbrp-vrkme,
netwr like vbrp-netwr,
end of tab.
parameters: invoice like vbrp-vbeln.
*select-options: INVOICE FOR VBRP-VBELN.
data: i_itab type standard table of tab with header line.
data: up type p decimals 2 value 0.
START-OF-SELECTION.
*CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = invoice
IMPORTING
OUTPUT = invoice
.
select posnr matnr fkimg vrkme netwr from vbrp INTO TABLE I_ITAB where
vbeln eq invoice.
if sy-subrc <> 0.
message i000(z00) with 'invoice does not exist'.
leave list-processing.
endif.
Thanks,
‎2008 Apr 15 3:42 AM
then invoice number provided by you is not same as vbeln
if sy-subrc ne 0.
message i000(z00) with 'invoice does not exist'.
leave list-processing.
endif.
‎2008 Apr 15 3:42 AM
then invoice number provided by you is not same as vbeln
if sy-subrc ne 0.
message i000(z00) with 'invoice does not exist'.
leave list-processing.
endif.
‎2008 Apr 15 3:47 AM
i am slecting the invoice from vbrp table only and i am checking this in vbrp table only
‎2008 Apr 15 3:52 AM
Hi Kumar, 1.goto SE11 table and check the table entries by giving Invoice number what u give on Selection-screen. 2.Program seems to be ok . Only thing is data may be not there in the database table VBRP. Regards, Venkat.O
‎2008 Apr 15 3:54 AM
‎2008 Apr 15 3:55 AM