Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

select stmt

Former Member
0 Likes
692

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,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
667

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.

5 REPLIES 5
Read only

Former Member
0 Likes
668

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.

Read only

0 Likes
667

i am slecting the invoice from vbrp table only and i am checking this in vbrp table only

Read only

venkat_o
Active Contributor
0 Likes
667

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

Read only

Former Member
0 Likes
667

sry guys

solved

Read only

Former Member
0 Likes
667

solved