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

BAPI_ACC_GL_POSTING_POST Problem ...

Former Member
0 Likes
1,506

Hi all,

I'm using this BAPI to upload expenses note.

When I type manualy my expenses note via F-02, I've the field "Personnel No." to fill ( on the cost center pop-up).

With my BAPI, BAPI_ACC_GL_POSTING_POST, I don't know where to put this field, moreover, I get the error message " Field Pers.No. is a required field for G/L account.... ".

Thanks for your help.

Regards,

Erwan.

1 ACCEPTED SOLUTION
Read only

FredericGirod
Active Contributor
0 Likes
1,371

Hello Erwan,

I'm not sure to understand, if you seek for the field cost center look the tables accountgl-costcenter.

If not check the structure BAPIACGL08.

Regards

Frédéric

12 REPLIES 12
Read only

FredericGirod
Active Contributor
0 Likes
1,372

Hello Erwan,

I'm not sure to understand, if you seek for the field cost center look the tables accountgl-costcenter.

If not check the structure BAPIACGL08.

Regards

Frédéric

Read only

0 Likes
1,371

In fact, I don't find in the BAPI structures or tables the field 'Personnel No'.

Though the Bapi sends an error msg, posted above :

"Field Pers.No. is a required field for G/L account ...

".

( When you do manualy via the tcode 'F-02', the Pers. No. field is situated under the WBS element in the pop-up screen )

Help please.

Erwan.

Message was edited by: Erwan LE BRUN

Read only

0 Likes
1,371

What is the Data Element or the Domain of this field ?

(I can't go to this screen actually)

Read only

0 Likes
1,371

The field is :

'Personnel No'

Technical info : 'COBL-PERNR', data element : 'PERNR_D'

Thanks

Read only

0 Likes
1,371

It's really difficult to answer without this F.02 but maybe that could be the field documentheader-username.

Do you have check this one ?

Read only

0 Likes
1,371

The T-code to post the expenses note in SAP is 'F-02'.

No, it's not the username...

Read only

0 Likes
1,371

Have you guys checked out the possible bapi structures.

I would expect that there is somewhere a table with 2 fields

One for the field name, one for the field value.

Now of course you need all the fields to relate the entry to all other entries, but that would allow you to pass all these little miscellaneous information tidbits

Enjoy

Message was edited by: F.J. Brandelik

Read only

0 Likes
1,371

I’m going to sum-up my problem, I’ve to find a BAPI which correspond to the Tcode ‘F-02’ ( G/L Account posting ).

What I have to post are some employees note expenses, I though that the BAPI_ACC_GL_POSTING_POST was the good one to do that.

It should work fine, but this Bapi doesn’t allow me to fill the “Personnel N°”…

This field is a mandatory field in our F-02, but as I can’t fill it with the BAPI, my G/L posting doesn’t work.

I’ve found another BAPI which seems to be better and contains the field ‘Personnel N°’, it is BAPI_ACC_EMPLOYEE_EXP_POST.

During my test my have the error: ‘FI/CO interface: Line item entered several times’.

Do u think this BAPI is good for what I’ve to do?

Someone have an idea, concerning the error?

Read only

0 Likes
1,371

Hello Erwan,

I am trying to use BAPI_ACC_EMPLOYEE_EXP_POST for posting some bookings for General Ledger: I hope to be able to do tax relevant bookings with this BAPI, since BAPI_ACC_GL_POSTING_POST does not allow tax relevant bookings. I get the same problem you describe

‘FI/CO interface: Line item entered several times’.

Did you find a solution to this by now?

TIA

Oswald

Read only

0 Likes
1,371

BAPI 'BAPI_ACC_DOCUMENT_POST' do not have a field to map Personnel No(PERNR). Extend the BAPI using 'EXTENSION1' parameter. Take a look at SAP Note. 487722. Follow the 4 steps specified on the note to implement BTE.

Please let me know if you need more help.

Ram Dindi.

Read only

0 Likes
1,371

Well, I should have really said 'BAPI_ACC_GL_POSTING_POST' instead of 'BAPI_ACC_DOCUMENT_POST'. The note is meant for all FI BAPI's. For 'BAPI_ACC_GL_POSTING_POST', try using CMOD/SMOD to enhance. For 'BAPI_ACC_DOCUMENT_POST', CMOD did not work for me. So, I used BTE.

Ram Dindi.

Read only

0 Likes
1,371

Thank you very much Ram Dindi,

It's an atypical solution provided by SAP.

Thanks a lot.

Regards,

Erwan.