Friday, February 27, 2015

106.ABAP TIP - How to trace the changes for cbo table








Chapter 106
ABAP TIP - How to trace the changes for cbo table
Source : http://abapjoy.blogspot.com


When you need to trace the change log in SAP standard table, the table of CDHDR and CDPOS enable you to make it.
In case of CBO table, you can make the change management following the below method.

For testing, you need to create CBO table ZSCARR.

Execute T-CODE:SCDO and push the button Create

Input the Change doc.object w/o namepace prefix and push the button Continue.

Move to next screen by pushing the Yes.


Input the table name and push the Insert Entries

Check the option for change document in data element of the table.


Lets move to change document object again, chose the menu : Menu -> Utilities -> Generate update pgm.


Enter the function group name so on, and execute generate.


Relevant programs and function module is automatically created.



Lets test the function module generated in T-CODE:se37.

Now, once you call the function in program, you can trace and save all change log.

Since the function of ZCARRID_WRITE_DOCUMENT is update function module, you should describe the COMMIT WORK or COMMOT WORK AND WAIT after calling the function.


You can see the change log in table CDHDR, CDPOS.




Friday, February 13, 2015

ABAP TIP - how to complete select statement with pattern feature



Chapter 105
ABAP TIP - how to complete select statement with pattern feature
Source : http://abapjoy.blogspot.com


Its useful to use the pattern feature when writing the SELECT statement.


Input the table name which you need to write sql


Push the Copy button after choosing the columns which need to be included in where condition.

The sql statement is automatically completed.






ABAP TIP - IMG MENU Extension Source






Chapter 104
ABAP TIP - IMG MENU Extension
Source : http://abapjoy.blogspot.com


Lets learn how to customize the IMG MENU in T-CODE:SPRO.
First, execute T-CODE: S_IMG_EXTENSION and push the possible entry on IMG structure filed.

Enter the Title and execute.

This time, you need to push the possible entry for the Enhancement ID.

Select the Enhancement ID currently being in use.

Push the button of Enhance Structure.

In order to create higher node, push the icon  .

Enter the proper node text and move to next screen.

You can see that the top node TEST is created. Push the icon  choosing the node.

We are going to add a table ZSCARR into customizing.
Enter below and save.

The table which is going to be included in customizing object should be set to be maintained.


In addition, The Table Maintenance Generator also have to be created.

Now, once you perform the T-CODE: SPRO, the added menu will be displayed.
If you push the icon, the table maintenance is performed.