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: 

How to get the loaded cost for the Parked Purchase Order Invoices.

Former Member
0 Kudos

Hi,

Could any one of you please help me out to find out how the loaded cost is calculated for Parked Purchase Order Invoices which have not been posted. The problem is that if the invoice is posted the ekbe-wrbtr field contains the total amt for any particular line item, i.e. the (material cost + unplanned costs + taxes ).

But for the documents which are not posted ekbe-wrbtr does not have all the key data fields as that of a posted document. Is there any way out to find the total cost for the line item which is not posted.

Please try to help me..

Thanks & Regards,

Sanjay.

1 REPLY 1

Former Member
0 Kudos

in that case u have to get the document amt of that accouting Document of PO invoice.

how --->

get the IR number from EKBE

CALL FUNCTION 'FI_DOCUMENT_RECORD'

EXPORTING

I_AWTYP = 'RMRP'

I_AWREF = W_AWREF1----->IR of Po

I_AWORG = W_GJAHR1----->year

  • I_AWSYS = ' '

  • I_AWTYP_INCL = ' '

  • I_AWTYP_EXCL = ' '

  • I_BUKRS = ' '

TABLES

T_DOCUMENTS = T_DOC.--->here u get the accouting document number.

Regards

Prabhu