English

How to apply BAPI_GOODSMVT_CREATE by PHP

If we want to create material document in SAP R/3 from external system, we can apply BAPI function BAPI_GOODSMVT_CREATE for this action. After we already call this function, we shoud call function BAPI_TRANSACTION_COMMIT or BAPI_TRANSACTION_ROLLBACK to commit or rollback our processes. In the example , i will create issue material doc by apply this function using PHP.

How to insert an image into primary links in Drupal

Drupal normally provides powerful and secure menu system to all of us. We are able to manipulate primary links and secondary links seamlessly and easily with little effort. However, sometimes we would like to insert an image instead of text. I found a good snippet but it does not work for me. This snippet is just for menu item but actually, I am talking about primary links or secondary links. Starting in Drupal 5, primary links and secondary links are not formatted by the theme engine, instead, a list of arrays are passed to the theme directly. By default, all menus are passed to check_plain() to prevent unexpected security holes so we cannot insert HTML tag here include . Fortunately, this is Drupal. We can customize theme to let us insert just only img tag.

How to solve import development configuration failure in SAP NetWeaver Sneak Preview

SAP NetWeaver is one of a cool and complete platform for large-scale enterprise backoffice. There are so many components especially in the recent version which Java development is mainstream. That's why SAP has to distribute Technology Preview to anyone interesting to learn by themselves for wide-range users, e.g., administrator, developer, manager and etc. Another benefit is to test the product world-wide as a beta test so that all testers will generate bug reports to the community.

Anyway, all previews are not the real products and there is no professional support. We have to learn how to solve issues ourselves. I just got one issue during trying test Design Time Repository for large-scale development team. The problem occurred when I tried to import development configuration in NWDS.

Import configuration failed:Could not create mountpoint for SC in compartment example.org_APPL_1: Could not create remote path /dtr/ws/Application/example.org_APPL/dev/inactive/SCs/example.org/APPL/_comp/TopLevelDCs/ (Internal Server Error).

How to list the latest 11-20 nodes in Drupal (2)

According to the question and my snippets, the same one asked me again to extend the previous codes to show the author's name besides the node title. In addition, it would be nice to display node title and its author in a table form. Fortunately, this is Drupal. It is very easy.

How to list the latest 11-20 nodes in Drupal

I found an interesting question regarding Drupal at Codenone. One would like to list the latest 11-20 nodes in a block. He tried to use Views module with no luck. I think so. Listing the latest nodes in a block using Views is very easy but I don't see any clue to get the next 10 nodes. Anyway, it is possible to write a snippet code to fulfill this requirement.

How to generate combinations in Python

I was asked to help implement a kind of reusable combination generator in Python given the maximum number and the group size. Combination is widely used in high performance computing especially for searching in state space. Note that it means solving problem by brute force technique. So I wrote several codes.