ABAP: check if a function module exists programmatically

If you need to check if a function module within your program try running the following function: RH_FUNCTION_EXIST.
Continue Reading →

ABAP cancelling an SD Billing Document

If you have access to a billing document number try executing the following function: DATA: l_rtrn TYPE bapireturn1 OCCURS 0. DATA: l_succ TYPE bapivbrksuccess OCCURS 0. CALL FUNCTION 'BAPI_BILLINGDOC_CANCEL1' EXPORTING billingdocument = * testrun = * no_commit = billingdate
Continue Reading →

ABAP: execute OS level command

There are many things that one can do to execute a command in an Operating System from an ABAP report.  I’ll explain one method that one can take to accomplish this. Using transactions SM49 and SM69 set up and test a new OS command that you wish to execute.  For the purposes of
Continue Reading →

ABAP: load file using pop-up window

When writing a program the simplest way to load a file from your client PC in to the server SAP syste is through a use of a regular text box.  But if you want to get a little fancier try using the following function: data: l_select TYPE sapb-sappfad. CALL FUNCTION 'WS_FILENAME_GE
Continue Reading →