cancel
Showing results for 
Search instead for 
Did you mean: 

Populate STCD4 field in BAPI_ACC_DOCUMENT_POST

flavio_mariola
Explorer
0 Kudos

Hi guys,

to register FI documents, I use BAPI_ACC_DOCUMENT_POST. The registration is working correctly, now I have been asked to update the STCD4 field of the BSEC table during registration. The STCD4 field is not present in the structures managed by the BAPI and is not contained in the ACCIT structure either. Can anyone suggest how to solve the problem?

Thank you,

Flavio

Mohamed_Mukhtar
Active Contributor

Hi,

This can be achieved using BTE's. The below are the FM's and go through the documentation

SAMPLE_PROCESS_00001120 - This process is always reached when all the final checks have been completed before a document is updated. However, at this stage, the document number has not yet been assigned.

SAMPLE_INTERFACE_00001030 - This Event is reached prior to the update posting module for FI (POST_DOCUMENT).

Please search SCN to know how to implement BTE's.

Hope it helps.


Regards,

Accepted Solutions (0)

Answers (4)

Answers (4)

You can update filed STCD4 form Bapi Extension .

Used EXTENSION2 .

Please check below Link.BAPI Extension for BAPI_ACC_DOCUMENT_POST

https://archive.sap.com/discussions/thread/170479


flavio_mariola
Explorer
0 Kudos

Solved with exit EXIT_SAPLFCPD_001.

Thanks

flavio_mariola
Explorer
0 Kudos

I looked for the string "OPEN_FI_PERFORM" and tried some BTEs (the ones that read the BSEC table), but I do not have any during the BAPI_ACC_DOCUMENT_POST execution

mmcisme1
Active Contributor
0 Kudos

I also noticed EXTENSION2 is one of the options in the function module. In addition to what ABAP Learner has written. You might be able to pass the parameter using that. The documentation on the BAPI function module is good.