Welcome Guest ( Log In | Register )

Bump Topic Topic Closed RSS Feed

Outline · [ Standard ] · Linear+

 SAP Talk, A thread on everything about SAP

views
     
SUScastelloz
post Apr 10 2009, 10:01 AM

Getting Started
**
Junior Member
181 posts

Joined: Oct 2007


QUOTE(GiNgEr^fIsH @ Apr 9 2009, 10:39 AM)
germany company? haha. the one in cyberjaya?
e****a? i had alot of respect for them. until i spoke to their BI lead from Singapore.
*
I thought that company specialise in CRM only?
SUScastelloz
post Jun 27 2009, 12:14 PM

Getting Started
**
Junior Member
181 posts

Joined: Oct 2007


QUOTE(garagesell @ Jun 27 2009, 10:53 AM)
after trainning, what position are we getting? salary? any expert here can help?

thanks for the info chezzballlllll
*
Theres no guarantee you can get a job in sap even if u have the IQ to pass the exam(ABAP, and SD module is easy, anybody can pass the exam easily).
Starting Salary? rm1800 - rm2500 for freshies. But if u already have non sap working exp plus attended the certification, should be getting around rm3000 to rm3800.
I have a friend who took FI Certification from Genovate but failed the exam. He paid rm30K++ (im not sure) for the certification last year.
Till now jobless. cool2.gif

SUScastelloz
post Jul 2 2009, 02:29 PM

Getting Started
**
Junior Member
181 posts

Joined: Oct 2007


Guys,
Junior abaper need help here.
How do I improve the performance of this coding?

SELECT ltap~tanum ltap~nlpla ltap~wdatu INTO (ltap-tanum, ltap-nlpla, ltap-wdatu)
UP TO 1 ROWS
FROM ltap INNER JOIN lagp
ON lagp~lgnum = ltap~lgnum
AND lagp~lgtyp = ltap~nltyp
AND lagp~lgpla = ltap~nlpla
WHERE lagp~skzue = ' '
AND ltap~pquit = 'X'
AND ltap~matnr = ls_9001_scrn-matnr
AND ltap~lgort = ls_9001_scrn-to_lgort
AND ltap~lgnum = ls_9001_scrn-lgnum
AND ltap~nltyp = ls_9001_scrn-nltyp
ORDER BY tanum DESCENDING.
ENDSELECT.

IF sy-subrc EQ 0.
ls_9001_scrn-nlpla = ltap-nlpla.
EXIT.
ENDIF.

With this conditions:

1)I only 1 to get 1 record.
2)I need to get the record by latest tanum (Transfer Order No)
2)The LTAP table has 10K records. Even u go to SE16, just click No of records button, it took about 35 secods before show the result. So SELECT INTO TABLE lt_ltap then only sort in application server actually takes longer time.
3)INNER JOIN must be used, else for sure will take longer.

The index for the table is enough for the sql.

This post has been edited by castelloz: Jul 2 2009, 02:30 PM
SUScastelloz
post Jul 5 2009, 01:03 AM

Getting Started
**
Junior Member
181 posts

Joined: Oct 2007


QUOTE(Shijirarenai @ Jul 2 2009, 10:02 PM)
» Click to show Spoiler - click again to hide... «

Since my mind is usually simple I wouldn't bother making difficult joins such as above. I have no idea those joins are key-interrelated so I'd do 1 step at a time. Read the tables based on keys only and then filter the details. Btw weren't u an old timer on this stuff? tongue.gif
*
Nope, I cant read based on keys and then filter them out. Tried it and the performace was slower than the current inner join.

QUOTE(bossnass15 @ Jul 3 2009, 12:47 AM)
-create secondary indexes in the table to improve reading speed on non-key fields.
-create a view (joining both tables) to improve readability, then using a select single
*
As I mentioned, I have created the secondary index only for the sql.
Creating a view not going to solve my problem, and I dont think its needed as only this program using this sql statement.
So not worth it to create a view just to improve readability.

QUOTE(izdyharz @ Jul 3 2009, 10:38 AM)
<<The index for the table is enough for the sql.>>
I assume u have created the secondary index in LTAP table for this SQL. But still taking much time.

