Archive

Archive for February, 2009

Dynamic Internal Table

February 27th, 2009

REPORT YVERA_DYNAMICTABLE .

DATA: D_REF TYPE REF TO DATA,
D_REF2 TYPE REF TO DATA ,
I_ALV_CAT TYPE TABLE OF LVC_S_FCAT,
LS_ALV_CAT LIKE LINE OF I_ALV_CAT.

TYPES TABNAME LIKE DCOBJDEF-NAME .
PARAMETER: P_TABLEN TYPE TABNAME.

DATA: BEGIN OF ITAB OCCURS 0.
INCLUDE STRUCTURE DNTAB.
DATA: END OF ITAB.

FIELD-SYMBOLS : <F_FS> TYPE TABLE,
<F_FS1> TYPE TABLE,
<F_FS2> TYPE ANY,
<F_FS3> TYPE TABLE.

REFRESH ITAB.
CALL FUNCTION ‘NAMETAB_GET’
EXPORTING
LANGU          = SY-LANGU
TABNAME        = P_TABLEN
TABLES
NAMETAB        = ITAB
EXCEPTIONS
NO_TEXTS_FOUND = 1.
LOOP AT ITAB .
LS_ALV_CAT-FIELDNAME = ITAB-FIELDNAME.
LS_ALV_CAT-REF_TABLE = P_TABLEN.
LS_ALV_CAT-REF_FIELD = ITAB-FIELDNAME.
APPEND LS_ALV_CAT TO I_ALV_CAT.
ENDLOOP.
* internal table build
CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
EXPORTING IT_FIELDCATALOG = I_ALV_CAT
IMPORTING EP_TABLE = D_REF .
ASSIGN D_REF->* TO <F_FS>.

SELECT * FROM (P_TABLEN) INTO CORRESPONDING FIELDS OF TABLE <F_FS>.

LOOP AT <F_FS> ASSIGNING <F_FS2>.
write:/ <f_fs2>.
*your code goes here.
ENDLOOP.

vera ABAP

Are we living in a real world?

February 26th, 2009

I just read my friend’s blog, what interests me was the picture.. and it was so true! Lol.. I can’t stop laughing. Here’s the pic: 24w7ed0Read this too: Pecas-ndahe, and you’ll see what I’m talking about..

So… are we living in a real world?

vera Daily

Taman Safari. The Indonesian Safari

February 25th, 2009

I went to Taman Safari last Saturday (Feb 21st, 2009) with my family. We started at 6 am from home, arrived there at about 8.20. The road was not crowded like it usually is on weekends, it’s great..

Before we arrived to the place, we bought a few carrots for feeding the animals. The price was Rp 2500 each tie and we bought 4 ties. When we get there it was still closed. So we wait in line for a few minutes with the other cars.

The gate was open at 9.00 (On Sundays it opens at 8.30), the entrance tickets price was Rp 165.000 for 3 people (Adrian was not counted). First we saw a few bunch of elephants standing in a group.. then we found zebra, deer, cow, buffalo, etc.: all the herbivores animals. dsc000691They were not afraid of us, instead they approached us and put their head near the window hoping we’d give them food. So we gave them the carrots one by one. Adrian was so excited. He kept saying “I dare to touch them! I’m brave.. I’m brave…”. Yea right, he kept saying that to deny that he’s actually a bit scared of them.

dsc00080A few kilometers ahead we found another gate. This time we were getting into the carnivores’ place. There were lions, tigers, white tigers, leopard, etc. We had to shut our windows tight, shouldn’t stop and kept moving. They were so beautiful! The Safari must had been taken care of them real good, they were all clean, fresh, even they’re living in a “cage”. Actually what was so called cage was real big with all the artificial habitat, but I think it was almost like a real one. Read more…

vera Daily

Social networking

February 24th, 2009

I have some social networking accounts such as friendster, orkut, yahoo 360, facebook, multiply and you name it what else. I knew most of them cause my friends asked me to join and connect with them.

The first social networking I joined was Friendster. I knew it from my friend in 2004. That was the very first time I joined any social networking. I was actually a bit paranoid at that time, I didn’t dare to put my clear picture there, or anything that described me too detailed.

Then a few months later another friend of mine asked me to join Orkut. He said that it was better, that it was linked with my gmail account and I forget what other reasons was. So, I signed myself up.

