Application Development 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: 

Use of fi_document_record

Former Member
0 Kudos

Hi,

we need to change a smartform in order to manage the print of an archived FI document.

For SD invoice we used first fi_document_record to check if document is archived or not, then FAGL_GET_ARCH_FI_DOCUMENT to extract data from archive.

For SD invoice, BKPF-AWKEY is the VBELN of VBRK and it's OK.

we are not able to use function fi_document_record for other document because in field AWKEY I found a concatenation of BELNR, BUKRS and year, while the input ffield of function is 10 chars

can someone suggest me another fuction?

Thanks

Ilenia

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

Try to use first ten characters for parameter AWREF and following ten characters for parameter AWORG

(FI_DOCUMENT_RECORD will concatenate both fields)

Regards,

Raymond

1 REPLY 1

raymond_giuseppi
Active Contributor
0 Kudos

Try to use first ten characters for parameter AWREF and following ten characters for parameter AWORG

(FI_DOCUMENT_RECORD will concatenate both fields)

Regards,

Raymond