Sounds like u want to get the non blocked storage bin for the latest transfer order.
Hmm.. I think the culprit is because of the ORDER BY tanum DESCENDING statement.
Try to replace with MAX GROUP BY but I have the feeling u wont get the correct result since u INNER JOIN with other table.
Actually SELECT UP TO 1 ROWS ENDSELECT statement is slower than SELECT statement only, but its ok since u select the table using non-key fields.
Is the whole statement inside a LOOP? This not going to solve ur problem but if u just want to exit out from a subroutine its better to use RETURN.
I was thinking maybe u can turn on the buffer, but system will bypass the ORDER BY statement.
Yep, u can create a view. Try to find any function modules to get the LTAP records.
Maybe u can archive unused/old records in LTAP table also.
Oh yea! Im junior too! sweat.gif
*
Hey! Correct I need to get the latest transfer order no.
Yes, problem with the ORDER BY, If I removed that statement performance will be much much faster. But I need that ORDER BY statement.
MAX aggr. function? Hmm.. u just gave me a good idea. Will try that.
Yes, SELECT ENDSELECT is slower than SELECT statement only, but the where clause cant produce unique record, so have no choice, UP TO 1 ROWS needs to be added. Otherwise my senior wont approve the coding.
Yes the EXIT is to exit from the subroutine, ok I will use RETURN instead. smile.gif
Buffer? Hmm that I err... I dont know tongue.gif
I tried to find but theres no suitable function module just to get the LTAP data.
Ah! Yeah actually all this while they use archiving for temporary solution. I need to improve the coding so that they do not have to do the archiving.
sweat.gif


Added on July 5, 2009, 1:05 am
QUOTE(sca1lywag @ Jul 3 2009, 05:30 PM)
SELECT SINGLE ltap~nlpla
  FROM ltap INNER JOIN lagp
  ON  lagp~lgnum =  ltap~lgnum
  AND lagp~lgtyp =  ltap~nltyp
  AND lagp~lgpla =  ltap~nlpla
  INTO ls_9001_scrn-nlpla
  WHERE ltap~lgnum = ls_9001_scrn-lgnum
    AND ltap~pquit = 'X'
    AND ltap~matnr = ls_9001_scrn-matnr
    AND ltap~nltyp = ls_9001_scrn-nltyp
    AND ltap~lgort = ls_9001_scrn-to_lgort
    AND lagp~skzue = ' '.

hope this helps biggrin.gif
*
I cant use this solution as I need the latest transfer order number. Thanks anyway. smile.gif


Added on July 5, 2009, 1:12 am
QUOTE(alsha7 @ Jul 3 2009, 09:17 PM)
Hi there,

I am not sure about this...do you think internal table might help speed up query...i am also a junior..still learning..
*
Yes, but for this case if I use internal table I need to select atlaest 10K records or more (which already takes much time), tried that and I had compare with current inner join sql. Checked in ST05, and the performance was a bit slower actually.

This post has been edited by castelloz: Jul 5 2009, 01:13 AM
SUScastelloz
post Dec 17 2009, 10:42 AM

Getting Started
**
Junior Member
181 posts

Joined: Oct 2007


Functional folks normally VERY busy with their work.
SUScastelloz
post Apr 19 2010, 03:52 PM

Getting Started
**
Junior Member
181 posts

Joined: Oct 2007


QUOTE(Aggroboy @ Apr 16 2010, 07:46 PM)
ABAP is easy to use, that's why doh.gif

Over the years at this field, the countless fresh grads that I met became very good ABAPers in 2-3 months tops.
*
How long u been in sap? 6,7 Months?

Crazy 2,3 months can do what?
SD/MM,FI simple reports display in alv, some conversion programs, and sapscript layout changes can la!
Some functional folks sometimes so stupid to think abaper just do coding in abap.

There are lot of stuffs la in abap, function modules, conversion programs using badi or bdc, sapscripts, smartforms, adobe form,
BSP, webdynpro, screen programing, badi, function module exit, data dictonary objects; tables,
data elements, structures, lsmw, workflow, idocs, and alot more la.
And the hardest i think is doing coding in object oriented because the design is the most important!
If ur design fail, everything will fail especially for complex requirements or to follow specific design
patterns eg: MVC. For simple program is sup sup sui.

And i havent talk bout performance tuning, sometimes this part is the most difficult one. Even to improve
1 sql statement also can takes a lot of time, need to try a lot of ways, views, inner join, subqueries, buffer, and ect..
And if everything fails the no choice; data archiving.

