We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

[sap-dev] BAPI_INCOMINGINVOICE_CREATE with both 161 and 101

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Question from TIANCZ on Sep 25 at 1:01 AM
BAPI_INCOMINGINVOICE_CREATE with both 161 and 101

for example
1.migo 101 get 1000KG amunt 1000?
2.for some reason i have to return 400kg to the vendor ,creat a return po
then migo 161 400kg amount 400?

but the vendor hava no ability to deliver 2 invoice ,only one invoice amount 600?

i have to run the bapi with two items to do the Invoice verification in one invoice

i set the parameters as usual . return msg id M8 476


HEADERDATA-invoice_ind = 'X'.
HEADERDATA-doc_type = 'RE'.
HEADERDATA-DOC_DATE = wa_header-DOC_DATE.
HEADERDATA-PSTNG_DATE = wa_header-PSTNG_DATE.
HEADERDATA-BLINE_DATE = wa_header-BLINE_DATE.
HEADERDATA-gross_amount = wa_header-gross_amount.
HEADERDATA-CURRENCY = 'CNY'.
HEADERDATA-ref_doc_no = wa_header-ref_doc_no.
HEADERDATA-HEADER_TXT = wa_header-HEADER_TXT.
HEADERDATA-ITEM_TEXT = wa_header-ITEM_TEXT.
HEADERDATA-comp_code = wa_header-COMP_CODE.
HEADERDATA-del_costs_taxc = 'J0'.

ITEMDATA-invoice_doc_item = sy-tabix.
ITEMDATA-po_number = gt_item-ebeln.
ITEMDATA-po_item = gt_item-ebelp.
ITEMDATA-item_amount = gt_item-dmbtr.
ITEMDATA-quantity = gt_item-menge.
ITEMDATA-po_unit = gt_item-meins.
ITEMDATA-tax_code = 'J0'.
ITEMDATA-ref_doc = gt_item-belnr.
ITEMDATA-ref_doc_year = gt_item-gjahr.
ITEMDATA-REF_DOC_IT = gt_item-BUZEI.
APPEND ITEMDATA.
 
Reply to this email to post your response.
 
__.____._
Manage Settings | Unsubscribe | Create FAQ | Send Feedback
  
Copyright © 2012 Ziff Davis, Inc. and message author.
Ziff Davis, Inc. 28 E 28th Street New York, NY 10016
TIANCZ  
 
View this online
Ask a new question
 
In the Spotlight
Earn Recognition for Your Contributions at Toolbox for IT. Gain Points for Community Achievements

_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language