02-03-2014 11:56 PM
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.
02-04-2014 5:12 AM
Hi,
SAP is already provided the test program for this FM usage!
Check the report : ACC_BAPI_TEST_DOCUMENT
02-04-2014 10:33 AM
Thank you very much, but I am new and need test the function but instead in a report by FM.
Regards, Carlos Castillo
02-04-2014 6:06 AM
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,
02-04-2014 10:34 AM
02-04-2014 6:13 AM
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
02-04-2014 10:36 AM
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.