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 with Extension1

manukapur
Active Participant
0 Likes
2,763

Hello Experts,

I am trying to use the BAPI BAPI_ACC_GL_POSTING_POST with Extension 1 for FBS1 Posting. I also need to update the Planned Reversal Date.

At the moment the BAPI Structure does not have STODT i.e. planned reversal date field.

Does this work for FBS1 Accural/Deferral Posting wherein we have to specify the planned reversal date?

Regards,

Manu

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,699

Just read the documentation on the BAPI parameter EXTENSION1.

(If documentation not up-to-date, Instead of SMOD/CMOD on enhancement  ACBAPI01 use SE18/SE19 on BAdI ACC_DOCUMENT/Enh spot BADI_ACC_DOCUMENT)

Regards,

Raymond

Hello Experts,

I am trying to use the BAPI BAPI_ACC_GL_POSTING_POST with Extension 1 for FBS1 Posting. I also need to update the Planned Reversal Date.

At the moment the BAPI Structure does not have STODT i.e. planned reversal date field.

Does this work for FBS1 Accural/Deferral Posting wherein we have to specify the planned reversal date?

Regards,

Manu

7 REPLIES 7
Read only

Former Member
0 Likes
1,699

Hi,

Instead of BAPI why don't you write the BDC for the same.

If you want to use BAPI you need to add that required field in structure "BAPIACHE08" which is used in BAPI.

Regards,

R.S.K

Read only

0 Likes
1,699

BAPI are always better and robust than the sequence of screens. There is an extension provided in the BAPI. See note 487722.

Just wanted to know if you anyone has used it to update Planned Reversal Date as I couldn't find anyone using it successfully.

Regards,

Manu

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,700

Just read the documentation on the BAPI parameter EXTENSION1.

(If documentation not up-to-date, Instead of SMOD/CMOD on enhancement  ACBAPI01 use SE18/SE19 on BAdI ACC_DOCUMENT/Enh spot BADI_ACC_DOCUMENT)

Regards,

Raymond

Read only

0 Likes
1,699

Thanks Raymond,

I just checked the BADI. It seems that it is not called with my current BAPI i.e. BAPI_ACC_GL_POSTING_POST

Also checked the Documentation for this BADI.

This BAdI is called up within the BAPIs AcctngDocument.CHECK and AcctngDocument.POST ( BAPI_ACC_DOCUMENT_CHECK and BAPI_ACC_DOCUMENT_POST).

Seems I have to change the BAPI to use it.

Does it work that ways? I don't have an issue using another BAPI as long as my documents get posted with the planned reversal date.

Regards,

Manu

Read only

0 Likes
1,699

Hi Raymond,

Have you tried updating the planned reversal date using the BAPI BAPI_ACC_DOCUMENT_POST with the BADI BAdI ACC_DOCUMENT?

Does it work?

Regards,

Manu

Read only

0 Likes
1,699

Usually I use the generic BAPI_ACC_DOCUMENT_POST, and yes it worked fine for some standard (but never had to change this one) as well as every specific customer fields added to coding block. Maybe the older BAPI you used don't call the BAdI and only the old customer-exits of ACBAPI01, look before changing BAPI ?

The other solution I'm used to is use of FI/CO substitutions, you could also search this area. (Like export data to memory, and import it in substitution exit)

Regards,

Raymond

Read only

manukapur
Active Participant
0 Likes
1,699

I explored the options with the USER EXIT and it worked with it.

Thanks for your help.

Regards,

Manu