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: 

BAPI_ACC_DOCUMENT_POST

Former Member
0 Kudos

Hi ,

I am getting following error while executing BAPI_ACC_DOCUMENT_POST.

"E: RW:602=Required field GL_ACCOUNT was not transferred in parameter ACCOUNTGL" . I am posting following details:

BUS_ACT= RFBU

USERNAME= abc_D

COMPANY Code: 1000

Posting date: 290908

Fiscal Yr: 2008

Doc Type: SA

ACCOUNTGL :

Item : 10

GL acct :810401

ACCT_TYPE: S

Company code: 1000

Posting Date: 29.09.08

Item : 20

Vendor_No : 21

ACCT_TYPE: K

Company code: 1000

Posting Date: 29.09.08

What is the eaaror related to?

Prashant

10 REPLIES 10

Former Member
0 Kudos

Hi,

Use UNPACK Statement for field GL_ACCOUNT[HKONT] and then check.

Thanks

Sudharshan

Former Member
0 Kudos

Also please do fill the 3 fields of header

wa_docheader-obj_type = BKPFF

wa_docheader-obj_key = $

wa_docheader-obj_sys = $

I hope you have used UNPACK statement

UNPACK wa_accountgl-gl_account into wa_lineitem-gl_account.

Thanks

Sudharshan

Former Member
0 Kudos

Hi,

1) I have posted FI document as system has given return message that

"Document posted successfully: BKPFF 010000016910002008 T90CLNT090"

But i am not able to see the document 100000169 on co code 1000 yr 2008. What could be the problem?

2) If i have to post following FI posting what should be the bapi Inputs?

Co Code 1000, Yr 2008

Debit Vendor=21 Amount=100 INR

Credit G/L= 810401 Amount=100 INR

Can you help me for this?

Prashant

0 Kudos

hi Prashant,

After receiving this message [document no] you should find this document in this system with the document no specified,the only reason I feel you are not able to see this is because you might have not used BAPI_TRANSACTION_COMMIT after this bapi.

Please do check and let us know ..

Thanks

Sudharshan

Former Member
0 Kudos

Hi,

When i am posting the Vendor document ( Account payable), is it mandatory to pass reconciliation account along with the Vendor code?

Prashant

0 Kudos

Dont think so its mandatory even without this field you will be able to handle accounts payable document,let me know if you are looking anything specific to use Reconcilation account.

Thanks

Sudharshan

0 Kudos

Hi Sudarshan,

Could You please suggest me how can I use UNPACK statement. Iam also getting same error. Iam doing File to BAPI scenario. Iam not using proxy. Iam just using File to RFC.

Please suggest how can I overcome that problem.

0 Kudos

Hi,

Please do check F1 on more help for UNPACK statement.

UNPACK FIELD1 into FIELD1.

which will set the length to the defined value by padding zeroes.

Thanks

Sudharshan

Former Member
0 Kudos

Hi,

Which fields in the accountgl or accountpayable paremeter corresponds to the reference or assignment field in the regular FB01 or any finance transaction?

Prashant

former_member203501
Active Contributor
0 Kudos

hi look at this ....it is having your answer...