Tags: snippet

Web Dynpro Close SAP Portal Window

This is how you can close a Portal Window from Web Dynpro. There are however some restrictions on when a portal window can be close which you can read at link Restrictions in CLOSE WINDOW Functions In my example window W_MAIN is loaded on the page with V_MAIN in it. On the press of button ‘Close’ portal windows needs to be closed.

Read More →

Get Domain Fixed Value Description – Better Way

To get domain fixed value description, in past, I have used function modules DD_DOMVALUES_GET, DD_DOMA_GET and select from table DD07L. All these methods require you to specify domain name or some would say require you to hardcode domain name. Recently I have found this elegant method, which doesn’t require you to specify domain name. As long as you have variable defined with reference to domain or data element or table field which would eventually be linked to domain it works seamlessly.

Read More →

Duplicate Sales Order Check

PO Number field (VBAK-BSTNK) in Sales order contains customer’s order reference number. To avoid raising duplicate order for a customer SAP can be configured to check duplicate PO numbers. This blog highlights where in configuration you can activate this duplicate order check and which customer enhancement you can implement to check duplication during inbound IDoc processing.

Read More →

Enhanced Table Maintenance with Automatic Change Recording

Table maintenance generator is very powerful tool to generate simple data entry screen for tables. For tables which store configuration data i.e. rarely modified it not worth spending time creating module pool program for data entry. Table maintenance generator also gives programmer opportunity to modify standard behaviour by including additional logic. In this blog I will enhance standard table maintenance to automatically record created by and created date/time and also last modified by and last modified date/time.

Read More →