After that, another friend got me into Multiply. When I first used it, I liked it immediately. It was very user-friendly, easy to use, and interesting. I could upload anything easily there, including my photos, blogs, recipes, reviews, etc. I could even easily change the theme with provided templates or with the ones I made myself. I used Multiply longer than my other accounts for that matter. Until one day someone’s post disgusted me and made me put “Blogger’s Code of Conduct” on my page. A few people just have to learn about the ethics of blogging before they post anything!
Read more…

vera Daily

Homework

February 17th, 2009

Last night I played “The Sims” with Adrian. The familly we were playing had 4 kids. After school each kid brought home their homework, and so I was busy telling each of them to do their homework or telling their parents to help them.

Adrian: “Mom.. I want homework too”. Then I was litterally laughing.. does he think homework is fun?
Me: “Don’t worry honey. You’ll get homework from school”
Adrian: “Yeaa…. but which school?”
Me: “Anak Langit (his school’s name) of course. Where else could it be?”
Adrian: “No, Anak Langit never gave me homework” *of course, why on earth would a playgroup gives homework :P
Me: “Then you ask your teacher to give it to you.. Ms. Noura, I want some homework please… Okay?”
Adrian: “Okay”

The next day (today) I called home and Adrian answered the phone. Read more…

vera Adrian, Daily

Home made corned beef

February 17th, 2009

img_8604

Ingredients:
1 kg meat, preferably fatty
250mg saltpeter
10 unions, chopped
5 garlic cloves, chopped
tomatoe paste (apr. from 4 boiled tomatoes)
1 tsp nutmeg
salt, sugar and pepper

Direction:

  1. Mix saltpeter,  a pinch of salt in a large bowl. Stir well until dissolved.
  2. Pierce the meat all over with a fork or a small sharp knife. Put the meat in the mixing bowl,
    be sure it’s submerged completely..Leave it aproximately 24 hours, then rinse well under cold running water.
  3. Put the meat in the boiled water, put all the union, garlic, tomatoe paste, nutmeg, sugar, salt and pepper.
    Simmer until tender, approximately 2,5 hours.

Your corned beef is ready to serve. Enjoy!

vera Recipes

My faithful partner

February 12th, 2009

I’ve been working for this company for more than six years. When I first came here, I was given a partner called a computer unit.

I loved my partner. He never gave me any trouble and we got along pretty well. Until one day, I had to take leave cause I had to deliver my baby. When I got back to my office 3 months later, I knew then there was something wrong with my partner. I didn’t know what, but I could feel it. It’s like there was something different about him. Then I found out that my partner had changed into something else which looked exactly like him!

Since then everything was never be the same. I had to format him every now and then, he was getting infected quite often, and he was sooooo slow that I can finish a cup of coffee to wait for a process finised (j/k)…. Anyway, he was just eating my head all the time.

Then, quite a surprise… I was suddenly given a new partner! It might not be the newest technology in town, but I think I’m quite satisfied with this guy. He’s much more faster than the old one! Yea…..

P.s. Thanks bro…!!

vera Daily

Good night

February 11th, 2009

My family has a bad habit. We don’t like to sleep early, usually we sleep after 10… or worse, after 12 am. Then my son inherits this habit. He always sleeps late since he was a baby.

Before he reached 1 year, we had to take him for a ride to get him to sleep. After a while it didn’t work anymore, we then took him for a ride using our motorcycle, then he would go to sleep. After he reached 2, neither of them worked anymore.

“Why is night longer than daytime?”, he once asked me. I said, “Of course not.. and what’s wrong with night time anyway?” I asked him back. He said, “I like daytime cause I can play..”

I need to get to work in the morning, and maybe cause I’m getting old, I feel it so exhausting to follow his schedule these days.

A few days back I started to “force” him to get to sleep on MY schedule. First, I took him to bed at 11. Then I reduced it to 10 and last night I made it 9 p.m.

It’s not hard at first. He cried and screamed yelling “I don’t like sleeping Mommy! I want to play!!”.. Then I’d just turn my back and close my ears with pillow, hoping I wouldn’t hear his screaming.. but still, it’s always louder when you hear a child screaming in the middle of the night :P .

Then after a while he poked me and say “Mommy! Mommy!”. And when I turned my face to him he said, “I love you mommy…” he said, still crying. How heartbreaking it sounds to hear it form that little mouth. Then I held him and say, “I love you too honey.. But you have to do what I’m telling you. We need to get to sleep now, I have to go to work tomorrow morning and you need to go to school…”. He started crying, “Noooo.. I don’t like sleeping.. I don’t like sleeping..!!”. I put him back to bed and leave him cry to sleep.

To tell you the truth, I never had a heart to leave my son cry to sleep like that. But I think sometimes being hard is necessary…

vera Adrian ,