cancel
Showing results for 
Search instead for 
Did you mean: 

rregarding fm

Former Member
0 Kudos

how to use this function module

LB_BIL_INV_OUTP_READ_DBDATA'.

EXPORTING

it_bil_number = '90000763'

IF_LANGUAGE = sy-LANGU

  • IS_DB_DATA_TO_READ =

  • IF_READ_MODE = ' '

  • IF_REFRESH_BUFFER = ' '

IMPORTING

ES_BIL_OUTP_DBDATA = LBBIL_OUTP_DBDATA1

EXCEPTIONS

RECORDS_NOT_FOUND = 1

RECORDS_NOT_REQUESTED = 2

OTHERS = 3

here iam giving structure name as LBBIL_OUTP_DBDATA1 it stores all vbrk vbap etc all structure

but still it is going to short dump .here it is type conflict what should we doo.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Try this one

U don't pass the Bill Number Directly.Because it_bil_number is a table type.

DATA : BEGIN OF BIL,

VBELN LIKE VBRK-VBELN,

END OF BIL.

DATA it_bil_number LIKE STANDARD TABLE OF BIL .

DATA : ES_BIL_OUTP_DBDATA type LBBIL_OUTP_DBDATA.

BIL-VBELN = '0090005195'.

APPEND BIL TO it_bil_number.

CALL FUNCTION 'LB_BIL_INV_OUTP_READ_DBDATA'

EXPORTING

it_bil_number = it_bil_number

IF_LANGUAGE = SY-LANGU

  • IS_DB_DATA_TO_READ = IS_DB_DATA_TO_READ

  • IF_READ_MODE = ' '

  • IF_REFRESH_BUFFER = ' '

IMPORTING

ES_BIL_OUTP_DBDATA = ES_BIL_OUTP_DBDATA

  • EXCEPTIONS

  • RECORDS_NOT_FOUND = 1

  • RECORDS_NOT_REQUESTED = 2

.

U can get the data in ES_BIL_OUTP_DBDATA

Former Member
0 Kudos

yaa,

thanks for it i got it .

Former Member
0 Kudos

Hi

Make sure the declarations of LBBIL_OUTP_DBDATA1 is same as that of ES_BIL_OUTP_DBDATA. You can check the declarations of this structure in SE37..display and check in Import Tab.

Regards,

Vishwa.