Application Development and Automation 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: 
Read only

Tcode FB01

Former Member
0 Likes
2,465

I m populating FB01 tcode...using BAPI BAPI_ACC_DOCUMENT_POST..in my flat file for populating Fb01..i have two fields vendor and account...but where r these fields in BAPI structure...but while entering values in FB01 i m entering both vendor and account values in same field rf05a-newko(account)...where is this field in BAPI structure..

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,326

HI,

To pass the vendor you need to pass the data in strcuture ACCOUNTPAYABLE.

Pass the G/L account number and the vendor number.

Regards,

Ankur Parab

17 REPLIES 17
Read only

Former Member
0 Likes
2,328

HI,

To pass the vendor you need to pass the data in strcuture ACCOUNTPAYABLE.

Pass the G/L account number and the vendor number.

Regards,

Ankur Parab

Read only

0 Likes
2,326

Account or Matchcode for the Next Line Item(RF05A-NEWKO)...where is this field in BAPI structure

Read only

0 Likes
2,326

Sorry Duplicate

Edited by: Himanshu Verma on Aug 17, 2009 6:45 PM

Read only

0 Likes
2,326

Hi,

You cannot find the field NEWKO directly.

The value which pass to field NEWKO in transaction FB01 basically depends upon the posting key.

It can either be a customer number or vendor number or a G/L account.

So accordingly you have 3 tables available in the BAPI ; ACCOUNTGL, ACCOUNTRECEIVABLE and ACCOUNTPAYABLE.

Understand the business concept and the relevance of the field NEWKo by doing F1 on the same.

Also check with your functional consultant to explain the business relevance of the field.

Regards,

Ankur Parab

Read only

0 Likes
2,326

see...if i have fields below...how to populate in BAPI...

Company Document number Document Type Posting date Document Date Currency Amount Vendor no. Matriculation Number Cost Center Account Order Posting Key Due Date Text field Special G/L Assignment

DM10 E000000001 ES 27072009 27072009 EUR 200 1000006 34 27072009 LAST DATE OF EXP.NOTE:27.07.2009 E000000001

DM10 E000000001 ES 27072009 27072009 EUR 200 1910011 40 EXP.NOTE NO:E000000001 EMPLOYEE NAME: MARIO Romani E000000001

DM10 E000000001 ES 27072009 27072009 EUR 200 1000006 25 27072009 LAST DATE OF EXP.NOTE:27.07.2009 E000000001

DM10 E000000001 ES 27072009 27072009 EUR 200 2103001 50 EXP.NOTE NO:E000000001 EMPLOYEE NAME: MARIO Romani E000000001

where exactly i need to send to which structure...pls help....

Read only

0 Likes
2,326

Parab...thanks for u reply...it was really helpful...

but one thing...all errors are sorted out..only left are

Error in document: RMRP E000000024DM102009OR DSDCLNT500

Incorrect entry in field OBJ_TYPE: RMRP

what shall i pass to obj_type field...as i checked in BKPF table this value already exists...

Read only

0 Likes
2,326

Hi,

For vendor posting 'BKPFF', also if you set a different year or period from the value that you have in the posting date you might get this error.

Regards,

Himanshu

Read only

0 Likes
2,326

still..i m getting below error......pls help

E RW 609 Error in document: BKPF E000000024DM102009OR DSDCLNT500

E RW 628 Incorrect entry in field OBJ_TYPE: BKPF

Read only

0 Likes
2,326

Hi,

I am sorry those fields are export parameters and you are not suppose to fill them.

If you want to capture those values youc an jusy pass blank fields of the reference type.

Regards,

Himanshu

Read only

0 Likes
2,326

these are present in header table...and it is giving error if dont pass any value...

Read only

0 Likes
2,326

Ohh!!1

try with documet type 'BKPF' i got confued OBJ_TYPE on the export that should work

Regards,

Himanshu

Read only

0 Likes
2,326

i have given as...

OBJ_TYPE BKPF

OBJ_KEY E000000024DM102009OR

OBJ_SYS DSDCLNT500

BUS_ACT RFBU

it is not working...giving below error

E RW 609 Error in document: BKPF E000000024DM102009OR DSDCLNT500

E RW 628 Incorrect entry in field OBJ_TYPE: BKPF

Read only

0 Likes
2,326

Hi,

The Object Types for Accounting are maintianed in table 'TTYP' check that table and see if the enry is there,

Also i the structure if you just dont pass the obj_typ are you getting an error.

It shold either be 'BKPF' or 'IBKPF'.

Regards,

Himanshu

Read only

0 Likes
2,326

'BKPF' entry is there in table TTYP...and also when i post a document in FB01 tcode i m not entering any OBY_typ value but...while i check that document number in BKPF table OBJ_TYPE is stored as 'BKPF' value...internally how it is taking that value..

Read only

0 Likes
2,326

STRANGE!!

i have tried to post using oby_type = ABR ACE AFRU AIBU AMBU AMDP it got posted successfully in BAPI...but there is no entry in BKPF table???

and why it is not taking

BKPF

BKPFF

BKPFI

Read only

0 Likes
2,326

i m also facing same problem...

i have tried to post using oby_type = ABR ACE AFRU AIBU AMBU AMDP it got posted successfully in BAPI...but there is no entry in BKPF table???

and why it is not taking :BKPF BKPFF BKPFI

pls help

Read only

Former Member
0 Likes
2,326

Hi ,

check structure ACCOUNTGL.

Regards,

Himanshu