Skip to Content
0
Former Member
Jul 13, 2007 at 12:13 PM

getting valid idoc number from the sales document

61 Views

hi,

Iam sending the code for getting the idoc number from sales document.

but iam not getting the result.

please see the code and correct the code so that i will get the idoc number from the sales document.

tables edid4.

data l_docnum like edid4-docnum.

parameters:p_vbeln like vbak-vbeln.

call function 'CONVERSION_EXIT_ALPHA_INPUT'

exporting

input = p_vbeln

IMPORTING

OUTPUT = p_vbeln

.

select single docnum from edid4 into l_docnum where sdata like '&p_vbeln&'.

if sy-subrc = 0.

write edid4-docnum.

else.

write ' the record is not found'.

endif.

it is very urgent..............

thanks in advance......