And do coding in abap also u need to code in the most efficient way, u need to know when to use local structures,
when to use field symbol, when to use CHECK statement, when to use IF Statement, when to use binary search, before use
binary search what u should do first, before use FOR ALL ENTRIES statement what u should do first to avoid the sql select all records
in the table, when u should use HASHED table and what are the do's n donts when coding abap and ect..
U think all these can cover in months meh?

And sometimes, being abaper u need to know some BW basic stuffs oso, because sometimes BW people needs abaper to do complex coding
for them. Eg: u need to know Start routine, end routine, routines in the transformation, need to learn to create
cubes, infoobjects, ods, load the cube, ods, master data, schedule them in process chain, do codings in ADP, do some variable
exit in CMOD to be used in query desginer, sometimes need to code in javascript for WAD,
and blablablablabla... Zzz..Zz....

Btw, u hardly can find good abapers in sap consulting firm la, because consulting firm dont really need a good abaper
escpecially the small sap consulting firm. They just need 2,3 seniors and the rest juniors and teach them the basics
like sapscript, do reports in alv, smartforms, conversion program, some stuffs in data dictionary, and
some badi or function module exit.
Thats all. And repeat again and again for different projects.


Some functionals(not all) are so stupid to think being abaper is so easy. Try to be one la before talk so much.
Thats why some abaper can easily tapau functional folks salary if they really good in what they doing.
Ceh.






SUScastelloz
post May 25 2010, 12:47 PM

Getting Started
**
Junior Member
181 posts

Joined: Oct 2007


Guys,
Anybody knows bout Change Document?
SUScastelloz
post May 25 2010, 02:18 PM

Getting Started
**
Junior Member
181 posts

Joined: Oct 2007


....

This post has been edited by castelloz: Dec 7 2010, 08:15 PM
SUScastelloz
post Jun 1 2010, 10:31 AM

Getting Started
**
Junior Member
181 posts

Joined: Oct 2007


...

This post has been edited by castelloz: Dec 7 2010, 08:15 PM
SUScastelloz
post Jun 1 2010, 10:42 AM

Getting Started
**
Junior Member
181 posts

Joined: Oct 2007


QUOTE(lyk @ Jun 1 2010, 10:38 AM)
yeah i know... just don't feel like scratch all over my head in thinking bout the coding... i really hate programming... not even a person in this company know bout ABAP Programming and i'm the only one... as for your info, i'm fresh and they expect me to do something like a consultant did... what the hell... ridiculous rite? i wish i can join as Application Consultant rather than ABAPer...
*
Bro oil n gas which company?
SUScastelloz
post Jun 1 2010, 12:32 PM

Getting Started
**
Junior Member
181 posts

Joined: Oct 2007


...

This post has been edited by castelloz: Dec 7 2010, 08:14 PM
SUScastelloz
post Jun 1 2010, 12:53 PM

Getting Started
**
Junior Member
181 posts

Joined: Oct 2007


QUOTE(chezzball @ Jun 1 2010, 12:42 PM)
OHH... i tot u doing BW liao. Senang. Is functional in the picture or not? normally in this case can taichi to the functionals. U tell the BW guys sorry cannot do coz table tarak timestamp to monitor changes. ask them to tok to functional to make customize table to maintain aedat then update the table when user make changes via the tcode. after tat u can do a join with those tables u mentioned + the new cusztomied table.
*
No la, im not doing bw, im doing abap r3 onli, but sometimes the bw guys ask me to do abap for bw also.. but i know nothing bout BW.
Yeah d problem with this end user company is, they dun want to have a lot of customize objects to be created. They want us to fully use sap standard stuffs only.
Otherwise it takes a lot of time n effor to get the approval..


Added on June 1, 2010, 12:57 pm
QUOTE(lyk @ Jun 1 2010, 12:48 PM)
what do you guys think about being an ABAPer?
*
Bro, u just work for 3 months bro, nothing much u can learn n do. Wait la
for 1 year or 2, when u get ur hands on stuff like webdynpro, some part of bw, portal, idoc, interactive online adobe form, xi, then only u realize abap is soooo funnn! Ahaks! brows.gif

This post has been edited by castelloz: Jun 1 2010, 12:57 PM

Topic ClosedOptions
 

Change to:
| Lo-Fi Version
0.0431sec    0.67    7 queries    GZIP Disabled
Time is now: 7th December 2025 - 06:01 PM