cancel
Showing results for 
Search instead for 
Did you mean: 

OBJ_TYPE = ? (urgent)

Former Member
0 Kudos

Which object type do I enter in the BAPI (BAPI_ACC_INVOICE_RECEIPT_POST) for a regular incoming invoice (vendor invoice, no PO, only FI posting, external number range)? I checked the table TTYP, there it says to enter RMRP. When I use this entry as OBJ_TYPE, I get the following error:

T ID NUM Message

E RW 628 Incorrect entry in field OBJ_TYPE: RMRP

How can I solve this so I can post vendor invoices using this BAPI?

Thanks in advance

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Boiler,

Object Type RMRP is valid when SAP tries to generate an accounting document during invoice verification of a vendor invoice.

When you are trying to call this BAPI to directly post a FI document, similar to transaction FB01, the object type for the bapi call in the BAPI_ACC_INVOICE_RECEIPT_POST will be BKPF.

Hope this helps.

Regards,

Satya

Former Member
0 Kudos

Any idea why I could not use the OBJ_TYPE BKPF?

Could it be because I test the BAPI via se37?

How can I actually see the result in a table (e.g. BSEG table)? Because with SE37, entering BAPI name + hitting F8-button, no actual postings are made.

I read somewhere to add "commit"...but where to add it, remains a mystery for me

Message was edited by: Boiler

Former Member
0 Kudos

Hello Boiler,

I believe it should be BKPF. What u can do is goto Fb03 and select one vendor invoice. Then press display the vendor invoice and click on Header button. Whatever is getting displayed in Ref procedure u can use the same value in the OBJ_TYPE.

Former Member
0 Kudos

Abhijit, thx for your reply,

The strange thing is, when I use BKPF, it gives me an error:

T ID NUM MESSAGE

E RW 609 Error in document: BKPF 51400026CH022006 SAP090506

E RW 628 Incorrect entry in field OBJ_TYPE: BKPF

Former Member
0 Kudos

Hai Boiler

check the following SAP Standard Programs

ACC_BAPI_TEST_INVOICE_RECEIPT Test Report for BAPI Invoice Receipt

LACC4U29 BAPI -> IDoc: ALE_ACC_EMPLOYEE_REC_POST

LCACSFI_STMT_TRANSFER_FIU02

LWOSCR_EXIF01

RBUS6003 Program for Object Type BUS6003 : Acctng Invoice Receipt

DATA: lv_type LIKE bapiache03-obj_type.

CALL FUNCTION 'BAPI_ACC_INVOICE_RECEIPT_POST'

EXPORTING

documentheader = lv_doc_header

  • CUSTOMERCPD =

IMPORTING

obj_type = lv_type

obj_key = lv_key

obj_sys = lv_sys

TABLES

accountpayable = lt_positions_kred[]

accountgl = lt_positions_sako[]

accounttax = lt_positions_tax[]

currencyamount = lt_positions_amount[]

  • PURCHASEORDER =

  • PURCHASEAMOUNT =

return = lt_bapi_return

  • CRITERIA =

  • VALUEFIELD =

extension1 = lt_extension1. .

Thanks & regards

Sreenivasulu P<u></u>

Message was edited by: Sreenivasulu Ponnadi

Former Member
0 Kudos

Sreenivasulu,

Thx for your reply.

Sorry, I'm not a programmer. How can I derive out of the SAP Std program what the OBJ_TYPE should be?

obj_type = lv_type -> lv_type is another variable to me?