Friday, 17 July 2020

SAP Smartforms - Add T&C Pages

Some of you might have come across this requirement in your years of doing ABAP. T&C page might be easy in most cases, just set a COMMAND from PAGE main window but if we've some other stuff like printing a secondary window at end of page, we might missed that.

Since many developers overlapped their final windows to save some empty spaces rather than wasted it for reserving the last footer, this becomes a problem when trying to jump to a T&C page.

To achieve this, we need to do the following:

  1. Create two global variables (flags), e.g. GV_FLAG1 and GV_FLAG2.
  2. In the main window, after you've done all the processing, you need to create a program lines, here we set the first flag, GV_FLAG1 = 'X'. No conditions need to be added or ticked.
  3. After the above program lines, create a COMMAND and this is to be set to jump to the T&C page.
  4. In your secondary window (e.g. footer printed at last page), under the conditions tab, do a check on GV_FLAG1 EQ 'X' and GV_FLAG2 NE 'X'. Do not set any additional event/condition.
  5. Create a program line in the secondary window, make it the last one after all other processing, here you set the second flag, GV_FLAG2 = 'X'. Important, no condition needed and any event should be unticked. 
The above should print the last footer window and jump to your T&C page. Good luck!

 

Thursday, 25 June 2020

Debugging error from VF01

Ever wonder what the easiest way to debug error coming out from VF01? Well, you could try creating watchpoint by checking SYS-MSGID = 'VF' but the easiest is to place a session breakpoint in subroutine VBFS_HINZUFUEGEN which can be found in INCLUDE LV60AA98.




All errors found in the log will need to go through the above routine. Hope this helps! I've been enjoying doing this stuff for more than 20 years! Hope you too! :)

Wednesday, 12 June 2019

Debugging SAP ERMS rules

There probably many CRM implementations which use ERMS, I've come through few requests on how to debug the auto response given by ERMS when CRM receives an inbound email.

SAP provides a tool which you could use to debug this auto response rules. The transaction CRM_ERMS_LOGGING is very helpful. But before we could use this transaction, we need to know the work item ID.

Anyway, here are the steps I used in my debugging:

1. Use SOST, find the response that was sent out, note the date/time
2. Use SWIA, this will return you with work item ID, fill in the time period based on (1) and the task = TS00207915 (ERMS service manager)
3. Put a break point at your auto response implementation
4. Use CRM_ERMS_LOGGING, enter the work item ID and un-tick "Do not execute actions"
5. Execute and you'll be brought to the break point you left in (3)



Tuesday, 19 February 2019

Retrieving older version of sapscript

As you may have come across, there is no versioning available for sapscript in SAP (at least until SAP ECC6, no idea if newer one has it). So is there a way to retrieve your old version?

Simple and straight answer will be, NO!

Workaround? Probably there is. Here is what I've done to work around this:

1. Use SE03 to find the the last good transport for the sapscript.
2. Use STMS_IMPORT to import the previous transport into your QA or Sandbox.
2.1 Extras - Other Requests - Add
2.2 Put transport request, client and click on transport again.
3. Download the sapscript form using RSTXSCRP to your local PC.

Good luck!

Monday, 9 April 2018

New project - Ubitx - Radi2cino

I've always been interested in building my own radio. I've seen many projects available on the net which I could get my hands dirty with. I had a WSPR kit which I've finished working on it but I had little problem and somehow I lost interest on it.  I saw another one which allows SSB/QRP kits from India. It comes as a full assembled board but with no case and lot of other interesting projects which can be based on that board. The UBITX kit is made available by VU2ESE and can be bought from his website at:



This kit is selling like a hot cake, snapped most of the available kits just few days after it was launched at the end of last year. Currently, it is being back-ordered, and it usually takes around 2 months to get yours ready for shipping. Mine is already in the post and unlucky me, I choose to get it shipped via India Post and it takes weeks to reach me I guess. Should've choose DHL shipping for an extra USD$10. BTW, the kit cost is just USD$109 for now, the same price when it was launched last year. 

BTW, while waiting for the UBITX to arrive, I've ordered a Raduino replacement from a US ham, W0EB. This Raduino replacement has been designed/developed by W0EB/W2CTX/N5IB and made it available for US$45 (shipped to Malaysia). The kit comes unassembled and it comes with two SMD chips and lots of SMD resistors and caps. This is my first time working on SMD and the only tool I've is soldering iron. Anyway, managed to assemble it but yet to test it out. 




Had a problem with Si5351a, developed some bridges with some of the pins. So, applied lot of flux to remove the bridges. Since this is my first time doing SMD soldering and I think it is good enough and if it doesn't work later on, I'll need to re work on it again.




The case that I have bought, I was thinking of getting a smaller one, but for now, this is good enough. Front panel ready, back panel will wait. Forgotten to buy the UHF connector for the case.



x

Thursday, 1 March 2018

CRM middleware - Debugging incoming BUPA _MAIN/BUPA_REL

Instead of stopping the inbound queue to enable debugging, there is another method which hasn't been documented well.

In the BUPA_CONV_EI2BAPI function module, there is the following code:



This will enable us about 30 seconds to enable debugging from SM50.

Saturday, 27 January 2018

Upgrading my Heathkit SB-221 with Harbach upgrade kits

Finally, after I have got all the upgrade kits that I ordered from Harbach, I started putting them together today. It took me many hours since I couldn't visualised on how they're supposed to be installed based on the installation guides which really useful nonetheless.


I started my upgrade with the RM-220 meter board. It has missing R2 resistor and Jeff had shipped it along with my FB-220 kit which I ordered later. I didn't think it was necessary to upgrade the capacitors bank but many of my friends suggested it since the amplifier was built 30+ years ago. The capacitors might have dried up. Along with RM-220, I did the FB-220 upgrade too since  I need to work on the connection anyway. Anyway, the meter board doesn't require the old zener diode, so I've removed it as per the installation guide.



After the two upgrades, I did a test run just to make sure everything was okay before going for the other upgrades. The HV reading seems to be a okay and as per the original specs. Before the upgrade, the reading were a bit off for both CW and SSB mode.





Satisfied with the HV side upgrades, I went ahead with adding the SS-221-240 upgrade. This requires a lot of works since there are four things need to be done:


  1. Installing the circuit board (it is upside down since I couldn't find a safest way of installing it and looking at some of the photos found on the net, they're doing the same thing.
  2. Installing the bridge rectifier.
  3. Adding  transient voltage suppressors ( 390V ZNR suppressors).
  4. And lastly the diodes across the T/R relay.






The last part before doing another test run was to put in the SK-220 soft key. Its a bit cramp there since there is RF choke installed. The installation guide doesn't warn this though. But I managed to squeezed it in.


Done with all the upgrades, I did a check on all connections and tidy some of the wires with cable tie. I did a power up test run and let it ran for half an hour to see if I any smoke came out and everything went just fine. Put back the casing and now ready for RF test. This will be done when I get my hexbeam fine tuned. Stay tune!

Consuming EUDR Webservices from SAP ECC

There are number of us who're still stuck in the old SAP ECC or S/4 Hana on Premise and yet to move into Private or Public Cloud. A rece...