Search

Loading

Monday, December 9, 2013

Open and display pdf file with SAP ABAP

The following ABAP Program open PDF file and display into SAP Screen :

Wednesday, January 30, 2013

Insert SAP CRM Product Relations with BAPI Fuction



The following simple code inserts SAP CRM Product Relations ( using BAPI Function ) :

Tuesday, January 29, 2013

Replace in ABAP Strings


Pattern-based replacement
1. REPLACE [{FIRST OCCURRENCE}|{ALL OCCURRENCES} OF]
pattern
IN [section_of] dobj WITH new
[IN {BYTE|CHARACTER} MODE]
[{RESPECTING|IGNORING} CASE]
[REPLACEMENT COUNT rcnt]
{ {[REPLACEMENT OFFSET roff]
[REPLACEMENT LENGTH rlen]}
| [RESULTS result_tab|result_wa] }.
Position-based replacement
2. REPLACE SECTION [OFFSET off] [LENGTH len] OF dobj WITH new
[IN {BYTE|CHARACTER} MODE].

Thursday, January 17, 2013

Load budget in FM with BAPI_0050_CREATE


Load budget data in SAP FM with function  BAPI_0050_CREATE from text file :

Monday, December 17, 2012

create simple ABAP class into abap program


The simple ABAP program writes to screen from simple ABAP class method:


program ztest_class.

*--------------------------------------------------------------------
*  www.developerpages.gr
*--------------------------------------------------------------------

class myfirstclass DEFINITION FINAL.
  PUBLIC SECTION.
    methods hello_world.
ENDCLASS.

CLASS myfirstclass implementation.
  METHOD hello_world.
    write :/ 'Hello world from simple ABAP class !'.
  ENDMETHOD.

ENDCLASS.

data : my_hello TYPE REF TO myfirstclass.