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_member185067
Participant
0 Kudos

Hi all,

I am new in the develpment SAP.

I have a z module function and need add the BAPI_ACC_DOCUMENT_POST but I don't know how to do it. Please someone have any sample code to do it or someone can help me.

Regards, Carlos Castillo.

6 REPLIES 6

Former Member
0 Kudos

Hi,


SAP is already provided the test program for this FM usage!

Check the report : ACC_BAPI_TEST_DOCUMENT

0 Kudos

Thank you very much, but I am new and need test the function but instead in a report by FM.

Regards, Carlos Castillo

Former Member
0 Kudos

Hi,

If i understand this correctly, you want to use the BAPI (BAPI_ACC_DOCUMENT_POST) in your Z function module right???

for this you can call this BAPI inside your own FM using

CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'

and the parameter that you want to pass in the BAPI can be given as the importing, exporting and changing  parameters of your Z function module along with your own custom parameters.

Hope this helps.

Regards,

0 Kudos

Thank you very much I will try and let you know!

Regards, Carlos

former_member212705
Active Participant
0 Kudos

Hi Carl,

As far as i got your question, you can just use CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'. You can call a function using 'PATTERN' button in toolbar.

If anything more is needed post reply us.

Regards,

Ashish

0 Kudos

Thank you Ashish, but Pattern is not avaliable for me because I created a FM in other SAP System and need to use BY RFC.

Thank you very much, Carlos.