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: 

Material Document number using invoice document number

Former Member
0 Kudos

The work item will provide to my program the material document number if the document has been created in Material document OR the invoice document number in the other cases.

My program has to identify which number has been provided and if it is the Material document it will find out the invoice Number. if it is invoice number it will set the Material document number field as blank.

how can i identify whether it is Material Document number or FI Document number

8 REPLIES 8

former_member181995
Active Contributor
0 Kudos

how can i identify whether it is Material Document number or FI Document number

if it is an Material Document number than it should be in MKPF or MSEG.and if FI Document number than it should be in BSEG.

check this.

Amit.

0 Kudos

Is there any standard Function Module to find out FI Document number using Material Document number?

let me know is there any Function module available to identify these Material Document number or FI Document number?

Is there any standard Function Module to find out all the details ( such as Invoice date, vendor, amout, tax amount , payment due date, payment terms , approver) using invoice document number.

0 Kudos

Hi

please use this Fm BAPI_INCOMINGINVOICE_GETLIST to get detail list of Invoice .

Regrads

Hitesh

0 Kudos

check out field bkpf-awkey.

its a concatenation of material doc num and fiscal year and its found in bkpf (FI-related table) .

that will help u lot.

pk

0 Kudos

I wanted to find out invoice document number(BKPF-BELNR) using invoice logistic number( RBKP-BELNR)

Let me know is there any standard function module ?

0 Kudos

Hi,

Concatinate RBKP-BELNR AND RBKP-GJAHR

and pass this concatinated value to BKPF-AWKEY

Then you will get the BKPF-BELNR

<removed by moderator>

Edited by: Mike Pokraka on Aug 4, 2008 9:38 AM

0 Kudos

Thank you.

Now my question is

I am receiving one document number from work item to my program.

Is there any process to identify whether is it invoice document number from BKP or is it from invoce logistic number ( RBKP)

0 Kudos

check the number series. the doc number series will be different for those from BKPF and those from RBKP.

pk